/* ==========================================================
   Quỹ An Sinh (CWWDF) — style chung
   Màu: đỏ/vàng kim từ banner, tím–chàm từ logo hoa sen
   ========================================================== */
:root {
  --red: #B01E4E;        /* màu đỏ son của chữ CWWDF trong logo */
  --red-2: #C42A5C;
  --red-deep: #5E1532;
  --gold: #c9973f;
  --gold-2: #e8c172;
  --brown: #8a5a22;
  --indigo: #2f3a9e;
  --violet: #6b3fb7;
  --night: #120f33;
  --plum: #2a1d3d;        /* tím than lấy từ hoa sen logo: dùng cho mảng nền lớn thay vì đỏ */
  --plum-deep: #1a1428;
  --ink: #1e1a22;
  --muted: #625c68;
  --cream: #fbf6ee;
  --cream-2: #f5ecdd;
  --line: #eadfcd;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(60, 20, 10, .28);
  --shadow-lg: 0 40px 90px -30px rgba(40, 10, 30, .45);
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 16px; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--red); color: #fff; padding: 10px 18px; border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* ---------- Typo ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1.5px solid var(--red-2); color: var(--red-2); border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.6); margin-bottom: 18px; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.pill--gold { color: var(--gold-2); border-color: rgba(232,193,114,.6); background: rgba(232,193,114,.08); }
.title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; color: var(--red-2); letter-spacing: -.02em; }
.title em, .cta em { font-family: var(--serif); font-style: italic; font-weight: 600; }
.t-gold { color: var(--brown); }
.title--light { color: #fff; }
.title--light .t-gold { color: var(--gold-2); }
.lead { font-size: 17px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
.lead--light { color: rgba(255,255,255,.78); }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--red); --fg: #fff; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 15px; border: 1.5px solid transparent; position: relative; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s, border-color .3s; white-space: nowrap; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic:last-child { transform: translateX(3px); }
.btn--primary { --bg: linear-gradient(120deg, var(--red-2), var(--red)); background: var(--bg); box-shadow: 0 10px 24px -14px var(--red); }
.btn--gold { background: linear-gradient(120deg, #f3d48d, var(--gold) 55%, #a87528); color: #3b1e05; box-shadow: 0 12px 30px -12px rgba(201,151,63,.8); }
.btn--outline { background: transparent; color: var(--red-2); border-color: var(--red-2); }
.btn--outline:hover { background: var(--red-2); color: #fff; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.24); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn__play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--red); margin: -4px 0 -4px -10px; }
.btn__play .ic { width: 12px; height: 12px; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--qas-topbar-bg, var(--plum-deep)); color: var(--qas-topbar-text, rgba(255,255,255,.85)); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar__license, .topbar__links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a:hover { color: var(--gold-2); }
.topbar .ic { color: var(--gold-2); }

/* Header dính: chiều cao trong bố cục KHÔNG đổi (tránh đẩy trang khi cuộn → giật).
   Khi cuộn, chỉ lớp nền (::before) co lại bằng transform, nội dung dịch lên + logo thu nhỏ — tất cả chạy trên GPU. */
.site-header { --hh: 84; --hc: 68; position: sticky; top: 0; z-index: 90; isolation: isolate; }
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; transform-origin: 50% 0;
  background: var(--qas-header-bg, rgba(255,255,255,.86)); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(201,151,63,.18);
  transition: transform .6s var(--ease), background .6s, box-shadow .6s; }
.site-header.is-scrolled::before { transform: scaleY(calc(var(--hc) / var(--hh))); background: var(--qas-header-bg, rgba(255,255,255,.96)); box-shadow: 0 14px 34px -20px rgba(60,20,10,.45); }
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); transition: transform .6s var(--ease); }
.site-header.is-scrolled .site-header__inner { transform: translateY(calc((var(--hc) - var(--hh)) / 2 * 1px)); }
.brand img { height: 54px; width: auto; transform-origin: 0 50%; transition: transform .6s var(--ease); }
.site-header.is-scrolled .brand img { transform: scale(.86); }
.site-header.is-scrolled .scroll-progress { translate: 0 calc((var(--hc) - var(--hh)) * 1px); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; align-items: center; }
.nav__link { white-space: nowrap; position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 500; font-size: 15.5px; color: var(--qas-menu-text, var(--qas-header-text, var(--ink))); transition: color .25s; }
.nav__link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--qas-menu-hover, var(--red-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--qas-menu-hover, var(--red-2)); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.ic--chev { width: 14px; height: 14px; transition: transform .3s; }
.nav__item--drop { position: relative; }
.nav__item--drop:hover .ic--chev, .nav__item--drop:focus-within .ic--chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 620px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; padding: 14px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.mega::before { content: ''; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav__item--drop:hover .mega, .nav__item--drop:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background .25s; }
.mega__item:hover { background: var(--cream); }
.mega__item b { display: block; font-weight: 600; font-size: 15px; }
.mega__item small { color: var(--muted); font-size: 12.5px; }
.mega__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #fbe9d0, #f3d49d); color: var(--brown); flex: none; transition: background .3s, color .3s, transform .3s var(--ease); }
.mega__ic svg { width: 22px; height: 22px; }
.mega__item:hover .mega__ic { background: linear-gradient(135deg, var(--red-2), var(--red)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.mega__feature { position: relative; border-radius: 14px; overflow: hidden; min-height: 240px; display: flex; align-items: end; color: #fff; font-weight: 600; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega__feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(80,10,33,.85)); }
.mega__feature span { position: relative; z-index: 1; padding: 16px; display: flex; gap: 8px; align-items: center; }
.mega__feature:hover img { transform: scale(1.08); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--red); }
.menu-toggle .ic { width: 24px; height: 24px; }
/* Tìm kiếm */
.search-toggle { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(201,151,63,.35); background: #fff; color: var(--red); cursor: pointer; transition: background .3s, color .3s, transform .35s var(--ease); }
.search-toggle .ic { width: 20px; height: 20px; }
.search-toggle:hover { background: var(--red-2); color: #fff; transform: rotate(-8deg) scale(1.05); }
.search-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.search-dlg { width: min(720px, 94vw); max-height: min(80vh, 680px); margin: 10vh auto auto; padding: 0; border: 0; border-radius: 24px; background: #fffdf8; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(40,10,20,.6); overflow: hidden; }
.search-dlg::backdrop { background: rgba(40,8,16,.45); backdrop-filter: blur(6px); }
.search-dlg[open] { animation: searchIn .45s var(--ease); }
@keyframes searchIn { from { opacity: 0; transform: translateY(-16px) scale(.98); } }
.search-dlg__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-dlg__bar > .ic { width: 22px; height: 22px; color: var(--gold); flex: none; }
.search-dlg__bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 18px/1.4 var(--font); color: var(--ink); }
.search-dlg__bar input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-dlg__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink); cursor: pointer; }
.search-dlg__close .ic { width: 18px; height: 18px; }
.search-dlg__body { max-height: calc(min(80vh, 680px) - 72px); overflow-y: auto; padding: 10px 10px 16px; }
.search-dlg__group { margin: 10px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.search-dlg__item { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; }
.search-dlg__item:hover, .search-dlg__item:focus-visible, .search-dlg__item.is-sel { background: rgba(201,151,63,.13); outline: none; }
.search-dlg__item img { width: 64px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; }
.search-dlg__item b { display: block; font-size: 15px; line-height: 1.35; color: var(--ink); }
.search-dlg__item small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.search-dlg__item mark { background: rgba(232,193,114,.55); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-dlg__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 8px; }
.search-dlg__chips a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(201,151,63,.45); font-size: 14px; color: var(--red-2); background: #fff; }
.search-dlg__chips a:hover { background: var(--red-2); color: #fff; }
.search-dlg__empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--red-2), var(--gold)); transform-origin: left; transform: scaleX(0); transition: translate .6s var(--ease); }

.drawer { position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw); background: #fff; z-index: 120; display: flex; flex-direction: column; padding: 20px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .45s var(--ease); }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 36px; width: auto; }
.drawer__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--red); }
.drawer__nav { display: flex; flex-direction: column; padding: 12px 0; overflow: auto; }
.drawer__nav > a, .drawer__nav summary { padding: 14px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--cream-2); display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav details[open] summary .ic { transform: rotate(180deg); }
.drawer__nav details a { display: block; padding: 10px 12px; font-size: 15px; color: var(--muted); border-left: 2px solid var(--gold); margin: 4px 0 4px 6px; }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--red); font-weight: 600; }
.drawer__foot a { display: flex; gap: 8px; align-items: center; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(20,8,12,.5); backdrop-filter: blur(3px); }

