/* ==========================================================================
   Tin tức: danh sách & bài viết
   ========================================================================== */
.site-nav a.active { color: var(--brand); background: var(--brand-soft); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Danh sách ---------- */
.news-hero { background: linear-gradient(180deg, #f5f7fa, #fff); border-bottom: 1px solid var(--line); padding: 44px 0 30px; }
.news-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--brand); letter-spacing: -.025em; margin-bottom: 10px; }
.news-hero p { color: var(--ink-2); font-size: 17px; margin: 0 0 22px; max-width: 640px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.cat-chips a span { font-size: 12px; color: var(--ink-4); }
.cat-chips a:hover { border-color: var(--brand-2); color: var(--brand); }
.cat-chips a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat-chips a.active span { color: #b9cbe0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(7, 27, 48, .1); }
.post-card .cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .cover img { transform: scale(1.04); }
.cover-ph { display: grid; place-items: center; height: 100%; color: var(--ink-4); }
.cover-ph svg { width: 40px; height: 40px; }
.post-card .body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.post-card .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-3); align-items: center; }
.post-card .cat { font-weight: 600; color: var(--accent-2); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.post-card h3 { font-size: 18px; line-height: 1.35; margin: 0; }
.post-card h3 a { color: var(--brand); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.post-card.large { display: grid; grid-template-columns: 1.25fr 1fr; margin-bottom: 28px; }
.post-card.large .cover { aspect-ratio: auto; min-height: 340px; }
.post-card.large .body { padding: 32px; align-content: center; gap: 12px; }
.post-card.large h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.post-card.large p { font-size: 16px; }
.post-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; color: var(--brand); text-decoration: none; }
@media (max-width: 860px) { .post-card.large { grid-template-columns: 1fr; } .post-card.large .cover { min-height: 0; aspect-ratio: 16 / 9; } .post-card.large .body { padding: 20px; } }

.news-pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.news-pager .pg { min-width: 40px; height: 40px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2); font-weight: 600; text-decoration: none; background: #fff; }
.news-pager a.pg:hover { border-color: var(--brand-2); color: var(--brand); }
.news-pager .pg.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.news-pager .pg svg { width: 18px; height: 18px; }
.news-pager .gap { align-self: center; color: var(--ink-4); }
.empty-news { padding: 60px 20px; text-align: center; color: var(--ink-3); }

/* ---------- Bài viết ---------- */
.preview-bar { background: var(--warn-bg); color: #854d0e; text-align: center; padding: 8px; font-weight: 600; font-size: 14px; }
.post-head { padding: 44px 0 28px; }
.container.narrow { max-width: 860px; }
.post-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--brand); letter-spacing: -.025em; line-height: 1.18; margin-bottom: 14px; }
.post-head .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin-bottom: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ink-3); }
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 16px; height: 16px; }
.post-cover { margin: 0 auto 8px; max-width: 1100px; }
.post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 20px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 32px; padding-bottom: 72px; max-width: 1140px; }
@media (max-width: 960px) { .post-layout { grid-template-columns: 1fr; gap: 32px; } }

.prose { font-size: 17.5px; line-height: 1.75; color: #1e293b; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose h2 { font-size: 26px; color: var(--brand); margin: 1.8em 0 .6em; letter-spacing: -.015em; scroll-margin-top: 96px; }
.prose h3 { font-size: 20.5px; color: var(--ink); margin: 1.5em 0 .5em; scroll-margin-top: 96px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent-2); }
.prose strong { color: var(--ink); }
.prose a { color: var(--brand-2); text-underline-offset: 3px; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: #4a3305; }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: 14px; margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { text-align: center; font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 2.4em; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
.post-share a, .link-btn { color: var(--brand-2); font-weight: 600; text-decoration: none; }
.link-btn { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }

.post-aside { display: grid; gap: 20px; align-content: start; position: sticky; top: 96px; }
@media (max-width: 960px) { .post-aside { position: static; } }
.toc { padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; color: var(--ink); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--brand); font-weight: 600; }
.aside-cta { padding: 20px; border-radius: 14px; background: var(--brand); color: #c9d7e6; }
.aside-cta b { color: #fff; font-size: 17px; display: block; margin-bottom: 6px; }
.aside-cta p { font-size: 14px; margin: 0 0 14px; }
.aside-latest b { display: block; margin-bottom: 10px; }
.aside-latest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.aside-latest li { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.aside-latest a { color: var(--ink); text-decoration: none; font-weight: 500; }
.aside-latest a:hover { color: var(--brand); text-decoration: underline; }
.aside-latest span { font-size: 12.5px; color: var(--ink-3); }
.related-title { font-size: 24px; color: var(--brand); margin-bottom: 24px; }

/* ---------- Khối tin tức trên trang chủ ---------- */
.news-home .head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.news-home .head-row .section-head { margin: 0; }
