/* Hiệp hội Văn hóa Ẩm thực tỉnh Gia Lai (GLCCA) — palette lấy từ logo: xanh rêu, vàng đồng trống đồng */
:root {
  --green: #1f4142;
  --green-deep: #142c2d;
  --gold: #c3a55a;
  --gold-bright: #dcc27a;
  --gold-soft: #f4efdd;
  --ink: #172422;
  --ink-soft: #4b5a56;
  --line: #e2e0d1;
  --paper: #ffffff;

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.6rem, 6.4vw, 5.25rem);

  --wrap: 74rem;
  /* Mép trái/phải của khung nội dung, dùng cho phần tử định vị tuyệt đối trong hero */
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Bo góc theo chiều cao (evondevKit F1): từ 40px trở lên 12px, dưới 40px 8px, card/ảnh lớn 16px */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1, h2, .brand span, .parallax blockquote, .slogan q, .stat strong, .thumb-text, .site-footer h2, .values li { font-family: var(--font-display); font-variant-numeric: lining-nums; }
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
h1, h2, blockquote, q { text-wrap: balance; }
h3, li, figcaption, td { text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Màn hình lớn: nới khung nội dung và tăng nhẹ cỡ chữ để không dồn vào giữa */
@media (min-width: 1440px) { :root { --wrap: 84rem; } html { font-size: 106.25%; } }
@media (min-width: 1800px) { :root { --wrap: 92rem; } html { font-size: 112.5%; } }
@media (min-width: 2400px) { :root { --wrap: 104rem; } html { font-size: 125%; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* ---------- Thanh tiến độ cuộn ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); z-index: 40; }

/* ---------- Header ---------- */
.site-header { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 3rem; }
.brand span { font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.brand small { display: block; font-family: var(--font); font-weight: 400; font-size: 0.78rem; color: var(--ink-soft); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font: inherit; font-size: var(--step--1); color: var(--ink); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; }
.site-nav a { position: relative; display: block; padding: 0.5rem 0.65rem; font-size: 0.93rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.2rem; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.site-nav a:hover { color: var(--green); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--green); }
.site-nav .nav-cta { background: var(--green); color: #fff; margin-left: 0.5rem; border-radius: var(--radius-sm); padding-inline: 1rem; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--green-deep); color: #fff; }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: block; animation: drop .3s var(--ease); }
  .site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .site-nav a::after { left: 0; right: auto; width: 3px; top: 0.4rem; bottom: 0.4rem; height: auto; transform: scaleY(0); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleY(1); }
  .site-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-0.5rem); } }

