/* === NEWSWEEK REPLICA PRECISION (V2.2 - LOGO BLUE ONLY) === */

:root {
    --color-authority-blue: #036fb6;
    /* Logo Blue */
    --color-accent-red: #036fb6;
    /* Replaced red with Logo Blue */
    --font-ui: 'Inter', sans-serif;
    --font-editorial: 'Merriweather', serif;
    --font-headline: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

.date-text {
    text-transform: capitalize !important;
}

.homepage-newsweek.replica-precision {
    padding-top: 50px;
    background: #fff;
    color: #000;
}

/* 1. Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--color-authority-blue);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* 2. Sticky Navigation */
/* [REMOVED] Old Sticky Nav replaced by new Masthead Logic in main.css */

/* 3. Skeleton Screens */
.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 4px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* 4. Quick Share Feature */
.quick-share-box {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 20;
}

.nw-card-replica:hover .quick-share-box,
.nw-hero-replica:hover .quick-share-box,
.nw-hero-image-box:hover .quick-share-box,
.nw-secondary-card:hover .quick-share-box {
    opacity: 1;
    transform: translateY(0);
}

.share-btn-mini {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.share-btn-mini a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
    width: 100%;
    height: 100%;
}

.share-btn-mini svg {
    display: block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.share-btn-mini:hover {
    background: var(--color-authority-blue);
    color: #fff;
}

.nw-ranking-list {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

/* Sub-elements inside cards should be cleaner */
.nw-ranking-item {
    border-bottom: 1px solid #f0f0f0;
}

.nw-ranking-item:last-child {
    border-bottom: none;
}

.nw-ranking-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.nw-ranking-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.nw-ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. Live Search Results */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0;
    z-index: 2100;
}

.live-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #000;
    transition: background 0.2s ease;
}

.live-result-item:hover {
    background: #f9f9f9;
}

.live-result-thumb {
    width: 60px;
    height: 40px;
    background: #eee;
    flex-shrink: 0;
    border-radius: 0;
    /* No rounded corners */
}

/* Ads */
/* Main Column Banner Ad */
.nh-main-banner-ad {
    margin: 40px 0;
    text-align: center;
}

.nh-main-banner-ad .ad-label-newspaper {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
}

.nh-main-banner-ad img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #eee;
}

@media (max-width: 600px) {
    .nh-main-banner-ad {
        margin: 25px 0;
    }
}

/* 6. Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-authority-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    background: #000;
}

/* Grid & Base Typography */
.nw-replica-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    /* Further reduced from 40px to 30px */
}

