/* Hội Bảo trợ NKT, BNN & QTE tỉnh Khánh Hòa — giao diện website */
:root {
  --brand: #01a85a;          /* xanh lá trong logo – dùng cho mảng màu, trang trí */
  --green: #007a3d;          /* xanh đậm – chữ, liên kết, nút (đạt chuẩn tương phản) */
  --green-deep: #0b4a2f;
  --green-night: #08311f;
  --mint: #e8f6ee;
  --mint-2: #d3efdf;
  --heart: #ed3050;          /* đỏ trái tim trong logo */
  --heart-ink: #c81f3f;      /* nút ủng hộ */
  --heart-soft: #fdebef;
  --sun: #f6b83c;
  --ink: #17251f;
  --muted: #52625b;
  --line: #e3e8e4;
  --bg: #fffdf9;
  --sand: #f7f2e9;
  --card: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 40, 28, .06), 0 8px 24px rgba(16, 40, 28, .07);
  --shadow-lg: 0 2px 6px rgba(16, 40, 28, .06), 0 22px 48px rgba(16, 40, 28, .12);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--sand { background: var(--sand); }
.section--flush { padding-top: 0; }
.section--mint { background: var(--mint); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--heart); }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Nút ---------- */
.btn {
  --b: var(--green); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, .12); }
