/* =========================================================
   SEAEDI – giao dien website v2 (mobile-first)
   Mau thuong hieu: do do (--brand) + vang (--accent)
   ========================================================= */
:root {
  --brand: #8b2216;
  --accent: #e6a303;
  --brand-700: #6f1a10;
  --brand-900: #3a0c07;
  --brand-950: #240805;
  --gold-soft: #f7e7bf;
  --ink: #241a17;
  --ink-2: #4a3f3b;
  --muted: #6f6461;
  --line: #ece2d9;
  --ivory: #fbf7f1;
  --sand: #f4ece2;
  --white: #fff;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(58, 12, 7, .06);
  --shadow: 0 12px 32px -12px rgba(58, 12, 7, .22);
  --shadow-lg: 0 30px 60px -24px rgba(58, 12, 7, .35);
  --hdr: 64px;
  --bar: 64px;
  --gutter: 16px;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink-2); background: var(--white);
  overflow-x: hidden; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Typography ---------- */
.h2, .hero__title, .pg__title, .pcard__title, .cta-band__title, .grp__title, .side-card__title, .cform__title, .ftr__h, .sign__name, .nav__list a { word-spacing: .06em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: var(--accent); }
.center .eyebrow { justify-content: center; }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6.4vw, 46px); letter-spacing: -.015em; line-height: 1.12; color: var(--brand-900); margin: 0; font-variation-settings: "opsz" 96; }
.h2--narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.prose { color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 600; color: var(--brand-900); margin: 1.4em 0 .5em; }
.prose img { border-radius: var(--r); margin: 20px 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.15em; color: var(--brand-900); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r); }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 15.5px; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px rgba(139, 34, 22, .8); }
.btn--brand:hover { background: var(--brand-700); }
.btn--accent { background: var(--accent); color: #2a1600; box-shadow: 0 8px 22px -10px rgba(230, 163, 3, .9); }
.btn--accent:hover { background: #f1b318; }
.btn--line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--line:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--dark-line { border-color: var(--brand-900); color: var(--brand-900); }
.btn--dark-line:hover { background: var(--brand-900); color: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--ivory); color: var(--brand); border: 1px solid var(--line); line-height: 1.3;
}
.chip .ic { width: 14px; height: 14px; }
.chip--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }

