/* ==========================================================================
   VA News Page — Magazine Layout
   Sections: Hero · Top Stories (bento) · Press Room · Latest News · Categories
   ========================================================================== */

/* ---------- page hero + breadcrumbs (self-contained, no interior.css dependency) ---------- */
.page-hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(30, 64, 175, 0.85)), var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3.5rem 0;
    margin-bottom: 0;
    text-align: left;
    position: relative;
}
.page-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}
.page-hero .hero-subtitle { margin: 0; }

.breadcrumb {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.breadcrumb a:hover {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ---------- partners (matches interior.css partner styles) ---------- */
.partners-container {
    margin-top: 3rem;
    padding-bottom: 4rem;
    text-align: center;
}
.partner-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.partner-chip {
    background: var(--surface-white);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}
.partner-chip:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}
.partner-chip:hover i { color: white !important; }

/* ---------- shared ---------- */
.news-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.news-see-all {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: rgba(255,255,255,0.25);
    font-size: 1.5rem;
}

/* ---------- skeleton loader ---------- */
.news-skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148,163,184,0.18) 0%, rgba(148,163,184,0.32) 50%, rgba(148,163,184,0.18) 100%);
    background-size: 220% 100%;
    animation: vaNewsPulse 1.2s ease-in-out infinite;
    margin-bottom: 0.6rem;
}
.news-skeleton-line.short { width: 44%; }
.news-skeleton-line.mid   { width: 70%; }

/* Shared keyframe — also defined in local.css for the homepage */
@keyframes vaNewsPulse {
    0%   { background-position: 100% 50%; }
    100% { background-position: -120% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .news-skeleton-line {
        animation: none;
    }
}

/* ==========================================================================
   Section 1 — Top Stories (dark)
   ========================================================================== */
.news-top-stories {
    background: var(--surface-white);
    padding: 3rem 0 3.5rem;
}

.news-top-stories .news-see-all { color: var(--primary-blue); }

.news-top-stories h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

/* bento grid: 3 cols × 2 rows, first card spans 2 rows */
.news-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
}

.news-bento-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-color: #334155;
    text-decoration: none;
    color: #fff;
    transition: transform 0.2s ease;
}

.news-bento-card:hover { transform: scale(1.015); }

.news-bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%);
    z-index: 1;
}

.news-bento-card--featured {
    grid-row: 1 / 3;
    grid-column: 1;
    min-height: 420px;
}

.news-bento-card-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem;
}

.news-bento-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.news-bento-card--featured .news-bento-card-title {
    font-size: 1.35rem;
    line-height: 1.3;
}

/* bento skeleton */
.news-bento-skeleton {
    border-radius: var(--radius-md);
    background: #1e293b;
    min-height: 200px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.news-bento-skeleton--featured {
    grid-row: 1 / 3;
    grid-column: 1;
    min-height: 420px;
}

/* ==========================================================================
   Section 2 — Press Room
   ========================================================================== */
.news-press-room {
    background: var(--bg-off-white);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.news-press-room h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.news-press-room .news-see-all { color: var(--primary-blue); }

.news-press-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.news-press-label i {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.news-press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-press-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.news-press-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}
.news-press-title a { color: var(--text-main); }
.news-press-title a:hover { color: var(--primary-blue); }

/* press skeleton */
.news-press-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* ==========================================================================
   Section 3 — Latest News
   ========================================================================== */
.news-latest {
    background: var(--surface-white);
    padding: 3rem 0;
}

.news-latest-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
}

.news-accent-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    background: linear-gradient(to bottom, var(--alert-red), var(--primary-blue));
    border-radius: 2px;
    flex-shrink: 0;
}

.news-latest .news-see-all { color: var(--primary-blue); }

.news-latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
}

.news-latest-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.news-latest-thumb {
    width: 150px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-subtle);
}

.news-latest-body { flex: 1; min-width: 0; }

.news-latest-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}
.news-latest-body h3 a { color: var(--text-main); }
.news-latest-body h3 a:hover { color: var(--primary-blue); }

.news-latest-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.news-latest-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* latest skeleton */
.news-latest-skeleton {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.news-latest-skeleton-thumb {
    width: 150px;
    height: 110px;
    border-radius: 8px;
    background: var(--border-subtle);
    flex-shrink: 0;
    animation: vaNewsPulse 1.2s ease-in-out infinite;
    background-size: 220% 100%;
    background-image: linear-gradient(90deg, rgba(148,163,184,0.18) 0%, rgba(148,163,184,0.32) 50%, rgba(148,163,184,0.18) 100%);
}

/* ==========================================================================
   Section 4 — Categories
   ========================================================================== */
.news-categories {
    background: var(--bg-off-white);
    padding: 3rem 0 4rem;
}

.news-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.news-category-heading {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-gold);
    width: fit-content;
}