/* ---------- Hero ---------- */
.hero__scroll { position: absolute; right: 30px; top: 50%; z-index: 3; width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.75); border-radius: 20px; transform: translateY(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Quick categories */
.quick { position: relative; z-index: 5; margin-top: -46px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.quick__item { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 12px; font-weight: 600; font-size: 15px; position: relative; transition: color .3s, background .3s; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item svg { width: 30px; height: 30px; color: var(--gold); transition: transform .45s var(--ease), color .3s; }
.quick__item::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red-2), var(--gold)); transform: scaleX(0); transition: transform .4s var(--ease); }
.quick__item:hover { color: var(--red-2); background: linear-gradient(180deg, #fff, var(--cream)); }
.quick__item:hover svg { transform: translateY(-4px) rotate(-6deg) scale(1.12); color: var(--red-2); }
.quick__item:hover::after { transform: scaleX(1); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__principle-intro { margin-top: 22px; font-weight: 700; color: var(--brown); }
.principles { margin: 12px 0 30px; display: grid; gap: 10px; counter-reset: p; }
.principles li { counter-increment: p; display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: #3e3842; transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.principles li::before { content: counter(p, decimal-leading-zero); flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); }
.principles li:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: var(--shadow); }
.about__media { position: relative; padding: 0 0 60px 40px; perspective: 1200px; }
.about__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); transform-style: preserve-3d; position: relative; aspect-ratio: 4 / 5; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.about__glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 50%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.about__photo:hover .about__glare { opacity: 1; }
.about__media::before { content: ''; position: absolute; inset: 40px -24px 20px 0; border: 2px solid var(--gold); border-radius: 30px; z-index: -1; }
.about__badge { position: absolute; top: -34px; right: -26px; width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.about__badge img { width: 58px; }
.about__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.about__badge-ring text { font-size: 15px; font-weight: 700; fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__card { position: absolute; left: 0; bottom: 20px; background: linear-gradient(135deg, var(--red-2), var(--red-deep)); color: #fff; border-radius: 18px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; }
.about__card-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold-2); line-height: 1; }

/* ---------- Impact (dark + 3D lotus) ---------- */
.impact { background: radial-gradient(120% 90% at 78% 30%, #3a1f74 0%, #1a1446 45%, var(--night) 100%); color: #fff; overflow: hidden; isolation: isolate; }
.impact::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 10% 100%, rgba(163,22,68,.35), transparent 60%); z-index: -1; }
.impact__lotus { position: absolute; top: 0; right: 0; width: min(58%, 820px); height: 100%; z-index: 0; }
.impact__inner { position: relative; z-index: 1; }
.impact__head { max-width: 640px; min-height: 260px; }
.stats { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { position: relative; padding: 28px 24px 26px; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid rgba(232,193,114,.22); backdrop-filter: blur(8px); overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.stat::after { content: ''; position: absolute; inset: auto 24px 0; height: 2px; background: linear-gradient(90deg, var(--gold-2), transparent); transform-origin: left; transform: scaleX(var(--line, 0)); }
.stat:hover { transform: translateY(-6px); border-color: rgba(232,193,114,.6); }
.stat__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(232,193,114,.14); color: var(--gold-2); margin-bottom: 18px; }
.stat__ic svg { width: 24px; height: 24px; }
.stat__num { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; background: linear-gradient(180deg, #fff1cc, var(--gold-2) 50%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .55em; font-weight: 700; margin-left: 2px; }
.stat__label { margin-top: 10px; text-transform: uppercase; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: rgba(255,255,255,.78); }

/* ---------- Projects horizontal ---------- */
.pcard { position: relative; width: min(440px, 80vw); flex: none; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); transform-style: preserve-3d; transition: box-shadow .4s; display: flex; flex-direction: column; }
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(40,6,12,.7)); }
.pcard__num { position: absolute; top: 18px; left: 22px; z-index: 1; font-family: var(--serif); font-size: 54px; font-weight: 700; color: rgba(255,255,255,.9); line-height: 1; text-shadow: 0 6px 24px rgba(0,0,0,.35); }
.pcard__ic { position: absolute; right: 22px; bottom: -28px; z-index: 2; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red-2), var(--red)); box-shadow: 0 14px 30px -12px var(--red); transition: transform .5s var(--ease); }
.pcard__ic svg { width: 30px; height: 30px; }
.pcard:hover .pcard__ic { transform: rotate(-10deg) scale(1.08); }
.pcard__body { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard__body h3 { font-size: 22px; color: var(--ink); }
.pcard__body p { color: var(--muted); font-size: 15px; }
.pcard__meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; }
.pcard__meta b { color: var(--red-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red-2); font-weight: 600; }
.link-arrow .ic { transition: transform .35s var(--ease); }
a:hover .link-arrow .ic, .link-arrow:hover .ic { transform: translateX(5px); }

/* ---------- Reel ---------- */
.reel { position: relative; height: min(88vh, 760px); min-height: 520px; overflow: hidden; color: #fff; isolation: isolate; background: #170812; }
.reel__stage, .reel-dialog__stage { position: absolute; inset: 0; overflow: hidden; }
.reel__slide { position: absolute; inset: 0; opacity: 0; }
.reel__slide img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,6,14,.85) 0%, rgba(23,6,14,.45) 45%, rgba(23,6,14,.1)), linear-gradient(0deg, rgba(23,6,14,.75), transparent 45%); z-index: 1; }
.reel__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.reel__quote { margin: 0; max-width: 760px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 54px); line-height: 1.22; }
.reel__ui { position: absolute; left: 0; right: 0; bottom: 48px; display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; }
.reel__btn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); transition: background .3s, transform .3s; }
.reel__btn:hover { background: rgba(255,255,255,.25); transform: scale(1.06); }
.reel__bars { display: flex; gap: 8px; }
.reel__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; }
.reel__bars i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), #fff); transform-origin: left; transform: scaleX(0); }
.reel__caption { grid-column: 2; font-size: 15px; color: rgba(255,255,255,.85); min-height: 1.6em; }
.reel-dialog { width: min(1200px, 94vw); aspect-ratio: 16 / 9; max-height: 88vh; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: #000; color: #fff; }
.reel-dialog::backdrop { background: rgba(14,4,10,.82); backdrop-filter: blur(6px); }
.reel-dialog[open] { animation: popIn .5s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } }
.reel-dialog__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; }
.reel-dialog__ui { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 4; display: grid; gap: 10px; }
.reel-dialog__ui .reel__caption { grid-column: auto; font-size: 18px; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.reel-dialog__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent 40%); }
.reel__title-card { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; z-index: 3; pointer-events: none; }
.reel__title-card h3 { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 5vw, 64px); font-weight: 600; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.reel__title-card p { margin-top: 10px; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; color: var(--gold-2); }