/* ---------- Utility bar (desktop) ---------- */
.util { display: none; background: var(--brand-950); color: rgba(255, 255, 255, .72); font-size: 13px; }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 38px; }
.util__right { display: flex; gap: 22px; }
.util__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.util__item .ic { color: var(--accent); width: 15px; height: 15px; }
a.util__item:hover { color: #fff; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(58, 12, 7, .18); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--hdr); }
.logo { display: flex; align-items: center; margin-right: auto; }
.logo img { height: 28px; width: auto; }
.logo strong { font-family: var(--serif); color: var(--brand); font-size: 22px; }
.hdr__acts { display: flex; align-items: center; gap: 8px; }
.hdr__cta { display: none; }
.hdr__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ivory); color: var(--brand); }
.hdr__icon .ic { width: 22px; height: 22px; }
.burger { background: var(--brand); color: #fff; }

/* Drawer (mobile) */
.nav {
  position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px); z-index: 60; display: flex; flex-direction: column;
  background: radial-gradient(600px 400px at 100% 0, rgba(230, 163, 3, .16), transparent 60%), linear-gradient(170deg, var(--brand) 0%, var(--brand-900) 85%);
  color: #fff; overflow-y: auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
  clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .4s var(--ease), visibility .4s;
}
.nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.nav__head { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); padding: 0 12px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nav__brand { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.nav__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.nav__close .ic { width: 22px; height: 22px; }
.nav__list { list-style: none; margin: 0; padding: 16px 0; }
.nav__list a { display: flex; align-items: baseline; gap: 14px; padding: 13px 24px; color: #fff; font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.25; }
.nav__list a:hover, .nav__list a.is-active { color: var(--accent); }
.nav__num { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em; min-width: 20px; }
.nav__foot { margin-top: auto; padding: 20px 24px 0; display: grid; gap: 14px; }
.nav__mail { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .85); font-size: 14.5px; word-break: break-all; }
.nav-overlay { position: fixed; inset: 0; background: rgba(36, 8, 5, .5); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ivory); padding-top: 40px; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0 0 auto 0; height: calc(100% - 70px); z-index: -1;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(230, 163, 3, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(165deg, var(--brand) 0%, var(--brand-700) 45%, var(--brand-900) 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: linear-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .9) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero__grid { display: grid; gap: 18px; padding-bottom: 32px; }
.hero__title { font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(36px, 9vw, 70px); line-height: 1.06; letter-spacing: -.022em; margin: 0; font-variation-settings: "opsz" 144; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero__lead { color: rgba(255, 255, 255, .84); font-size: 17px; margin: 0 0 22px; max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__cta .btn { flex: 1 1 auto; padding: 0 18px; }
@media (min-width: 480px) { .hero__cta .btn { flex: 0 0 auto; padding: 0 24px; } }
.hero__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--brand-900); }
/* Dien thoai: banner tran het chieu ngang de anh lon nhat co the */
@media (max-width: 639px) {
  .hero__media-wrap { padding: 0; }
  .hero__media { border-radius: 0; box-shadow: 0 20px 40px -24px rgba(58, 12, 7, .45); }
}

/* Slider */
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; overflow: hidden; aspect-ratio: var(--ratio-m, var(--ratio, 3)); background: var(--brand-900); cursor: zoom-in; }
.slide:not([data-lb]) { cursor: pointer; }
@media (min-width: 641px) { .slide { aspect-ratio: var(--ratio, 3); } }
/* Nen mo lap khoang trong khi anh khac ti le khung - anh chinh luon hien tron ven */
.slide__fill { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.1) brightness(.7); transform: translateZ(0); }
.slide picture { position: absolute; inset: 0; display: block; }
.slide__img { width: 100%; height: 100%; object-fit: contain; }
.slider__ui { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; }
.slider__cap { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); font-weight: 500; }
.slider__zoom { margin-left: auto; }
.slider__cap:not([hidden]) + .slider__zoom { margin-left: 0; }
.slider__dots { display: flex; gap: 2px; flex: none; }
.slider__dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; }
.slider__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #dccfc6; transition: width .3s var(--ease), background .3s; }
.slider__dots button[aria-current="true"]::before { width: 24px; background: var(--brand); }
.slider__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.slider__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.slider__btn .ic { width: 22px; height: 22px; }

/* ---------- Stats ---------- */
.stats { background: var(--ivory); padding: 28px 0 8px; }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stats__list li { background: var(--ivory); padding: 18px 16px; display: grid; gap: 2px; }
.stats__list strong { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; color: var(--brand); letter-spacing: -.01em; }
.stats__list span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Sections ---------- */
.sec { padding: 64px 0; }
.sec--ivory { background: var(--ivory); }
.sec--dark { background: linear-gradient(180deg, var(--brand-900), var(--brand-950)); color: rgba(255, 255, 255, .78); }
.sec--dark .h2 { color: #fff; }
.sec__head { margin-bottom: 32px; }
.sec__head--split { display: grid; gap: 14px; }
.sec__lead { color: var(--muted); font-size: 16.5px; max-width: 520px; margin: 0; }
.sec--dark .sec__lead { color: rgba(255, 255, 255, .7); }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 40px; }
.about__photo { position: relative; margin: 0 14px 14px 0; }
.about__photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: var(--r-lg); background: var(--accent); z-index: -1; }
.about__photo img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about { isolation: isolate; }
.about__quote { display: block; color: var(--accent); margin: 0 0 4px -4px; }
.about__quote .ic { width: 52px; height: 52px; }
.about__text { font-size: 17px; }
.about__text p:first-child { font-family: var(--serif); font-size: clamp(21px, 4.4vw, 26px); line-height: 1.4; color: var(--brand-900); font-weight: 500; }
.sign { display: grid; gap: 2px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.sign__name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brand); }
.sign__role { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }

