/* ── BANGLA FONT FACE ── */
@font-face {
    font-family: 'Kalpurush';
    src: url('https://fonts.maateen.me/kalpurush/font/Kalpurush.woff2') format('woff2');
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* Responsive Containers */
.gh-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4vw;
}

.gh-canvas {
    display: grid;
    grid-template-columns: [full-start] minmax(max(4vmin, 20px), auto) [wide-start] minmax(auto, 240px) [main-start] min(1000px, calc(100% - max(8vmin, 40px))) [main-end] minmax(auto, 240px) [wide-end] minmax(max(4vmin, 20px), auto) [full-end];
}
.gh-canvas > * {
    grid-column: main;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
    padding-top: calc(var(--top-bar-h) + var(--nav-h) + var(--break-h) + 5px);
}

h1, h2, h3, h4, h5, h6, 
.is-title, .gh-article-title, .gh-section-title, 
.na-footer-title, .gh-card-title, .section-title, .stat-val {
    font-family: var(--font-serif);
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}

/* Post Cards and Excerpts */
.gh-card-excerpt, .gh-card-content p, .na-hero-excerpt, .na-sidebar-post-title, .gh-card-meta, .gh-article-excerpt {
    font-family: var(--font-sans);
}

/* Fixed Header Logic */
.gh-head-fixed {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll State: Only hide auxiliary bars, keep Navbar at top */
body.is-scrolled .gh-head-fixed {
    transform: translateY(calc(-1 * var(--top-bar-h)));
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body.is-scrolled .gh-breaking-news {
    display: none !important;
}

body.is-scrolled {
    padding-top: var(--nav-h);
}

/* View More Link Button (In Home Feed) */
.na-view-more-btn {
    display: inline-block;
    margin: 40px auto;
    padding: 12px 30px;
    background: #81182A;
    color: #ffffff !important;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(129,24,42,0.15);
}
.na-view-more-btn:hover {
    background: #5a101d;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129,24,42,0.25);
    color: #ffffff !important;
}

/* Bengali Font Enforcement (Supports Manual Switch & Google Translate) */
[data-lang="bn"], .na-lang-bn, :lang(bn), .translated-ltr, .translated-rtl,
[data-lang="bn"] body, .na-lang-bn body, :lang(bn) body, .translated-ltr body, .translated-rtl body,
[data-lang="bn"] .gh-content, .na-lang-bn .gh-content, :lang(bn) .gh-content, .translated-ltr .gh-content, .translated-rtl .gh-content {
    font-family: 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', sans-serif !important;
}

[data-lang="bn"] h1, [data-lang="bn"] h2, [data-lang="bn"] h3, [data-lang="bn"] h4, [data-lang="bn"] h5, [data-lang="bn"] h6,
.na-lang-bn h1, .na-lang-bn h2, .na-lang-bn h3, .na-lang-bn h4, .na-lang-bn h5, .na-lang-bn h6,
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3, :lang(bn) h4, :lang(bn) h5, :lang(bn) h6,
.translated-ltr h1, .translated-ltr h2, .translated-ltr h3, .translated-ltr h4, .translated-ltr h5, .translated-ltr h6,
.translated-rtl h1, .translated-rtl h2, .translated-rtl h3, .translated-rtl h4, .translated-rtl h5, .translated-rtl h6 {
    font-family: 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', serif !important;
}

/* Card Hover Effects */
.gh-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gh-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

/* ── CARD IMAGE HEIGHT FIX (Blank Gap) ── */
.gh-card-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Consistent height */
    object-fit: cover;
    background: #f4f4f4; /* Subtle placeholder background for missing images */
    display: block;
}

.gh-card-wrapper,
.gh-card-content {
    padding: 12px 22px 20px; /* Reduced top padding (from 20px to 12px) */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Tighter gap between internal elements */
}

.gh-card-link {
    text-decoration: none !important;
    color: inherit !important;
}

/* Article Content - Selective Justification */
.post-template .gh-content {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
}

.post-template .gh-content p {
    text-align: justify !important;
    margin-bottom: 2.5rem;
    hyphens: auto;
}

/* Post content text links */
.post-template .gh-content a:not(.gh-btn):not(.na-share-btn) {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease-in-out;
}

.post-template .gh-content a:not(.gh-btn):not(.na-share-btn):hover {
    color: #5a101d;
}

/* Static Page Content - Standard Alignment */
.page-template .gh-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: inherit;
}

