/* -------------------------------------------------------------------------- */
/* GLOBAL STYLES & ULTRA-FAST OPTIMIZATIONS                                   */
/* -------------------------------------------------------------------------- */
:root {
    --page-bg: #fff;
    --page-text: #111;
    --accent: #b71c1c;
    --accent-2: #e53935;
    --border-color: #cccccc;
    --subtle-border: rgba(0, 0, 0, .08);
}

/* --- BELOW THE FOLD DEFERRED RENDERING FOR ULTRA-FAST LCP & SPEED INDEX --- */
.more-news-category,
.custom-social-grid,
.sat-reactions-box,
.post-source,
.single-page-tags,
.single-page-sidebar .top-posts-list,
.single-page-sidebar .latest-posts-list,
.single-page-sidebar .live-news-wrapper {
    content-visibility: auto;
    contain-intrinsic-size: 1px 350px;
}

/* --- FULL WIDTH 99% LAYOUT (Background & Container) --- */
.site-main > .container,
.single-page-wrapper {
    max-width: 99% !important;
    width: 99% !important;
    margin: 0 auto !important;
    padding: 0 4px !important;
    box-sizing: border-box;
}

.single-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5px 0;
    overflow: visible; 
}

.single-page-main-content {
    padding: 1rem 0.5rem 1.5rem 0.5rem; 
    flex-grow: 1;
    background-color: var(--page-bg) !important;
    color: var(--page-text) !important;
    height: auto !important;
    max-width: 100%; 
    box-sizing: border-box;
}

.single-page-sidebar {
    background: #fff;
    padding: 0.50rem;
}

/* --- DESKTOP SIDEBAR BORDER & WIDTH --- */
@media (min-width:992px) {
    .single-page-wrapper {
        flex-direction: row;
        gap: 0;
        align-items: flex-start;
    }

    .single-page-main-content {
        width: 75%;
        border-right: 1px solid rgba(0, 0, 0, 0.12);
        padding-right: 14px;
        padding-left: 10px;
    }

    .single-page-sidebar {
        width: 25%;
        padding-left: 14px;
        position: -webkit-sticky;
        position: sticky;
        top: calc(var(--header-height, 115px) + 12px);
        align-self: flex-start;
    }
}

/* --- META HEADER --- */
.post-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 10px;      
    padding-bottom: 10px;   
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    clear: both;
    width: 100%;
}

.meta-author-area {
    flex: 0 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-name-location {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.author-link {
    color: #111;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    box-sizing: border-box;
}
.author-link:hover {
    color: #0073aa;
}

.author-name-location .location-link {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9em;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: 4px;
    box-sizing: border-box;
}

.author-name-location .location-link:hover {
    color: #0073aa;
    text-decoration: underline;
    background: #f1f5f9;
}

.publish-date {
    font-size: 13px;
    color: #666;
}

.meta-toolbar-area {
    flex: 0 0 auto;
}

.article-toolbar {
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent; 
    padding: 0;
    border: none;
    contain: layout style;
}

.article-toolbar button, 
.article-toolbar a {
    font-size: 15px; 
    padding: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    flex: 0 0 44px;
    box-sizing: border-box;
    background: transparent; 
    border: 0;
    cursor: pointer;
    color: #334155; 
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: inherit;
    font-size-adjust: from-font;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
}

.article-toolbar button:hover,
.article-toolbar a:hover {
    color: #0073aa;
    background: rgba(0, 0, 0, 0.05);
}

.article-toolbar svg {
    display: block;
    fill: currentColor;
}

.article-toolbar .desktop-google-preferred-btn {
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: 38px !important;
    padding: 0 10px !important;
    gap: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}
.article-toolbar .desktop-google-preferred-btn svg {
    display: block;
    flex-shrink: 0;
}
.article-toolbar .desktop-google-preferred-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}
@media (max-width: 991px) {
    .article-toolbar .desktop-google-preferred-btn span {
        display: none !important;
    }
    .article-toolbar .desktop-google-preferred-btn {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        justify-content: center !important;
    }
}

/* --- GOOGLE DISCOVER 16:9 ASPECT RATIO & IMAGE SPACING FIX (Zero-CLS) --- */
.featured-box-full,
.lead-image-container {
    width: 100%;
    margin: 0 0 20px 0;
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
    clear: both;
    box-sizing: border-box;
    contain: layout style;
}

.featured-box-full .featured-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 500px;
    background-color: #f1f5f9;
    overflow: hidden;
    display: block;
    position: relative;
    border-radius: 0 !important;
}