/* ---------- Hero trình chiếu ảnh ---------- */
.hero { position: relative; min-height: min(92vh, 52rem); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--green-deep); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 9s linear; }
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,44,45, 0.96) 0%, rgba(31,65,66, 0.86) 38%, rgba(31,65,66, 0.25) 75%, rgba(23,36,34, 0.1) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 5rem; }
.hero h1 { color: #fff; max-width: 12ch; margin-bottom: 0.35em; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: word-up .9s var(--ease) forwards; }
@keyframes word-up { to { transform: none; } }
.hero .lead { font-size: var(--step-1); max-width: 34ch; color: #e3eee9; opacity: 0; animation: fade-in 1s var(--ease) 1.1s forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; opacity: 0; animation: fade-in 1s var(--ease) 1.35s forwards; }
@keyframes fade-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }
.hero-logo { position: absolute; z-index: 2; right: var(--edge); bottom: 2.5rem; width: clamp(5rem, 11vw, 9rem); animation: spin-in 1.4s var(--ease) .4s both; }
@keyframes spin-in { from { opacity: 0; transform: rotate(-120deg) scale(.4); } }
.hero-dots { position: absolute; z-index: 2; left: calc(var(--edge) - 0.125rem); bottom: 1.25rem; display: flex; gap: 0.25rem; }
/* Vùng bấm 40×32px, vạch vẽ 4px ở giữa */
.hero-dots button { width: 2.5rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before, .hero-dots button::after { content: ""; position: absolute; left: 0.125rem; right: 0.125rem; top: calc(50% - 2px); height: 4px; border-radius: 2px; }
.hero-dots button::before { background: rgba(255,255,255,0.4); }
.hero-dots button::after { background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }
.hero-dots button.active::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero-caption { position: absolute; z-index: 2; right: calc(var(--edge) + clamp(6rem, 13vw, 11rem)); bottom: 2.6rem; font-size: var(--step--1); color: rgba(255,255,255,0.8); }
@media (max-width: 760px) {
  .hero { min-height: 36rem; }
  .hero::before { background: linear-gradient(180deg, rgba(20,44,45,0.75) 0%, rgba(31,65,66,0.92) 60%); }
  .hero-caption, .hero-logo { display: none; }
}

.btn { display: inline-block; padding: 0.85rem 1.5rem; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; border: 2px solid transparent; font-size: var(--step-0); font-family: inherit; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,0.75); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--green); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* Mũi tên nhích sang phải khi rê chuột */
.go::after, .section-head a::after { content: "→"; display: inline-block; margin-left: 0.45em; transition: transform .2s var(--ease); }
.go:hover::after, .section-head a:hover::after, .news-feature:hover .go::after, .news-card:hover .go::after { transform: translateX(0.25rem); }

/* Nhãn tin mới phía trên tiêu đề hero */
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; margin-bottom: 1.5rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem; border: 1px solid rgba(220,194,122,0.55); border-radius: 999px; background: rgba(12,22,21,0.35); backdrop-filter: blur(6px); color: #f3ecd6; font-size: var(--step--1); font-weight: 500; text-decoration: none; opacity: 0; animation: fade-in .9s var(--ease) .1s forwards; transition: background-color .2s, border-color .2s; }
.hero-badge strong { flex-shrink: 0; background: var(--gold); color: var(--ink); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.hero-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-badge:hover { color: #fff; background: rgba(12,22,21,0.55); border-color: var(--gold-bright); }
@media (max-width: 600px) { .hero-badge span { white-space: normal; } }

/* ---------- Dải khẩu hiệu chạy ngang ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding-block: 0.9rem; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 800; font-size: var(--step-1); white-space: nowrap; padding-inline: 1.5rem; display: flex; align-items: center; gap: 3rem; }
.marquee span::after { content: ""; width: 0.6rem; height: 0.6rem; background: var(--green); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page header có ảnh (trang con) ---------- */
.page-head { position: relative; color: #fff; overflow: hidden; background: var(--green-deep); }
.page-head-bg { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,44,45,0.95) 10%, rgba(31,65,66,0.8) 55%, rgba(31,65,66,0.45)); }
.page-head .wrap { position: relative; z-index: 2; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 0.3em; animation: fade-in .9s var(--ease) both; }
.page-head p { color: #e3eee9; font-size: var(--step-1); margin: 0; max-width: 50ch; animation: fade-in .9s var(--ease) .15s both; }
.crumbs { font-size: var(--step--1); margin-bottom: 1rem; color: #cfe0d9; animation: fade-in .9s var(--ease) both; }
.crumbs a { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--gold-soft); }
.section-dark { background: var(--ink); color: #edf2ef; }
.section-dark h2 { color: #fff; }
.section-intro { max-width: 60ch; margin-bottom: 2.5rem; }
.section-intro p { color: var(--ink-soft); font-size: var(--step-1); }
.section-dark .section-intro p { color: #b7c6c0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.section-head a { display: inline-flex; align-items: center; min-height: 2rem; font-weight: 600; }

/* Hiện dần khi cuộn tới */
.js [data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="zoom"] { transform: scale(.92); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Khẩu hiệu */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.photo-stack { position: relative; aspect-ratio: 4 / 4.2; }
.photo-stack img { position: absolute; object-fit: cover; border-radius: var(--radius-lg); }
.photo-stack img:nth-child(1) { inset: 0 18% 22% 0; width: 82%; height: 78%; }
.photo-stack img:nth-child(2) { inset: 45% 0 0 40%; width: 60%; height: 55%; border: 8px solid var(--paper); }
.slogans { display: grid; border-top: 2px solid var(--ink); }
.slogan { padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.slogan q { display: block; font-size: var(--step-2); font-weight: 800; color: var(--green); quotes: "“" "”"; line-height: 1.2; margin-bottom: 0.4rem; }
.slogan p { margin: 0; color: var(--ink-soft); }

/* Số liệu đếm */
.stats { background: var(--paper); color: var(--ink); border-block: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1; color: var(--green); font-variant-numeric: lining-nums tabular-nums; }
.stat span { display: block; margin-top: 0.5rem; color: var(--ink-soft); font-size: var(--step--1); max-width: 22ch; }
.stats-note { font-size: var(--step--1); color: var(--ink-soft); grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hệ sinh thái 4 trong 1 có ảnh */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--gold); border: 2px solid var(--gold); border-radius: var(--radius-lg); overflow: hidden; }
.eco > div { position: relative; min-height: 20rem; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--ink); }
.eco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; transition: opacity .4s; }
.eco > div::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, rgba(23,36,34,0.95) 85%); }
.eco h3, .eco p { position: relative; z-index: 2; }
.eco h3 { color: var(--gold-bright); margin-bottom: 0.4em; }
.eco p { margin: 0; color: #d4dfda; font-size: var(--step--1); line-height: 1.6; }
.eco > div:hover img { opacity: 0.6; }
.eco-plain > div { min-height: 0; }
@media (max-width: 860px) { .eco { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .eco { grid-template-columns: 1fr; } .eco > div { min-height: 14rem; } }

/* Dải ảnh parallax */
.parallax { position: relative; overflow: hidden; color: #fff; min-height: 28rem; display: grid; align-items: center; background: var(--ink); }
.parallax-bg { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.parallax::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(23,36,34, 0.55); }
.parallax .wrap { position: relative; z-index: 2; text-align: center; }
.parallax blockquote { margin: 0 auto; max-width: 20ch; font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.parallax cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--gold-bright); font-weight: 600; }

/* Lưới nội dung */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.item h3 { padding-top: 0.9rem; border-top: 3px solid var(--green); }
.item p { color: var(--ink-soft); margin: 0; }
.item-photo { overflow: hidden; margin-bottom: 1rem; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 0.65rem 0 0.65rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0.2rem; top: 1.15rem; width: 0.6rem; height: 0.6rem; background: var(--gold); transform: rotate(45deg); }

/* Thư viện ảnh */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 12rem; gap: 0.75rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; cursor: zoom-in; background: var(--ink); border-radius: var(--radius-md); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(4) { grid-row: span 2; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem 0.8rem; color: #fff; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(23,36,34,0.85)); opacity: 0.9; transition: opacity .3s; }
.gallery figure:hover img { opacity: 0.85; }
.gallery figure:hover figcaption { opacity: 1; }
.gallery button { all: unset; position: absolute; inset: 0; cursor: zoom-in; }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
  .gallery figure:nth-child(6) { grid-column: span 1; }
}

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(12,22,21, 0.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; animation: fade-in .3s ease; }
.lightbox img { max-height: 82vh; width: auto; border-radius: var(--radius-md); box-shadow: 0 2rem 4rem rgba(0,0,0,0.5); animation: lb-zoom .45s var(--ease); }
@keyframes lb-zoom { from { transform: scale(.92); opacity: 0; } }
.lightbox p { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: #d4dfda; margin: 0 auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: inherit; font-size: 2rem; cursor: pointer; padding: 0.5rem 1rem; }
.lb-close { top: 0.75rem; right: 0.75rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

/* Bảng */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-0); min-width: 36rem; }
th, td { text-align: left; padding: 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 600; }
tbody th { color: var(--green); font-weight: 800; white-space: nowrap; }
tbody tr { transition: background-color .2s; }
tbody tr:hover { background: rgba(195,165,90, 0.1); }
.yes { color: #2f6b2a; font-weight: 600; }
.no { color: var(--ink-soft); }

/* Quy trình — có thứ tự thật nên đánh số */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: var(--step-1); margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--paper); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.375rem; left: 3rem; right: -2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px); }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li::after { display: none; } }

/* Sơ đồ tổ chức */
.org { display: grid; gap: 1rem; justify-items: center; text-align: center; }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
.org-node { background: var(--paper); border: 2px solid var(--ink); padding: 1rem 1.25rem; min-width: 13rem; max-width: 20rem; border-radius: var(--radius-md); }
.org-node strong { display: block; font-size: var(--step-1); }
.org-node span { font-size: var(--step--1); color: var(--ink-soft); }
.org-node em { display: block; font-style: normal; color: var(--green); font-weight: 600; margin-top: 0.3rem; }
.org-node.top { background: var(--green); border-color: var(--green); color: #fff; }
.org-node.top span { color: #e3eee9; }
.org-node.side { border-style: dashed; }
.org-arrow { width: 2px; height: 1.5rem; background: var(--ink); }

/* Lãnh đạo */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.leader { border-top: 3px solid var(--green); padding-top: 1rem; }
.leader strong { display: block; font-size: var(--step-1); }
.leader span { color: var(--ink-soft); }
@media (max-width: 760px) { .leaders { grid-template-columns: 1fr; } }

/* Thông tin chờ cập nhật */
.pending { background: var(--gold-soft); border-radius: var(--radius-md); padding: 1rem 1.25rem; color: var(--ink-soft); font-size: var(--step--1); }
.pending strong { color: var(--ink); }
.source-note { font-size: var(--step--1); color: var(--ink-soft); }

/* Giá trị cốt lõi */
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; }
.values li { border: 1px solid rgba(195,165,90, 0.5); border-radius: var(--radius-md); padding: 1.5rem 1rem; text-align: center; font-size: var(--step-1); font-weight: 800; color: var(--gold-bright); }
@media (max-width: 760px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .values li:last-child { grid-column: 1 / -1; } }

/* Sơ đồ hệ sinh thái */
.eco-diagram { width: 100%; max-width: 60rem; margin-inline: auto; background: var(--paper); border-radius: var(--radius-lg); padding: clamp(0.75rem, 3vw, 2rem); }

/* Dòng thời gian — các mốc theo thứ tự */
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 1.25rem 0.5rem; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: -1.5rem; top: 0.45rem; width: 0.75rem; height: 0.75rem; margin-left: -0.42rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--paper); }
.timeline time { display: block; font-weight: 800; color: var(--green); }

/* Văn bản */
.doc { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.doc h3 { margin: 0 0 0.25em; }
.doc p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- Tin tức ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-card { gap: 0.25rem; }
.news-card .thumb { position: relative; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 0.75rem; background: var(--ink); border-radius: var(--radius-lg); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.news-card:hover .thumb img { opacity: 0.88; }
.tag { position: absolute; left: 0.75rem; top: 0.75rem; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 999px; }
.tag-su-kien { background: var(--gold); color: var(--ink); }
.tag-nganh { background: var(--ink); color: #fff; }
.tag-am-thuc { background: #8a5a2b; color: #fff; }
.tag-bien { background: #1d5d73; color: #fff; }
.tag-dai-ngan { background: #5a6b2a; color: #fff; }
.news-card time { font-size: var(--step--1); color: var(--ink-soft); }
.news-card h3 { font-size: var(--step-0); font-weight: 700; line-height: 1.4; margin: 0 0 0.5rem; transition: color .2s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card:hover h3 { color: var(--green); }
.news-card p { color: var(--ink-soft); margin: 0; font-size: var(--step--1); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumb-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 2.5rem 1.5rem 1.5rem; text-align: center; font-family: var(--font); font-size: var(--step--1); font-weight: 600; line-height: 1.4; color: rgba(255, 244, 214, 0.75); background: radial-gradient(circle at 30% 20%, rgba(195,165,90,0.35), transparent 60%), var(--green); }
.thumb-text.tone-dai-ngan { background: radial-gradient(circle at 70% 25%, rgba(220,194,122,0.3), transparent 60%), #3f4d22; }
.thumb-text.tone-bien { background: radial-gradient(circle at 30% 20%, rgba(220,194,122,0.3), transparent 60%), #17485a; }
.dark-cards .news-card { color: #fff; }
.dark-cards .news-card time { color: var(--gold-bright); }
.dark-cards .news-card p { color: #b7c6c0; }
.dark-cards .news-card:hover h3 { color: var(--gold-bright); }

.news-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 3.5rem; }
.news-feature .thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); border-radius: var(--radius-lg); }
.news-feature .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-feature h2 { font-size: var(--step-3); margin: 0.25rem 0 0.75rem; transition: color .2s; }
.news-feature:hover h2 { color: var(--green); }
.news-feature p { color: var(--ink-soft); font-size: var(--step-1); }
.news-feature time { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 760px) { .news-feature { grid-template-columns: 1fr; gap: 1.25rem; } }

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.filters button { font: inherit; font-size: var(--step--1); font-weight: 600; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--paper); color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.filters button:hover { border-color: var(--green); color: var(--green); }
.filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 600px) { .filters { display: grid; grid-template-columns: 1fr 1fr; } }
.news-card.hide { display: none; }
.news-card.pop { animation: fade-in .5s var(--ease) both; }

/* Bài viết */
.article { max-width: 46rem; margin-inline: auto; }
.article-hero { margin: 0 0 2rem; }
.article-hero img { width: auto; max-width: 100%; height: auto; max-height: min(80vh, 46rem); margin-inline: auto; border-radius: var(--radius-lg); }
.article-hero figcaption { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem; }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: var(--step--1); margin-bottom: 1.5rem; }
.article-meta .tag { position: static; }
.article p { font-size: 1.125rem; line-height: 1.75; }
.article > p:first-of-type { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
.article-sources { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--gold-soft); border-radius: var(--radius-md); }
.article-sources h2 { font-size: var(--step-0); margin-bottom: 0.5rem; }
.article-sources ul { margin: 0; padding-left: 1.2rem; }
.article-sources p { font-size: var(--step--1); color: var(--ink-soft); margin: 0.75rem 0 0; }

/* Form */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: 0.35rem; }
input, select, textarea { width: 100%; font: inherit; padding: 0.7rem 0.85rem; border: 1px solid #bcc7c1; border-radius: var(--radius-md); background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(195,165,90,0.45); }
.hint { font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.3rem; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius-md); background: #edf4f1; color: var(--green-deep); display: none; }
.form-status.show { display: block; animation: fade-in .4s var(--ease); }

.map { width: 100%; aspect-ratio: 16 / 10; border: 0; background: var(--gold-soft); border-radius: var(--radius-lg); }
.map:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* CTA cuối trang */
.cta-band { position: relative; overflow: hidden; background: var(--green-deep); color: #fff; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.cta-band .wrap { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3rem, 7vw, 5rem); }
.cta-band h2 { color: #fff; margin: 0 0 0.25em; font-size: var(--step-3); }
.cta-band p { margin: 0; color: #cfe0d9; }

/* Bảng thành danh sách dòng ở màn hẹp (evondevKit R9), nhãn cột lấy từ data-label */
@media (max-width: 600px) {
  .stack-sm, .stack-sm tbody, .stack-sm tr, .stack-sm th, .stack-sm td { display: block; }
  .stack-sm { min-width: 0; }
  .stack-sm thead { display: none; }
  .stack-sm tr { padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .stack-sm th, .stack-sm td { border: 0; padding: 0.25rem 0; }
  .stack-sm td[data-label]::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }
}

/* Nguồn ảnh */
.credits { width: 100%; min-width: 0; font-size: var(--step--1); }
.credits img { width: 5rem; height: 3.5rem; object-fit: cover; border-radius: var(--radius-sm); }
.credits td:last-child { white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7c6c0; font-size: var(--step--1); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3.5rem 2rem; }
.site-footer h2 { font-size: var(--step-0); color: #fff; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #edf2ef; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 3.5rem; }
.footer-legal { border-top: 1px solid #2c3d3a; }
.footer-legal .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.25rem; }
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 20; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 1.25rem; cursor: pointer; box-shadow: 0 0.5rem 1.25rem rgba(20,44,45,0.35); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--green-deep); }

/* Tôn trọng người dùng tắt chuyển động */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .marquee-track { animation: none; }
  .hero-slides img { transform: none; }
}