.btn--heart { --b: var(--heart-ink); }
.btn--heart:hover { background: #b3183a; border-color: #b3183a; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--mint); color: var(--green-deep); }
.btn--light { --b: #fff; color: var(--green-deep); }
.btn--light:hover { color: var(--green-deep); }
.btn--on-dark { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--on-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn .icon { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .15s; width: 18px; height: 18px; }

/* ---------- Thanh trên cùng & Header ---------- */
.topbar { background: var(--green-night); color: #d9efe2; font-size: .86rem; }
.topbar .wrap { display: flex; gap: 22px; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__list { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.topbar__list span, .topbar__list a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; opacity: .85; }

.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .9);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(16, 40, 28, .06); }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 54px; height: 54px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__name { font-weight: 800; font-size: .98rem; color: var(--green-deep); }
.brand__sub { font-size: .78rem; color: var(--muted); font-weight: 500; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 10px 13px; border-radius: 999px;
}
.nav a:not(.btn):hover { background: var(--mint); color: var(--green-deep); }
.nav a[aria-current="page"]:not(.btn) { color: var(--green); background: var(--mint); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: var(--bg); flex-direction: column;
    align-items: stretch; padding: 92px 20px 24px; gap: 4px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .25s ease; z-index: 60; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 14px; }
  .nav .btn { margin: 14px 0 0; }
  .nav-close { position: absolute; top: 18px; right: 18px; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 49, 31, .45); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1081px) { .nav-close, .nav-backdrop { display: none; } }
@media (max-width: 560px) {
  .brand img { width: 46px; height: 46px; }
  .brand__name { font-size: .9rem; }
  .brand__sub { font-size: .72rem; }
  .topbar__hide-sm { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(1, 168, 90, .14), transparent 70%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--heart-ink); position: relative; white-space: nowrap; }
.hero h1 em svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .34em; color: var(--heart); opacity: .55; }
.hero .lead { margin-bottom: 30px; max-width: 580px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .icon { color: var(--brand); width: 20px; height: 20px; }
.mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 150px; gap: 14px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.mosaic .m1 { grid-row: 1 / 3; }
.mosaic .m2 { grid-row: 1 / 2; }
.mosaic .m3 { grid-row: 2 / 4; }
.mosaic .m4 { grid-row: 3 / 4; grid-column: 1 / 2; }
.mosaic__badge {
  position: absolute; left: -28px; top: 28px; background: #fff; border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; max-width: 270px;
}
.mosaic__badge img { width: 48px; height: 48px; box-shadow: none; border-radius: 50%; }
.mosaic__badge strong { display: block; font-size: .95rem; line-height: 1.3; }
.mosaic__badge small { color: var(--muted); font-size: .8rem; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .mosaic { grid-template-rows: 150px 150px 120px; }
  .mosaic__badge { left: 10px; top: 10px; }
}
@media (max-width: 480px) {
  .mosaic { grid-template-rows: 120px 120px 100px; gap: 10px; }
  .mosaic__badge { display: none; }
}

/* ---------- Số liệu ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.stat__num { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 800; color: var(--green); line-height: 1.05; letter-spacing: -.03em; }
.stat__num small { font-size: .5em; font-weight: 700; margin-left: 4px; }
.stat__label { margin: 8px 0 10px; font-weight: 600; line-height: 1.4; }
.stat__meta { font-size: .85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.stat:nth-child(2) .stat__num { color: var(--heart-ink); }
.stat:nth-child(4) .stat__num { color: #b06a00; }
@media (max-width: 920px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Ba sứ mệnh ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.pillar__more { margin: auto 0 0 !important; padding-top: 18px; }
.pillar__icon {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--mint); color: var(--green);
}
.pillar__icon .icon { width: 30px; height: 30px; }
.pillar:nth-child(2) .pillar__icon { background: var(--heart-soft); color: var(--heart-ink); }
.pillar:nth-child(3) .pillar__icon { background: #fff3d9; color: #a35f00; }
.pillar p { color: var(--muted); margin: 0 0 14px; }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .95rem; }
.pillar li { display: flex; gap: 10px; align-items: flex-start; }
.pillar li .icon { color: var(--brand); margin-top: 4px; width: 17px; height: 17px; }
@media (max-width: 920px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Thẻ bài viết ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .18s ease, box-shadow .18s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16 / 10; background: var(--mint); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media img.is-portrait, .program img.is-portrait { object-position: top; }
.card:hover .card__media img { transform: scale(1.04); }
.card__count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(8, 49, 31, .78); color: #fff; font-size: .78rem; font-weight: 600;
  border-radius: 999px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.card__count .icon { width: 14px; height: 14px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.12rem; line-height: 1.38; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--green); }
.card p { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--mint); color: var(--green-deep); white-space: nowrap;
}
.chip--tre-em { background: #fff3d9; color: #8a4f00; }
.chip--nguoi-khuyet-tat { background: #e7f0fb; color: #1d4f8c; }
.chip--an-sinh { background: #f1ebfa; color: #5b3a8c; }
.chip--hoat-dong-hoi { background: #eef1ef; color: #3c4a44; }
.placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--brand) 100%);
}
.placeholder .icon { width: 56px; height: 56px; opacity: .9; }

/* ---------- Hành trình ---------- */
.journeys { display: grid; gap: 18px; }
.journey {
  display: grid; grid-template-columns: 1fr 56px 1fr; align-items: stretch; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line); padding: 10px;
}
.journey__step { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.journey__step:hover { background: var(--sand); color: var(--ink); }
.journey__step img, .journey__step .placeholder { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.journey__label, .journey__title, .journey__date { display: block; }
.journey__label { font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--heart-ink); }
.journey__step--done .journey__label { color: var(--green); }
.journey__title { font-weight: 700; line-height: 1.35; margin: 2px 0; font-size: .98rem; }
.journey__date { font-size: .82rem; color: var(--muted); }
.journey__arrow { display: grid; place-items: center; color: var(--brand); }
.journey__arrow .icon { width: 30px; height: 30px; }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; }
  .journey__arrow { transform: rotate(90deg); height: 36px; }
}

/* ---------- Chương trình ---------- */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .programs { grid-template-columns: 1fr; } }
.program { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.program img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.program__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.program h3 { margin: 0; font-size: 1.05rem; }
.program p { margin: 0; color: var(--muted); font-size: .93rem; }
.program a { margin-top: auto; font-size: .92rem; }

/* ---------- Báo chí ---------- */
.press { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .press { grid-template-columns: 1fr; } }
.press-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.press-item:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.press-item__logo {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--green-deep);
  font-weight: 800; font-size: .78rem; text-align: center; line-height: 1.1; letter-spacing: -.01em;
}
.press-item__title, .press-item__meta { display: block; }
.press-item__title { font-weight: 700; line-height: 1.4; font-size: .98rem; }
.press-item__meta { font-size: .83rem; color: var(--muted); margin-top: 3px; }
.press-item > .icon { color: var(--muted); width: 18px; height: 18px; }