/* ---------- News ---------- */
.news { background: #fff; }
.news-home { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.ncard { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; height: 100%; }
.ncard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ncard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.07); }
.ncard__tag { position: absolute; left: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--red-2); font-size: 12.5px; font-weight: 700; }
.ncard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ncard__date { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--brown); font-weight: 600; }
.ncard__body h3 { font-size: 19px; line-height: 1.4; transition: color .3s; }
.ncard:hover h3 { color: var(--red-2); }
.ncard__body p { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__body .link-arrow { margin-top: auto; font-size: 14px; }
.ncard--feature .ncard__media { aspect-ratio: 16 / 11; }
.ncard--feature h3 { font-size: 24px; }
.ncard--row { flex-direction: row; }
.ncard--row .ncard__media { aspect-ratio: auto; width: 42%; flex: none; }
.ncard--row .ncard__body { padding: 18px 20px; }
.ncard--row h3 { font-size: 17px; }
.ncard--row p { -webkit-line-clamp: 2; }
.news-home__list { display: grid; gap: 20px; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 clamp(70px, 8vw, 110px); background: #fff; }
.cta__box { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr auto; gap: 30px; align-items: center; color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(176,30,78,.55) 0%, transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(107,63,183,.35), transparent 70%), linear-gradient(135deg, #34234c 0%, var(--plum) 45%, var(--plum-deep) 100%); box-shadow: var(--shadow-lg); }
.cta__box::before { content: ''; position: absolute; right: -60px; bottom: -120px; width: 420px; height: 420px; background: url(../img/logo-mark.png) center / contain no-repeat; opacity: .07; filter: brightness(10); z-index: -1; }
.cta__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mix-blend-mode: screen; }
.cta__text p:not(.pill) { margin-top: 14px; color: rgba(255,255,255,.82); max-width: 620px; }
.cta__actions { display: grid; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--qas-footer-bg, var(--plum-deep)); color: var(--qas-footer-text, rgba(255,255,255,.75)); padding-top: 70px; font-size: 15px; }
.site-footer__wave { position: absolute; top: -1px; left: 0; right: 0; color: #fff; line-height: 0; }
.site-footer__wave svg { width: 100%; height: 50px; transform: scaleY(-1); }
.page-home .site-footer__wave, .site-footer__wave--cream { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.7fr 1.3fr repeat(var(--footer-cols, 2), minmax(0, .85fr)); gap: 44px; padding: 40px 0 50px; }
/* logo bản trắng (cả biểu tượng sen + tên Quỹ) trên nền tối, có vạch vàng ngăn với dòng tên tiếng Anh */
.site-footer__logo { display: block; width: min(100%, 360px); padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid rgba(232,193,114,.28); transition: opacity .3s; }
.site-footer__logo img { width: 100%; height: auto; aspect-ratio: 840 / 151; }
.site-footer__logo:hover { opacity: .85; }
.site-footer__brand h2 { color: #fff; font-size: 18px; line-height: 1.45; font-weight: 700; }
.site-footer__en { margin-top: 6px; color: var(--gold-2); font-size: 12.5px; letter-spacing: .08em; font-weight: 600; }
.site-footer__license { margin-top: 18px; display: grid; gap: 10px; font-size: 13.5px; }
.site-footer__license li, .site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__license .ic, .site-footer__contact .ic { color: var(--gold-2); margin-top: 3px; }
.site-footer h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.site-footer__contact { display: grid; gap: 14px; }
.site-footer__contact b { color: #fff; font-weight: 600; }
.site-footer__contact a:hover, .site-footer__links a:hover { color: var(--gold-2); }
.site-footer__links { display: grid; gap: 10px; }
.site-footer__links a { transition: color .25s, padding .3s var(--ease); }
.site-footer__links a:hover { padding-left: 6px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--red-2); transform: translateY(-3px); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; }
.to-top:hover { color: var(--gold-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 300; transform: translate(-50%, calc(100% + 60px)); visibility: hidden; padding: 14px 22px; background: var(--ink); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease); max-width: calc(100vw - 40px); }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Loader ---------- */
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--cream); }
.loader svg { width: 96px; height: 96px; color: var(--violet); }
.loader path { stroke: url(#lotusGrad); stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Reveal defaults (JS gỡ khi GSAP chạy) ---------- */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; }
.no-motion [data-reveal], .no-motion [data-stagger] > * { opacity: 1 !important; }

/* ---------- HERO (theo mẫu: chữ trái, ảnh phải, sóng đỏ + lụa vàng, 5 ảnh lĩnh vực) ---------- */
.hero2 { --h2-red: #a31544; --h2-gold: #d4a54a; position: relative; isolation: isolate; overflow: hidden;
  height: clamp(640px, calc(100svh - var(--header-h)), 880px);
  background: radial-gradient(70% 90% at 8% 10%, #fff4d6 0%, rgba(255,240,205,.6) 35%, transparent 70%), linear-gradient(180deg, #fbf3e4, #f8ead3); }
.hero2__photo { position: absolute; top: 0; right: 0; width: 64%; height: 100%; z-index: -2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 34%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 34%); }
.hero2__par { position: absolute; inset: -3% -2% -6%; will-change: transform; }          /* lớp parallax khi cuộn (GSAP) */
.hero2__slides { position: absolute; inset: 0; will-change: transform; }                  /* lớp lệch theo chuột (GSAP) */
.hero2__slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; }
.hero2__slide.is-on { opacity: 1; visibility: visible; }
.hero2__slide img { position: absolute; left: 0; top: var(--top, 0); width: 100%; height: var(--h, 100%); object-fit: cover; object-position: var(--pos, 60% 0); transform-origin: 65% 35%; }
.hero2__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 55% at 30% 18%, rgba(255,236,190,.75), transparent 70%); mix-blend-mode: screen; }
.hero2__wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.hero2__lotus { position: absolute; left: clamp(12px, 1.6vw, 28px); bottom: 40px; width: clamp(84px, 7.2vw, 112px); height: auto; aspect-ratio: 1230 / 960; z-index: 1; pointer-events: none; filter: drop-shadow(0 2px 10px rgba(255,210,140,.25)); }
.hero2__fx { position: absolute; left: 0; bottom: 0; width: 100%; height: 55%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }

.hero2__inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: flex-start; padding-top: clamp(36px, 6.5vh, 76px); }
.hero2__text { max-width: 640px; }
.hero2__tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 20px 8px 14px; border-radius: 999px;
  font-size: clamp(14px, 1.15vw, 17px); font-weight: 600; font-style: italic; color: var(--h2-red);
  background: linear-gradient(90deg, rgba(255,231,180,.9), rgba(255,244,220,.75)); border: 1px solid rgba(212,165,74,.5); box-shadow: 0 10px 26px -16px rgba(163,21,68,.45); }