.featured-box-full .featured-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important; 
    max-height: 500px;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
    margin: 0 auto;
}

.featured-box-full .image-only-border {
    border-bottom: 1px solid #d0d0d0;
    margin-bottom: 20px;
    padding-bottom: 4px;
}

/* --- CAPTION CSS --- */
.featured-caption {
    font-style: italic;
    color: #555;
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    margin: 0 0 20px 0;
    padding: 10px 0;
    border-top: 1px solid #d0d0d0;    
    border-bottom: 1px solid #d0d0d0; 
}

/* --- IN-BODY CONTENT CAPTIONED IMAGES --- */
.article-body-content figure {
    margin: 18px auto 22px auto;
    text-align: center;
    max-width: 100%;
}

.article-body-content figure img,
.article-body-content .wp-caption img {
    margin-bottom: 6px;
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.article-body-content figure figcaption,
.article-body-content .wp-caption-text,
.article-body-content .image-caption {
    display: block;
    font-size: 13px;
    color: #4b5563;
    font-style: italic;
    text-align: center;
    line-height: 1.45;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #d0d0d0;
    padding: 6px 0;
    margin: 6px 0 18px 0;
}

/* --- IN-CONTENT RELATED POST OVERRIDES --- */
.sat-screenshot-style,
.sat-screenshot-style *,
.article-body-content .sat-screenshot-style,
.article-body-content .sat-screenshot-style * {
    text-decoration: none !important;
}
.article-body-content .sat-screenshot-style a,
.article-body-content .sat-screenshot-style h2 {
    color: #000000 !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.article-body-content .sat-screenshot-style h2 {
    font-size: 16.5px !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
    margin: 0 0 6px 0 !important;
}
.article-body-content .sat-screenshot-style .sat-read-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #d93025 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    min-height: 24px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}
.article-body-content .sat-screenshot-style .sat-read-more-btn:hover {
    background-color: #b71c1c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}
.article-body-content .sat-screenshot-style a.sat-title-link:hover h2 {
    color: #d93025 !important;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .post-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0; 
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .meta-author-area {
        width: 100%;
        border-bottom: 1px solid #f0f0f0; 
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    .meta-toolbar-area {
        width: 100%;
    }
    
    .article-toolbar {
        display: flex !important;
        flex-wrap: nowrap !important; 
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 4px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding: 3px 0 !important;
        margin: 0 !important;
        contain: layout style;
    }
    .article-toolbar::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    .article-toolbar button, 
    .article-toolbar a {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        font-size: 11.5px !important;      
        padding: 0 !important;        
        border-radius: 5px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        font-size-adjust: from-font;
        overflow: hidden !important;
    }
    .article-toolbar svg {
        width: 13px !important;
        height: 13px !important;
        max-width: 13px !important;
        max-height: 13px !important;
    }
    @media (max-width: 380px) {
        .article-toolbar {
            gap: 2px !important;
        }
        .article-toolbar button, 
        .article-toolbar a {
            flex: 0 0 28px !important;
            width: 28px !important;
            height: 28px !important;
            min-width: 28px !important;
            min-height: 28px !important;
            max-width: 28px !important;
            max-height: 28px !important;
            font-size: 10.5px !important;
            border-radius: 4px !important;
        }
        .article-toolbar svg {
            width: 11px !important;
            height: 11px !important;
            max-width: 11px !important;
            max-height: 11px !important;
        }
    }
}

.post-category-title { margin-bottom: 5px; }

.post-category-title a span {
    color: #0073aa;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 3px solid #0073aa;
    display: inline-block;
    margin-bottom: 5px;
    text-decoration: none;
}
.single-page-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #111;
    line-height: 1.3;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
}
.single-page-title.has-subtitle-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}
.post-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
    margin: 0 0 15px 0; 
    font-style: italic;
    line-height: 1.4;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 10px;
}

