/* Article */
.article-content p {
    /* color: #333; */
    color: #2E2E2E;
    font-size: 20px !important;
    line-height: 1.75 !important;
    margin-bottom: 25px !important;
    overflow-wrap: break-word !important;
    text-align: justify;
}

/* Share */
.share-box {
    background: #fff;
    border: 1px solid #eee;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
}

/* Social colors */
.bg-twitter {
    background: #1da1f2;
}

.bg-facebook {
    background: #1877f2;
}

.bg-whatsapp {
    background: #25d366;
}

/* Suggested */
.suggest-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
}

/* Related */
.related-card img {
    height: 160px;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 992px) {
    .related-card img {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .suggest-img {
        width: 60px;
        height: 60px;
    }

    .related-card img {
        height: 120px;
    }
}

.main-title h2 {
    line-height: 1.5;
}

/* Category and Editor Details */
.category-editor-detail {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.category-editor-detail .badge {
    font-size: 0.85rem;
    padding: 6px 12px;
}

.category-editor-detail .text-muted {
    font-size: 0.9rem;
    margin: 0;
}

.category-editor-detail .d-flex {
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .category-editor-detail .d-flex {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 10px;
    }
}

/* Sticky Advertisement Styles */
.sticky-sidebar {
    /* Remove sticky from entire sidebar */
}

.second-ad {
    position: sticky;
    top: 20px;
    margin-top: 20px;
}

#sticky-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.sticky-ad-limit {
    width: 100%;
    max-width: 1100px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    padding: 2px 0;
}

.sticky-leaderboard.code-block {
    margin: 0 !important;
    padding: 2px 0 !important;
}
.sticky-ad-content {
    width: 728px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .sticky-ad-content {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .code-block, .wp-block-image {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
.code-block {
    display: block !important;
    margin: 15px 0 !important;
    padding: 10px 0 !important;
    position: relative !important;
    text-align: center !important;
    max-width: 744px;
    clear: both;
}

#sticky-footer-close {
    position: absolute;
    left: 735px;
    top: 5px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 14px;
    z-index: 10001;
    right:10px;
}

/* .sticky-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    padding: 5px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.sticky-bottom-ad img {
    max-height: 60px;
    width: auto;
    margin: 0 auto;
    display: block;
} */

/* The sticky-footer ad reserves its own space in JS once the creative actually fills.
   Don't add a body padding-bottom fallback here — it would create empty white space at
   the page bottom on iOS Chrome whenever the ad fails or is slow to load. */

@media (max-width: 575px) {
    #sticky-footer-close {
        left: auto;
        right: 5px;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
    }
    
    .article-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col-lg-8, .col-lg-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Fix any potential overflow from images */
    /* img {
        max-width: 100% !important;
        height: auto !important;
    } */
    
    /* Fix text overflow */
    .article-content {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }
    
    /* Fix category-editor-detail overflow */
    .category-editor-detail {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    .category-editor-detail .text-muted{
        font-size: 0.8rem;
    }
}

/* Center container with proper margins */
.article-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    padding-left: 10rem;
    padding-right: 10rem;
}

@media (max-width: 1400px) {
    .article-container {
        padding-left: 7.5rem;
        padding-right: 7.5rem;
    }
}

@media (max-width: 1200px) {
    .article-container {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (max-width: 992px) {
    .article-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 768px) {
    .article-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .category-editor-detail .text-muted{
        font-size: 0.8rem;
    }
}

div#_cm-css-reset{
    z-index: 9999 !important;
}