/* assets/css/main.css - REFINED ASTRO PORT V2 */

:root {
    --color-authority-blue: #036fb6;
    --color-paper-white: #fafafa;
    --color-surface: #ffffff;
    --color-text-primary: #121212;
    --color-text-secondary: #667085;
    --color-border: #e5e5e5;
    --color-accent: var(--color-authority-blue);
    --font-headline: 'Playfair Display', Georgia, "Times New Roman", serif;
    --font-body: 'PT Serif', Georgia, Times, serif;
    --font-ui: 'Inter', Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Legacy Aliases */
    --font-editorial: var(--font-headline);
    /* Fallback for layout */
    --nh-black: var(--color-text-primary);
    --nh-gray: var(--color-text-secondary);
    --nh-blue: var(--color-authority-blue);
}

/* --- RESET & BASICS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

/* === GLOBAL RESPONSIVE SAFETY CORE === */
html,
body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip !important;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

body {
    background: var(--color-paper-white);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

p,
.entry-content p,
article p,
.blog-post p,
.single-post p,
.comments p {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 680px;
    margin-bottom: 1.4em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: -0.015em;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

/* Article Page — Main Headline */
.single-post h1.entry-title,
.article-headline {
    font-family: var(--font-headline);
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Article Subtitles */
.entry-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 16px;
}

/* Subheadlines / Deck */
.entry-deck,
.article-subheadline {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 18px;
}

blockquote.pull-quote,
.wp-block-pullquote {
    font-family: var(--font-headline);
    font-style: italic;
    font-size: 28px;
    margin: 2em auto;
    max-width: 520px;
    text-align: center;
}

figcaption,
.wp-caption-text,
.gallery-caption {
    font-family: var(--font-ui);
    font-size: 13px;
    opacity: 0.7;
}

/* Interface Layer Enforcements */
.main-nav,
.nav-link,
.menu,
button,
.btn,
.search-form,
input,
select,
textarea,
.author-name,
.post-date,
.widget,
.site-footer {
    font-family: var(--font-ui);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: none;
    font-size: 15px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

.container,
.container-slim,
.container-wide {
    width: 100%;
    max-width: var(--max-width, 1340px);
    /* Increased from 1300px for better flow */
    margin: 0 auto;
    padding: 0 60px;
    /* Standardized generous padding */
    box-sizing: border-box;
}

.container-slim {
    --max-width: 800px;
}

.container-wide {
    --max-width: 1400px;
}

@media (max-width: 768px) {

    .container,
    .container-slim,
    .container-wide {
        padding: 0 30px;
    }
}

.container-wide {
    max-width: 1600px;
}

/* === MASTHEAD (HEADER) === */
.masthead {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    /* Vertical padding only, let .container handle horizontal */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.brand-logo {
    height: 25px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

/* Sticky Shrink State */
.masthead.is-sticky {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    /* Maximum priority */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: var(--color-surface) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: block !important;
    /* FORCE VISIBILITY */
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    /* Prevent move-out animations */
    height: auto !important;
    min-height: 60px !important;
}

.masthead.is-sticky .brand-row {
    padding: 5px 0 !important;
    min-height: 50px !important;
    overflow: visible !important;
    /* Allow content to be seen */
    display: flex !important;
    align-items: center !important;
}

/* Ensure wrappers don't hide content */
.masthead.is-sticky .masthead-scroller,
.masthead.is-sticky .brand-row-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.masthead.is-sticky .brand-row>* {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.masthead.is-sticky .brand-logo {
    height: 40px !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.masthead.is-sticky .brand {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    height: auto !important;
}

/* Force container visibility */
.masthead.is-sticky .left-actions,
.masthead.is-sticky .right-actions,
.masthead.is-sticky .header-actions {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.masthead.is-sticky .date-text,
.masthead.is-sticky .social-links {
    opacity: 1 !important;
    visibility: visible !important;
    /* transform: scale(0.95); REMOVED FOR STABILITY */
    /* transform-origin: center; */
}

.masthead.is-sticky .subscribe-btn,
.masthead.is-sticky .action-divider {
    display: inline-flex !important;
    /* transform: scale(0.95); REMOVED FOR STABILITY */
    /* transform-origin: right center; */
    opacity: 1 !important;
    visibility: visible !important;
}

.masthead.is-sticky .subscribe-btn {
    padding: 6px 14px;
    /* More substantial padding */
    font-size: 0.85rem;
}

.masthead.is-sticky .date-text {
    font-size: 0.8rem;
    /* Readable size */
    white-space: nowrap;
}

.date-text,
.header-actions {
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .masthead.is-sticky .brand-logo {
        height: 18px !important;
    }
}

.left-actions,
.right-actions {
    flex: 1;
    display: flex;
    align-items: center;
}

.right-actions {
    justify-content: flex-end;
}

.date-text {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: none;
    letter-spacing: 0.01em;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 14px;
    margin-right: 16px;
    align-items: center;
}

.social-icon-link {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.social-icon-link svg {
    width: 16px;
    height: 16px;
}

.social-icon-link:hover {
    color: var(--color-text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.search-btn,
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-only-toggle {
    display: none !important;
}

.menu-toggle .toggle-text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Hamburger Icon Animation */
.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 0;
    /* Square for seriousness */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.is-active .hamburger-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.is-active .hamburger-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--color-accent) !important;
}

.subscribe-btn {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    padding: 6px 16px;
    border: 1px solid var(--color-accent);
    border-radius: 0;
    text-transform: none;
    transition: all 0.2s ease;
}

.subscribe-btn:hover {
    background: var(--color-accent);
    color: #fff;
}

.nav-row {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    position: relative;
    transition: all 0.4s ease;
}

.masthead.is-sticky .nav-row {
    background: var(--color-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}

.nav-spacer-left {
    flex: 1;
}

.nav-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.search-overlay {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.main-nav {
    display: flex;
    column-gap: 42px;
    padding: 8px 0;
}

.main-nav a,
.nav-link {
    font-family: var(--font-ui);
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: none;
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: fixed;
        /* Fixed for full screen overlay */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.85);
        /* Slightly more transparent */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 80px 40px;
        /* Space for logo/close button */
        box-shadow: none;
        z-index: 3000;
        gap: 0;
        transform: scale(1.1);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        overflow-y: auto;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-nav.is-open {
        display: flex;
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav a,
    .nav-link {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        padding: 16px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }
}

/* Sub-menu styling (Desktop) */
.main-nav-list {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav-list li {
    position: relative;
}

.main-nav-list ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--color-authority-blue);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.main-nav-list li:hover>ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav-list .sub-menu a {
    display: block;
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
    text-transform: none !important;
    font-weight: 500 !important;
    color: #444 !important;
    border: none !important;
}

.main-nav-list .sub-menu a:hover {
    background: #f8f8f8;
    color: var(--color-authority-blue) !important;
}

.nav-link,
.main-nav a {
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    color: var(--color-text-primary);
    letter-spacing: 0.04em;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.main-nav a:hover,
.nav-link.active,
.main-nav .current-menu-item>a,
.main-nav .current-category-ancestor>a,
.main-nav .current-post-ancestor>a {
    color: #036fb6;
}

.nav-link::after,
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    /* Start from center */
    width: 0;
    height: 3px;
    /* Slightly thicker for active state visibility */
    background: var(--color-authority-blue);
    transform: translateX(-50%);
    /* Center align */
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.main-nav a:hover::after,
.nav-link.active::after,
.main-nav .current-menu-item>a::after,
.main-nav .current-category-ancestor>a::after,
.main-nav .current-post-ancestor>a::after {
    width: 100%;
}

/* === APPLE MEGA MENU OVERLAY === */
.apple-mega-menu {
    animation: megaFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes megaFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mega-col h3 {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    color: var(--color-authority-blue);
    transition: color 0.3s ease;
}

/* Level 2 — Category Headers */
.mega-link,
.mega-menu-list a {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
    white-space: normal;
    word-break: break-word;
}

/* Level 3 — Subsections */
.mega-link-sub,
.mega-menu-list .sub-menu a {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
    position: relative;
    white-space: normal;
    word-break: break-word;
}

.mega-link:hover,
.mega-link-sub:hover,
.mega-menu-list a:hover {
    color: var(--color-accent);
    transform: translateX(8px);
}

/* Premium underline animation */
.mega-link::after,
.mega-link-sub::after,
.mega-menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-link:hover::after,
.mega-link-sub:hover::after,
.mega-menu-list a:hover::after {
    width: 100%;
}

.mega-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Handle WordPress nested menus automatically */
.mega-menu-list ul.sub-menu {
    margin: 8px 0 16px 0;
    padding: 0;
    list-style: none;
}

.mega-menu-list .menu-item-has-children>a {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    color: #1d1d1f;
    letter-spacing: 0.03em;
    pointer-events: none;
    margin-top: 15px;
    margin-bottom: 10px;
}

.mega-menu-list li {
    margin-bottom: 4px;
}

.close-mega-menu:hover {
    transform: rotate(90deg) scale(1.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.apple-mega-menu .container {
    opacity: 0;
    animation: megaContentIn 0.5s 0.1s forwards;
}

@keyframes megaContentIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === HOMEPAGE LAYOUT (NEWSWEEK MASTER V9) === */
.pro-layout {
    padding: 20px 0 60px;
    background: #fff;
}

/* Section Titles */
.nw-master-section-title,
.nw-block-header-blue {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 20px;
    position: relative;
    padding-top: 15px;
    border-top: 4px solid var(--color-authority-blue);
    color: #000;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* === RESPONSIVE HEADLINE SAFETY === */
@media (max-width: 768px) {

    h1,
    .nw-hero-title-replica,
    .single-post h1.entry-title,
    .article-headline {
        font-size: 34px !important;
        max-width: 100%;
    }

    .nw-section-title-replica,
    .nw-block-title-replica,
    .nw-master-section-title,
    .nw-block-header-blue {
        font-size: 22px;
    }

    .nw-hero-excerpt-replica,
    .entry-deck,
    .article-subheadline {
        font-size: 17px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {

    h1,
    .nw-hero-title-replica,
    .single-post h1.entry-title,
    .article-headline {
        font-size: 44px !important;
    }
}

/* Level 3 — Featured Labels */
.trending-tag-blue {
    font-family: var(--font-ui);
    color: var(--color-authority-blue);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-right: 15px;
}

.nw-kicker-blue {
    font-family: var(--font-ui);
    color: var(--color-authority-blue);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-right: 10px;
}

/* Trending Strip */
.nw-master-trending {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    font-size: 0.75rem;
}

.trending-links {
    display: flex;
    gap: 20px;
}

.trending-links a {
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

/* Main Stage: Rectangular 50/50 */
.nw-master-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .nw-master-hero {
        grid-template-columns: 1fr;
    }
}

.nw-master-media {
    aspect-ratio: 3/2;
    /* Rectangular */
    overflow: hidden;
}

.nw-master-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-master-title {
    font-size: 2.2rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 15px;
}

.nw-master-excerpt {
    font-family: var(--font-editorial);
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Sidebar Popular: Rectangular */
.nw-pop-item-master {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.nw-pop-thumb-rect {
    aspect-ratio: 3/2;
    /* Rectangular */
    overflow: hidden;
}

.nw-pop-thumb-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-pop-info h3 {
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 700;
}

/* High Density Grid */
.nw-density-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .nw-density-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nw-card-media-rect {
    aspect-ratio: 3/2;
    /* Rectangular */
    overflow: hidden;
    margin-bottom: 12px;
}

.nw-card-media-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-density-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Editorial Content Layout */
.nw-editorial-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

@media (max-width: 1024px) {
    .nw-editorial-layout {
        grid-template-columns: 1fr;
    }
}

.nw-cluster-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .nw-cluster-row {
        grid-template-columns: 1fr;
    }
}

.nw-master-block-media {
    aspect-ratio: 3/2;
    /* Rectangular */
    overflow: hidden;
    margin-bottom: 12px;
}

.nw-master-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-master-block-featured h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.nw-master-list-item {
    padding: 10px 0;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    font-family: var(--font-editorial);
}

/* Specials: Elegant Horizontal */
.nw-specials-wide {
    margin-bottom: 60px;
}

.nw-specials-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nw-special-media-rect {
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 15px;
}

.nw-special-media-rect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar Custom Widgets */
.nw-opinion-item-master {
    margin-bottom: 25px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.nw-opinion-item-master h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 5px 0;
}

.nw-opi-author {
    font-size: 0.75rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
}

.nw-media-item-master {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.nw-media-thumb-master {
    width: 80px;
    height: 55px;
    background: #000;
    position: relative;
    flex-shrink: 0;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.8rem;
}

.nw-master-newsletter {
    background: #f0f4f8;
    /* Light blue tint */
    padding: 30px;
    border-top: 4px solid var(--color-authority-blue);
    margin-top: 50px;
}

.nw-master-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.nw-master-newsletter button {
    background: var(--color-authority-blue);
    color: #fff;
    width: 100%;
    padding: 12px;
    border: none;
    font-weight: 800;
    margin-top: 10px;
}

/* === SITE FOOTER (Refined Newspaper Style) === */
.site-footer {
    background: var(--color-authority-blue) !important;
    color: #ffffff !important;
    padding: 60px 0 0;
    border-top: none !important;
    font-family: var(--font-ui);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (min-width: 1024px) {
    .footer-top {
        grid-template-columns: 280px 1fr;
        gap: 60px;
    }
}

@media (max-width: 1023px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand-section {
        align-items: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) !important;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    line-height: 1.5;
    color: #ffffff !important;
    font-style: normal;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-icon {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-social-icon:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 4px;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .footer-nav-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .footer-col-title {
        font-size: 13px !important;
        /* Larger on tablet */
        font-weight: 800 !important;
    }

    .footer-col-list a {
        font-size: 13px !important;
    }
}

@media (max-width: 768px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-col-title {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: #ffffff !important;
    border-bottom: none;
    display: block;
    padding-bottom: 0;
}

.footer-col-title a {
    color: inherit;
    text-decoration: none;
}

.footer-col-title a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 4px;
}

.footer-col-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-list li {
    margin-bottom: 2px;
}

.footer-col-list a {
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1.45;
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col-list a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 4px;
}

.footer-bottom {
    background: transparent;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 35px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-nav {
        display: flex;
        gap: 15px;
        justify-content: center;
    }
}

.footer-legal-sep {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal-nav a {
    color: #ffffff !important;
    text-decoration: none;
}

.footer-legal-nav a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 4px;
}

.copyright-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: #999;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: var(--color-text-secondary);
}

/* === SINGLE ARTICLE PREMIUM UI === */
.article-header {
    margin-top: 50px;
    text-align: center;
}

.article-title {
    font-family: var(--font-editorial);
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 40px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.article-lead {
    font-family: var(--font-editorial);
    font-size: 1.4rem;
    line-height: 1.5;
    color: #444;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-body {
    font-family: var(--font-editorial);
    font-size: 1.2rem;
    /* Balanced with lead */
    line-height: 1.75;
    color: #1a1a1a;
}

.container-slim {
    max-width: 850px;
}

.article-body p {
    margin-bottom: 1.8rem;
}

.share-btn-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #eee;
    cursor: pointer;
}

.share-btn-round:hover {
    background: var(--color-authority-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .article-title {
        font-size: 2.2rem;
    }

    .article-layout {
        grid-template-columns: 1fr !important;
    }

    .article-share-sidebar {
        position: static !important;
        margin-bottom: 30px;
    }

    .article-share-sidebar>div {
        flex-direction: row !important;
        justify-content: center;
    }
}

/* === PREMIUM SEARCH OVERLAY === */
.search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2100;
    padding: 8px 0;
    /* Extra fine */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 800px;
    /* Focused width */
    margin: 0 auto;
}

#live-search-input {
    width: 100%;
    padding: 8px 45px 8px 12px;
    /* Slimmer and finer */
    border: 1px solid #ddd;
    border-radius: 0;
    font-family: var(--font-editorial);
    font-size: 0.95rem;
    /* Slightly smaller for elegance */
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
}

#live-search-input:focus {
    border-color: var(--color-authority-blue);
    box-shadow: 0 0 0 4px rgba(3, 111, 182, 0.1);
}

.search-close-btn {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 10px;
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    color: #000;
    transform: rotate(90deg);
}

.live-search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    margin-top: 5px;
    border-radius: 0;
    /* Square */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 2200;
    border: 1px solid #eee;
}

.live-result-item {
    padding: 15px 20px;
    display: block;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.live-result-item:last-child {
    border-bottom: none;
}

.live-result-item:hover {
    background: #f8f8f8;
    color: var(--color-authority-blue);
}

.live-result-title {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
}

.article-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.share-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-share-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.entry-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-tags a {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 0;
    /* Editorial square */
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tags a:hover {
    background: var(--color-authority-blue);
    color: #fff;
}

.related-posts {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 2px solid #000;
}

.related-title {
    font-family: var(--font-ui);
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* === ARCHIVE & CATEGORY STYLES === */
.nw-archive-header {
    margin-bottom: 50px;
    position: relative;
}

.nw-archive-header .nw-hero-title-replica {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.nw-archive-header .nw-hero-excerpt-replica {
    margin-top: 20px;
    max-width: 800px;
}

.nw-trending-replica {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.nw-trending-label-replica {
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--color-authority-blue);
    letter-spacing: 0.05em;
}

.nw-trending-tags-replica {
    display: flex;
    gap: 8px;
}

.nw-trending-tags-replica a {
    font-size: 0.7rem;
    color: #666;
    text-decoration: none;
    font-weight: 600;
}

.nw-top-stories-grid-replica.standard-grid,
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.content-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content-card .card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.content-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.05);
}

.content-card .card-content {
    padding: 20px;
}

.content-card .card-category {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 900;
    color: var(--color-authority-blue);
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.content-card .card-title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin-bottom: 12px;
    font-weight: 700;
}

.content-card .card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* === ARCHIVE UTILITIES === */
.relative {
    position: relative;
}

.constrained {
    max-width: 800px;
}

.center-text {
    text-align: center;
    display: block;
}

.bordered-top {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 60px;
}

.nw-replica-divider.fading {
    height: 1px;
    background: linear-gradient(to right, transparent, #eee, transparent);
    margin: 40px 0;
    opacity: 0.6;
}

.reporter-mini-card {
    flex: 0 0 140px;
    max-width: 140px !important;
    min-width: 140px;
    padding: 10px;
    border: none !important;
}

.reporter-avatar-circle {
    aspect-ratio: 1/1;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px auto;
    border-radius: 50% !important;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reporter-avatar-circle img {
    border-radius: 50% !important;
}

@media (max-width: 768px) {
    .nw-archive-header .nw-hero-title-replica {
        font-size: 1.8rem;
    }

    .nw-top-stories-grid-replica.standard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* === CONSOLIDATED ARTICLE MEDIA CORE === */
.article-featured-image {
    width: 100%;
    margin: 0 auto 40px auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 65vh !important;
    object-fit: cover;
    object-position: center;
}

.wp-caption-text {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: #555;
    margin-top: 12px;
    text-align: left;
    font-style: italic;
    border-left: 3px solid var(--color-authority-blue);
    padding-left: 12px;
    line-height: 1.4;
}

.entry-content img,
.page-content img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    object-fit: contain;
    margin: 30px auto;
    display: block;
    border-radius: 4px;
}

.article-kicker,
.static-page .kicker {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-authority-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

/* === STATIC PAGE STYLES === */
.static-page .page-header {
    background: var(--color-paper-white);
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.static-page .page-title {
    font-size: 3.5rem;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #000;
}

@media (max-width: 768px) {
    .static-page .page-header {
        padding: 40px 0;
    }

    .static-page .page-title {
        font-size: 2.2rem;
    }
}

.page-content-wrapper {
    margin-top: 60px;
    padding-bottom: 15vw;
}

.page-content {
    font-family: var(--font-editorial);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #121212;
}

/* === APPLE STYLE MEGA MENU OVERLAY === */
.apple-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.apple-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.overlay-brand {
    display: block;
}

.overlay-brand .brand-logo {
    height: 60px !important;
    width: auto;
}

.menu-close-trigger {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 10px;
    transition: transform 0.3s ease;
}

.menu-close-trigger:hover {
    transform: rotate(90deg);
}

.menu-overlay-content {
    flex: 1;
    overflow-y: hidden;
    padding: 24px 32px;
    max-height: 85vh;
}

/* === MEGA MENU GRID === */
.overlay-nav-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    column-gap: 28px;
    row-gap: 6px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Widescreen: 7 columns */
@media (min-width: 1600px) {
    .overlay-nav-list {
        grid-template-columns: repeat(7, 1fr);
    }
}

/* Desktop narrow: 5 columns */
@media (max-width: 1399px) and (min-width: 1200px) {
    .overlay-nav-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Small desktop: 4 columns */
@media (max-width: 1199px) and (min-width: 769px) {
    .overlay-nav-list {
        grid-template-columns: repeat(4, 1fr);
        column-gap: 24px;
    }

    .menu-overlay-content {
        overflow-y: auto;
        max-height: 85vh;
    }
}

.overlay-nav-list>li {
    margin-bottom: 0;
}

/* Primary Section Titles */
.overlay-nav-list>li>a {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-authority-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
    line-height: 1.2;
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 6px;
    white-space: normal;
    word-break: break-word;
}

.overlay-nav-list>li>a:hover {
    opacity: 0.75;
}

/* Sub-items */
.overlay-nav-list .sub-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.overlay-nav-list .sub-menu li {
    margin-bottom: 6px;
}

.overlay-nav-list .sub-menu a {
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.45;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    opacity: 0.85;
    transition: all 0.2s ease;
    white-space: normal;
    word-break: break-word;
}

.overlay-nav-list .sub-menu a:hover {
    color: var(--color-authority-blue);
    font-weight: 600;
    opacity: 1;
}

/* === TABLET (768–1199px) === */
@media (min-width: 768px) and (max-width: 1199px) {
    .overlay-nav-list {
        grid-template-columns: repeat(4, 1fr) !important;
        column-gap: 24px;
    }
}

/* === MOBILE ACCORDION (<768px) === */
@media (max-width: 767px) {
    body.menu-is-open {
        overflow: hidden !important;
    }

    .apple-menu-overlay {
        height: 100vh;
        overflow-y: auto;
    }

    .menu-overlay-content {
        max-height: none;
        overflow-y: auto;
        padding: 16px 15px;
    }

    .overlay-nav-list {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .overlay-nav-list>li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .overlay-nav-list>li>a {
        font-size: 17px;
        font-weight: 600;
        padding: 16px 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .overlay-nav-list .sub-menu {
        padding: 0 0 16px 12px;
    }

    .overlay-nav-list .sub-menu a {
        font-size: 15px;
        padding: 8px 0;
        opacity: 0.85;
    }
}

/* Mega Menu Footer Special Section */
.menu-overlay-footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.special-section-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-authority-blue);
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(3, 111, 182, 0.3);
}

.special-section-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 111, 182, 0.4);
    background: #025a94;
}

.special-section-btn svg {
    stroke: #fff;
}


@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
    }

    .footer-brand-col {
        grid-column: span 3;
        margin-bottom: 40px;
        text-align: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-nav-title {
        text-align: center;
    }

    .footer-nav-list {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-col {
        grid-column: span 1;
    }

    .copyright-row {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-nav-title {
        border-bottom: none;
        margin-bottom: 15px;
    }
}

/* === SINGLE ARTICLE READING MODE (Premium Newspaper) === */
.entry-content {
    color: #1a1a1a;
    font-family: var(--font-editorial);
    /* Newsreader */
    font-size: 1.25rem;
    line-height: 1.75;
    font-weight: 460;
    /* Refined weight for Newsreader */
}

.entry-content p {
    margin-bottom: 28px;
    text-align: left;
    /* Better for readability/spacing */
    hyphens: auto;
}

/* Clean Newspaper Start */
.entry-content>p:first-of-type {
    margin-top: 0;
}


/* Blockquotes */
.entry-content blockquote {
    border-left: 4px solid var(--color-authority-blue);
    margin: 40px 0;
    padding: 10px 30px;
    background: #f9f9f9;
    font-style: italic;
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
}


/* === NEW SINGLE POST LAYOUT === */
.article-layout-centered {
    position: relative;
    margin-top: 40px;
}

.article-share-float {
    position: absolute;
    left: -80px;
    top: 0;
    height: 100%;
}

.share-stack-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-body-centered {
    max-width: 720px;
    /* Precision reading zone */
    margin: 0 auto;
    padding-bottom: 60px;
}

/* Metadata Ordering */
.article-meta {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.meta-main-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.meta-author strong {
    color: var(--color-authority-blue);
}

/* Humanized Author Bio */
.author-bio-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.author-bio-header {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    /* Editorial feel */
}

.author-info {
    flex: 1;
}

.author-role-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-authority-blue);
    margin-bottom: 5px;
}

.author-name {
    font-family: var(--font-editorial);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000;
}

/* Post Footer Ad Section (Manageable via Widget) */
.nh-post-footer-ad-section {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ad-label-newspaper {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.ad-container-newspaper {
    max-width: 728px;
    /* Standard leaderboard max */
    margin: 0 auto;
    overflow: hidden;
}

.footer-ad-link-premium {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-ad-link-premium:hover {
    transform: scale(1.02);
}

.ad-image-footer {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.ad-placeholder-newspaper {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 40px 20px;
    color: #aaa;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
}

.article-lead {
    font-family: var(--font-editorial);
    font-size: 1.35rem;
    /* Slightly reduced as requested */
    line-height: 1.55;
    color: #444;
    margin-bottom: 40px;
}

@media (max-width: 1100px) {
    .article-share-float {
        display: none;
        /* Hide floating share on smaller screens */
    }
}


/* === PREMIUM SHARE SIDEBAR (Desktop) === */
.article-share-float {
    position: absolute;
    left: -180px;
    /* More space for labels */
    top: 0;
    height: 100%;
    width: 140px;
}

.share-stack-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.share-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
    text-align: center;
    width: 100%;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    border: 1px solid transparent;
    cursor: pointer;
    background: transparent;
}

.share-btn i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Brand Colors */
.share-whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.share-whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: translateX(5px);
}

.share-x {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.share-x:hover {
    background: #000;
    color: #fff;
    transform: translateX(5px);
}

.share-telegram {
    color: #0088cc;
    background: rgba(0, 136, 204, 0.1);
}

.share-telegram:hover {
    background: #0088cc;
    color: #fff;
    transform: translateX(5px);
}

.share-copy {
    color: #666;
    background: #f5f5f5;
    border: 1px solid #eee;
}

.share-copy:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .article-share-float {
        display: none;
    }
}


/* === SINGLE POST NAVIGATION LAYOUT === */
.masthead-single {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
}

.masthead-single .nav-link {
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    padding: 20px 0;
}

.masthead-single .nav-group {
    margin: 0 15px;
}

.masthead-single .main-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    .masthead-single .main-nav {
        display: none;
    }
}


/* === SINGLE HEADER RESPONSIVE TWEAKS === */
@media (min-width: 1200px) {
    .sh-right .date-text {
        display: inline-block !important;
    }
}

@media (max-width: 1000px) {
    .sh-center {
        display: none !important;
        /* Hide Nav on Medium/Small screens */
    }

    .sh-right .date-text,
    .sh-right .social-links-compact {
        display: none !important;
    }
}

.subscribe-btn-compact:hover {
    text-decoration: underline !important;
    color: #025a96 !important;
}


/* === SINGLE HEADER RESPONSIVE IMPROVEMENTS === */
.masthead-single .sh-center::-webkit-scrollbar {
    display: none;
}

.masthead-single .sh-center {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@media (max-width: 1300px) {
    .masthead-single .date-text {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .masthead-single .social-links-compact {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .masthead-single .subscribe-btn-compact {
        display: none !important;
    }
}


.share-facebook {
    color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.share-facebook:hover {
    background: #1877F2;
    color: #fff;
    transform: translateX(5px);
}

/* === SCROLL STICKY ANIMATIONS === */
.masthead {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

/* Stabilizing sticky header without collapse */
.masthead.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.masthead.is-sticky .nav-row {
    border-top: none;
}

.masthead .brand-row-wrapper {
    transition: height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}


.masthead .nav-row {
    transition: all 0.4s ease;
    background-color: #fff;
}

.masthead.is-sticky .nav-row {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


/* === MOBILE SHARE BAR === */
.article-share-mobile {
    display: none;
    /* Hidden on Desktop */
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.share-label-mobile {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.share-buttons-mobile {
    display: flex;
    gap: 10px;
}

.share-btn-mob {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.share-btn-mob:hover {
    transform: translateY(-2px);
}

.share-btn-mob.share-whatsapp {
    background: #25D366;
}

.share-btn-mob.share-x {
    background: #000;
}

.share-btn-mob.share-telegram {
    background: #0088cc;
}

.share-btn-mob.share-copy {
    background: #f5f5f5;
    color: #555;
}

@media (max-width: 1200px) {
    .article-share-mobile {
        display: block;
    }
}


/* === BRAND LOGO ADJUSTMENT === */
.brand-logo {
    height: 25px !important;
}

/* === STICKY LOGO OVERRIDE === */
.masthead.is-sticky .brand-logo {
    height: 20px !important;
}

/* === SHARE ICONS SVG UPDATE === */
.share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.share-text {
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.share-native {
    background: #000;
    color: #fff;
    margin-bottom: 5px;
}

.share-native:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Restore display for mobile share button if supported (progressive enhancement) */
@media (max-width: 1200px) {
    .article-share-float {
        display: none;
    }
}


/* === SHARE TOOLBAR HOVER EFFECTS === */
.share-btn-pro:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn-pro.copy:hover,
.share-btn-pro.print:hover {
    background: #e9e9e9 !important;
}

/* === PRINT STYLES === */
@media print {

    .masthead,
    .article-share-float,
    .related-posts,
    .comments-area,
    #reading-progress {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .article-layout-centered {
        margin-top: 0;
    }

    .article-body-centered {
        max-width: 100%;
        padding-bottom: 0;
    }

    .article-title {
        font-size: 24pt;
        color: #000;
    }

    a {
        text-decoration: none;
        color: #000;
    }
}

/* === ADMIN BAR FIX === */
.admin-bar .masthead {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .masthead {
        top: 46px !important;
    }
}


/* === MODERN SQUARE SHARE BUTTONS === */
.share-btn-modern-square {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Subtle border */
    border-radius: 0;
    /* Square! */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Hover Lift */
.share-btn-modern-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Explicit Colors ensured by inline styles but reinforced here */
.share-btn-modern-square.facebook {
    background-color: #1877F2;
    color: #fff;
}

.share-btn-modern-square.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.share-btn-modern-square.twitter {
    background-color: #000;
    color: #fff;
}

.share-btn-modern-square.telegram {
    background-color: #0088cc;
    color: #fff;
}

.share-btn-modern-square.copy {
    background-color: #fff;
    color: #444;
}

.share-btn-modern-square.print {
    background-color: #fff;
    color: #444;
}


/* === APPLE BLOCK SHARE BUTTONS === */
.share-btn-apple-block {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    border-radius: 6px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.share-btn-apple-block:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
    z-index: 10;
}

.share-btn-apple-block span {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.share-btn-apple-block i,
.share-btn-apple-block svg {
    width: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* === REFINED NEWSPAPER SHARE BUTTONS === */
.share-btn-newspaper {
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Facebook: Solid Black with Blue Accent on Hover */
.share-btn-newspaper.facebook {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.share-btn-newspaper.facebook:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    transform: translateY(-2px);
}

/* Others: White with refined borders */
.share-btn-newspaper.whatsapp:hover,
.share-btn-newspaper.twitter:hover,
.share-btn-newspaper.telegram:hover {
    background: #f9f9f9 !important;
    border-color: #999 !important;
}

/* Minimalist Text Actions */
.share-btn-newspaper.copy:hover,
.share-btn-newspaper.print:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #000 !important;
    border-radius: 4px;
}


/* === MODERN SHARE STACK === */
.share-stack-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* === MODERN APPLE-STYLE CIRCULAR SHARING === */
.share-stack-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.share-btn-circular {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.share-btn-circular i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Hover Physics */
.share-btn-circular:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.share-btn-circular:active {
    transform: scale(0.95);
}

/* Tooltip Labels (Apple Style) */
.share-btn-circular::after {
    content: attr(data-label);
    position: absolute;
    left: 100%;
    margin-left: 15px;
    background: #1d1d1f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn-circular:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Brand Colors on Hover */
.share-btn-circular.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: #fff;
}

.share-btn-circular.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.share-btn-circular.twitter:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

.share-btn-circular.telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
    color: #fff;
}

.share-btn-circular.copy:hover {
    background: var(--color-authority-blue);
    border-color: var(--color-authority-blue);
    color: #fff;
}

.share-btn-circular.print:hover {
    background: #8e8e93;
    border-color: #8e8e93;
    color: #fff;
}


.aligncenter,
.wp-block-image.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Prevent super-large cards */
.nw-card-replica,
.nw-hero-replica {
    max-width: 100%;
}

.nw-card-media-replica {
    max-width: 100%;
    overflow: hidden;
}

/* Smooth scroll for the whole app */
html {
    scroll-behavior: smooth;
}

/* === Z-INDEX & OVERLAP MANAGEMENT === */
#back-to-top {
    z-index: 2000;
}

@media (max-width: 1024px) {
    #back-to-top {
        bottom: 90px;
    }
}

/* Mega Menu Accessibility */
.menu-overlay-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.overlay-nav-list {
    list-style: none;
    padding: 20px 0;
}

.overlay-nav-list>li {
    margin-bottom: 25px;
}

.overlay-nav-list>li>a {
    font-family: var(--font-editorial);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #121212;
}

/* === FOOTER RESPONSIVE === */
/* Footer consolidated above */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand-col {
        grid-column: span 3;
        text-align: center;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-col {
        grid-column: span 2;
    }

    .copyright-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* === GLOBAL RESPONSIVE SAFETY CORE === */
html,
body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip !important;
    -webkit-font-smoothing: antialiased;
}

.container,
.container-slim,
.container-wide {
    width: 100%;
    max-width: var(--max-width, 1440px);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


/* Mobile Polish */
@media (max-width: 768px) {
    h1 {
        font-size: 1.85rem !important;
    }

    .article-title {
        font-size: 1.7rem !important;
    }

    .article-lead {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

    .nw-top-stories-grid-replica:not(.carousel) {
        grid-template-columns: 1fr !important;
    }

    .brand-logo {
        height: 22px !important;
        max-width: 180px !important;
    }

    .brand-row {
        padding: 10px 15px !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
}

/* === TABLE & OVERFLOW SANITY === */
table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* === HOME & CATEGORY GRID PRECISION === */
@media (max-width: 1024px) {
    .nw-hero-replica {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .nw-top-stories-grid-replica:not(.carousel) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .improved-clusters,
    .secondary-clusters {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {

    .nw-top-stories-grid-replica:not(.carousel),
    .improved-clusters,
    .secondary-clusters {
        display: block !important;
    }

    .nw-card-replica,
    .nw-block-replica {
        margin-bottom: 30px;
        width: 100% !important;
    }

    .nw-hero-title-replica {
        font-size: 1.5rem !important;
    }

    .nw-section-title-replica {
        font-size: 1.3rem !important;
    }

    .nw-card-title-replica {
        font-size: 1rem !important;
    }
}

/* === AUTHOR PROFILE STYLES === */
.nw-author-profile-header {
    background: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 60px 0;
    margin-bottom: 60px;
}

.nw-author-profile-top {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nw-author-profile-avatar {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.nw-author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nw-author-role-label {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-authority-blue);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.nw-author-name-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1;
}

.nw-author-bio-full {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    line-height: 1.5;
    color: #444;
    max-width: 800px;
}

.nw-author-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.nw-stat-item {
    display: flex;
    flex-direction: column;
}

.nw-stat-num {
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
}

.nw-stat-label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
}

.nw-mini-reporters-list {
    margin-top: 20px;
}

.nw-mini-author-item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
}

.nw-mini-author-thumb img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nw-mini-author-details h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.nw-mini-author-details h4 a {
    color: #000;
    text-decoration: none;
}

.nw-mini-author-details span {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    color: var(--color-authority-blue);
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nw-author-profile-header {
        padding: 40px 0;
    }

    .nw-author-profile-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .nw-author-name-title {
        font-size: 2rem;
    }

    .nw-author-stats {
        justify-content: center;
    }
}

/* === HORIZONTAL ALIGNMENT & DE-CONGESTION CORE === */
@media (max-width: 768px) {

    /* 1. Header De-congestion: Logo is priority */
    .date-text,
    .social-links,
    .nw-trending-replica,
    .action-divider,
    .meta-divider {
        display: none !important;
    }

    /* 1.5 PERSISTENT STICKY HEADER FIXED */
    .masthead.is-sticky,
    .masthead {
        position: sticky !important;
        top: 0 !important;
        z-index: 9999 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .masthead.is-sticky .brand-row-wrapper {
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 1.6 MOBILE CATEGORIES (REDUCED SECTIONS) */
    .nav-row {
        display: block !important;
        border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
        background: #fff !important;
        overflow: hidden;
    }

    .nav-inner {
        padding: 0 !important;
        min-height: 40px !important;
    }

    .nav-spacer-left,
    .nav-actions,
    .nav-inner .menu-toggle {
        display: none !important;
        /* Cleanup for scroll bar */
    }

    .main-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 8px 15px !important;
        gap: 20px !important;
        width: 100% !important;
        position: static !important;
        height: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for clean look */
    }

    .main-nav a,
    .nav-link {
        font-size: 0.8rem !important;
        white-space: nowrap !important;
        padding: 0 !important;
        border: none !important;
        text-transform: uppercase;
        font-weight: 800 !important;
        color: var(--color-text-secondary) !important;
    }

    .main-nav a.active {
        color: var(--color-accent) !important;
    }

    .mobile-only-toggle {
        display: flex !important;
    }

    .article-meta {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .brand-row {
        padding: 12px 15px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .left-actions {
        flex: 1;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .brand {
        flex: 2;
        display: flex !important;
        justify-content: center !important;
    }

    .brand-logo {
        height: 20px !important;
        max-width: 160px !important;
        margin: 0 !important;
    }

    .right-actions {
        flex: 1;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .subscribe-btn {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }

    /* 2. Container Sanitization: Prevent horizontal crossing */
    .container,
    .container-slim,
    .article-body,
    .page-content,
    .nw-section-wrapper-replica {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow-x: clip !important;
    }

    /* 2.5 RESPONSIVE MEGA MENU (1 COLUMN MODE) */
    .apple-menu-overlay {
        padding: 0 !important;
    }

    .menu-overlay-header {
        padding: 20px 15px !important;
    }

    .menu-overlay-content {
        padding: 16px 15px !important;
        overflow-y: auto !important;
        max-height: none !important;
    }

    .overlay-nav-list {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .overlay-nav-list>li>a {
        font-size: 17px !important;
        padding: 16px 0 !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    .overlay-nav-list .sub-menu {
        display: block !important;
        padding: 0 0 16px 12px !important;
    }

    .overlay-nav-list .sub-menu a {
        font-size: 15px !important;
        padding: 8px 0 !important;
    }

    .menu-overlay-footer {
        padding: 20px 15px !important;
    }

    /* 3. Targeted Media Safety (No more global img cap for icons) */
    .article-featured-image {
        margin-bottom: 25px !important;
        max-height: 40vh !important;
        overflow: hidden !important;
    }

    .article-featured-image img,
    .nw-hero-image-box img {
        height: 40vh !important;
        width: 100% !important;
        object-fit: cover !important;
        max-height: 40vh !important;
    }

    .entry-content img,
    .page-content img {
        max-height: 45vh !important;
        margin: 15px auto !important;
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
    }

    /* 4. Layout Stacking */
    .nw-replica-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .nw-replica-sidebar {
        width: 100% !important;
        order: 2;
    }

    /* 5. Typography Polish */
    .article-title,
    .nw-hero-title-replica {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }

    /* Ensure no horizontal scroll WITHOUT breaking sticky */
    html,
    body {
        overflow-x: clip !important;
        position: relative;
        width: 100%;
    }

    /* Mobile Ad Bar Fix */
    .mobile-ad-bar {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #f5f5f5;
        border-top: 1px solid #ddd;
        z-index: 9999;
        padding: 5px 0;
        text-align: center;
    }

    .ad-label {
        font-family: var(--font-ui);
        font-size: 0.6rem;
        font-weight: 900;
        color: #999;
        margin-bottom: 2px;
    }

    .ad-placeholder-small {
        background: #fff;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 10px;
        border: 1px solid #ddd;
        /* Clean border, no dashed */
        color: #999;
        font-family: var(--font-ui);
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .ad-container-dynamic {
        min-height: 50px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 320px;
        /* Standard mobile banner max */
        margin: 0 auto;
    }

    .mobile-ad-link-premium {
        display: block;
        width: 100%;
    }

    .ad-image-mobile {
        display: block;
        width: 100%;
        height: auto;
        max-height: 50px;
        object-fit: contain;
    }

    /* Adjust content padding only when ad bar is active */
    body.has-mobile-ad-bar .single-article-content {
        padding-bottom: 90px !important;
    }
}

/* Support for Dynamic Ad Widgets */
.widget.article-ad-widget img,
.widget.sticky-mobile-ad-widget img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.widget.article-ad-widget,
.widget.sticky-mobile-ad-widget {
    margin-bottom: 0;
}

.share-box-btn:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.share-box-btn:hover i {
    transform: scale(1.1);
}

.share-box-btn.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-box-btn.x-twitter:hover {
    background: #000;
    border-color: #000;
}

.share-box-btn.telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
}

@media (max-width: 600px) {
    .share-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}