.single-details {
    line-height: 1.8;
    font-size: 18px;
    transition: font-size .3s ease;
    margin-bottom: 2rem;
    display: flow-root; 
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    color: #111;
}

.single-details p { margin-bottom: 1.2em; }

.single-details blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #0073aa;
    font-style: italic;
    color: #555;
    font-size: 1.1em;
    line-height: 1.6;
    position: relative;
    clear: both;
    font-family: inherit; 
}
.single-details blockquote:before { content: '"'; font-size: 3em; color: #0073aa; position: absolute; left: 10px; top: -10px; opacity: .3; }
.single-details blockquote:after { content: '"'; font-size: 3em; color: #0073aa; position: absolute; right: 10px; bottom: -30px; opacity: .3; }
.single-details blockquote p { margin: 0; position: relative; z-index: 1; }

.single-page-tags {
  margin-top: 20px;
  padding: 12px 14px;
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  font-size: 14px;
  background: #fafafa;
  clear: both;
  box-sizing: border-box;
}

.single-page-tags span { font-weight: 700; margin-right: 8px; color: #333; display: inline-flex; align-items: center; min-height: 38px; }
.single-page-tags a {
  display: inline-flex;
  align-items: center;
  background: #edf7ff;
  padding: 8px 14px;
  margin: 6px 8px 0 0;
  min-height: 38px;
  border-radius: 6px;
  font-size: 13.5px;
  color: #0056a3;
  text-decoration: none;
  transition: 0.2s;
  box-sizing: border-box;
}
.single-page-tags a:hover { background: #d7ebff; color: #003c73; }

.post-source {
    margin: 1.5rem 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    font-size: 16px;
    clear: both;
}
.post-source .label { font-weight: 600; margin-right: 8px; }

/* --- MORE NEWS CATEGORY --- */
.more-news-category { padding-bottom: 20px; margin-bottom: 20px; border-bottom: none; }
.more-news-title { font-size: 24px; color: #222; margin-bottom: 20px; padding-bottom: 0; border-bottom: none; font-weight: 600; }
.more-news-cat-link { color: #D32F2F !important; text-decoration: none !important; border-bottom: 2px solid #D32F2F; padding-bottom: 3px; transition: all 0.2s ease; }
.more-news-cat-link:hover { color: #b71c1c !important; border-color: #b71c1c; }

.responsive-news-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 18px; 
    width: 100%; 
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
    box-sizing: border-box;
}

.news-grid-item { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    position: relative;
    border: none;
    box-sizing: border-box;
    padding-bottom: 8px;
}
.news-grid-item:hover .news-content a { color: var(--accent); }
.news-grid-item:hover .news-thumb img { opacity: 0.9; }

.news-grid-item::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -9px;
    width: 1px;
    height: 80%;
    background: var(--border-color);
    z-index: 0;
}

.news-grid-item::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    right: -18px;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.news-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    border-radius: 4px;
    box-sizing: border-box;
}
.news-thumb img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: opacity .3s ease;
}
.news-content {
    padding: 10px 0 0 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
}
.news-content a {
    text-decoration: none;
    color: #111;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.45;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 6px 0;
    box-sizing: border-box;
    transition: color .2s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 767px) { 
    .responsive-news-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } 
    .more-news-title { font-size: 20px; } 
    .news-grid-item::after { display: block; }
    .news-grid-item:nth-child(2n)::after { display: none; }
    .news-grid-item:nth-child(2n)::before { right: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) { 
    .responsive-news-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } 
    .news-grid-item::after { display: block; }
    .news-grid-item:nth-child(3n)::after { display: none; }
    .news-grid-item:nth-child(3n)::before { right: 0; }
}
@media (min-width: 1024px) { 
    .responsive-news-grid { grid-template-columns: repeat(4, 1fr); } 
    .news-grid-item::after { display: block; }
    .news-grid-item:nth-child(4n)::after { display: none; }
    .news-grid-item:nth-child(4n)::before { right: 0; }
}

.single-page-sidebar .section-title { font-size: 1.3rem; margin-bottom: 15px; border-bottom: 2px solid #ddd; padding-bottom: 8px; color: #333; }
.single-page-sidebar .post-item {
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    border-bottom: 1px solid var(--subtle-border);
    padding: 12px 0;
    margin-bottom: 12px;
    gap: 14px;
}
.single-page-sidebar .post-item .post-thumbnail {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 6px;
    background: #f1f5f9;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}
.single-page-sidebar .post-item .post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
}
.single-page-sidebar .post-item .post-thumbnail img {
    width: 84px;
    height: 84px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.single-page-sidebar .post-item .post-thumbnail:hover img { transform: scale(1.05); }
.single-page-sidebar .post-item .post-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 84px;
}
.single-page-sidebar .post-item .post-details .post-title {
    margin: 0;
    font-size: .95rem;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}
.single-page-sidebar .post-item .post-details .post-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    min-height: 44px;
    padding: 4px 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}
.single-page-sidebar .post-item .post-details .post-title a:hover { color: #d93025; text-decoration: underline; }

/* --- SOCIAL GRID --- */
.custom-social-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
    clear: both;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .custom-social-grid { grid-template-columns: repeat(2, 1fr); }
    .social-grid-item:not(:last-child) { border-right: 1px solid #ddd; border-bottom: none; }
}
@media (max-width: 767px) {
    .social-grid-item:not(:last-child) { border-bottom: 1px solid #ddd; }
}
.social-grid-item {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background-color: #f5f5f5;
    padding: 0;
    transition: background-color 0.2s;
}
.social-grid-item:hover { background-color: #ebebeb; }
.social-grid-item a {
    text-decoration: none;
    color: #0a47a1;
    font-weight: bold;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    box-sizing: border-box;
}

@media (max-width:480px) {
    .container { padding: 0 2px; }
    .single-page-wrapper { padding: .05rem; }
    .single-page-main-content, .single-page-sidebar { padding: .15rem; }
    .single-page-title { font-size: 1.3rem; }
}

@media print { 
    /* Hide all non-article layout elements for pristine PDF and print */
    header, nav, aside, footer,
    .site-header, .header-bottom, .slide-menu, .overlay-bg,
    .single-page-sidebar, .article-toolbar, .site-footer,
    .custom-social-grid, .responsive-news-grid, .latest-posts-list,
    .top-posts-list, .sat-screenshot-style, .sat-embed-box,
    .inline-related-article, .sat-related-box, .related-posts-in-content,
    .sat-read-more-btn, .post-source, .single-page-tags, .comments-section,
    .ad-container, .btn, button, #share-fb, #share-x, #share-wa, #listen-btn { 
        display: none !important; 
    } 

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .container, .single-page-wrapper, .single-page-main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    .single-page-title {
        font-size: 24pt !important;
        line-height: 1.3 !important;
        color: #000 !important;
        margin-bottom: 10pt !important;
    }

    .post-subtitle {
        font-size: 14pt !important;
        color: #333 !important;
        margin-bottom: 12pt !important;
    }

    .post-meta-header {
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 8pt !important;
        margin-bottom: 12pt !important;
    }

    .featured-img, .featured-box-full img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 10pt auto !important;
    }

    .article-body-content {
        font-size: 12pt !important;
        line-height: 1.65 !important;
        color: #111 !important;
    }
}
