/*
Theme Name: VBPMEX
Theme URI: https://vbpmex.derexis.com.mx/
Author: DEREXIS GROUP & VBPMEX
Author URI: https://derexis.com.mx/
Description: Tema editorial y de noticias para el portal del Voleibol de Playa en México (VBPMEX).
Version: 3.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl.html
Text Domain: vbpmex
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, theme-options, translation-ready
*/

:root {
    --navy-950: #061326;
    --navy-900: #0a2140;
    --navy-800: #10365f;
    --blue-600: #1478e8;
    --blue-500: #2a90ff;
    --cyan-400: #19c4d8;
    --sand-300: #f0ca72;
    --sand-100: #fff4d4;
    --white: #ffffff;
    --surface: #f4f7fb;
    --surface-strong: #eaf0f7;
    --ink: #122033;
    --muted: #5d6a7d;
    --line: #dce5ef;
    --shadow: 0 16px 45px rgba(6, 19, 38, .09);
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1240px;
    --header-height: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--sand-300);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2000;
    top: 1rem;
    left: 1rem;
    padding: .7rem 1rem;
    color: var(--navy-950);
    background: var(--sand-300);
    border-radius: 999px;
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

/* Encabezado */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    color: var(--white);
    background: rgba(6, 19, 38, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 24px rgba(6, 19, 38, .18);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    width: min(100% - 2rem, var(--max-width));
    min-height: var(--header-height);
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .75rem;
    color: var(--white);
}

.brand img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.brand-copy { display: grid; gap: .1rem; }

.brand-name {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
}

.brand-name span { color: var(--sand-300); }

.brand-caption {
    color: #b8c9de;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.2;
}

.site-nav { flex: 1 1 auto; }

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem .62rem;
    color: #eaf3ff;
    border-radius: 10px;
    font-size: .79rem;
    font-weight: 750;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav a[aria-current="page"] {
    color: var(--white);
    background: rgba(42, 144, 255, .22);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle svg { width: 22px; height: 22px; }

/* Elementos Globales y Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%, rgba(25, 196, 216, .28), transparent 30rem),
        linear-gradient(120deg, var(--navy-950), var(--navy-800));
}

.hero::after {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    align-items: center;
    gap: 3rem;
    width: min(100% - 2rem, var(--max-width));
    min-height: 520px;
    margin: 0 auto;
    padding: 5rem 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    color: var(--sand-300);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 3px;
    background: var(--sand-300);
    border-radius: 99px;
    content: "";
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    letter-spacing: -.055em;
    line-height: .98;
}

.hero-lead {
    max-width: 670px;
    margin: 1.45rem 0 0;
    color: #d8e8fa;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 800;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary { color: var(--navy-950); background: var(--sand-300); }

.button-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 540px;
    margin: 3rem 0 0;
}

.hero-stat {
    padding-top: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero-stat dt { color: #9fbbd8; font-size: .73rem; font-weight: 700; }
.hero-stat dd { margin: .15rem 0 0; font-size: 1.55rem; font-weight: 900; }

.hero-visual {
    display: grid;
    place-items: center;
    min-height: 350px;
}

.court {
    position: relative;
    width: min(100%, 440px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #ddb661, #f5d889 48%, #c9994a);
    border: 12px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .3);
    transform: rotate(-8deg);
}

.court::before,
.court::after {
    position: absolute;
    background: rgba(255, 255, 255, .72);
    content: "";
}

.court::before { top: 10%; bottom: 10%; left: 50%; width: 4px; transform: translateX(-50%); }
.court::after { top: 50%; right: 10%; left: 10%; height: 4px; transform: translateY(-50%); }

.court-net {
    position: absolute;
    top: 50%;
    left: 8%;
    width: 84%;
    height: 34%;
    border-top: 4px solid var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    background-image: linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, .45) 49%, transparent 51%), linear-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px);
    background-size: 100% 100%, 100% 15px;
    transform: translateY(-50%) rotate(90deg);
}

.court-ball {
    position: absolute;
    top: 19%;
    right: 18%;
    width: 60px;
    aspect-ratio: 1;
    background: radial-gradient(circle at 32% 27%, #fff 0 8%, #d7efff 9% 26%, #2a90ff 27% 56%, #123d75 57% 100%);
    border: 4px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    box-shadow: 0 15px 20px rgba(0, 0, 0, .2);
    transform: rotate(18deg);
}

/* Estructura de Secciones */
.section { padding: 5.5rem 0; }

.section-inner {
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    max-width: 720px;
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -.04em;
    line-height: 1.05;
}

.section-heading p { max-width: 600px; margin: .7rem 0 0; color: var(--muted); }

.section-link {
    flex: 0 0 auto;
    color: var(--blue-600);
    font-size: .88rem;
    font-weight: 850;
}

.section-link:hover { text-decoration: underline; }

.section-tint { background: var(--surface-strong); }

.editorial-grid,
.live-grid,
.insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
    gap: 1.3rem;
}

.panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel h3 { margin: 0; color: var(--navy-900); font-size: 1.3rem; letter-spacing: -.025em; }
.panel > p { margin: .55rem 0 0; color: var(--muted); font-size: .92rem; }

.feed-list { display: grid; gap: .85rem; margin-top: 1.35rem; }

.feed-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: .8rem;
    background: #f8fbff;
    border: 1px solid #e6eef7;
    border-radius: 14px;
}

.feed-media {
    display: grid;
    place-items: center;
    width: 78px;
    height: 70px;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
    border-radius: 10px;
}

.feed-media img { width: 100%; height: 100%; object-fit: cover; }

.feed-content { min-width: 0; }

.feed-meta {
    margin: 0 0 .2rem;
    color: var(--blue-600);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feed-item h4 { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.feed-item p { margin: .25rem 0 0; color: var(--muted); font-size: .82rem; }

.feed-item-link:hover h4 { color: var(--blue-600); }

.feed-status { margin: 1rem 0 0; color: var(--muted); font-size: .76rem; }

.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.feature-card .eyebrow { color: var(--sand-300); }
.feature-card h3 { margin: 0; color: var(--white); font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.04em; line-height: 1.05; }
.feature-card p { margin: 1rem 0 0; color: #c5d8ed; }

.feature-list {
    display: grid;
    gap: .7rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li { display: flex; gap: .6rem; color: #e2efff; font-size: .9rem; }
.feature-list li::before { color: var(--sand-300); content: "✦"; }

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 1.45rem;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(145deg, var(--navy-800), var(--navy-900));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.module-card::after {
    position: absolute;
    right: -32px;
    bottom: -45px;
    width: 140px;
    height: 140px;
    background: rgba(25, 196, 216, .13);
    border-radius: 50%;
    content: "";
}

.module-card:hover { border-color: rgba(240, 202, 114, .6); box-shadow: 0 18px 35px rgba(6, 19, 38, .18); transform: translateY(-4px); }

.module-index { color: var(--sand-300); font-size: .75rem; font-weight: 900; letter-spacing: .12em; }
.module-card h3 { position: relative; z-index: 1; margin: .55rem 0 .35rem; font-size: 1.35rem; letter-spacing: -.025em; }
.module-card p { position: relative; z-index: 1; margin: 0; color: #c8d9ec; font-size: .88rem; }

.module-topics {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: auto 0 0;
    padding: 1.25rem 0 0;
    list-style: none;
}

.module-topics li { padding: .25rem .5rem; color: #e6f1ff; background: rgba(255, 255, 255, .09); border-radius: 999px; font-size: .7rem; }

.live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-live-grid { margin-top: 1.3rem; }

.live-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 1.7rem;
    color: var(--white);
    background: var(--navy-900);
    border-radius: var(--radius-lg);
}

.live-card.alt { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.live-card .eyebrow { margin-bottom: .8rem; }
.live-card h3 { max-width: 440px; margin: 0; font-size: 1.65rem; letter-spacing: -.04em; line-height: 1.08; }
.live-card p { max-width: 520px; margin: .8rem 0 0; color: #c7d9ed; }
.live-card.alt p { color: var(--muted); }
.live-card .button { align-self: flex-start; margin-top: auto; }

.insight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.insight-card {
    padding: 1.45rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.insight-card h3 { margin: .8rem 0 .35rem; color: var(--navy-900); font-size: 1.15rem; }
.insight-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.insight-number { color: var(--blue-600); font-size: 1.8rem; font-weight: 950; line-height: 1; }

.community-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    color: var(--white);
    background: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.community-banner h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.5rem); letter-spacing: -.04em; line-height: 1.05; }
.community-banner p { max-width: 700px; margin: .7rem 0 0; color: #e7fbff; }
.community-banner .button { color: var(--navy-950); background: var(--white); }

/* Layout de Plantillas WordPress (Archive, Single, Page con Sidebar estilo Newsup) */
.site-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    width: min(100% - 2rem, var(--max-width));
    margin: 3rem auto 5rem;
}

.site-content-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.article-detail {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--shadow);
}

.article-header h1 {
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin: .5rem 0 1.5rem;
}

.article-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
}

.article-body p { margin-bottom: 1.5rem; }

/* Grid de Noticias / Archivo */
.news-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.post-card-thumb {
    height: 190px;
    background: var(--navy-900);
    overflow: hidden;
}

.post-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-meta {
    font-size: .75rem;
    color: var(--blue-600);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.post-card-title {
    font-size: 1.15rem;
    color: var(--navy-900);
    margin: 0 0 .6rem;
    line-height: 1.3;
}

.post-card-excerpt {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 1rem;
}

/* Sidebar y Widgets */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.widget-title {
    color: var(--navy-900);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--sand-300);
    padding-bottom: .5rem;
    margin: 0 0 1rem;
}

.widget-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
}

.widget-box li a {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
}

.widget-box li a:hover {
    color: var(--blue-600);
}

/* Paginación */
.pagination {
    display: flex;
    gap: .5rem;
    margin-top: 2rem;
    justify-content: center;
}

.pagination .page-numbers {
    padding: .5rem .9rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
}

.pagination .page-numbers.current {
    background: var(--sand-300);
    color: var(--navy-950);
    border-color: var(--sand-300);
}

/* Pie de Página */
.site-footer {
    padding: 4rem 0 1.5rem;
    color: #c6d8ed;
    background: var(--navy-950);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    width: min(100% - 2rem, var(--max-width));
    margin: 0 auto;
}

.footer-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--white); }
.footer-brand img { width: auto; height: 38px; }
.footer-brand strong { letter-spacing: .08em; }
.footer-description { max-width: 380px; margin: 1rem 0 0; font-size: .86rem; }
.footer-column h2 { margin: 0 0 .8rem; color: var(--sand-300); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #c6d8ed; font-size: .86rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { width: min(100% - 2rem, var(--max-width)); margin: 2.8rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); color: #91a9c4; font-size: .76rem; text-align: center; }

/* Media Queries Responsivas */
@media (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; padding: .7rem 0; }
    .js .menu-toggle { display: inline-flex; }
    .js .site-nav { display: none; flex-basis: 100%; }
    .js .site-nav.is-open { display: block; }
    .js .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem 0 1rem; }
    .js .site-nav a { width: 100%; }
    .site-content-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .hero-inner,
    .editorial-grid,
    .live-grid,
    .insight-grid,
    .community-banner { grid-template-columns: 1fr; }
    .hero-inner { min-height: auto; padding: 4rem 0; }
    .hero-visual { min-height: 280px; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .header-inner,
    .hero-inner,
    .section-inner,
    .footer-grid,
    .footer-bottom { width: min(100% - 1.25rem, var(--max-width)); }
    .brand-caption { display: none; }
    .section { padding: 3.7rem 0; }
    .section-heading { align-items: start; flex-direction: column; }
    .hero-stats { gap: .6rem; }
    .hero-stat dd { font-size: 1.25rem; }
    .module-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > :first-child { grid-column: auto; }
    .feed-item { grid-template-columns: 62px minmax(0, 1fr); gap: .7rem; }
    .feed-media { width: 62px; height: 62px; }
    .panel { border-radius: 18px; }
}

/* VBPMEX 3.0: portada conectada, banners y portal de noticias */
.vbpmex-index-banner {
    padding: 1.35rem 0;
    color: var(--white);
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.hero-visual.has-hero-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.hero-visual.has-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.home-banner-area {
    padding: 1.25rem 0;
    background: var(--surface-strong);
    border-block: 1px solid var(--line);
}

.home-banner-area-top { border-top: 0; }
.home-banner-area-bottom { padding-block: 2rem; }
.home-banner-widget { overflow: hidden; border-radius: var(--radius-md); }
.home-banner-widget img { width: 100%; height: auto; }
.home-banner-widget > :first-child { margin-top: 0; }
.home-banner-widget > :last-child { margin-bottom: 0; }

.news-portal-header {
    padding: 4.25rem 0 1.5rem;
    color: var(--white);
    background:
        radial-gradient(circle at 84% 15%, rgba(25, 196, 216, .22), transparent 24rem),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.news-portal-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 2rem;
    align-items: end;
}

.news-portal-heading h1 {
    margin: .45rem 0 .65rem;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.news-portal-heading p,
.news-portal-description { max-width: 700px; color: #cfe1f4; }
.news-search .search-form { display: flex; gap: .5rem; }
.news-search .search-field { width: 100%; min-height: 46px; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; }
.news-search .search-submit { min-height: 46px; padding: .7rem 1rem; border: 0; border-radius: 10px; background: var(--sand-300); color: var(--navy-950); font-weight: 800; }

.category-chips {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding-top: 1.75rem;
    padding-bottom: .15rem;
    scrollbar-width: thin;
}

.category-chip {
    flex: 0 0 auto;
    padding: .48rem .8rem;
    color: #dceafa;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.category-chip:hover,
.category-chip.is-active { color: var(--navy-950); background: var(--sand-300); border-color: var(--sand-300); }

.news-portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.25rem;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

.news-lead-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, .95fr);
    min-height: 390px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.news-lead-copy { padding: clamp(1.6rem, 4vw, 3rem); }
.news-lead-copy h2 { margin: .4rem 0 1rem; color: var(--navy-900); font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.news-lead-copy > p:not(.post-card-meta) { color: var(--muted); }
.news-lead-image { min-height: 320px; background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); }
.news-lead-image img { width: 100%; height: 100%; object-fit: cover; }

.news-stream { display: grid; gap: 1rem; }
.news-stream-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    min-height: 190px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: transform .2s, box-shadow .2s;
}
.news-stream-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-stream-copy { padding: 1.35rem 1.5rem; }
.news-stream-copy h2 { margin: .35rem 0 .65rem; color: var(--navy-900); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; }
.news-stream-copy > p:not(.post-card-meta) { margin: 0 0 .7rem; color: var(--muted); font-size: .9rem; }
.news-stream-image { min-height: 190px; background: linear-gradient(145deg, var(--navy-800), var(--blue-600)); }
.news-stream-image img { width: 100%; height: 100%; object-fit: cover; }
.news-image-fallback { display: grid; width: 100%; height: 100%; min-height: inherit; place-items: center; color: var(--sand-300); font-size: 1.35rem; font-weight: 900; letter-spacing: .12em; }
.news-empty-state { text-align: center; padding: 4rem 2rem; }

.footer-grid { grid-template-columns: 1.35fr repeat(3, 1fr); }

@media (max-width: 1100px) {
    .news-portal-layout { grid-template-columns: 1fr; }
    .news-portal-layout .site-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .news-portal-heading,
    .news-lead-story { grid-template-columns: 1fr; }
    .news-lead-image { order: -1; min-height: 280px; }
    .news-stream-item { grid-template-columns: minmax(0, 1fr) 220px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .news-portal-header { padding-top: 3rem; }
    .news-portal-heading { gap: 1.25rem; }
    .news-stream-item { grid-template-columns: 1fr; }
    .news-stream-image { order: -1; min-height: 210px; }
    .news-portal-layout .site-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