/* ---------- Timeline (vuot ngang) ---------- */
.tl {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: rgba(230, 163, 3, .6) transparent;
  padding: 8px 0 24px; scroll-padding-left: var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tl.is-end { -webkit-mask-image: none; mask-image: none; }
.tl::-webkit-scrollbar { height: 6px; }
.tl::-webkit-scrollbar-thumb { background: rgba(230, 163, 3, .55); border-radius: 6px; }
.tl__track { position: relative; list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; width: max-content; min-width: 100%; }
.tl__track::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 8px; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(230, 163, 3, .25)); }
.tl__item { position: relative; flex: 0 0 min(76vw, 280px); padding: 36px 28px 0 0; scroll-snap-align: start; }
.tl__dot { position: absolute; top: 2px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--brand-900); border: 2px solid var(--accent); box-shadow: 0 0 0 5px rgba(230, 163, 3, .15); }
.tl__year { display: block; font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; color: var(--accent); letter-spacing: -.02em; margin-bottom: 8px; }
.tl__date { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 10px; }
.tl__title { color: #fff; font-size: 18px; margin: 0 0 6px; }
.tl__item p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 15.5px; line-height: 1.6; }
.tl__item img { margin-top: 14px; border-radius: var(--r-sm); }
.tl__item--end .tl__dot { background: var(--accent); }
.tl__item--end p { color: rgba(255, 255, 255, .55); font-style: italic; }
.tline__img { width: 100%; max-width: 820px; margin: 36px auto 0; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); border: 6px solid rgba(255, 255, 255, .06); }