.page-template .gh-content p {
    margin-bottom: 2rem;
}

/* Page Header Alignment - Left Aligned for info pages */
.page-template .gh-article-header, 
.page-template .gh-article-title, 
.page-template .gh-article-excerpt,
.page-template .gh-canvas > h1,
.page-template .gh-content > h1,
.gh-page-head, .gh-page-title {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

.gh-card-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 800;
}

.gh-card-excerpt {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    opacity: 0.8;
}

.gh-card-meta {
    font-size: 1.2rem;
    opacity: 0.6;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.na-source-credit {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 1.4rem;
    font-weight: 700;
    color: #666;
    text-align: right;
}
.na-source-credit a {
    color: var(--primary);
    text-decoration: underline;
}

/* Header Layout & Scroll Transitions */
#gh-navigation, .gh-navigation-inner {
    display: flex;
    align-items: center;
    height: 65px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-scrolled #gh-navigation, 
body.is-scrolled .gh-navigation-inner {
    height: 45px;
}

.gh-navigation-logo img {
    max-height: 35px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.is-scrolled .gh-navigation-logo img {
    max-height: 26px;
}

/* ── POST HEADER REFINEMENTS ── */
.gh-article-header {
    padding-top: 0.5rem !important; /* Minimized gap from top */
    padding-bottom: 1.5rem !important;
}

.gh-article-title {
    font-size: clamp(3.2rem, 4.2vw, 4.2rem) !important; /* Slightly smaller title */
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gh-article-excerpt {
    max-width: 100% !important; /* Title width match */
    font-size: 2rem !important;
    line-height: 1.5;
    opacity: 0.9;
}

/* Post Article Tags */
.gh-article-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.gh-article-tag {
    display: inline-block;
    background: var(--primary);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    width: fit-content;
}
.gh-article-tag:hover {
    background: #6b1423;
}

/* ── ARTICLE EXTENSION SYSTEM (Elite Components) ── */
.gh-custom-article { 
    max-width: 100%;
    margin: 0 auto;
    font-size: 1.6rem;
    line-height: 1.7;
}

/* Data Visuals - Brand Identity */
/* Content Boxes & Stats */
.stats-bar { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    background: #81182A; 
    color: #ffffff; 
    border-radius: 12px; 
    margin: 2.5rem 0; 
    text-align: center;
    box-shadow: 0 15px 35px rgba(129,24,42,0.2);
    overflow: hidden;
}
.stats-box {
    background: #81182A;
    color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
}
/* Backward Compatibility for Older Posts with .stat-item */
.stats-box:has(.stat-item) {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    padding: 0;
}
.stats-box h3, .stats-box .stat-val, .stats-box .stat-lab { color: #ffffff !important; }
.stats-bar .stat-val, .stats-bar .stat-lab { color: #ffffff !important; }
.stats-box h3 { color: #ffffff !important; margin: 0 0 10px 0 !important; font-size: 2.1rem; }
.stats-box p { color: rgba(255,255,255,0.9) !important; margin: 0 !important; font-size: 1.5rem; }

.stat-item { padding: 25px 15px; border-right: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 8px; }
.stat-item:last-child { border-right: none; }
.stat-val { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; font-family: var(--font-serif); line-height: 1; }
.stat-lab { font-size: 1.2rem; text-transform: uppercase; font-weight: 500; letter-spacing: normal; line-height: 1.4; }

/* Light Mode Red color for stats on light background */
.highlight-card .stat-val, .highlight-card .stat-lab {
    color: #81182A !important;
}

.summary-box { 
    border-left: 6px solid #81182a; 
    padding: 25px 30px; 
    background: rgba(129, 24, 42, 0.05); 
    margin: 2.5rem 0; 
    text-align: justify;
    border-radius: 0 8px 8px 0; 
}
.summary-box p { margin: 0 !important; font-size: 1.8rem; line-height: 1.6; font-style: italic; color: var(--text-color); }

.section-title { 
    color: var(--primary); 
    font-family: var(--font-serif); 
    font-size: 2.2rem; 
    margin: 3rem 0 1rem;
    border-bottom: 3px solid #ddd; 
    padding-bottom: 2px;
    font-weight: 800; 
    display: inline-block; 
}

/* AI Generated Hero & Wrappers */
.hero-wrap { margin: 0 0 2.5rem; width: 100%; border-radius: 12px; overflow: hidden; }
.hero-wrap .body-text { padding: 25px; background: rgba(0,0,0,0.03); border-radius: 12px; border: 1px solid var(--border-color); }

.body-text { margin-top: 1.5rem; text-align: justify; }

/* Data Tables */
.data-table-container { 
    overflow-x: auto; 
    margin: 2.5rem 0; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.data-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 900px; 
    background: var(--background-color); 
    table-layout: auto; 
}
.data-table th { 
    background: #f4f4f4; 
    color: #1a1a1a; 
    padding: 20px; 
    text-align: left; 
    font-weight: 800; 
    font-family: var(--font-serif); 
    font-size: 1.4rem; 
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}
.data-table td { 
    padding: 18px 20px; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 1.6rem; 
    color: var(--text-color);
    word-break: keep-all;
    white-space: normal;
}

/* Premium Timeline */
.timeline-wrap { margin: 2.5rem 0; padding-left: 20px; border-left: 2px solid var(--gold); position: relative; }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 30px; line-height: 1.6; }
.timeline-item strong, .timeline-item b, .timeline-item h4, .timeline-year { 
    display: block; 
    font-weight: 800 !important; 
    font-size: 1.8rem; 
    margin-bottom: 8px; 
    color: var(--primary);
}
.timeline-item::before {
    content: ""; position: absolute; left: -31px; top: 5px; width: 20px; height: 20px;
    background: #8B1A2E; border: 3px solid #fff; border-radius: 50%;
}

/* Highlight Grid */
.highlight-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 25px; 
    margin: 2.5rem 0; 
}
/* Force 2x2 for exactly 4 cards */
.highlight-grid:has(.highlight-card:nth-child(4)):not(:has(.highlight-card:nth-child(5))) {
    grid-template-columns: repeat(2, 1fr);
}
.highlight-grid .stats-box { margin: 0 !important; height: 100%; }
.highlight-card { border: 1px solid var(--border-color); border-radius: 10px; padding: 25px; background: #f4f4f4; text-align: center; transition: 0.3s; }
.highlight-card h3 { margin: 0 0 10px 0 !important; font-size: 1.8rem; }
.highlight-card p { margin: 15px 0 0 !important; font-size: 1.5rem; opacity: 0.9; }

/* Tag Page & Archive Styling */
.gh-archive {
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.gh-archive .gh-article-title {
    font-size: clamp(3.2rem, 5vw, 5.5rem);
    font-weight: 900;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

/* Professional Pagination */
.gh-pagination {
    margin: 6rem auto;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}
.gh-pagination-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.gh-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}
.gh-pagination-btn:hover:not(.disabled) {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(129, 24, 42, 0.2);
}
.gh-pagination-btn.disabled {
    border-color: var(--border-color);
    color: var(--text-muted);
    opacity: 0.5;
    cursor: not-allowed;
}
.gh-pagination-btn svg {
    width: 18px;
    height: 18px;
}
.gh-pagination-btn.prev svg { transform: rotate(180deg); }
.gh-pagination-page {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

[data-theme="dark"] .gh-archive { background: linear-gradient(to bottom, rgba(129, 24, 42, 0.1), transparent); }
[data-theme="dark"] .gh-pagination-btn:hover:not(.disabled) { color: #ffffff !important; }

/* Dark Mode Enforcement */
[data-theme="dark"] body { background-color: var(--background-color); color: var(--text-color); }
[data-theme="dark"] .summary-box { background: rgba(129, 24, 42, 0.15); border-left-color: #81182a; }
[data-theme="dark"] .data-table th { background: #1a1d21; color: #fff; }
[data-theme="dark"] .highlight-card { background: rgba(255,255,255,0.02); }

/* Dark Mode Specific Fixes */
[data-theme="dark"] .na-navigation-menu li a,
[data-theme="dark"] .gh-navigation-actions a,
[data-theme="dark"] .gh-navigation-actions button { color: var(--text-color) !important; }

[data-theme="dark"] .gh-card-tag, 
[data-theme="dark"] .na-hero-tag,
[data-theme="dark"] .gh-article-tag { 
    background: #81182A !important; 
    color: #ffffff !important; 
}

[data-theme="dark"] .gh-card-meta,
[data-theme="dark"] .na-hero-meta,
[data-theme="dark"] .gh-card-author,
[data-theme="dark"] .gh-card-date,
[data-theme="dark"] .na-sidebar-post-meta,
[data-theme="dark"] .na-trending-meta,
[data-theme="dark"] .na-trending-author,
[data-theme="dark"] .na-trending-date,
[data-theme="dark"] .gh-article-meta,
[data-theme="dark"] .gh-article-meta-content, 
[data-theme="dark"] .gh-article-meta-date,
[data-theme="dark"] .gh-article-meta-length,
[data-theme="dark"] .gh-article-author-name,
[data-theme="dark"] .gh-article-author-name a,
[data-theme="dark"] .na-source-credit,
[data-theme="dark"] .na-source-credit a { 
    color: #ffffff !important;
    opacity: 0.9 !important;
}

[data-theme="dark"] .gh-search-icon, 
[data-theme="dark"] .gh-search-button svg { color: var(--text-color) !important; fill: var(--text-color) !important; }

[data-theme="dark"] .gh-article-title,
[data-theme="dark"] .gh-content,
[data-theme="dark"] .gh-canvas > h1 { color: var(--text-color) !important; }

/* View More Buttons */
.gh-container-footer .gh-btn {
    background-color: var(--primary);
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}
.gh-container-footer .gh-btn:hover {
    background-color: #5a101d; /* Even darker red */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ── PRINT STYLES ── */
.print-header, .print-footer { display: none; }

@media print {
    /* Hide digital-only elements */
    .gh-head-fixed, .gh-top-bar, .gh-navigation, .gh-breaking-news, 
    .gh-footer, .na-footer, .gh-comments, .gh-container.is-grid,
    .gh-print-link, .gh-home-link, #search-button, .social-share, .gh-social,
    .na-social-share-container, .na-related-posts {
        display: none !important;
    }

    /* Show Print Header/Footer */
    .print-header { 
        display: block !important; 
        text-align: center; 
        margin-bottom: 3rem; 
    }
    .print-header img { max-height: 50px; width: auto; }
    
    .print-footer { 
        display: block !important; 
        margin-top: 5rem; 
        font-size: 1.2rem; 
        color: #555; 
        text-align: left;
    }
    .print-url { color: var(--primary); font-weight: bold; text-decoration: none; }

    /* Layout & Spacing */
    body { padding-top: 0 !important; background: white !important; color: black !important; }
    .gh-main { margin: 0 !important; padding: 0 !important; }
    .gh-canvas { 
        display: block !important;
        width: 100% !important; 
        max-width: 100% !important; 
        margin: 0 !important;
    }
    .gh-content { font-size: 12pt !important; line-height: 1.6 !important; }

    /* Prevent broken divs */
    .stats-box, .stats-bar, .summary-box, .highlight-card, .data-table-container, 
    .gh-article-image-container, .gh-card {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin: 1.5rem 0 !important;
    }

    /* Allow timeline to break */
    .timeline-wrap, .timeline-item {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* Table Adjustments */
    .data-table-container { 
        overflow: visible !important; 
        border: none !important; 
        box-shadow: none !important; 
    }
    .data-table { 
        width: 100% !important; 
        min-width: auto !important; 
        table-layout: auto !important; 
        font-size: 10pt !important; 
    }
    .data-table th, .data-table td { 
        padding: 8px !important; 
        border: 1px solid #ddd !important;
        word-break: break-word !important; 
    }
    
    /* Font Color Enforcement & Print Color Adjustment */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .stat-val, .section-title, .na-hero-title, .gh-article-title, .highlight-card h3 {
        color: #000 !important;
    }
    .stats-box, .stats-bar { 
        background: #81182A !important; 
        color: #ffffff !important; 
        border: none !important;
        -webkit-print-color-adjust: exact !important;
    }
    .stats-bar, .stats-box:has(.stat-item) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        padding: 0 !important;
        margin: 1.5rem 0 !important;
    }
    .stats-box:not(:has(.stat-item)) {
        padding: 15px !important;
    }
    .stat-item { 
        flex: 1 1 0px !important;
        padding: 10px 8px !important; 
        gap: 4px !important;
        border-right: 1px solid rgba(255,255,255,0.2) !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    .stat-item:last-child {
        border-right: none !important;
    }
    .stat-val { 
        color: #ffffff !important; 
        font-size: 1.6rem !important;
        line-height: 1.1 !important;
    }
    .stat-lab { 
        color: rgba(255,255,255,0.9) !important; 
        font-size: 1.0rem !important;
        line-height: 1.3 !important;
    }
    .highlight-card { background: #f8f8f8 !important; border: 1px solid #ddd !important; }
    .highlight-card .stat-val { color: #81182A !important; }
    .highlight-card .stat-lab { color: #333 !important; }

    /* Force Light Mode colors for Print (Overrides Dark Mode) */
    [data-theme="dark"] body { background: white !important; color: black !important; }
    [data-theme="dark"] .gh-content, 
    [data-theme="dark"] .gh-article-title, 
    [data-theme="dark"] .gh-canvas > h1,
    [data-theme="dark"] .gh-article-author-name,
    [data-theme="dark"] .gh-article-author-name a,
    [data-theme="dark"] .gh-article-meta-date,
    [data-theme="dark"] .gh-article-meta-length { 
        color: black !important; 
    }
    [data-theme="dark"] .timeline-item strong, 
    [data-theme="dark"] .timeline-year { 
        color: #8B1A2E !important; 
    }
    [data-theme="dark"] .data-table th { background: #f4f4f4 !important; color: black !important; }
    [data-theme="dark"] .highlight-card { background: #f4f4f4 !important; color: black !important; }
}

/* ── HOMEPAGE TOP GRID ── */
.na-home-grid-top {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.na-sidebar-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.na-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.na-sidebar-item {
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.na-sidebar-post-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 5px;
    color: var(--text-color);
    transition: color 0.3s;
}

.na-sidebar-item:hover .na-sidebar-post-title { color: var(--primary); }
.na-sidebar-post-meta { font-size: 1.2rem; color: #888; }

/* ── FEATURED HERO CARD ── */
.na-hero-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.na-hero-image-wrap { 
    display: block; 
    overflow: hidden; 
    aspect-ratio: 16 / 9; /* Consistent hero image height */
    background: #f4f4f4;
}
.na-hero-image { width: 100%; height: 100%; transition: transform 0.5s; object-fit: cover; }
.na-hero-card:hover .na-hero-image { transform: scale(1.03); }

.na-hero-content { padding: 25px; text-align: left; } /* Left-aligned content & reduced padding */
.na-hero-tag { display: inline-block; background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 4px; font-size: 1.2rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; text-decoration: none; }
.na-hero-title { font-family: var(--font-serif) !important; font-size: 2.4rem !important; line-height: 1.2; margin-bottom: 12px; text-align: left; }
.na-hero-title a { text-decoration: none; color: var(--text-color); }
.na-hero-title a:hover { color: var(--primary); }

.na-hero-excerpt { font-family: var(--font-sans) !important; font-size: 1.5rem; line-height: 1.5; color: #555; margin-bottom: 15px; text-align: left; }
[data-theme="dark"] .na-hero-excerpt { color: #aaa; }
.na-hero-meta { font-size: 1.2rem; color: #777; text-align: left; }

/* ── POST GRID REFINEMENTS ── */
.gh-card-title {
    text-align: left !important; /* Left-aligned title for all news cards */
}

/* Divider */
.na-home-feed-divider { margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
.na-section-title { font-family: var(--font-serif); font-size: 2.8rem; color: var(--primary); white-space: nowrap; margin: 0; }
.na-section-line { flex: 1; height: 2px; background: var(--border-color); }

@media (max-width: 1200px) {
    .na-home-grid-top { grid-template-columns: 250px 1fr; }
    .na-home-sidebar-trending { display: none; }
}

@media (max-width: 991px) {
    .na-home-grid-top { grid-template-columns: 1fr; }
    .na-home-sidebar-latest { order: 2; }
    .na-home-featured { order: 1; }
}

/* ── MOBILE RESPONSIVENESS ── */
@media (max-width: 767px) {
    .gh-article-header {
        padding: 4rem 4vw 2rem !important;
    }
    .gh-article-title {
        font-size: 2.8rem !important;
        text-align: left !important;
    }
    .gh-article-excerpt {
        font-size: 1.6rem !important;
        text-align: left !important;
    }
    .stats-box {
        grid-template-columns: 1fr !important;
        margin: 2rem 0;
    }
    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 20px 15px !important;
    }
    .highlight-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .summary-box {
        padding: 20px;
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    
    .post-template .gh-content {
        font-size: 1.5rem; /* Optimized for mobile readability */
    }
    .data-table th, .data-table td,
    .gh-content .gh-table table th, .gh-content .gh-table table td {
        padding: 4px 3px !important;
    }
}

/* ── DOCUMENT INDEX TABLE & META STYLES ── */
.summary-box.doc-meta-box {
    margin-bottom: 3rem;
}
.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}
.meta-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 600;
}
.meta-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.data-table.doc-index-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
}
.data-table.doc-index-table th,
.data-table.doc-index-table td {
    white-space: normal;
    word-break: break-word;
    padding: 12px 10px;
    font-size: 1.5rem;
    vertical-align: middle;
}
.data-table.doc-index-table th {
    font-weight: 800;
    letter-spacing: 0.5px;
    background: #f4f4f4;
    color: #1a1a1a;
}
.data-table.doc-index-table td a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.data-table.doc-index-table td a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Column Widths & Alignments */
.data-table.doc-index-table th:nth-child(1),
.data-table.doc-index-table td:nth-child(1) {
    width: 15%;
    text-align: center;
}
.data-table.doc-index-table th:nth-child(2),
.data-table.doc-index-table td:nth-child(2) {
    width: 60%;
}
.data-table.doc-index-table th:nth-child(3),
.data-table.doc-index-table td:nth-child(3) {
    width: 25%;
    text-align: center;
}

/* Mobile specific styling overrides for document table */
@media (max-width: 767px) {
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .data-table.doc-index-table th,
    .data-table.doc-index-table td {
        padding: 4px 2px;
        font-size: 1.3rem;
    }
}

