/* News: /news (archive) and /news/{id} (article) */

/* .news-wrap width: ui.css (shared page width) */
.news-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: #b45309; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.news-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--color-accent); }

/* ---------- Archive ---------- */
.news-archive { padding: 70px 0 90px; background: #fff; }
.news-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.news-intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--color-primary); margin: 0.6rem 0 0.4rem; line-height: 1.2; }
.news-intro p { color: var(--color-text-light); margin: 0; max-width: 560px; line-height: 1.7; }
.news-years { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.news-years a { padding: 0.45rem 1.1rem; border-radius: 999px; border: 1px solid rgba(0, 33, 71, 0.14); color: var(--color-primary); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: all 0.2s ease; background: #fff; }
.news-years a:hover { border-color: var(--color-primary); }
.news-years a.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* Featured (latest) story */
.news-featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 33, 71, 0.10); border: 1px solid rgba(0, 33, 71, 0.06); margin-bottom: 3.5rem; }
.news-featured .nf-media { position: relative; display: block; min-height: 360px; overflow: hidden; background: var(--color-surface); }
.news-featured .nf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.news-featured:hover .nf-media img { transform: scale(1.04); }
.news-featured .nf-body { padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.nf-tag { align-self: flex-start; background: var(--color-accent); color: var(--color-primary); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.9rem; border-radius: 999px; }
.nf-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--color-text-light); font-size: 0.92rem; }
.nf-meta i { color: var(--color-accent); margin-right: 0.35rem; }
.news-featured h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.25; margin: 0; }
.news-featured h2 a { color: var(--color-primary); text-decoration: none; }
.news-featured h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.news-featured p { color: var(--color-text-light); line-height: 1.75; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured .btn { align-self: flex-start; margin-top: 0.5rem; }

/* Card grid */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.nc { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid rgba(0, 33, 71, 0.07); box-shadow: 0 8px 24px rgba(0, 33, 71, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.nc:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(0, 33, 71, 0.13); }
.nc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-surface); }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.nc:hover .nc-media img { transform: scale(1.06); }
.nc-date { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255, 255, 255, 0.95); color: var(--color-primary); font-weight: 700; font-size: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.nc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.nc-title { font-size: 1.2rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-title a { color: var(--color-primary); text-decoration: none; }
.nc-title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.nc { position: relative; }
.nc-summary { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-foot { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(0, 33, 71, 0.07); display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.nc-more { color: var(--color-primary); font-weight: 700; }
.nc-more i { transition: transform 0.2s ease; }
.nc:hover .nc-more i { transform: translateX(4px); }
.nc-time { color: var(--color-text-light); }

.news-empty { text-align: center; padding: 4rem 1rem; color: var(--color-text-light); background: var(--color-surface); border-radius: 20px; }
.news-empty i { font-size: 2.5rem; color: var(--color-accent); margin-bottom: 1rem; display: block; }

.news-pager { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.news-pager a, .news-pager span { min-width: 44px; height: 44px; padding: 0 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.news-pager a { color: var(--color-primary); border: 1px solid rgba(0, 33, 71, 0.15); }
.news-pager a:hover { border-color: var(--color-primary); }
.news-pager .current { background: var(--color-primary); color: #fff; }

/* CTA band (archive + article) */
.news-cta { background: linear-gradient(135deg, #002147 0%, #0b459c 100%); color: #fff; border-radius: 24px; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 5rem; position: relative; overflow: hidden; }
.news-cta::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(240, 180, 41, 0.18); }
.news-cta h3 { font-size: 1.7rem; margin: 0 0 0.5rem; color: #fff; }
.news-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 560px; line-height: 1.7; }
.news-cta .btn { position: relative; z-index: 1; }

/* ---------- Article ---------- */
.article-hero { position: relative; padding: 180px 0 170px; color: var(--color-primary); text-align: left; overflow: hidden;
    background: radial-gradient(800px 380px at 88% 10%, rgba(240, 180, 41, 0.18) 0%, transparent 60%),
                radial-gradient(700px 360px at 5% 90%, rgba(11, 69, 156, 0.10) 0%, transparent 65%),
                linear-gradient(180deg, #f4f7fc 0%, #e9eff8 100%); }
.article-hero::before { content: ''; position: absolute; inset: 0; opacity: 0.35; background-image: radial-gradient(rgba(0, 33, 71, 0.12) 1px, transparent 1px); background-size: 22px 22px; }
.article-hero .news-wrap { position: relative; z-index: 1; width: 100%; }
.article-crumbs { display: flex; justify-content: flex-start; gap: 0.6rem; align-items: center; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.article-crumbs a { color: var(--color-primary); text-decoration: none; opacity: 0.8; }
.article-crumbs a:hover { opacity: 1; }
.article-crumbs span { color: var(--color-accent); }
.article-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.15; max-width: 920px; margin: 0 0 1.3rem; color: var(--color-primary); }
.article-meta { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.95rem; color: var(--color-text-light); }
.article-meta i { color: var(--color-accent); margin-right: 0.4rem; }

.article-section { background: #fff; padding: 0 0 90px; }
.article-cover { position: relative; z-index: 2; margin: -120px 0 3.5rem; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 33, 71, 0.22); aspect-ratio: 16 / 9; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* The cover opens the whole photo in the viewer: a zoom cursor, and a "View full photo" chip in the top corner (seen without scrolling) */
.article-cover-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.article-cover-btn:hover img { transform: scale(1.02); }
.article-cover-btn:focus-visible { outline: 3px solid var(--color-accent, #fbbf24); outline-offset: -3px; border-radius: inherit; }
.article-cover-hint { position: absolute; right: 1rem; top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px;
    background: rgba(0, 20, 45, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 0.875rem; font-weight: 600; line-height: 1.2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: background 0.2s; }
.article-cover-btn:hover .article-cover-hint, .article-cover-btn:focus-visible .article-cover-hint { background: rgba(0, 20, 45, 0.85); }
@media (prefers-reduced-motion: reduce) { .article-cover img { transition: none; } .article-cover-btn:hover img { transform: none; } }
.article-layout { display: grid; grid-template-columns: 64px minmax(0, 1fr) 300px; gap: 3rem; }
.article-aside { position: sticky; top: 140px; align-self: start; }
.article-aside-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.6rem; padding: 2rem 1.7rem 1.6rem; border-radius: 20px; color: rgba(255, 255, 255, 0.82); background: linear-gradient(160deg, #0b459c 0%, #002147 70%); box-shadow: 0 20px 40px rgba(0, 33, 71, 0.18); }
.article-aside-eyebrow { color: var(--color-accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.article-aside-card h2 { color: #fff; font-size: 1.5rem; line-height: 1.25; margin: 0; }
.article-aside-card p { margin: 0 0 0.8rem; line-height: 1.65; font-size: 0.95rem; }
.article-aside-call { display: inline-flex; justify-content: center; align-items: center; gap: 0.45rem; margin-top: 0.2rem; color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; text-decoration: none; }
.article-aside-call:hover { color: #fff; }
.article-share { position: sticky; top: 140px; align-self: start; display: flex; flex-direction: column; gap: 0.6rem; align-items: center; }
.article-share .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-light); writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 0.4rem; }
.share-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 33, 71, 0.14); color: var(--color-primary); background: #fff; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.share-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.share-btn.copied { background: #1e7a43; border-color: #1e7a43; color: #fff; }

.article-body { color: #2b3445; }
.article-lead { font-size: 1.3rem; line-height: 1.75; color: var(--color-primary); font-weight: 500; border-left: 4px solid var(--color-accent); padding: 0.2rem 0 0.2rem 1.4rem; margin: 0 0 2.2rem; }
.article-body .article-p { font-size: 1.13rem; line-height: 1.9; margin: 0 0 1.4rem; }
.article-body .article-p-h { color: var(--color-primary); font-size: 1.45rem; line-height: 1.35; margin: 2.2rem 0 0.9rem; text-wrap: balance; }
.article-body h3.article-p-h { font-size: 1.2rem; }
.article-body.dropcap .first-para::first-letter { float: left; font-size: 3.6rem; line-height: 0.9; font-weight: 700; color: var(--color-primary); margin: 0.35rem 0.6rem 0 0; }
.article-end { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(0, 33, 71, 0.1); }
.article-end .share-inline { display: none; gap: 0.5rem; }
.preview-banner { background: #fff7e0; border: 1px solid #f3d27a; color: #6b4e00; padding: 0.9rem 1.2rem; border-radius: 12px; margin-bottom: 2rem; }
.preview-banner a { color: #6b4e00; font-weight: 700; margin-left: 0.5rem; }

.related { background: var(--color-surface); padding: 80px 0 90px; }
.related-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.related-head h2 { font-size: 2rem; color: var(--color-primary); margin: 0.5rem 0 0; }

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .nf-media { min-height: 0; aspect-ratio: 16 / 9; }
    .article-layout { grid-template-columns: minmax(0, 760px); }
    .article-share, .article-aside { display: none; }
    .article-end .share-inline { display: flex; }
}
@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-featured .nf-body { padding: 1.75rem 1.5rem; }
    .news-cta { padding: 2rem 1.5rem; }
    .article-hero { padding: 150px 0 120px; }
    .article-cover { margin-top: -80px; border-radius: 16px; }
    .article-lead { font-size: 1.15rem; }
    .article-body.dropcap .first-para::first-letter { font-size: inherit; float: none; margin: 0; font-weight: inherit; color: inherit; }
}

/* Keep the drop cap inside the first paragraph so short paragraphs don't indent the next one */
.article-body.dropcap .first-para { display: flow-root; }
@media (max-width: 640px) {
    .article-cover-hint { right: 0.75rem; top: 0.75rem; padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}