/* ---------- Program cards ---------- */
.pgrid { display: grid; gap: 20px; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: var(--ink-2); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(36, 8, 5, .35)); pointer-events: none; }
.pcard__num { position: absolute; top: 14px; left: 14px; z-index: 1; font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--brand-900); background: rgba(255, 255, 255, .92); padding: 4px 12px; border-radius: 999px; }
.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 22px; flex: 1; }
.pcard__title { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--brand-900); letter-spacing: -.01em; }
.pcard__text { font-size: 15px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pcard__go { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--brand); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.pcard__go .ic { width: 20px; height: 20px; }
.pcard:hover .pcard__go { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(45deg); }

/* ---------- Partners ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.logos a, .logos span { display: flex; align-items: center; justify-content: center; height: 96px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.logos a:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.logos img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(600px 300px at 100% 0, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(120deg, #e6a303, #f2bb35); color: var(--brand-900); padding: 44px 0; }
.cta-band__in { display: grid; gap: 22px; }
.cta-band__title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; color: var(--brand-900); margin: 0 0 8px; letter-spacing: -.015em; }
.cta-band__title em { font-style: italic; font-weight: 500; color: var(--brand); }
.cta-band p { margin: 0; color: rgba(58, 12, 7, .8); font-size: 16.5px; max-width: 560px; }
.cta-band__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact ---------- */
.contact__card { display: grid; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.contact__info { position: relative; padding: 32px 24px; color: rgba(255, 255, 255, .8); background: radial-gradient(500px 300px at 0 100%, rgba(230, 163, 3, .2), transparent 60%), linear-gradient(160deg, var(--brand), var(--brand-900)); }
.contact__info .h2 { color: #fff; font-size: clamp(28px, 5vw, 38px); }
.contact__intro { margin: 12px 0 0; }
.clist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.clist li { display: flex; gap: 14px; align-items: flex-start; }
.clist__ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.clist li > span:last-child { display: grid; gap: 2px; min-width: 0; line-height: 1.5; }
.clist small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-weight: 600; }
.clist a { color: #fff; word-break: break-word; }
.clist a:hover { color: var(--accent); }
.cform { padding: 28px 20px; display: grid; gap: 16px; align-content: start; }
.cform__title { font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--brand-900); margin: 0; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field b { color: var(--brand); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: 13px 16px; min-height: 52px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--ivory); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #a99d97; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(139, 34, 22, .12); }
.field .is-invalid { border-color: #c62828; background: #fff6f5; }
.field-row { display: grid; gap: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cform__msg { margin: 0; padding: 13px 16px; border-radius: 12px; background: #e9f6ec; color: #1b5e20; font-weight: 500; font-size: 15px; }
.cform__msg.is-error { background: #fdecea; color: #b71c1c; }
.cform button[disabled] { opacity: .7; cursor: progress; }
.map { margin-top: 24px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--sand); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; filter: saturate(.85); }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-950); color: rgba(255, 255, 255, .66); padding: 56px 0 0; font-size: 15px; }
.ftr a { color: rgba(255, 255, 255, .85); }
.ftr a:hover { color: var(--accent); }
.ftr__grid { display: grid; gap: 36px; }
.ftr__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.ftr__logo img { height: 26px; width: auto; }
.ftr__brand p { max-width: 320px; font-family: var(--serif); font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: #2a1600; }
.ftr__h { font-family: var(--serif); font-weight: 600; font-size: 18px; color: #fff; margin: 0 0 16px; }
.ftr__links, .ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr__list li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__list .ic { margin-top: 4px; color: var(--accent); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.ftr__top { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Mobile action bar ---------- */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -10px rgba(58, 12, 7, .15);
}
.actionbar a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 48px; border-radius: 14px; color: var(--brand-900); font-size: 14px; font-weight: 600; background: var(--ivory); }
.actionbar .ic { width: 19px; height: 19px; color: var(--brand); }
.actionbar a.is-primary { background: var(--brand); color: #fff; }
.actionbar a.is-primary .ic { color: var(--accent); }

/* ---------- Program page ---------- */
.pg__hero { position: relative; overflow: hidden; background: var(--brand-900); color: #fff; padding: 28px 0 40px; isolation: isolate; }
.pg__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; z-index: -2; filter: saturate(.6); }
.pg__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 100% 0, rgba(230, 163, 3, .2), transparent 60%), linear-gradient(180deg, rgba(58, 12, 7, .55), rgba(36, 8, 5, .95)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 18px; color: rgba(255, 255, 255, .55); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: var(--accent); }
.pg__title { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 7.5vw, 58px); line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0 0 14px; max-width: 900px; font-variation-settings: "opsz" 144; }
.pg__lead { margin: 0 0 18px; color: rgba(255, 255, 255, .84); font-size: 17px; max-width: 720px; }
.pg__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.toc { position: sticky; top: var(--hdr); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.toc__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.toc__chips::-webkit-scrollbar { display: none; }
.toc__chips a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.toc__chips a span { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.toc__chips a:hover, .toc__chips a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toc__chips a:hover span, .toc__chips a.is-active span { color: var(--accent); }

.pg__layout { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
.pg__main { min-width: 0; }
.pg__cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 28px; box-shadow: var(--shadow); }
.pg__content { font-size: 17px; margin-bottom: 32px; }
.feature { position: relative; display: block; width: 100%; margin: 0 0 32px; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.feature:hover img { opacity: 1; transform: scale(1.03); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 36px; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--3 a:first-child { grid-column: 1 / -1; }
.gallery a { position: relative; display: block; border-radius: var(--r); overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery--3 a:first-child img { aspect-ratio: 16 / 9; }
.gallery a:hover img { transform: scale(1.04); }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 13px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); }

.grp { padding: 32px 0; border-top: 1px solid var(--line); }
.pg__main > .grp:first-child { border-top: 0; padding-top: 0; }
.grp__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.grp__num { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--brand); background: #fff; }
.grp__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 4.6vw, 28px); color: var(--brand-900); margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.grp__count { font-size: 13px; color: var(--muted); font-weight: 500; }
.grp__desc { color: var(--muted); }
.vgrid { display: grid; gap: 22px 16px; grid-template-columns: 1fr; }
.vcard { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.vcard__thumb { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: #1a0503; aspect-ratio: 16 / 9; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(36, 8, 5, .45)); transition: opacity .3s; }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
.vcard__play { position: absolute; z-index: 1; left: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), background .3s, color .3s; }
.vcard__play .ic { width: 22px; height: 22px; margin-left: 2px; }
.vcard:hover .vcard__play, .feature:hover .vcard__play { transform: scale(1.1); background: var(--accent); color: #2a1600; }
.vcard__play--lg { left: 50%; top: 50%; bottom: auto; width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vcard__play--lg .ic { width: 34px; height: 34px; }
.vcard__title { font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--ink); }
.vcard:hover .vcard__title { color: var(--brand); }
.topics { margin-top: 24px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.topics__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brand); margin: 0 0 12px; }
.topics ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 24px; }
.topics li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.topics .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--accent); color: #fff; }

.side-card { border-radius: var(--r-lg); padding: 28px 24px; color: rgba(255, 255, 255, .8); background: radial-gradient(400px 260px at 100% 0, rgba(230, 163, 3, .22), transparent 60%), linear-gradient(160deg, var(--brand), var(--brand-900)); box-shadow: var(--shadow-lg); }
.side-card__title { font-family: var(--serif); font-weight: 600; font-size: 26px; color: #fff; line-height: 1.2; margin: 0 0 10px; }
.side-card p { margin: 0 0 20px; }
.side-card__link { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff; font-weight: 500; word-break: break-all; }
.side-card__link .ic { color: var(--accent); }
.side-card__link:hover { color: var(--accent); }
.notfound { padding: 48px 0; display: grid; justify-items: center; gap: 16px; }

/* ---------- Video player + lightbox ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(20, 4, 2, .92); }
.player, .lightbox { width: 100%; height: 100%; }
.player[open], .lightbox[open] { display: flex; align-items: center; justify-content: center; }
.player__box { position: relative; width: min(100%, 1040px); padding: 0 12px; }
.player__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__title { color: #fff; margin: 14px 0 0; font-family: var(--serif); font-size: 19px; }
.player__close, .lightbox__close { position: absolute; top: -56px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.player__close:hover, .lightbox__close:hover { background: var(--accent); color: #2a1600; }
.player__close .ic, .lightbox__close .ic { width: 22px; height: 22px; }
.lightbox[open] { flex-direction: column; gap: 14px; }
.lightbox__stage { max-width: calc(100% - 24px); max-height: calc(100% - 130px); overflow: auto; border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lightbox__stage img { display: block; max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); cursor: zoom-in; }
/* Che do phong to: anh hien kich thuoc that, vuot/keo de xem chi tiet */
.lightbox__stage.is-zoom img { max-width: none; max-height: none; width: auto; height: min(78vh, var(--nh, 600px)); cursor: zoom-out; }
.lightbox__hint { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; text-align: center; padding: 0 16px; }
.lightbox__close { top: max(14px, env(safe-area-inset-top)); }
.lightbox__nav { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.lightbox__nav .ic { width: 28px; height: 28px; }
.lightbox__nav.is-prev { left: 10px; }
.lightbox__nav.is-next { right: 10px; }
.lightbox.is-zoomed .lightbox__nav { display: none; }
/* Dien thoai: nut chuyen anh nam duoi anh, khong de len anh */
@media (max-width: 767px) {
  .lightbox__nav { top: auto; margin-top: 0; bottom: max(18px, env(safe-area-inset-bottom)); }
  .lightbox__nav.is-prev { left: calc(50% - 64px); }
  .lightbox__nav.is-next { right: calc(50% - 64px); }
  .lightbox[open] { padding-bottom: 60px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =================== >= 480px =================== */
@media (min-width: 480px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* =================== >= 640px =================== */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hdr__cta { display: inline-flex; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pgrid--1 { grid-template-columns: 1fr; }
  .stats__list li { padding: 22px 24px; }
  .topics ul { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery--1 { grid-template-columns: 1fr; }
  .gallery--2 { grid-template-columns: 1fr 1fr; }
  .gallery--3 a:first-child { grid-column: auto; }
  .gallery--3 a:first-child img { aspect-ratio: 4 / 3; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .cform { padding: 36px 32px; }
  .contact__info { padding: 40px 32px; }
}

/* =================== >= 768px =================== */
@media (min-width: 768px) {
  .sec { padding: 96px 0; }
  .hero { padding-top: 64px; }
  .hero__bg { height: calc(100% - 110px); }
  .hero__lead { font-size: 18px; }
  .stats { padding-top: 40px; }
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stats__list strong { font-size: 40px; }
  .sec__head { margin-bottom: 48px; }
  .sec__head--split { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .sec__head--split .sec__lead { max-width: 420px; }
  .about__grid { grid-template-columns: 5fr 6fr; gap: 72px; align-items: center; }
  .logos { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .logos a, .logos span { height: 116px; }
  .cta-band { padding: 64px 0; }
  .cta-band__in { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .tl__item { flex-basis: 280px; }
  .pg__hero { padding: 40px 0 64px; }
  .vgrid { gap: 28px 20px; }
  .map iframe { height: 380px; }
}

/* =================== >= 1024px (desktop) =================== */
@media (min-width: 1024px) {
  :root { --hdr: 80px; }
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  .util { display: block; }
  .logo img { height: 36px; }
  .hdr__icon { display: none; }
  .nav-overlay, .nav__head, .nav__foot, .nav__num { display: none; }
  .nav {
    position: static; inset: auto; width: auto; background: none; color: inherit; padding: 0; overflow: visible;
    clip-path: none; visibility: visible; transition: none; flex-direction: row;
  }
  .nav__list { display: flex; gap: 4px; padding: 0; }
  .nav__list a { position: relative; padding: 10px 14px; font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); }
  .nav__list a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav__list a:hover, .nav__list a.is-active { color: var(--brand); }
  .nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
  .hdr__acts { margin-left: 12px; }

  .hero { padding-top: 88px; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: end; padding-bottom: 56px; }
  .hero__lead { margin-bottom: 28px; }
  .hero__bg { height: calc(100% - 150px); }
  .slider__ui { padding: 12px 18px; }
  .slider__btn { width: 42px; height: 42px; }
  .slider__cap { font-size: 15px; }

  .pgrid--3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .pgrid--2 { gap: 32px; }
  .pgrid--2 .pcard__title { font-size: 26px; }
  .pgrid--1 .pcard { flex-direction: row; }
  .pgrid--1 .pcard__media { flex: 0 0 50%; aspect-ratio: auto; min-height: 340px; }
  .pgrid--1 .pcard__body { padding: 40px; justify-content: center; }
  .logos { grid-template-columns: repeat(6, 1fr); }
  .contact__card { grid-template-columns: 5fr 7fr; }
  .contact__info { padding: 56px 48px; }
  .cform { padding: 56px 56px; }
  .ftr__grid { grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; }
  .tl__item { flex-basis: 300px; padding-right: 40px; }
  .tl__track { padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
  .tl__track::before { left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
  .tl { scroll-padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }

  .pg__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 80px; }
  .pg__aside { position: relative; }
  .side-card { position: sticky; top: calc(var(--hdr) + 84px); }
  .toc__chips { padding-top: 12px; padding-bottom: 12px; }
}

@media (min-width: 1200px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
}