/* ---------- Đối tác ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 10px; }
.partners span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .92rem; font-weight: 600; color: var(--green-deep); }

/* ---------- Dải kêu gọi ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 64px);
  background: radial-gradient(120% 140% at 100% 0%, #10794a 0%, var(--green-deep) 55%, var(--green-night) 100%); color: #eaf7ef;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe9da; max-width: 560px; }
.cta-band__hearts { position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; color: rgba(255, 255, 255, .05); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.footer { background: var(--green-night); color: #c5dfd0; padding: 64px 0 28px; margin-top: 0; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer__brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; padding: 2px; }
.footer__brand strong { color: #fff; font-size: 1.02rem; line-height: 1.35; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer li { display: flex; gap: 10px; align-items: flex-start; }
.footer li .icon { margin-top: 4px; width: 16px; height: 16px; color: var(--brand); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #9cc0ab; }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Tiêu đề trang con ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 900px; }
.page-hero .lead { max-width: 760px; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 16px; list-style: none; padding: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }

/* ---------- Trang tin tức: bộ lọc ---------- */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filters__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit;
  font-size: .92rem; font-weight: 600; cursor: pointer; min-height: 42px;
}
.filter-chip:hover { border-color: var(--green); }
.filter-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.filter-chip span { opacity: .7; font-weight: 500; margin-left: 4px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input {
  width: 100%; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); padding: 10px 18px 10px 46px; font: inherit; font-size: .96rem; background: #fff;
}
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(1, 168, 90, .15); }
.search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 19px; height: 19px; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.year-sep { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; font-weight: 800; font-size: 1.3rem; color: var(--green-deep); margin-top: 10px; }
.year-sep::after { content: ""; height: 1px; background: var(--line); flex: 1; }