.news-category-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.news-category-item-body { flex: 1; min-width: 0; }

.news-category-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.news-category-item-title a { color: var(--text-main); }
.news-category-item-title a:hover { color: var(--primary-blue); }

.news-category-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.news-category-item-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border-subtle);
}

.news-category-btn {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.55rem 1.5rem;
    background: var(--accent-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 999px;
    text-align: center;
    width: 100%;
    transition: filter 0.15s ease;
}
.news-category-btn:hover { filter: brightness(1.1); }

/* category skeleton */
.news-category-skeleton-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.news-category-skeleton-thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    flex-shrink: 0;
    animation: vaNewsPulse 1.2s ease-in-out infinite;
    background-size: 220% 100%;
    background-image: linear-gradient(90deg, rgba(148,163,184,0.18) 0%, rgba(148,163,184,0.32) 50%, rgba(148,163,184,0.18) 100%);
}

/* ==========================================================================
   Section 5 — Community News
   ========================================================================== */
.news-community {
    background: var(--surface-white);
    padding: 3rem 0 3.5rem;
    border-top: 1px solid var(--border-subtle);
}

.news-community-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
}
.news-community-title i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.news-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.news-community-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.news-community-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.35rem;
}
.news-community-body h3 a { color: var(--text-main); }
.news-community-body h3 a:hover { color: var(--primary-blue); }

.news-community-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
}

.news-community-source {
    background: var(--bg-off-white);
    color: var(--text-muted);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-community-date {
    color: var(--text-muted);
    font-weight: 600;
}

/* community skeleton */
.news-community-skeleton {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */
[data-theme="dark"] .news-top-stories {
    background: #1e293b;
}

[data-theme="dark"] .news-press-room {
    background: #0f172a;
    border-color: #1e293b;
}
[data-theme="dark"] .news-press-title a { color: #e2e8f0; }
[data-theme="dark"] .news-press-date { color: #94a3b8; }

[data-theme="dark"] .news-latest {
    background: #1e293b;
}
[data-theme="dark"] .news-latest-body h3 a { color: #e2e8f0; }
[data-theme="dark"] .news-latest-date,
[data-theme="dark"] .news-latest-desc { color: #94a3b8; }
[data-theme="dark"] .news-latest-card { border-color: #334155; }
[data-theme="dark"] .news-latest-thumb { background: #334155; }

[data-theme="dark"] .news-categories {
    background: #0f172a;
}
[data-theme="dark"] .news-category-heading { color: #e2e8f0; }
[data-theme="dark"] .news-category-item { border-color: #334155; }
[data-theme="dark"] .news-category-item-title a { color: #e2e8f0; }
[data-theme="dark"] .news-category-item-date { color: #94a3b8; }
[data-theme="dark"] .news-category-item-thumb { background: #334155; }

[data-theme="dark"] .news-community {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .news-community-body h3 a { color: #e2e8f0; }
[data-theme="dark"] .news-community-card { border-color: #334155; }
[data-theme="dark"] .news-community-source { background: #334155; color: #94a3b8; }
[data-theme="dark"] .news-community-date { color: #94a3b8; }

[data-theme="dark"] .news-bento-skeleton { background: #0f172a; }
[data-theme="dark"] .news-latest-skeleton { border-color: #334155; }
[data-theme="dark"] .news-latest-skeleton-thumb { background: #334155; }
[data-theme="dark"] .news-category-skeleton-item { border-color: #334155; }
[data-theme="dark"] .news-category-skeleton-thumb { background: #334155; }
[data-theme="dark"] .news-placeholder-thumb { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }

[data-theme="dark"] .news-skeleton-line {
    background-image: linear-gradient(90deg, rgba(148,163,184,0.12) 0%, rgba(148,163,184,0.22) 50%, rgba(148,163,184,0.12) 100%);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .news-bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .news-bento-card--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }
    .news-bento-skeleton--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 280px;
    }
    .news-press-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .page-hero { padding: 2.5rem 0; text-align: center; }
    .breadcrumb { justify-content: center; }

    .news-top-stories { padding: 2rem 0 2.5rem; }
    .news-top-stories h2 { font-size: 1.4rem; }

    .news-bento-grid {
        grid-template-columns: 1fr;
    }
    .news-bento-card--featured { min-height: 240px; }
    .news-bento-card { min-height: 180px; }

    .news-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .news-latest-grid { grid-template-columns: 1fr; }
    .news-press-grid { grid-template-columns: 1fr; }
    .news-community-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .news-latest-card {
        flex-direction: column;
    }
    .news-latest-thumb {
        width: 100%;
        height: 180px;
    }
    .news-latest-skeleton {
        flex-direction: column;
    }
    .news-latest-skeleton-thumb {
        width: 100%;
        height: 180px;
    }
}
