/* ==========================================================================
   NEWSPAPER LAYOUT — Homepage newspaper-style sections
   File: assets/css/newspaper.css
   Enqueued on: is_front_page() only
   ========================================================================== */

/* ---------- Global overflow guard for newspaper sections ---------- */
.np-hero,
.np-headlines,
.np-categories,
.np-editorials,
.np-most-reads,
.np-latest,
.np-newsletter {
    overflow-x: clip;
}
.np-hero img,
.np-headlines img,
.np-categories img,
.np-editorials img,
.np-most-reads img,
.np-latest img {
    max-width: 100%;
    height: auto;
}

/* ---------- Newspaper Ad Banner ---------- */
.np-hero + .ads_section,
.np-headlines + .ads_section {
    padding: 20px 0;
    border-top: 1px solid var(--border-color, #e7e7e7);
    border-bottom: 1px solid var(--border-color, #e7e7e7);
    margin: 0;
    text-align: center;
}
.np-hero + .ads_section .ads_holder,
.np-headlines + .ads_section .ads_holder {
    padding: 8px 0;
}
.ads_section .ad-item {
    display: none;
}
.ads_section .ad-item.ad-item--active {
    display: block;
}

/* ---------- Dateline bar ---------- */
.np-dateline {
    border-top: 3px solid var(--night-black);
    border-bottom: 1px solid var(--border-color, #e7e7e7);
    padding: 10px 0;
    margin-bottom: 0;
}
.np-dateline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--secondary-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}
.np-dateline__date { font-weight: 700; color: var(--night-black); }
.np-dateline__tagline { flex: 1; text-align: center; font-style: italic; text-transform: none; letter-spacing: 0; }
.np-dateline__edition { font-weight: 600; color: var(--color-green); }

body.dark-mode .np-dateline { border-top-color: #e7e7e7; border-bottom-color: #333; }
body.dark-mode .np-dateline__inner { color: #aaa; }
body.dark-mode .np-dateline__date { color: #e7e7e7; }

/* ---------- Shared section elements ---------- */
.np-section-header {
    margin-bottom: 24px;
    text-align: left;
}
.np-section-title {
    font-family: var(--primary-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--night-black);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.np-section-title .material-symbols-outlined { color: var(--color-orange); font-size: 1.3em; vertical-align: middle; }
.np-rule {
    height: 3px;
    background: var(--color-green);
    margin-top: 8px;
    border-radius: 2px;
}

.np-section-label {
    display: block;
    font-family: var(--primary-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-green);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-green);
}

body.dark-mode .np-section-title { color: #f0f0f0; }
body.dark-mode .np-section-label { color: var(--color-green); border-color: var(--color-green); }

/* ---------- Labels & Meta ---------- */
.np-label {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--primary-heading);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--color-green);
    border-radius: 3px;
    line-height: 1.4;
}
.np-label--sm { font-size: 0.65rem; padding: 2px 7px; }

.np-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--secondary-heading);
    font-size: 0.82rem;
    color: #777;
    margin-top: 8px;
}
.np-meta__author { font-weight: 600; color: var(--night-black); }
.np-meta__author .material-symbols-outlined { font-size: 16px; margin-right: 3px; vertical-align: middle; }
.np-meta__date { }
.np-meta__read { display: inline-flex; align-items: center; gap: 3px; }
.np-meta__read .material-symbols-outlined { font-size: 16px; }

.np-meta--editorial { margin-top: 12px; }
.np-meta__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

body.dark-mode .np-meta { color: #aaa; }
body.dark-mode .np-meta__author { color: #ddd; }

/* ==========================================================================
   HERO SECTION — Animated Carousel
   ========================================================================== */
.np-hero {
    padding: 28px 0 20px;
}

.np-hero__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* --- Carousel wrapper --- */
.np-hero__carousel {
    position: relative;
    overflow: hidden;
}

/* --- Slides: stacked via position, crossfade --- */
.np-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}
.np-hero__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Lead story (inside each slide) */
.np-hero__lead-link {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
}
.np-hero__lead-figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}
.np-hero__lead-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.4s ease;
}
.np-hero__lead-link:hover .np-hero__lead-img { transform: scale(1.03); }

.np-hero__lead-body {
    padding: 16px 4px 0;
}
.np-hero__lead-body .np-label { margin-bottom: 10px; }

.np-hero__lead-title {
    font-family: var(--primary-heading);
    font-size: clamp(1.5rem, 2.8vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--night-black);
    margin-bottom: 10px;
}
.np-hero__lead-link:hover .np-hero__lead-title { color: var(--color-green); }

.np-hero__lead-excerpt {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 8px;
}

body.dark-mode .np-hero__lead-title { color: #f0f0f0; }
body.dark-mode .np-hero__lead-link:hover .np-hero__lead-title { color: var(--color-green); }
body.dark-mode .np-hero__lead-excerpt { color: #bbb; }

/* --- Progress bar (bottom of carousel) --- */
.np-hero__progress {
    position: relative;
    height: 3px;
    background: var(--border-color, #e7e7e7);
    border-radius: 3px;
    margin-top: 14px;
    overflow: hidden;
}
.np-hero__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--color-green);
    border-radius: 3px;
    transition: width 0.1s linear;
}
body.dark-mode .np-hero__progress { background: #333; }

/* Sidebar secondary stories */
.np-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.np-hero__side-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color, #e7e7e7);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
    border-left: 3px solid transparent;
    padding-left: 10px;
    margin-left: -10px;
}
.np-hero__side-item:last-child { border-bottom: none; }
.np-hero__side-item:hover { background: rgba(0,0,0,0.02); }

/* Active sidebar highlight */
.np-hero__side-item.is-active {
    border-left-color: var(--color-green);
    background: rgba(22, 163, 74, 0.04);
}
body.dark-mode .np-hero__side-item.is-active {
    background: rgba(22, 163, 74, 0.08);
}

.np-hero__side-thumb {
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}
.np-hero__side-img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.np-hero__side-item:hover .np-hero__side-img { transform: scale(1.06); }

.np-hero__side-text { display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.np-hero__side-title {
    font-family: var(--primary-heading);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--night-black);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-hero__side-item:hover .np-hero__side-title { color: var(--color-green); }

.np-hero__side-text .np-meta__date { font-size: 0.75rem; color: #999; }

body.dark-mode .np-hero__side-item { border-color: #333; }
body.dark-mode .np-hero__side-item:hover { background: rgba(255,255,255,0.04); }
body.dark-mode .np-hero__side-title { color: #e0e0e0; }
body.dark-mode .np-hero__side-item:hover .np-hero__side-title { color: var(--color-green); }

/* ==========================================================================
   HEADLINES
   ========================================================================== */
.np-headlines {
    padding: 36px 0 24px;
    border-top: 1px solid var(--border-color, #e7e7e7);
}

.np-headlines__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.np-headlines__card--large {
    grid-column: span 2;
}
.np-headlines__card--medium { }

.np-headlines__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}
.np-headlines__link:hover { box-shadow: var(--shadow-hover); }

.np-headlines__figure {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.np-headlines__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.np-headlines__link:hover .np-headlines__img { transform: scale(1.04); }

.np-headlines__card--large .np-headlines__img { aspect-ratio: 16/9; }

.np-headlines__body {
    padding: 12px 4px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.np-headlines__title {
    font-family: var(--primary-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--night-black);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-headlines__card--large .np-headlines__title { font-size: 1.25rem; -webkit-line-clamp: 4; }
.np-headlines__card--medium .np-headlines__title { font-size: 1rem; }

.np-headlines__link:hover .np-headlines__title { color: var(--color-green); }

body.dark-mode .np-headlines { border-color: #333; }
body.dark-mode .np-headlines__title { color: #e0e0e0; }
body.dark-mode .np-headlines__link:hover .np-headlines__title { color: var(--color-green); }
body.dark-mode .np-headlines__link:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

/* ==========================================================================
   CATEGORIES — "Explore Topics" cards
   ========================================================================== */
.np-categories {
    padding: 40px 0;
    background: #f9fafb;
}
.np-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.np-categories__card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: #fff;
    aspect-ratio: 16/11;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.np-categories__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.np-categories__thumb {
    position: absolute;
    inset: 0;
}
.np-categories__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}
.np-categories__card:hover .np-categories__img { transform: scale(1.08); }

.np-categories__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
.np-categories__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    z-index: 2;
}
.np-categories__name {
    font-family: var(--primary-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 2px;
}
.np-categories__count {
    font-family: var(--secondary-heading);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.dark-mode .np-categories { background: #111; }

/* ==========================================================================
   EDITORIALS & OPINION
   ========================================================================== */
.np-editorials {
    padding: 40px 0;
}
.np-editorials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 22px;
}
.np-editorials__card--featured {
    grid-column: 1 / 3;
}

.np-editorials__card {
    display: flex;
    flex-direction: column;
}
.np-editorials__figure {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    flex-shrink: 0;
    margin-bottom: 12px;
}
.np-editorials__img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.np-editorials__figure:hover .np-editorials__img { transform: scale(1.04); }

.np-editorials__body { display: flex; flex-direction: column; gap: 6px; }
.np-editorials__title {
    font-family: var(--primary-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--night-black);
}
.np-editorials__card--featured .np-editorials__title { font-size: 1.2rem; }
.np-editorials__title a:hover { color: var(--color-green); }

.np-editorials__excerpt {
    font-family: var(--body-font);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #666;
}

body.dark-mode .np-editorials__title { color: #e0e0e0; }
body.dark-mode .np-editorials__excerpt { color: #aaa; }

/* ==========================================================================
   MOST READ
   ========================================================================== */
.np-most-reads {
    padding: 40px 0;
    background: #f9fafb;
}

.np-most-reads__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

/* Featured (first item) */
.np-most-reads__featured {
    position: relative;
}
.np-most-reads__featured .np-most-reads__rank {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: var(--primary-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1;
}

.np-most-reads__figure {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.np-most-reads__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.np-most-reads__figure:hover .np-most-reads__img { transform: scale(1.03); }

.np-most-reads__body { padding: 0 4px; }
.np-most-reads__title {
    font-family: var(--primary-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--night-black);
}
.np-most-reads__title--lg { font-size: 1.2rem; margin-top: 6px; }
.np-most-reads__title a:hover { color: var(--color-green); }

.np-most-reads__excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #666;
    margin-top: 6px;
}
.np-most-reads__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--secondary-heading);
    font-size: 0.78rem;
    color: var(--color-orange);
    font-weight: 600;
    margin-top: 6px;
}
.np-most-reads__views .material-symbols-outlined { font-size: 16px; }

/* Ranked list */
.np-most-reads__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.np-most-reads__item {
    display: grid;
    grid-template-columns: 36px 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color, #e7e7e7);
}
.np-most-reads__item:last-child { border-bottom: none; }

.np-most-reads__item .np-most-reads__rank {
    font-family: var(--primary-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-green);
    line-height: 1;
}

.np-most-reads__item-thumb {
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}
.np-most-reads__item-img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}
.np-most-reads__item:hover .np-most-reads__item-img { transform: scale(1.06); }

.np-most-reads__item-body { display: flex; flex-direction: column; gap: 4px; }
.np-most-reads__item .np-most-reads__title {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .np-most-reads { background: #111; }
body.dark-mode .np-most-reads__title { color: #e0e0e0; }
body.dark-mode .np-most-reads__excerpt { color: #aaa; }
body.dark-mode .np-most-reads__item { border-color: #333; }

/* ==========================================================================
   LATEST UPDATES — Animated horizontal scroll ticker
   ========================================================================== */
.np-latest {
    padding: 40px 0;
}

.np-latest__track-wrapper {
    overflow: hidden;
    position: relative;
}

.np-latest__track {
    display: flex;
    gap: 20px;
    animation: np-scroll 45s linear infinite;
    width: max-content;
}
.np-latest__track:hover { animation-play-state: paused; }

@keyframes np-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.np-latest__card {
    flex-shrink: 0;
    width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-light);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.np-latest__card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.np-latest__thumb {
    display: block;
    overflow: hidden;
}
.np-latest__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.35s ease;
}
.np-latest__card:hover .np-latest__img { transform: scale(1.05); }

.np-latest__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.np-latest__title {
    font-family: var(--primary-heading);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--night-black);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-latest__title a:hover { color: var(--color-green); }

.np-latest__time {
    font-family: var(--secondary-heading);
    font-size: 0.75rem;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.np-latest__time .material-symbols-outlined { font-size: 14px; }

body.dark-mode .np-latest__card { background: #1a1a1a; }
body.dark-mode .np-latest__title { color: #e0e0e0; }
body.dark-mode .np-latest__time { color: #888; }

/* Newsletter CTA styles moved to style.css (loaded on all pages) */

/* ==========================================================================
   RESPONSIVE — Newspaper layout
   ========================================================================== */

/* ---------- LARGE TABLET: ≤ 1024px ---------- */
@media (max-width: 1024px) {
    .np-hero__grid {
        grid-template-columns: 1fr 320px;
    }
    .np-editorials__grid {
        grid-template-columns: 1fr 1fr;
    }
    .np-editorials__card--featured {
        grid-column: 1 / -1;
    }
    .np-section-title { font-size: 1.15rem; }
}

/* ---------- SMALL TABLET: ≤ 860px ---------- */
@media (max-width: 860px) {
    /* Hero: single column */
    .np-hero__grid {
        grid-template-columns: 1fr;
    }
    .np-hero__sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        border-top: 1px solid var(--border-color, #e7e7e7);
        padding-top: 16px;
    }
    .np-hero__sidebar .np-section-label {
        grid-column: 1 / -1;
    }
    .np-hero__side-item {
        border-bottom: none;
        padding: 8px 0;
        border-left: 3px solid transparent;
        padding-left: 10px;
        margin-left: 0;
    }

    /* Headlines: 2-col, large card spans full */
    .np-headlines__grid {
        grid-template-columns: 1fr 1fr;
    }
    .np-headlines__card--large {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .np-headlines__card--large .np-headlines__img { aspect-ratio: 16/9; }

    /* Most-reads: single column */
    .np-most-reads__grid {
        grid-template-columns: 1fr;
    }

    /* Reduce section padding */
    .np-hero { padding: 20px 0 16px; }
    .np-headlines { padding: 28px 0 20px; }
    .np-categories,
    .np-editorials,
    .np-most-reads,
    .np-latest { padding: 28px 0; }
}

/* ---------- LARGE PHONE / PHABLET: ≤ 640px ---------- */
@media (max-width: 640px) {
    .np-dateline__tagline { display: none; }

    /* Hero */
    .np-hero { padding: 16px 0 12px; }
    .np-hero__sidebar { grid-template-columns: 1fr; }
    .np-hero__side-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
    }
    .np-hero__side-img { width: 80px; height: 58px; }
    .np-hero__lead-title { font-size: 1.35rem; }
    .np-hero__lead-excerpt { font-size: 0.9rem; }

    /* Headlines: 1-col, non-large cards go horizontal */
    .np-headlines { padding: 20px 0 16px; }
    .np-headlines__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .np-headlines__card--large .np-headlines__img { aspect-ratio: 16/9; }

    /* Non-large headline cards: horizontal layout (image left, text right) */
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__link {
        flex-direction: row;
        align-items: stretch;
    }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__figure {
        width: 120px;
        min-width: 120px;
    }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__img {
        width: 120px;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        border-radius: var(--radius) 0 0 var(--radius);
    }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__body {
        padding: 10px 12px;
        justify-content: center;
    }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__title {
        font-size: 0.88rem;
        -webkit-line-clamp: 2;
    }

    /* Editorials: single column */
    .np-editorials__grid { grid-template-columns: 1fr; }
    .np-editorials__card--featured { grid-column: auto; }

    /* Categories: 2-col */
    .np-categories__grid { grid-template-columns: 1fr 1fr; }

    /* Most-reads */
    .np-most-reads__item {
        grid-template-columns: 30px 60px 1fr;
        gap: 8px;
    }
    .np-most-reads__item-img { width: 60px; height: 46px; }

    /* Latest ticker */
    .np-latest__card { width: 240px; }
    .np-latest__img { height: 140px; }

    /* Section padding reduction */
    .np-categories,
    .np-editorials,
    .np-most-reads,
    .np-latest { padding: 24px 0; }

    .np-section-title { font-size: 1.05rem; }
}

/* ---------- PHONE: ≤ 480px ---------- */
@media (max-width: 480px) {
    /* Hero */
    .np-hero { padding: 12px 0 10px; }
    .np-hero__lead-title { font-size: 1.2rem; }
    .np-hero__lead-excerpt { font-size: 0.85rem; line-height: 1.5; }
    .np-hero__lead-body { padding: 12px 2px 0; }

    /* Headlines: horizontal cards get smaller image */
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__figure { width: 100px; min-width: 100px; }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__img { width: 100px; }
    .np-headlines__card--large .np-headlines__title { font-size: 1.1rem; }

    /* Categories: 1-col */
    .np-categories__grid { grid-template-columns: 1fr; }
    .np-categories__card { aspect-ratio: 16/8; }

    /* Editorials: non-featured go horizontal */
    .np-editorials__card:not(.np-editorials__card--featured) { flex-direction: row; gap: 12px; }
    .np-editorials__card:not(.np-editorials__card--featured) .np-editorials__figure {
        width: 100px;
        min-width: 100px;
        margin-bottom: 0;
    }
    .np-editorials__card:not(.np-editorials__card--featured) .np-editorials__img {
        width: 100px;
        height: 75px;
        aspect-ratio: auto;
    }
    .np-editorials__card:not(.np-editorials__card--featured) .np-editorials__title { font-size: 0.85rem; }

    /* Most-reads */
    .np-most-reads__featured .np-most-reads__rank { font-size: 2rem; }
    .np-most-reads__title--lg { font-size: 1.05rem; }
    .np-most-reads__excerpt { font-size: 0.85rem; }

    /* Latest ticker */
    .np-latest__card { width: 220px; }
    .np-latest__img { height: 120px; }

    /* Section padding */
    .np-categories,
    .np-editorials,
    .np-most-reads,
    .np-latest { padding: 20px 0; }

    .np-section-title { font-size: 1rem; }
    .np-meta { font-size: 0.75rem; gap: 6px; }
}

/* ---------- SMALL PHONE: ≤ 360px ---------- */
@media (max-width: 360px) {
    .np-hero__lead-title { font-size: 1.1rem; }
    .np-hero__side-item { grid-template-columns: 70px 1fr; }
    .np-hero__side-img { width: 70px; height: 52px; }
    .np-hero__side-title { font-size: 0.82rem; }

    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__figure { width: 90px; min-width: 90px; }
    .np-headlines__card:not(.np-headlines__card--large) .np-headlines__img { width: 90px; }
    .np-headlines__card--large .np-headlines__title { font-size: 1rem; }

}

/* ---------- Reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
    .np-latest__track { animation: none; }
    .np-latest__track-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