/* ---------- Bài viết chi tiết ---------- */
.article-head { padding: clamp(32px, 5vw, 60px) 0 24px; background: linear-gradient(180deg, var(--mint) 0%, var(--bg) 100%); }
.article-head h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); max-width: 920px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; color: var(--muted); font-size: .92rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta .icon { width: 17px; height: 17px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-bottom: 72px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 32px; }
.gallery button { padding: 0; border: 0; background: var(--mint); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; grid-column: span 2; position: relative; }
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery button:nth-child(2):nth-last-child(1) { grid-column: 1 / -1; }
.gallery.gallery--count-2 button:first-child { grid-column: span 3; aspect-ratio: 4 / 3; }
.gallery.gallery--count-2 button:nth-child(2) { grid-column: span 3; }
.gallery.gallery--count-3 button:not(:first-child), .gallery.gallery--count-5 button:not(:first-child) { grid-column: span 3; }
.gallery.gallery--poster button:first-child { aspect-ratio: auto; background: var(--sand); }
.gallery.gallery--poster button:first-child img { object-fit: contain; max-height: 82vh; margin: 0 auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__more { position: absolute; inset: 0; background: rgba(8, 49, 31, .55); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.prose { font-size: 1.07rem; line-height: 1.8; max-width: 760px; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose .prose__lead { font-size: 1.16rem; font-weight: 500; color: var(--ink); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--green-deep); }
.prose .byline { text-align: right; font-style: italic; color: var(--muted); }
.prose .poem { font-family: var(--serif); font-size: 1.15rem; line-height: 1.9; white-space: pre-line; background: var(--sand); padding: 28px 32px; border-radius: var(--radius); }
.notice {
  display: flex; gap: 14px; align-items: flex-start; background: #fff8e8; border: 1px solid #f3dfae; border-radius: var(--radius-sm);
  padding: 16px 18px; font-size: .93rem; color: #5c4615; margin: 24px 0; max-width: 760px;
}
.notice .icon { color: #b07800; width: 22px; height: 22px; margin-top: 2px; }
.notice p { margin: 0; }
.source-box { margin-top: 32px; padding: 20px; border-radius: var(--radius-sm); border: 1px dashed var(--line); display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 760px; }
.source-box p { margin: 0; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.source-box p .icon { color: #1877f2; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 24px; }
.share > span { font-weight: 700; font-size: .92rem; margin-right: 4px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 40px;
}
.share a:hover, .share button:hover { border-color: var(--green); color: var(--green); }
.share .icon { width: 17px; height: 17px; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-card h3 { font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.aside-card h3 .icon { color: var(--heart); }
.aside-card--about { background: linear-gradient(160deg, var(--mint), #fff 70%); border-color: var(--mint-2); }
.aside-card--about p { color: var(--muted); font-size: .94rem; margin: 0 0 16px; }
.aside-about { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.aside-about img { width: 56px; height: 56px; }
.aside-about h3 { margin: 0; }
.aside-links { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mini-list a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; text-decoration: none; color: var(--ink); align-items: center; }
.mini-list img, .mini-list .placeholder { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; }
.mini-list .placeholder .icon { width: 24px; height: 24px; }
.mini-list strong { font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list small { color: var(--muted); font-size: .78rem; }
.mini-list a:hover strong { color: var(--green); }
.journey-note { display: flex; gap: 14px; align-items: center; background: var(--mint); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 28px; max-width: 760px; text-decoration: none; color: var(--green-deep); font-weight: 600; }
.journey-note:hover { color: var(--green-deep); background: var(--mint-2); }
.journey-note .icon { width: 22px; height: 22px; color: var(--green); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 13, .94); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1400px, 94vw); max-height: 86vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button .icon { width: 26px; height: 26px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #dbe9e1; font-size: .9rem; }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; transform: none; } }

/* ---------- Giới thiệu ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.6; color: var(--green-deep); border-left: 4px solid var(--heart); padding-left: 22px; margin: 24px 0; }
.quote cite { display: block; margin-top: 10px; font-family: var(--font); font-style: normal; font-size: .9rem; color: var(--muted); font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }
.value { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.value .icon { width: 28px; height: 28px; color: var(--heart); margin-bottom: 10px; }
.value h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value p { margin: 0; font-size: .93rem; color: var(--muted); }
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: p; }
@media (max-width: 1000px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }
.process li { counter-increment: p; background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: relative; }
.process li::before { content: "0" counter(p); font-weight: 800; color: var(--brand); font-size: 1.5rem; display: block; margin-bottom: 8px; }
.process h3 { font-size: 1rem; margin-bottom: 6px; }
.process p { font-size: .9rem; color: var(--muted); margin: 0; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.person { background: var(--card); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.person strong { display: block; line-height: 1.3; }
.person small { color: var(--muted); font-size: .85rem; line-height: 1.35; display: block; margin-top: 2px; }
.docs { display: grid; gap: 12px; }
.doc { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; color: var(--ink); }
a.doc:hover { border-color: var(--brand); box-shadow: var(--shadow); color: var(--ink); }
.doc__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--heart-soft); color: var(--heart-ink); display: grid; place-items: center; }
.doc__icon .icon { width: 24px; height: 24px; }
.doc strong { display: block; line-height: 1.4; }
.doc small { color: var(--muted); font-size: .86rem; display: block; margin-top: 2px; }
.doc > .icon { color: var(--muted); width: 18px; height: 18px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 3px solid var(--mint-2); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.timeline time { font-weight: 800; color: var(--green); font-size: .92rem; }
.timeline p { margin: 2px 0 0; }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact-item__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.contact-item__icon .icon { width: 24px; height: 24px; }
.contact-item small { display: block; color: var(--muted); font-size: .82rem; }
.contact-item a, .contact-item b { font-weight: 700; font-size: 1.05rem; word-break: break-word; }
.contact-item a { text-decoration: none; }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); background: var(--mint); }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .94rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); min-height: 48px; width: 100%;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(1, 168, 90, .15); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form small { color: var(--muted); font-weight: 400; }

/* ---------- Tiện ích ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack { display: grid; gap: 18px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 120; }
.toast.is-show { opacity: 1; transform: translateX(-50%); }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.back-top.is-show { opacity: 1; pointer-events: auto; }
.back-top .icon { width: 22px; height: 22px; }
@media print {
  .topbar, .header, .footer, .aside, .share, .back-top, .cta-band { display: none !important; }
  body { background: #fff; }
}