.hero2__tag svg { width: 20px; height: 20px; }
.hero2__title { margin: 0; line-height: 1; }
.hero2__t1 { position: relative; display: inline-block; font-size: clamp(46px, 6vw, 96px); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(180deg, #d71c5a, #90133c 70%, #6f0e2e); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 14px rgba(124,16,52,.18)); padding-right: .1em; }
.hero2__doodle { position: absolute; left: 100%; top: -.12em; width: .95em; height: auto; margin-left: .12em; overflow: visible; }
.hero2__t2 { display: block; margin-top: -.02em; margin-left: -.08em; font-family: 'Dancing Script', cursive; font-weight: 700; font-size: clamp(40px, 4.7vw, 78px); line-height: 1.12; white-space: nowrap;
  background: linear-gradient(100deg, #f1cf7f 0%, #d4a54a 35%, #b17924 62%, #e8c172 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 8px rgba(156,107,34,.25)); padding: 0 .12em .06em; }
.hero2__swash { display: block; width: min(420px, 70%); height: 20px; margin: 2px 0 0 18%; overflow: visible; }
.hero2__lead { margin: 18px 0 0; max-width: 540px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: #4e3c33; }
.hero2__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero2__btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 700 16px/1 var(--font); cursor: pointer; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, background .3s, color .3s; }
.hero2__btn svg { width: 18px; height: 18px; transition: transform .3s; }
.hero2__btn--primary { color: #fff; background: linear-gradient(120deg, #d6235e, var(--h2-red) 50%, #710f2f); border: 0; box-shadow: 0 16px 30px -14px rgba(113,15,47,.75), inset 0 1px 0 rgba(255,255,255,.25); }
.hero2__btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 36px -14px rgba(113,15,47,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.hero2__btn--primary:hover svg { transform: translateX(4px); }
.hero2__btn--ghost { color: #7e1135; background: rgba(255,255,255,.55); border: 1.5px solid rgba(163,21,68,.45); backdrop-filter: blur(6px); }
.hero2__btn--ghost:hover { background: #fff; transform: translateY(-3px); }
.hero2__play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid currentColor; }
.hero2__play svg { width: 13px; height: 13px; margin-left: 2px; }
.hero2__btn:focus-visible { outline: 2px solid var(--h2-gold); outline-offset: 4px; }
.hero2__stats { display: flex; flex-wrap: nowrap; gap: 0; margin: clamp(26px, 4.5vh, 46px) 0 0; padding: 0; list-style: none; }
.hero2__stats li { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-left: 1px solid rgba(156,107,34,.3); }
.hero2__stats li:first-child { padding-left: 0; border-left: 0; }
.hero2__stats li > svg { width: 34px; height: 34px; color: #b0782a; flex: none; }
.hero2__stats b { display: block; font-size: clamp(20px, 1.9vw, 28px); font-weight: 800; line-height: 1.1; color: var(--h2-red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero2__stats small { display: block; margin-top: 4px; font-size: 13.5px; color: #5b463a; }

/* Bộ 5 ảnh lĩnh vực + trái tim lụa vàng (nằm trên dải sóng) */
.hero2__deck { position: absolute; z-index: 4; right: max(2.5vw, calc((100vw - 1440px) / 2 + 20px)); bottom: clamp(48px, 9vh, 90px); width: min(56vw, 820px); height: clamp(170px, 26vh, 250px); pointer-events: none; }
.hero2__heart { position: absolute; left: -6%; bottom: -6%; width: 22%; height: auto; overflow: visible; filter: drop-shadow(0 6px 16px rgba(120,60,0,.35)); }
.hero2__thumbs { position: absolute; right: 0; bottom: 0; width: 82%; height: 100%; margin: 0; padding: 0; list-style: none; display: flex; align-items: flex-end; justify-content: flex-end; perspective: 1200px; }
.hero2__thumb { --y: calc((var(--i) - 2) * -11%); --r: calc((var(--i) - 2) * 2.4deg); position: relative; flex: 0 0 22%; margin-left: -2.6%; pointer-events: auto; transform: translateY(var(--y)) rotate(var(--r)); z-index: calc(10 - var(--i)); }
.hero2__thumb:hover, .hero2__thumb:focus-within { z-index: 20; }
.hero2__thumb a { display: block; border-radius: 16px; outline: none; }
.hero2__thumb-card { position: relative; display: block; aspect-ratio: 4 / 3.3; border-radius: 16px; overflow: hidden; background: #fff; padding: 5px;
  box-shadow: 0 18px 34px -14px rgba(62,8,26,.6), 0 0 0 1px rgba(212,165,74,.55); transform: rotateY(-14deg); transform-origin: 50% 100%;
  transition: transform .6s var(--ease), box-shadow .5s; }
.hero2__thumb-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; transition: transform 1s var(--ease); }
.hero2__thumb-label { position: absolute; left: 5px; right: 5px; bottom: 5px; padding: 18px 10px 8px; border-radius: 0 0 12px 12px; font-size: 13px; font-weight: 700; color: #fff; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(97,13,41,.85)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.hero2__thumb a:hover .hero2__thumb-card, .hero2__thumb a:focus-visible .hero2__thumb-card { transform: rotateY(0) translateY(-14px) scale(1.08); box-shadow: 0 28px 44px -16px rgba(62,8,26,.7), 0 0 0 2px #f3d48d, 0 0 26px rgba(243,212,141,.6); }
.hero2__thumb a:hover img { transform: scale(1.08); }
.hero2__thumb a:hover .hero2__thumb-label, .hero2__thumb a:focus-visible .hero2__thumb-label { opacity: 1; transform: none; }
.hero2 .hero__scroll { border-color: rgba(163,21,68,.5); top: 42%; }
.hero2 .hero__scroll span { background: #a31544; }

@media (max-width: 1180px) {
  .hero2__photo { width: 62%; }
  .hero2__slide:first-child img { object-position: 66% 0; }
  .hero2__text { max-width: 500px; }
  .hero2__lead { max-width: 430px; }
  .hero2__stats li { padding: 0 16px; }
  .hero2__deck { width: 60vw; }
}
@media (max-width: 900px) { /* xếp dọc: ảnh trên, chữ dưới */
  .hero2 { height: auto; display: flex; flex-direction: column; }
  .hero2__photo { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3.1; -webkit-mask-image: none; mask-image: none; }
  .hero2__slide img { object-position: var(--pos-m, 72% 0); }
  .hero2__slide:first-child img { object-position: 44% 0; }
  .hero2__par { inset: 0; }
  .hero2__wave { inset: auto; top: 0; left: 0; height: auto; aspect-ratio: 4 / 3.1; }
  .hero2__glow, .hero2__lotus, .hero2__heart, .hero__scroll { display: none; }
  .hero2__fx { top: 0; bottom: auto; height: 0; padding-bottom: 77.5%; }
  .hero2__deck { position: relative; order: 1; right: auto; bottom: auto; width: 100%; height: auto; margin-top: -22vw; padding: 0 12px; }
  .hero2__thumbs { position: relative; width: 100%; height: auto; justify-content: center; perspective: 800px; }
  .hero2__thumb { flex: 0 0 19.5%; margin-left: -1.5%; --y: calc((var(--i) - 2) * -6%); }
  .hero2__thumb:first-child { margin-left: 0; }
  .hero2__thumb-card { padding: 3px; border-radius: 10px; transform: rotateY(-8deg); }
  .hero2__thumb-card img { border-radius: 8px; }
  .hero2__thumb-label { display: none; }
  .hero2__inner { order: 2; height: auto; padding: 44px 20px 48px; justify-content: center; text-align: center; }
  .hero2__text { margin-inline: auto; }
  .hero2__tag { margin-bottom: 20px; }
  .hero2__t1 { padding-right: 0; }
  .hero2__t2 { white-space: normal; margin-left: 0; }
  .hero2__swash { margin: 4px auto 0; }
  .hero2__lead { margin-inline: auto; }
  .hero2__actions { justify-content: center; }
  /* số liệu: thẻ 3 cột cân nhau, icon trên – số – nhãn, căn giữa */
  .hero2__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px auto 0; max-width: 520px; padding: 18px 6px; border-radius: 22px;
    background: rgba(255,255,255,.72); border: 1px solid rgba(212,165,74,.4); box-shadow: 0 18px 40px -26px rgba(110,20,50,.45); backdrop-filter: blur(6px); }
  .hero2__stats li { flex-direction: column; justify-content: flex-start; align-items: center; gap: 6px; padding: 0 6px; text-align: center; border-left: 1px solid rgba(156,107,34,.22); }
  .hero2__stats li:first-child { padding-left: 6px; border-left: 0; }
  .hero2__stats li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: linear-gradient(135deg, #fff4dc, #f6e2b8); color: #a8701f; }
  .hero2__stats b { font-size: 20px; }
  .hero2__stats small { margin-top: 3px; font-size: 12px; line-height: 1.35; text-wrap: balance; }
}
@media (max-width: 520px) {
  .hero2__actions .hero2__btn { flex: 1 1 100%; }
  .hero2__stats b { font-size: 18px; }
  .hero2__doodle { width: .8em; }
}
@media (max-width: 760px) { .quick { display: none; } } /* mobile: bỏ thanh lối tắt */

/* ---------- Page hero (trang con) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(80px, 11vw, 140px) 0 clamp(70px, 9vw, 110px); background: var(--red-deep); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 120%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(87,11,36,.92) 0%, rgba(109,14,45,.7) 50%, rgba(109,14,45,.25)), linear-gradient(0deg, rgba(40,4,12,.5), transparent 50%); }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; mix-blend-mode: screen; pointer-events: none; }
.page-hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; }
.page-hero h1 em { font-family: var(--serif); font-weight: 600; color: var(--gold-2); }
.page-hero p.page-hero__lead { margin-top: 18px; max-width: 640px; font-size: 17px; color: rgba(255,255,255,.82); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span[aria-current] { color: var(--gold-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .nav__link { padding: 10px 10px; }
}
@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .site-header { --hh: 72; --hc: 60; }
  .nav { display: none; }
  .menu-toggle { display: grid; place-items: center; margin-left: -10px; width: 44px; height: 44px; } /* gap 20 - 10 = 10px giữa nút tìm và menu */
  .search-toggle { border-radius: 12px; border-color: var(--line); }
  .search-toggle { margin-left: auto; }
  /* logo co theo chỗ trống nhưng luôn giữ đúng tỉ lệ (trước đây height cố định + max-width:100% → bị bóp méo) */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img { width: 250px; max-width: 100%; height: auto; aspect-ratio: 1024 / 190; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; } /* xếp dọc: ảnh lên trên */
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .impact__lotus { width: 100%; opacity: .55; }
  .news-home { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__box { grid-template-columns: 1fr; }
  .cta__actions { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 760px) {
  .topbar__license { display: none; }
  .topbar__links { justify-content: space-between; width: 100%; gap: 10px; font-size: 12.5px; }
  .hero__scroll { display: none; }
  .quick { grid-template-columns: repeat(5, minmax(108px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-top: -50px; width: calc(100% - 28px); }
  .quick__item { flex-direction: column; gap: 6px; padding: 16px 8px; font-size: 13px; text-align: center; scroll-snap-align: start; }
  .about__media { padding: 0 0 50px 16px; }
  .about__badge { width: 112px; height: 112px; right: -6px; top: -26px; }
  .about__badge-ring text { font-size: 15px; }
  .about__badge img { width: 44px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 16px; }
  .stat__ic { width: 38px; height: 38px; margin-bottom: 12px; }
  .stat__label { font-size: 11.5px; }
  .ncard--row { flex-direction: column; }
  .ncard--row .ncard__media { width: 100%; aspect-ratio: 16 / 10; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cta__actions { grid-auto-flow: row; }
  .reel__ui { bottom: 28px; }
  .reel__shade { background: linear-gradient(0deg, rgba(23,6,14,.9), rgba(23,6,14,.35)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 760px) { .about__media::before { right: -6px; } }
@media (max-width: 1280px) and (min-width: 1025px) { .site-header__inner { gap: 12px; } .nav__link { padding: 10px 9px; font-size: 15px; } }
.search-dlg__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 10px 0; padding: 12px; border-radius: 14px; background: var(--cream-2); font-weight: 700; color: var(--red-2); } .search-dlg__all .ic { width: 16px; height: 16px; } .search-dlg__all:hover { background: var(--red-2); color: #fff; }

/* Header mobile: logo bên trái, cụm nút tìm kiếm + menu gọn bên phải, cùng kích thước & kiểu */
@media (max-width: 760px) {
  .site-header__inner { gap: 12px; }
  .search-toggle, .menu-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(201,151,63,.32); background: #fff; color: var(--red); box-shadow: 0 6px 14px -10px rgba(60,20,10,.35); }
  .search-toggle { margin-left: auto; }
  .menu-toggle { margin-left: -4px; } /* gap 12 - 4 = 8px giữa hai nút */
  .search-toggle .ic { width: 19px; height: 19px; }
  .menu-toggle .ic { width: 22px; height: 22px; }
}
@media (max-width: 359px) {
  .site-header__inner { gap: 10px; }
  .search-toggle, .menu-toggle { width: 38px; height: 38px; }
}

/* ===== Bổ sung cho bản CMS (Themes/QuyAnSinh) ===== */
[hidden] { display: none !important; }
/* [qas-about]...[/qas-about]: nội dung HTML từ trình soạn thảo */
.about__body { margin-bottom: 30px; }
.about__body > p { font-size: 17px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
.about__body > ul:not(.principles) { margin: 12px 0 0 20px; list-style: disc; color: var(--muted); line-height: 1.8; }

/* Màu từ Cấu hình → Màu sắc (biến --qas-* do layout in ra; xem QasData::colorCss) */
.site-header .search-toggle, .site-header .menu-toggle { color: var(--qas-header-text, var(--red)); }
.site-footer__bottom-wrap { background: var(--qas-copyright-bg, transparent); color: var(--qas-copyright-text, inherit); }
.site-footer__bottom-wrap a { color: inherit; }
.topbar__license > span { display: inline; }
.topbar__license p { margin: 0; display: inline; }
/* Kích thước logo từ Cấu hình (QasData::logoCss): --qas-logo-w/-h (desktop), --qas-logo-mw (≤ 1024px), --qas-logo-fw (footer).
   Không đặt thì giữ thiết kế: cao 54px / rộng 250px / rộng 360px. */
.brand picture { display: block; }
@media (min-width: 1025px) { .brand img { width: var(--qas-logo-w, auto); height: var(--qas-logo-h, 54px); } }
@media (max-width: 1024px) { .brand img { width: var(--qas-logo-mw, 250px); height: auto; } }
.site-footer__logo { width: min(100%, var(--qas-logo-fw, 360px)); }
.site-footer__logo img { aspect-ratio: auto; }