@media (min-width: 1024px) {
    .nw-replica-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Grid blowout prevention (legitimate grid fix) */
.nw-replica-main {
    min-width: 0;
}

.nw-replica-sidebar {
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 80px;
    /* below sticky header */
}

.nw-trending-sidebar-section {
    margin-bottom: 50px;
}

.nw-sidebar-ad-spot-premium {
    margin-bottom: 30px;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-ad-link-premium {
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sidebar-ad-link-premium:hover {
    transform: scale(1.02);
}

.ad-image-sidebar {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}

.nw-replica-sidebar-widget {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    /* More internal air */
    border: 1px solid #eee;
    /* Removed box-shadow for cleaner minimal look */
}

/* Section Titles */
.nw-widget-title-replica {
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-authority-blue);
    letter-spacing: 0.02em;
    color: #000;
}

.nw-section-header-replica {
    margin-bottom: 15px;
    position: relative;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.nw-header-bar-blue {
    width: 30px;
    height: 4px;
    background: var(--color-authority-blue);
    position: absolute;
    top: 0;
    left: 0;
}

.nw-header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nw-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nw-trending-replica {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nw-trending-label-replica {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-authority-blue);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nw-trending-tags-replica {
    display: flex;
    gap: 8px;
}

.nw-trending-tags-replica a {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.75;
}

.nw-trending-tags-replica a:hover {
    color: var(--color-authority-blue);
}

.nw-section-nav-arrows {
    display: flex;
    gap: 10px;
    margin-bottom: -5px;
}

.nw-nav-arrow-btn {
    background: none;
    border: none;
    color: #bbb;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nw-nav-arrow-btn:hover {
    color: var(--color-authority-blue);
    transform: scale(1.1);
}

.nw-nav-arrow-btn svg {
    width: 24px;
    height: 24px;
}

.nw-section-link-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nw-section-link-wrapper:hover {
    transform: translateX(8px);
}

/* Section Titles */
.nw-section-title-replica {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

.nw-title-arrow {
    color: var(--color-authority-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nw-section-link-wrapper:hover .nw-title-arrow {
    opacity: 1;
    transform: translateX(0);
}

.nw-section-link-wrapper:hover .nw-section-title-replica {
    color: var(--color-authority-blue);
}

/* Card Stylings */
.nw-hero-replica {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .nw-hero-replica {
        grid-template-columns: 1.4fr 1fr;
        align-items: flex-start;
    }
}

.nw-hero-image-box {
    position: relative;
    aspect-ratio: 16/9;
    /* Standardized wide aspect ratio */
    max-height: 500px;
    /* Prevent it from being "super grande" vertically */
    overflow: hidden;
    background: #f4f4f4;
}

.nw-hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nw-hero-image-box img.is-loaded {
    opacity: 1;
}

.nw-hero-replica:hover .nw-hero-image-box img {
    transform: scale(1.05);
}

.nw-media-overlay-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-authority-blue);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 10;
}

/* Category Labels */
.nw-kicker-replica,
.nw-card-kicker-replica {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.nw-kicker-blue {
    color: var(--color-authority-blue);
}

.nw-kicker-sep {
    color: #ccc;
    margin: 0 5px;
}

/* Hero Headline — auto-adjusts for long titles */
.nw-hero-title-replica {
    font-family: var(--font-headline);
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    word-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Subheadline */
.nw-hero-excerpt-replica {
    font-family: var(--font-body);
    font-size: 20px;
    color: #444;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 18px;
}

/* Secondary Hero Grid (Latest Section) */
.nw-secondary-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .nw-secondary-hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nw-secondary-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.nw-sec-card-media {
    flex: 0 0 40%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.nw-sec-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nw-secondary-card:hover .nw-sec-card-media img {
    transform: scale(1.08);
}

.nw-sec-card-content {
    flex: 1;
}

/* Level 4 — Article Titles in Lists */
.nw-sec-card-title {
    font-family: var(--font-headline);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    margin-top: 5px;
    margin-bottom: 8px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-secondary-card:hover .nw-sec-card-title {
    color: var(--color-authority-blue);
}

.nw-top-stories-grid-replica {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 25px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nw-carousel-viewport-replica {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.nw-top-stories-grid-replica.carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 30px;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nw-top-stories-grid-replica.carousel::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.nw-top-stories-grid-replica.carousel .nw-card-replica {
    flex: 0 0 calc(25% - 22.5px);
    /* Exactly 4 cards per view with 30px gap */
    min-width: calc(25% - 22.5px);
}

@media (max-width: 1024px) {
    .nw-top-stories-grid-replica.carousel .nw-card-replica {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .nw-top-stories-grid-replica.carousel .nw-card-replica {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.nw-top-stories-grid-replica:not(.carousel) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .nw-top-stories-grid-replica:not(.carousel) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nw-card-replica {
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 10px;
}

.nw-card-media-replica {
    position: relative;
    aspect-ratio: 3/2;
    /* Newsweek Grid Standard */
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 0 !important;
    background: #f4f4f4;
}

.nw-card-media-replica img,
.nw-sec-card-media img,
.nw-ranking-featured-media img,
.nw-ranking-thumb img,
.nw-dense-media img,
.nw-pop-media-rect img,
.nw-hero-image-box img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: var(--nw-img-fit, cover) !important;
    object-position: center;
    border-radius: 0 !important;
}

/* Helper for full image visibility without cropping */
.img-fit-contain img {
    --nw-img-fit: contain !important;
    background: #fdfdfd;
}

.nw-card-replica:hover {
    transform: translateY(-5px);
}

/* Level 4 — Article Titles in Lists */
.nw-card-title-replica {
    font-family: var(--font-headline);
    font-size: 22px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-replica:hover .nw-card-title-replica {
    color: var(--color-authority-blue);
}

/* Unified Reading Time / Card Meta */
.nw-card-meta-replica,
.nw-read-time-replica {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    letter-spacing: 0.02em;
}



.nw-clusters-grid-replica.improved-clusters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1024px) {
    .nw-clusters-grid-replica.improved-clusters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nw-clusters-grid-replica.improved-clusters {
        grid-template-columns: 1fr;
    }
}

.nw-clusters-grid-replica.secondary-clusters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    opacity: 0.8;
}

.nw-block-replica {
    margin-bottom: 20px;
}

/* Section Titles */
.nw-block-title-replica {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-authority-blue);
}

.nw-block-title-replica a {
    color: inherit;
    text-decoration: none;
}

/* Level 4 — Article Titles in Lists */
.nw-block-featured-replica h3 {
    font-family: var(--font-headline);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-block-featured-replica h3 a {
    color: #000;
    text-decoration: none;
}

/* Opinion Author Labels */
.nw-block-opi-author {
    display: block;
    font-family: var(--font-ui, -apple-system, sans-serif);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-authority-blue);
    margin-bottom: 4px;
}

.nw-list-opi-author {
    display: block;
    font-family: var(--font-ui, -apple-system, sans-serif);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-authority-blue);
    margin-bottom: 3px;
}

/* Premium Small Block (Unified Style) */
.nw-premium-block-small .nw-block-featured-replica {
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 2px solid #eee;
}

.nw-block-list-replica {
    padding-top: 4px;
}

/* List Items */
.nw-list-item-replica {
    padding: 14px 0 14px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nw-list-item-replica.ranking-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.nw-list-content {
    flex: 1;
}

.nw-ranking-thumb {
    flex: 0 0 65px;
    height: 65px;
    background: #eee;
    overflow: hidden;
}

.nw-ranking-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nw-list-item-replica:last-child {
    border-bottom: none;
}

.nw-list-item-replica:hover {
    border-left-color: var(--color-authority-blue);
    background: #fafbfc;
    padding-left: 16px;
}

.nw-list-item-replica a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-list-item-replica a:hover {
    color: var(--color-authority-blue);
}

.nw-replica-divider {
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* Sidebar Rankings/Opinion Precision */
.nw-ranking-featured-media img,
.nw-ranking-thumb img {
    border-radius: 0 !important;
    /* Force square images */
}

/* Sidebar Article Typography */
.nw-ranking-info h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-ranking-featured h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-opi-item-replica {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.nw-opi-item-replica:last-child {
    border-bottom: none;
}

.nw-opi-author-replica {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-authority-blue);
    margin-bottom: 5px;
}

.nw-opi-item-replica h3 {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Single Article Precision (Newsweek Style) */
.single-article-content {
    background: #fff;
    padding-bottom: 80px;
}

.article-body blockquote {
    font-family: var(--font-editorial);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--color-authority-blue);
    padding: 30px 40px;
    border-left: 5px solid var(--color-authority-blue);
    margin: 40px 0;
    line-height: 1.4;
}

.article-body figure {
    margin: 40px 0;
}

.article-body figcaption {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    opacity: 0.7;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.8rem;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 0.8rem;
}

.share-btn-round {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    background: #f8f8f8;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.share-btn-round:hover {
    background: var(--color-authority-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 13. RECTANGULAR ADS (Card Style) */
.nh-card-ad-replica {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.nh-card-ad-replica:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--color-authority-blue);
}

.nh-card-ad-replica img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nh-card-ad-replica:hover img {
    transform: scale(1.05);
}

.nh-card-ad-label {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 5;
}

/* Ensure ads in grid behave well */
.nh-ad-in-grid {
    grid-column: span 1;
}

@media (max-width: 768px) {
    .nh-ad-in-grid {
        grid-column: 1 / -1;
    }
}

.nw-archive-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

/* === PAGINATION (Responsive & Modern) === */
.nw-pagination-replica {
    padding: 32px 0 24px;
    margin-top: 24px;
}

.nw-pagination-replica.bordered-top {
    border-top: 2px solid #eaeaea;
}

.nw-pagination-replica .navigation.pagination {
    display: block;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
}

.nw-pagination-replica .screen-reader-text {
    display: none;
}

.nw-pagination-replica .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nw-pagination-replica .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, sans-serif);
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.nw-pagination-replica .page-numbers.current {
    background: var(--color-authority-blue);
    color: #fff;
    border-color: var(--color-authority-blue);
    box-shadow: 0 2px 10px rgba(0, 60, 120, 0.18);
    pointer-events: none;
}

.nw-pagination-replica .page-numbers:hover:not(.current):not(.dots) {
    background: #f5f5f7;
    border-color: #c0c0c0;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.nw-pagination-replica .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: 24px;
    padding: 0;
    cursor: default;
    color: #999;
    letter-spacing: 3px;
    font-size: 1rem;
}

.nw-pagination-replica a.next,
.nw-pagination-replica a.prev {
    padding: 0 20px;
    gap: 8px;
    font-weight: 700;
    color: var(--color-authority-blue, #1a3c6e);
    border-color: var(--color-authority-blue, #1a3c6e);
    background: transparent;
}

.nw-pagination-replica a.next:hover,
.nw-pagination-replica a.prev:hover {
    background: var(--color-authority-blue, #1a3c6e);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 60, 120, 0.15);
}

.nw-pagination-replica .nw-nav-arrow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nw-pagination-replica .nw-nav-arrow-btn svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tablet */
@media (max-width: 768px) {
    .nw-pagination-replica .nav-links {
        gap: 8px;
    }

    .nw-pagination-replica .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0 10px;
        font-size: 0.825rem;
        border-radius: 8px;
    }

    .nw-pagination-replica a.next,
    .nw-pagination-replica a.prev {
        padding: 0 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nw-pagination-replica {
        padding: 24px 12px 16px;
    }

    .nw-pagination-replica .nav-links {
        gap: 6px;
        width: 100%;
    }

    .nw-pagination-replica .page-numbers {
        min-width: 36px;
        height: 38px;
        padding: 0 8px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .nw-pagination-replica a.next,
    .nw-pagination-replica a.prev {
        flex: 1;
        justify-content: center;
        padding: 0 10px;
        order: 99;
    }

    .nw-pagination-replica a.prev {
        order: -1;
    }
}

.nw-ranking-featured {
    background: var(--color-authority-blue);
    color: #fff;
    border-radius: 0 !important;
}

/* 7. Protagonistas Module */
.nh-protagonistas-module {
    margin-top: 30px;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px 0;
}

.nh-protagonistas-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.nh-protagonistas-viewport::-webkit-scrollbar {
    display: none;
}

.nh-protagonistas-grid {
    display: flex;
    gap: 40px;
    padding: 0 5%;
}

.nh-protagonista-card {
    flex: 0 0 280px;
    text-align: center;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.nh-protagonista-card:hover {
    transform: translateY(-5px);
}

.nh-prota-image-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: #f9f9f9;
}

.nh-prota-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nh-protagonista-card:hover .nh-prota-image-wrap img {
    transform: scale(1.1);
}

.nh-prota-name {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.nh-prota-cargo {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nh-prota-divider {
    width: 30px;
    height: 2px;
    background: var(--color-authority-blue);
    margin: 0 auto 15px;
}

.nh-prota-quote {
    font-family: var(--font-editorial);
    font-size: 15px;
    font-style: italic;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
    padding: 0 10px;
}

.nh-prota-link {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-authority-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.nh-prota-link:hover {
    text-decoration: underline;
}

/* 8. Intelligent Layout (Full Width Carousel Logic) */
@media (min-width: 1024px) {
    .sidebar-is-empty {
        grid-template-columns: 1fr !important;
    }

    .sidebar-is-empty .nw-replica-sidebar {
        display: none;
    }

    .sidebar-is-empty .container-full-carousel {
        width: 100%;
        max-width: 100%;
        padding-left: 2%;
        padding-right: 2%;
        box-sizing: border-box;
    }
}

/* Animations */
.nh-protagonista-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpProta 0.6s ease forwards;
}

@keyframes fadeInUpProta {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nh-protagonista-card:nth-child(1) {
    animation-delay: 0.1s;
}

.nh-protagonista-card:nth-child(2) {
    animation-delay: 0.2s;
}

.nh-protagonista-card:nth-child(3) {
    animation-delay: 0.3s;
}

.nh-protagonista-card:nth-child(4) {
    animation-delay: 0.4s;
}

.nh-protagonista-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* ============================================
   9. FULL WIDTH BLOCK (outside container = true 100vw)
   ============================================ */
.nh-fullwidth-block {
    width: 100%;
    padding: 30px 5%;
    background: #f8f9fa;
    box-sizing: border-box;
}

/* ============================================
   10. OPINION CAROUSEL MODULE
   ============================================ */
.nh-opinion-carousel {
    padding: 10px 0 30px;
}

.nh-opinion-question {
    font-family: var(--font-editorial);
    font-size: 20px;
    font-style: italic;
    color: #444;
    line-height: 1.5;
    margin: 0 0 25px;
    padding-left: 20px;
    border-left: 3px solid var(--color-authority-blue);
}

.nh-opinion-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    max-width: 100%;
    width: 100%;
}

.nh-opinion-viewport::-webkit-scrollbar {
    display: none;
}

.nh-opinion-track {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    width: max-content;
    min-width: 100%;
}

.nh-opinion-card {
    flex: 0 0 220px;
    max-width: 240px;
    text-align: center;
    padding: 25px 15px;
    background: #fff;
    border: 1px solid #f0f0f0;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.nh-opinion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.nh-opinion-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-authority-blue);
}

.nh-opinion-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nh-opinion-author {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #000;
}

.nh-opinion-title {
    font-family: var(--font-headline);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nh-opinion-title a {
    color: #222;
    text-decoration: none;
}

.nh-opinion-title a:hover {
    color: var(--color-authority-blue);
}

.nh-opinion-excerpt {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0 0 15px;
}

.nh-opinion-cta {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-authority-blue);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nh-opinion-cta:hover {
    text-decoration: underline;
}

/* ============================================
   10b. FEATURED IMAGE CAROUSEL MODULE
   (Reuses .nh-opinion-* classes with circular featured images)
   ============================================ */

/* Slightly larger circle to show the featured image better */
.nh-fc-circular-thumb {
    width: 100px;
    height: 100px;
    border-color: var(--color-authority-blue, #1a56db);
}

.nh-fc-circular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nh-fc-circle-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* ============================================
   11. FULL WIDTH EDITORIAL MODULE
   ============================================ */
.nh-fullwidth-section {
    padding: 0 5%;
    margin: 0 auto;
    box-sizing: border-box;
}

.nh-fw-header {
    position: relative;
    padding-top: 10px;
    margin-bottom: 20px;
}

.nh-fw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.nh-fw-card {
    position: relative;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    overflow: hidden;
}

.nh-fw-card--featured {
    grid-column: 1 / -1;
    min-height: 350px;
}

.nh-fw-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    transition: background 0.3s ease;
}

.nh-fw-card:hover .nh-fw-card-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%);
}

.nh-fw-card-content {
    color: #fff;
}

.nh-fw-card-cat {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-authority-blue);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.nh-fw-card-title {
    font-family: var(--font-editorial);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nh-fw-card--featured .nh-fw-card-title {
    font-size: 30px;
}

.nh-fw-card-title a {
    color: #fff;
    text-decoration: none;
}

.nh-fw-card-title a:hover {
    text-decoration: underline;
}

.nh-fw-card-excerpt {
    font-family: var(--font-ui);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0 0 10px;
}

.nh-fw-card-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 8px;
}

/* ============================================
   12. GRID MODERNA MODULE
   ============================================ */
.nh-moderna-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.nh-moderna-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nh-moderna-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.nh-moderna-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.nh-moderna-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nh-moderna-card:hover .nh-moderna-media img {
    transform: scale(1.05);
}

.nh-moderna-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
}

.nh-moderna-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--color-authority-blue);
    padding: 4px 10px;
}

.nh-moderna-content {
    padding: 18px;
}

.nh-moderna-title {
    font-family: var(--font-editorial);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.nh-moderna-title a {
    color: #111;
    text-decoration: none;
}

.nh-moderna-title a:hover {
    color: var(--color-authority-blue);
}

.nh-moderna-excerpt {
    font-family: var(--font-ui);
    font-size: 13px;
    color: #666;
    line-height: 1.45;
    margin: 0 0 12px;
}

.nh-moderna-meta {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.nh-moderna-author {
    font-weight: 600;
    color: #555;
}

/* ============================================
   13. RESPONSIVE: All Modules
   ============================================ */

/* --- TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
    .nw-clusters-grid-replica.secondary-clusters {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .nh-moderna-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .nh-fw-grid {
        grid-template-columns: 1fr;
    }

    .nh-fw-card--featured {
        min-height: 280px;
    }

    .nh-fw-card {
        min-height: 220px;
    }

    .nw-top-stories-grid-replica {
        gap: 20px;
    }

    .nw-block-title-replica,
    .nw-section-title-replica {
        font-size: 24px;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .nh-protagonistas-module {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .nh-prota-image-wrap {
        width: 110px;
        height: 110px;
    }

    .nh-prota-name {
        font-size: 16px;
    }

    .nh-fullwidth-block {
        padding: 25px 4%;
    }

    .nh-fullwidth-section {
        padding: 0 4%;
    }

    .nw-section-title-replica {
        font-size: 26px;
    }

    .nw-replica-sidebar {
        top: 70px;
    }
}

/* --- MOBILE (≤ 600px) --- */
@media (max-width: 600px) {
    .nw-clusters-grid-replica.secondary-clusters {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .homepage-newsweek.replica-precision {
        padding-top: 20px;
    }

    .nh-moderna-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nh-opinion-card {
        flex: 0 0 170px;
        max-width: 190px;
        padding: 20px 12px;
    }

    .nh-opinion-question {
        font-size: 16px;
        padding-left: 12px;
    }

    .nh-opinion-track {
        gap: 12px;
    }

    .nh-fc-card {
        flex: 0 0 230px;
        max-width: 250px;
    }

    .nh-featured-carousel-track {
        gap: 12px;
    }

    .nh-fc-card-title {
        font-size: 14px;
    }

    .nh-fw-card--featured .nh-fw-card-title {
        font-size: 18px;
    }

    .nh-fw-card-title {
        font-size: 15px;
    }

    .nh-fw-card-excerpt {
        font-size: 13px;
    }

    .nh-fullwidth-section {
        padding: 0 3%;
    }

    .nh-fullwidth-block {
        padding: 20px 3%;
    }

    .nh-fw-card {
        min-height: 180px;
    }

    .nh-fw-card--featured {
        min-height: 240px;
    }

    .nh-protagonistas-grid {
        gap: 12px;
    }

    .nh-protagonista-card {
        min-width: 140px;
        padding: 20px 10px;
    }

    .nh-prota-image-wrap {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }

    .nh-prota-name {
        font-size: 14px;
    }

    .nh-prota-cargo {
        font-size: 11px;
    }

    .nh-prota-quote {
        font-size: 13px;
        padding: 0 5px;
    }

    .nw-section-title-replica,
    .nw-block-title-replica {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .nw-replica-layout {
        gap: 20px;
    }

    .nw-clusters-grid-replica.improved-clusters {
        gap: 15px;
        margin-top: 20px;
    }

    .nw-card-replica {
        margin-bottom: 5px;
    }

    .nw-card-title-replica {
        font-size: 18px;
    }

    .nw-sec-card-title {
        font-size: 18px;
    }

    .nh-moderna-title {
        font-size: 15px;
    }

    .nh-moderna-excerpt {
        font-size: 12px;
    }

    .nh-moderna-content {
        padding: 12px;
    }

    .nw-hero-title-replica {
        font-size: 24px;
    }

    .nw-hero-excerpt-replica {
        font-size: 14px;
    }

    .nw-replica-sidebar {
        position: static;
        /* no sticky on mobile, stacks naturally */
    }
}