/* =====================================================================
   VIMC — Trung tâm Y học Bản địa Việt Nam · Hệ thiết kế v4 "Ấm & Thật"
   Giấy dó · vàng nghệ · nâu gỗ · xanh lục bảo · đỏ son
   Tiêu đề: Cormorant Garamond · Nội dung: Literata (đều hỗ trợ tiếng Việt)
   ===================================================================== */

:root {
  --nghe: #c98a1b;   --nghe-soft: #e6c27a;  --nghe-pale: #f3e3bb;
  --go: #5a3920;     --go-dark: #3a2414;    --go-mid: #7a5232;
  --luc: #1f5a4a;    --luc-dark: #143d33;   --luc-soft: #dde8e1;
  --son: #a8322a;    --son-dark: #86251e;
  --giay: #f5ecda;   --giay-2: #faf4e7;     --giay-3: #efe2c6;
  --muc: #2a1e15;    --muc-2: #5b4b3d;      --vien: #dccbaa;

  --f-display: "Cormorant Garamond", "Lora", Georgia, serif;
  --f-text: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-sach: "Lora", Georgia, serif;

  --maxw: 1240px;
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --bong-sm: 0 2px 14px rgba(58, 36, 20, .08);
  --bong: 0 18px 44px rgba(58, 36, 20, .14);
  --bong-lg: 0 30px 70px rgba(42, 30, 21, .22);
  --em: cubic-bezier(.25, .7, .2, 1);
  --giay-van: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .13 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nền tảng ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
body {
  font-family: var(--f-text); color: var(--muc); font-size: 17px; line-height: 1.78; font-weight: 400;
  background: var(--giay) var(--giay-van); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--nghe-soft); color: var(--muc); }
:focus-visible { outline: 2px solid var(--son); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--go-dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 999; }
.skip:focus { top: 12px; }

/* ---------- Chữ ---------- */
h1, h2, h3, h4 { color: var(--go-dark); line-height: 1.2; font-weight: 700; text-wrap: balance; }
h1, h2, h3 { font-family: var(--f-display); letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); font-weight: 700; line-height: 1.14; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.2; }
.h2-nho { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.4rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.3; }
h4 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; }
p, li, figcaption, cite, dd { text-wrap: pretty; }
p { color: var(--muc-2); }
p + p { margin-top: 1em; }
strong { color: var(--muc); font-weight: 600; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.8; color: var(--muc-2); }
.nghieng { font-family: var(--f-sach); font-style: italic; font-weight: 400; }
.text-son { color: var(--son); }

.nhan { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--f-sach); font-style: italic; font-size: 1.08rem; color: var(--son); letter-spacing: 0; }
.nhan::before { content: ""; width: 22px; height: 22px; flex: none; background: url("../img/mat-trong-dong.webp") center / contain no-repeat; opacity: .9; }

/* ---------- Bố cục ---------- */
.khung { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.khung-hep { max-width: 820px; }
.muc { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.muc-sau { background: var(--giay-2); }
.muc-dam { background: var(--giay-3); }
.muc-luc { background: var(--luc-dark) var(--giay-van); color: var(--giay); }
.muc-go { background: var(--go-dark) var(--giay-van); color: var(--giay); }
.muc-luc h2, .muc-luc h3, .muc-go h2, .muc-go h3, .muc-luc strong, .muc-go strong { color: var(--giay-2); }
.muc-luc p, .muc-go p { color: rgba(250, 244, 231, .78); }
.muc-luc .nhan, .muc-go .nhan { color: var(--nghe-soft); }

.dau-muc { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.dau-muc.giua { margin-inline: auto; text-align: center; }
.dau-muc.giua .nhan { justify-content: center; }
.dau-muc p { margin-top: 16px; }

.luoi { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.l-2 { grid-template-columns: repeat(2, 1fr); }
.l-3 { grid-template-columns: repeat(3, 1fr); }
.l-4 { grid-template-columns: repeat(4, 1fr); }
.doi { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.doi.anh-phai > .anh-cot { order: 2; }

/* Hoa văn nền */
.nen-gach { position: relative; isolation: isolate; }
.nen-gach::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/hoa-van/gach-bong.svg") 0 0 / 150px 150px repeat; opacity: .13;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.muc-luc.nen-gach::before, .muc-go.nen-gach::before { opacity: .09; filter: brightness(2.2) sepia(.3); }
.trong-dong-nen { position: absolute; pointer-events: none; z-index: 0; opacity: .1; width: 720px; aspect-ratio: 1; animation: xoay 200s linear infinite; filter: blur(.6px) sepia(.2); mix-blend-mode: multiply; }
.muc-luc .trong-dong-nen, .muc-go .trong-dong-nen { opacity: .14; mix-blend-mode: screen; filter: blur(.6px) grayscale(.3) brightness(1.3); }
@keyframes xoay { to { transform: rotate(360deg); } }

/* Hoa văn phân cách */
.may-cuon { display: block; width: 220px; height: 36px; margin: 0 auto; color: var(--nghe); opacity: .9;
  background: currentColor; -webkit-mask: url("../img/hoa-van/may-cuon.svg") center / contain no-repeat; mask: url("../img/hoa-van/may-cuon.svg") center / contain no-repeat; }
.muc-luc .may-cuon, .muc-go .may-cuon { color: var(--nghe-soft); }

/* Mép chuyển mềm giữa các mục (đường cong như dải lụa) */
.mep { display: block; width: 100%; height: clamp(36px, 5vw, 70px); }
.mep path { fill: currentColor; }

/* ---------- Nút ---------- */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-text); font-weight: 600; font-size: .98rem; line-height: 1.2; white-space: nowrap;
  transition: transform .35s var(--em), background .3s, color .3s, box-shadow .35s, border-color .3s;
}
.nut svg { width: 18px; height: 18px; transition: transform .35s var(--em); }
.nut:hover svg { transform: translateX(3px); }
.nut-son { background: var(--son); color: #fff; box-shadow: 0 10px 26px rgba(168, 50, 42, .28); }
.nut-son:hover { background: var(--son-dark); transform: translateY(-2px); }
.nut-nghe { background: var(--nghe); color: var(--go-dark); box-shadow: 0 10px 26px rgba(201, 138, 27, .3); }
.nut-nghe:hover { background: var(--nghe-soft); transform: translateY(-2px); }
.nut-vien { border-color: var(--go-mid); color: var(--go-dark); background: transparent; }
.nut-vien:hover { background: var(--go-dark); color: var(--giay); border-color: var(--go-dark); }
.muc-luc .nut-vien, .muc-go .nut-vien, .hero .nut-vien, .dau-trang-con .nut-vien { border-color: rgba(250, 244, 231, .6); color: var(--giay-2); }
.muc-luc .nut-vien:hover, .muc-go .nut-vien:hover, .hero .nut-vien:hover, .dau-trang-con .nut-vien:hover { background: var(--giay-2); color: var(--go-dark); }
.lien-ket { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--son);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--em); padding-bottom: 2px; }
.lien-ket:hover { background-size: 100% 1.5px; }
.lien-ket svg { width: 16px; height: 16px; }

/* ---------- Thanh trên cùng & Header ---------- */
.thanh-tren { background: var(--go-dark); color: rgba(250, 244, 231, .82); font-size: 0.92rem; }
.thanh-tren .khung { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.thanh-tren a:hover { color: var(--nghe-soft); }
.thanh-tren .tt-trai, .thanh-tren .tt-phai { display: flex; align-items: center; gap: 20px; }
.thanh-tren svg { width: 15px; height: 15px; color: var(--nghe-soft); vertical-align: -2px; margin-right: 6px; }

.dau-trang { position: sticky; top: 0; z-index: 100; background: rgba(245, 236, 218, .9); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--vien); transition: box-shadow .4s, background .4s; }
.dau-trang.da-cuon { box-shadow: 0 6px 24px rgba(58, 36, 20, .08); background: rgba(250, 244, 231, .95); }
.dau-trang .khung { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; transition: height .4s var(--em); }
.dau-trang.da-cuon .khung { height: 68px; }
.thuong-hieu { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.thuong-hieu img { height: 52px; width: auto; transition: height .4s var(--em); }
.dau-trang.da-cuon .thuong-hieu img { height: 44px; }
.thuong-hieu span { font-family: var(--f-text); font-weight: 700; font-size: 1.02rem; white-space: nowrap; line-height: 1.2; color: var(--luc); letter-spacing: -.005em; }
.thuong-hieu small { display: block; font-family: var(--f-text); font-size: 0.92rem; letter-spacing: .01em; color: var(--muc-2); font-weight: 500; margin-top: 2px; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { position: relative; display: block; padding: 10px 12px; font-size: .96rem; font-weight: 500; white-space: nowrap; color: var(--go-dark); border-radius: 8px; transition: color .3s; }
.menu a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px; background: var(--son);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--em); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--son); }
.dt-hanh-dong { display: flex; align-items: center; gap: 10px; }
.dt-hanh-dong .nut { min-height: 44px; padding: 10px 22px; font-size: .95rem; }
.nut-menu { display: none; background: none; border: 0; width: 46px; height: 46px; color: var(--go-dark); border-radius: 10px; }
.nut-menu svg { width: 28px; height: 28px; }

.ngan-keo { position: fixed; inset: 0; z-index: 300; background: rgba(42, 30, 21, .45); opacity: 0; visibility: hidden; transition: opacity .35s; }
.ngan-keo.mo { opacity: 1; visibility: visible; }
.ngan-keo .tam { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: var(--giay-2) var(--giay-van);
  padding: 22px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--em); }
.ngan-keo.mo .tam { transform: none; }
.ngan-keo .tam-dau { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.ngan-keo nav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--vien); font-family: var(--f-text); font-size: 1.08rem; font-weight: 600; color: var(--go-dark); }
.ngan-keo nav a[aria-current="page"] { color: var(--son); }
.ngan-keo .nut { width: 100%; margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: var(--giay-2); overflow: hidden; isolation: isolate; }
.hero .hero-anh { position: absolute; inset: 0; z-index: -2; }
.hero .hero-anh img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; animation: tho 22s ease-in-out infinite alternate; }
@keyframes tho { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(42, 26, 14, .9) 0%, rgba(42, 26, 14, .66) 42%, rgba(42, 26, 14, .18) 75%),
              linear-gradient(0deg, rgba(42, 26, 14, .75) 0%, transparent 45%); }
.hero .khung { padding-top: 120px; padding-bottom: clamp(56px, 8vw, 96px); }
.hero h1 { color: var(--giay-2); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--nghe-soft); font-weight: 600; }
.hero .lead { color: rgba(250, 244, 231, .86); max-width: 56ch; margin: 22px 0 34px; }
.hero .nhan { color: var(--nghe-soft); }
.hero-nut { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-the { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(250, 244, 231, .22); max-width: 760px; }
.hero-the span { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; color: rgba(250, 244, 231, .86); }
.hero-the svg { width: 18px; height: 18px; color: var(--nghe-soft); }
.hero .trong-dong-nen { right: -260px; top: -200px; opacity: .06; z-index: -1; filter: brightness(1.6); }

/* Hero trang con */
.dau-trang-con { position: relative; color: var(--giay-2); padding: clamp(110px, 14vw, 170px) 0 clamp(60px, 8vw, 96px); overflow: hidden; isolation: isolate; }
.dau-trang-con > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dau-trang-con::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 26, 14, .9), rgba(42, 26, 14, .55) 60%, rgba(42, 26, 14, .3)); }
.dau-trang-con h1 { color: var(--giay-2); max-width: 18ch; font-size: clamp(2.3rem, 5.4vw, 4rem); }
.dau-trang-con .lead { color: rgba(250, 244, 231, .86); max-width: 62ch; margin-top: 18px; }
.dau-trang-con .nhan { color: var(--nghe-soft); }
.vet-dan { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.92rem; color: rgba(250, 244, 231, .7); margin-bottom: 18px; }
.vet-dan a:hover { color: var(--giay-2); text-decoration: underline; }

/* ---------- Ảnh ---------- */
.anh-vom { position: relative; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; box-shadow: var(--bong); aspect-ratio: 4 / 5; }
.anh-vom img, .anh-khung img, .anh-tron img { width: 100%; height: 100%; object-fit: cover; }
.anh-khung { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--bong); aspect-ratio: 4 / 3; }
.anh-vien { position: relative; }
.anh-vien::after { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--nghe); border-radius: inherit; z-index: -1; }
.anh-vom.anh-vien::after { border-radius: 999px 999px var(--r) var(--r); }
.chu-anh { font-size: 0.92rem; color: var(--muc-2); margin-top: 12px; font-style: italic; }
.huy-hieu { position: absolute; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--bong); max-width: 220px; }
.huy-hieu b { display: block; font-family: var(--f-display); font-size: 2.1rem; line-height: 1; color: var(--son); font-weight: 700; }
.huy-hieu span { font-size: 0.92rem; color: var(--muc-2); line-height: 1.45; display: block; margin-top: 6px; }
.hh-trai { left: -26px; bottom: 30px; } .hh-phai { right: -26px; bottom: 30px; }
.chong-anh { position: relative; }
.chong-anh .anh-phu { position: absolute; width: 46%; right: -6%; bottom: -10%; border: 6px solid var(--giay-2); border-radius: var(--r); box-shadow: var(--bong-lg); aspect-ratio: 1; overflow: hidden; }
.chong-anh .anh-phu img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Thẻ ---------- */
.the { position: relative; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); padding: 30px 28px; height: 100%;
  transition: transform .5s var(--em), box-shadow .5s var(--em), border-color .4s; }
.the:hover { transform: translateY(-6px); box-shadow: var(--bong); border-color: var(--nghe-soft); }
.the .bieu-tuong { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--nghe-pale); color: var(--go); border: 1px solid var(--nghe-soft); transition: transform .5s var(--em); }
.the:hover .bieu-tuong { transform: rotate(-8deg) scale(1.06); }
.the .bieu-tuong svg { width: 28px; height: 28px; }
.the h3 { margin-bottom: 10px; }
.the p { font-size: .97rem; }
.the .lien-ket { margin-top: 18px; }
.the-goc::before, .the-goc::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--nghe); border-style: solid; opacity: .7; }
.the-goc::before { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; border-top-left-radius: 6px; }
.the-goc::after { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; border-bottom-right-radius: 6px; }
.muc-luc .the, .muc-go .the { background: rgba(250, 244, 231, .06); border-color: rgba(250, 244, 231, .16); }
.muc-luc .the p, .muc-go .the p { color: rgba(250, 244, 231, .78); }
.muc-luc .the .bieu-tuong, .muc-go .the .bieu-tuong { background: rgba(230, 194, 122, .14); color: var(--nghe-soft); border-color: rgba(230, 194, 122, .35); }

/* Thẻ ảnh (dịch vụ / bài viết) */
.the-anh { display: flex; flex-direction: column; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; height: 100%;
  transition: transform .5s var(--em), box-shadow .5s var(--em); }
.the-anh:hover { transform: translateY(-6px); box-shadow: var(--bong); }
.the-anh .ta-anh { aspect-ratio: 4 / 3; overflow: hidden; }
.the-anh .ta-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--em); }
.the-anh:hover .ta-anh img { transform: scale(1.05); }
.the-anh .ta-than { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.the-anh .ta-than p { font-size: .95rem; flex: 1; }
.the-anh .ta-nhan { font-family: var(--f-sach); font-style: italic; font-size: .98rem; color: var(--son); margin-bottom: 4px; }
.the-anh h3 { margin-bottom: 8px; }

/* ---------- Con số ---------- */
.con-so { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.con-so > div { text-align: center; padding: 10px 18px; position: relative; }
.con-so > div + div::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: rgba(250, 244, 231, .18); }
.con-so b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: var(--nghe-soft); }
.con-so span { display: block; margin-top: 10px; font-size: .92rem; color: rgba(250, 244, 231, .8); line-height: 1.5; }
.ghi-nguon { font-size: 0.92rem; color: rgba(250, 244, 231, .55); text-align: center; margin-top: 34px; }

/* ---------- Trích dẫn ---------- */
.trich { text-align: center; max-width: 880px; margin: 0 auto; }
.trich blockquote { font-family: var(--f-sach); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.55; color: var(--go-dark); margin: 24px 0; }
.muc-luc .trich blockquote, .muc-go .trich blockquote { color: var(--giay-2); }
.trich cite { font-style: normal; font-size: .95rem; color: var(--muc-2); }
.muc-luc .trich cite, .muc-go .trich cite { color: rgba(250, 244, 231, .74); }

/* ---------- Dòng thời gian ---------- */
.dong-tg { position: relative; max-width: 940px; margin: 0 auto; }
.dong-tg::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: linear-gradient(var(--nghe), var(--son)); transform: translateX(-50%); opacity: .55; }
.moc { position: relative; width: 50%; padding: 0 44px 46px; }
.moc:nth-child(odd) { margin-left: 0; text-align: right; }
.moc:nth-child(even) { margin-left: 50%; }
.moc::before { content: ""; position: absolute; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--giay-2); border: 3px solid var(--son); box-shadow: 0 0 0 6px rgba(168, 50, 42, .12); }
.moc:nth-child(odd)::before { right: -8px; } .moc:nth-child(even)::before { left: -8px; }
.moc .nam { font-family: var(--f-display); font-size: 1.7rem; font-weight: 700; color: var(--son); line-height: 1.1; }
.moc h3 { margin: 6px 0 6px; }
.moc p { font-size: .96rem; }

/* ---------- Bước quy trình ---------- */
.buoc { counter-reset: b; display: grid; gap: 22px; }
.buoc li { counter-increment: b; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.buoc li::before { content: counter(b, decimal-leading-zero); font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--son);
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--nghe); background: var(--giay-2); }
.buoc h3 { margin: 4px 0 4px; }
.buoc p { font-size: .96rem; }

/* Danh sách tích */
.ds-tich { display: grid; gap: 12px; margin: 22px 0; }
.ds-tich li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muc); }
.ds-tich li::before { content: ""; width: 16px; height: 16px; margin-top: 6px; border-radius: 4px; transform: rotate(45deg); background: var(--nghe); box-shadow: inset 0 0 0 3px var(--giay-2); border: 1.5px solid var(--nghe); }
.muc-luc .ds-tich li, .muc-go .ds-tich li { color: rgba(250, 244, 231, .9); }
.muc-luc .ds-tich li::before, .muc-go .ds-tich li::before { box-shadow: inset 0 0 0 3px var(--luc-dark); }

/* ---------- Bộ sưu tập ảnh ---------- */
.bst { columns: 3 280px; column-gap: 18px; }
.bst figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--r-sm); overflow: hidden; position: relative; cursor: zoom-in; box-shadow: var(--bong-sm); }
.bst img { width: 100%; height: auto; transition: transform 1s var(--em); }
.bst figure:hover img { transform: scale(1.04); }
.bst figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: 0.92rem; color: #fff;
  background: linear-gradient(transparent, rgba(30, 20, 12, .78)); opacity: 0; transition: opacity .4s; }
.bst figure:hover figcaption, .bst figure:focus-within figcaption { opacity: 1; }
.hop-xem { position: fixed; inset: 0; z-index: 400; background: rgba(24, 16, 10, .92); display: none; align-items: center; justify-content: center; padding: 4vw; }
.hop-xem.mo { display: flex; }
.hop-xem img { max-height: 84vh; width: auto; border-radius: 8px; box-shadow: var(--bong-lg); }
.hop-xem p { color: #f3e9d6; text-align: center; margin-top: 14px; }
.hop-xem button { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; }

/* ---------- Video (bấm mới tải) ---------- */
.video-nhe { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; box-shadow: var(--bong-lg); background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; }
.video-nhe img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .4s, transform 1s var(--em); }
.video-nhe:hover img { opacity: 1; transform: scale(1.03); }
.video-nhe .phat { position: absolute; inset: 0; margin: auto; width: 86px; height: 86px; border-radius: 50%; background: var(--son); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(168, 50, 42, .25); transition: transform .4s var(--em); }
.video-nhe:hover .phat { transform: scale(1.08); }
.video-nhe .phat svg { width: 30px; height: 30px; color: #fff; margin-left: 5px; }
.video-nhe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Bảng thông tin khóa học ---------- */
.bang-tt { width: 100%; border-collapse: collapse; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); overflow: hidden; }
.bang-tt th, .bang-tt td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--vien); vertical-align: top; font-size: .97rem; }
.bang-tt th { width: 34%; font-weight: 600; color: var(--go-dark); background: var(--giay-3); }
.bang-tt tr:last-child th, .bang-tt tr:last-child td { border-bottom: 0; }
.gia { font-family: var(--f-display); font-size: 2.6rem; font-weight: 700; color: var(--son); line-height: 1; }

/* ---------- Hỏi đáp ---------- */
.hoi-dap { max-width: 860px; margin: 0 auto; }
.hoi-dap details { border-bottom: 1px solid var(--vien); }
.hoi-dap summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 4px;
  font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; color: var(--go-dark); }
.hoi-dap summary::-webkit-details-marker { display: none; }
.hoi-dap summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--son); border-bottom: 2px solid var(--son); transform: rotate(45deg) translateY(-4px); transition: transform .4s var(--em); }
.hoi-dap details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.hoi-dap .tra-loi { padding: 0 4px 24px; }
.hoi-dap details[open] .tra-loi { animation: hien .5s var(--em); }
@keyframes hien { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Biểu mẫu ---------- */
.bieu-mau { background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--bong); }
.o-nhap { margin-bottom: 18px; }
.o-nhap label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--go-dark); margin-bottom: 7px; }
.o-nhap label i { color: var(--son); font-style: normal; }
.o-nhap input, .o-nhap select, .o-nhap textarea { width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; color: var(--muc); background: var(--giay);
  border: 1.5px solid var(--vien); border-radius: 12px; transition: border-color .3s, box-shadow .3s, background .3s; }
.o-nhap input:focus, .o-nhap select:focus, .o-nhap textarea:focus { outline: none; border-color: var(--luc); background: #fff; box-shadow: 0 0 0 4px rgba(31, 90, 74, .12); }
.o-nhap .loi { display: none; font-size: 0.92rem; color: var(--son); margin-top: 6px; }
.o-nhap.sai input, .o-nhap.sai select, .o-nhap.sai textarea { border-color: var(--son); }
.o-nhap.sai .loi { display: block; }
.dong-y { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.92rem; color: var(--muc-2); margin: 6px 0 20px; line-height: 1.6; }
.dong-y input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--luc); }
.dong-y a { color: var(--son); text-decoration: underline; }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.thong-bao { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: .95rem; }
.thong-bao.ok { display: block; background: var(--luc-soft); color: var(--luc-dark); border: 1px solid var(--luc); }
.thong-bao.loi { display: block; background: #f7e1dc; color: var(--son-dark); border: 1px solid var(--son); }
.nut[disabled] { opacity: .65; pointer-events: none; }

/* ---------- Ghi chú / miễn trừ ---------- */
.mien-tru { font-size: 0.92rem; color: var(--muc-2); border-left: 3px solid var(--nghe); background: rgba(201, 138, 27, .08); padding: 12px 16px; border-radius: 0 10px 10px 0; margin-top: 22px; }
.muc-luc .mien-tru, .muc-go .mien-tru { color: rgba(250, 244, 231, .78); background: rgba(250, 244, 231, .06); }
.cho-bo-sung { font-size: 0.92rem; color: var(--luc-dark); background: var(--luc-soft); border: 1px dashed var(--luc); border-radius: 12px; padding: 14px 18px; }

/* ---------- Chân trang ---------- */
.chan-trang { background: var(--go-dark) var(--giay-van); color: rgba(250, 244, 231, .74); padding: clamp(64px, 8vw, 96px) 0 30px; position: relative; overflow: hidden; isolation: isolate; }
.chan-trang::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/hoa-van/gach-bong.svg") 0 0 / 150px repeat; opacity: .05; filter: brightness(3); }
.ct-luoi { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.chan-trang h4 { font-family: var(--f-display); font-size: 1.45rem; color: var(--giay-2); margin-bottom: 16px; font-weight: 700; }
.chan-trang a:hover { color: var(--nghe-soft); }
.chan-trang li { margin-bottom: 9px; font-size: .95rem; }
.ct-thuong-hieu img { height: 64px; background: var(--giay-2); padding: 6px 10px; border-radius: 10px; margin-bottom: 18px; }
.ct-thuong-hieu p { color: rgba(250, 244, 231, .68); font-size: .93rem; max-width: 36ch; }
.mxh { display: flex; gap: 10px; margin-top: 18px; }
.mxh a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(250, 244, 231, .2); transition: background .3s, border-color .3s, transform .3s; }
.mxh a:hover { background: var(--nghe); border-color: var(--nghe); color: var(--go-dark); transform: translateY(-2px); }
.mxh svg { width: 19px; height: 19px; }
.ct-duoi { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(250, 244, 231, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.92rem; color: rgba(250, 244, 231, .55); }
.ct-duoi a { text-decoration: underline; }

/* ---------- Hiện dần khi cuộn ---------- */
.hien-dan { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--em), transform .8s var(--em); }
.hien-dan.da-hien { opacity: 1; transform: none; }
.hien-anh { clip-path: inset(8% 8% 8% 8% round var(--r)); transition: clip-path 1.4s var(--em); }
.hien-anh.da-hien { clip-path: inset(0 0 0 0 round var(--r)); }
#tien-trinh { position: fixed; top: 0; left: 0; height: 2.5px; width: 0; z-index: 500; background: linear-gradient(90deg, var(--luc), var(--nghe), var(--son)); }
#len-dau { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--go-dark); color: var(--giay-2);
  display: grid; place-items: center; box-shadow: var(--bong); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .4s var(--em); }
#len-dau.hien { opacity: 1; visibility: visible; transform: none; }
#len-dau:hover { background: var(--son); }
#len-dau svg { width: 22px; height: 22px; }

/* ---------- Đáp ứng màn hình ---------- */
@media (max-width: 1280px) {
  .menu a { padding: 10px 8px; font-size: .92rem; }
  .menu a::after { left: 8px; right: 8px; }
}
@media (max-width: 1140px) {
  .menu, .dt-hanh-dong .nut-vien { display: none; }
  .nut-menu { display: grid; place-items: center; }
  .l-4 { grid-template-columns: repeat(2, 1fr); }
  .ct-luoi { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .doi, .l-2 { grid-template-columns: 1fr; }
  .doi.anh-phai > .anh-cot { order: 0; }
  .l-3 { grid-template-columns: 1fr 1fr; }
  .con-so { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .con-so > div:nth-child(3)::before { display: none; }
  .dong-tg::before { left: 8px; }
  .moc, .moc:nth-child(even) { width: 100%; margin-left: 0; text-align: left; padding: 0 0 38px 40px; }
  .moc:nth-child(odd)::before, .moc:nth-child(even)::before { left: 0; right: auto; }
  .hh-trai { left: 12px; } .hh-phai { right: 12px; }
  .anh-vom { max-width: 460px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .thanh-tren .an-nho { display: none; }
  .dt-hanh-dong .nut-son { display: none; }
  .dau-trang .khung { height: 70px; }
  .thuong-hieu img { height: 44px; }
  .thuong-hieu span { font-size: 1rem; }
  .l-3, .l-4, .ct-luoi { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero-nut .nut { width: 100%; }
  .huy-hieu { position: static; max-width: none; margin-top: 16px; }
  .chong-anh .anh-phu { display: none; }
  .bang-tt th, .bang-tt td { display: block; width: 100%; }
  .bang-tt th { border-bottom: 0; padding-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hien-dan { opacity: 1; transform: none; } .hien-anh { clip-path: none; }
}

/* =====================================================================
   v5 — Trình chiếu ảnh tập thể · dải ảnh chạy · tranh nền · trống đồng thật
   ===================================================================== */
/* Hero trình chiếu */
.hero { min-height: min(92vh, 860px); }
.hero .hero-anh .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  opacity: 0; transform: scale(1.08); transition: opacity 1.8s ease, transform 9s ease-out; animation: none; }
.hero .hero-anh .slide.hien { opacity: 1; transform: scale(1); }
.hero::before { background:
  linear-gradient(0deg, rgba(36, 22, 12, .92) 0%, rgba(36, 22, 12, .62) 34%, rgba(36, 22, 12, .1) 64%, rgba(36, 22, 12, .25) 100%),
  linear-gradient(90deg, rgba(36, 22, 12, .55) 0%, transparent 60%); }
.hero h1 { max-width: 17ch; }
.hero .lead { max-width: 60ch; }
.hero-cham { position: absolute; right: clamp(18px, 4vw, 40px); bottom: clamp(24px, 4vw, 40px); display: flex; gap: 8px; z-index: 2; }
.hero-cham button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(250, 244, 231, .35); transition: background .4s, width .4s; }
.hero-cham button.hien { background: var(--nghe-soft); width: 52px; }
.hero-chu-anh { position: absolute; right: clamp(18px, 4vw, 40px); bottom: clamp(40px, 5.5vw, 58px); color: rgba(250, 244, 231, .78); font-family: var(--f-sach); font-style: italic; font-size: .92rem; z-index: 2; max-width: 40ch; text-align: right; }

/* Dải ảnh chạy liên tục */
.dai-anh { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.dai-anh + .dai-anh { margin-top: 18px; }
.dai-ray { display: flex; gap: 18px; width: max-content; animation: chay var(--tg, 70s) linear infinite; }
.dai-anh.nguoc .dai-ray { animation-direction: reverse; }
.dai-anh:hover .dai-ray { animation-play-state: paused; }
.dai-ray figure { margin: 0; flex: none; height: clamp(180px, 22vw, 260px); border-radius: var(--r-sm); overflow: hidden; position: relative; box-shadow: var(--bong-sm); }
.dai-ray img { height: 100%; width: auto; object-fit: cover; }
.dai-ray figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; font-size: 0.92rem; color: #fff; background: linear-gradient(transparent, rgba(30, 20, 12, .8)); }
@keyframes chay { to { transform: translateX(-50%); } }

/* Mục có tranh nền phong cảnh (giấy dó, hồ sen…) */
.muc-tranh { position: relative; isolation: isolate; overflow: hidden; }
.muc-tranh > .tranh { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.muc-tranh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--giay) 0%, rgba(245, 236, 218, .94) 38%, rgba(245, 236, 218, .35) 70%, rgba(245, 236, 218, 0) 100%); }
.muc-tranh.toi::before { background: linear-gradient(90deg, rgba(36, 22, 12, .9) 0%, rgba(36, 22, 12, .7) 45%, rgba(36, 22, 12, .25) 100%); }
.muc-tranh.toi h2, .muc-tranh.toi h3, .muc-tranh.toi strong, .muc-tranh.toi blockquote { color: var(--giay-2); }
.muc-tranh.toi p, .muc-tranh.toi cite { color: rgba(250, 244, 231, .82); }
.muc-tranh.toi .nhan { color: var(--nghe-soft); }
.muc-tranh.giua-toi::before { background: radial-gradient(ellipse at center, rgba(36, 22, 12, .78) 0%, rgba(36, 22, 12, .55) 55%, rgba(36, 22, 12, .35) 100%); }
.muc-tranh .noi-dung { max-width: 560px; }
.trong-dong-tren-tranh { position: absolute; z-index: -1; width: clamp(110px, 13vw, 190px); aspect-ratio: 1; opacity: .7; pointer-events: none;
  animation: xoay 60s linear infinite; filter: blur(.5px) drop-shadow(0 6px 18px rgba(40, 24, 10, .35)); mix-blend-mode: multiply; }
.anh-thu-phap { border-radius: var(--r); overflow: hidden; box-shadow: var(--bong); }
.anh-thu-phap img { width: 100%; height: auto; }

/* Thẻ chi nhánh */
.chi-nhanh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.chi-nhanh .the h3 { font-size: 1.35rem; }
.chi-nhanh .the p { font-size: .94rem; }
.chi-nhanh .the a.so { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--son); }

@media (max-width: 1100px) { .chi-nhanh { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .muc-tranh::before { background: linear-gradient(0deg, var(--giay) 30%, rgba(245, 236, 218, .9) 65%, rgba(245, 236, 218, .6) 100%); }
  .muc-tranh.toi::before { background: rgba(36, 22, 12, .72); }
  .hero-chu-anh { display: none; }
}
@media (max-width: 640px) {
  .chi-nhanh { grid-template-columns: 1fr; }
  .hero .hero-anh .slide { object-position: center 30%; }
}
@media (prefers-reduced-motion: reduce) {
  .dai-ray { animation: none; } .dai-anh { overflow-x: auto; }
  .hero .hero-anh .slide { transition: opacity .01ms; transform: none; }
}

/* Bức tranh phong cảnh + trống đồng xoay đúng vị trí trong tranh */
.bang-tranh { position: relative; isolation: isolate; background: var(--go-dark); }
.khung-tranh { position: relative; aspect-ratio: 1672 / 941; overflow: hidden; }
.khung-tranh > img.tranh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.khung-tranh .trong-dong-xoay { position: absolute; aspect-ratio: 1; opacity: .62; mix-blend-mode: multiply;
  filter: blur(.4px) sepia(.25); animation: xoay 48s linear infinite; pointer-events: none; }
.bang-tranh .chu { position: absolute; inset: 0; display: flex; align-items: center; z-index: 2;
  background: linear-gradient(90deg, rgba(36, 22, 12, .82) 0%, rgba(36, 22, 12, .55) 40%, rgba(36, 22, 12, 0) 72%); }
.bang-tranh .chu .khung > div { max-width: 540px; }
.bang-tranh .chu h2, .bang-tranh .chu blockquote, .bang-tranh .chu strong { color: var(--giay-2); }
.bang-tranh .chu p, .bang-tranh .chu cite { color: rgba(250, 244, 231, .84); }
.bang-tranh .chu .nhan { color: var(--nghe-soft); }
.bang-tranh blockquote { font-family: var(--f-sach); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.65rem); line-height: 1.6; margin: 14px 0 16px; }
@media (max-width: 900px) {
  .bang-tranh .chu { position: static; background: var(--go-dark) var(--giay-van); padding: 36px 0 44px; }
}

/* Hero: khối chữ gọn, đặt thấp để lộ ảnh tập thể */
.hero .khung { padding-top: 140px; padding-bottom: clamp(48px, 6vw, 76px); }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); max-width: 16ch; }
.hero .lead { font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 54ch; margin: 16px 0 26px; }
.hero::before { background:
  linear-gradient(0deg, rgba(36, 22, 12, .9) 0%, rgba(36, 22, 12, .55) 30%, rgba(36, 22, 12, 0) 56%),
  linear-gradient(90deg, rgba(36, 22, 12, .5) 0%, rgba(36, 22, 12, 0) 48%); }

/* Hero trên điện thoại: ảnh trên, chữ dưới */
@media (max-width: 640px) {
  .hero { display: block; min-height: 0; background: var(--go-dark) var(--giay-van); }
  .hero::before { display: none; }
  .hero .hero-anh { position: relative; aspect-ratio: 4 / 3; z-index: 0; }
  .hero .hero-anh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(58, 36, 20, .85) 0%, transparent 35%); }
  .hero .khung { padding-top: 26px; padding-bottom: 44px; }
  .hero-cham { top: calc(75vw - 26px); bottom: auto; }
}
.khung-tranh .trong-dong-xoay { mix-blend-mode: soft-light; opacity: 1; filter: blur(.3px) brightness(1.25) contrast(1.15); }
.khung-tranh .trong-dong-xoay { mix-blend-mode: overlay; opacity: .85; filter: blur(.3px); }

/* ---------- Bổ sung đợt 3 ---------- */
img { height: auto; }
.logo-goc { display: inline-flex; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--bong-sm); margin-bottom: 18px; }
.logo-goc img { height: 64px; width: auto; }
.the-logo { background: #fff; border-radius: var(--r-lg); box-shadow: var(--bong); padding: clamp(28px, 5vw, 56px); display: grid; place-items: center; }
.the-logo img { width: 100%; max-width: 440px; height: auto; }
.trich-nho { font-family: var(--f-sach); font-style: italic; font-size: 1.3rem; color: var(--son); margin-top: 22px; }
.tam-nhin { min-height: 0; }
.tam-nhin .noi-dung { max-width: 760px; margin-inline: auto; text-align: center; }
.cau-lon { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.25; color: var(--go-dark); margin: 14px 0 18px; }
.tam-nhin::before { background: rgba(245, 236, 218, .25); }
.tam-nhin > .tranh { object-position: center; }
.tam-nhin .noi-dung .nhan { justify-content: center; }
/* Dòng thời gian có tranh */
.dong-tg.co-anh { max-width: 1120px; }
.co-anh .moc, .co-anh .moc:nth-child(even) { width: 100%; margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; align-items: center; padding: 0 0 72px; text-align: left; }
.co-anh .moc:nth-child(odd) .moc-chu { text-align: right; }
.co-anh .moc:nth-child(even) .moc-chu { order: 2; }
.co-anh .moc::before, .co-anh .moc:nth-child(odd)::before, .co-anh .moc:nth-child(even)::before { left: 50%; right: auto; top: 50%; transform: translate(-50%, -50%); }
.moc-anh img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); box-shadow: var(--bong); }
.moc-anh figcaption { font-family: var(--f-sach); font-style: italic; font-size: 0.92rem; color: var(--muc-2); margin-top: 10px; }
.co-anh .moc:nth-child(odd) .moc-anh figcaption { text-align: left; }
.co-anh .moc p { font-size: 1rem; }
.anh-vuong { aspect-ratio: 1; max-width: 440px; }
.anh-vuong img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }
@media (max-width: 900px) {
  .co-anh .moc, .co-anh .moc:nth-child(even) { grid-template-columns: 1fr; row-gap: 18px; padding: 0 0 48px 40px; }
  .co-anh .moc:nth-child(odd) .moc-chu { text-align: left; }
  .co-anh .moc:nth-child(even) .moc-chu { order: 0; }
  .co-anh .moc::before, .co-anh .moc:nth-child(odd)::before, .co-anh .moc:nth-child(even)::before { left: 0; top: 6px; transform: none; }
}
/* Tư liệu lịch sử: lưới, chú thích luôn hiện */
.bst.bst-tu-lieu { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bst-tu-lieu figure { margin: 0; background: var(--giay-2); padding: 12px 12px 14px; border-radius: var(--r-sm); }
.bst-tu-lieu img { aspect-ratio: 4 / 3; object-fit: contain; background: #ece2cc; border-radius: 6px; }
.bst-tu-lieu figure:hover img { transform: none; }
.bst-tu-lieu figcaption { position: static; opacity: 1; background: none; color: var(--muc-2); padding: 10px 2px 0; font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 900px) { .bst.bst-tu-lieu { grid-template-columns: 1fr 1fr; gap: 14px; } }
.nhom-cs { font-family: var(--f-display); font-size: 1.5rem; color: var(--son); margin: 34px 0 16px; }
.dau-muc + .nhom-cs { margin-top: 0; }
.chi-nhanh.cn-3 { grid-template-columns: repeat(3, 1fr); }
.goi .ta-than p { font-size: .93rem; margin-top: 8px; }
.goi .ta-than p strong { color: var(--go-dark); font-weight: 600; }
@media (max-width: 1140px) { .chi-nhanh.cn-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .chi-nhanh.cn-3 { grid-template-columns: 1fr; } }

/* Lộ trình 4 cấp */
.lo-trinh { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: end; }
.lo-trinh li { position: relative; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); padding: 26px 22px 24px; box-shadow: var(--bong-sm); }
.lo-trinh li:nth-child(2) { margin-bottom: 26px; } .lo-trinh li:nth-child(3) { margin-bottom: 52px; }
.lo-trinh li:nth-child(4) { margin-bottom: 78px; background: var(--luc); border-color: var(--luc); }
.lo-trinh li:nth-child(4) h3, .lo-trinh li:nth-child(4) strong { color: var(--giay-2); }
.lo-trinh li:nth-child(4) p { color: rgba(250, 244, 231, .82); }
.lo-trinh li:nth-child(4) .cap { color: var(--nghe-soft); }
.lo-trinh .cap { font-family: var(--f-sach); font-style: italic; color: var(--son); font-size: 1rem; }
.lo-trinh h3 { font-size: 1.55rem; margin: 2px 0 12px; }
.lo-trinh p { font-size: .93rem; line-height: 1.65; }
.lo-trinh p + p { margin-top: 10px; }
.lo-trinh strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--go-dark); margin-bottom: 2px; }
@media (max-width: 1000px) { .lo-trinh { grid-template-columns: 1fr 1fr; } .lo-trinh li:nth-child(n) { margin-bottom: 0; } }
@media (max-width: 600px) { .lo-trinh { grid-template-columns: 1fr; } }

.bao-chi a.the { display: flex; flex-direction: column; transition: transform .35s var(--em), box-shadow .35s; }
.bao-chi a.the:hover { transform: translateY(-3px); box-shadow: var(--bong); }
.bao-chi a.the .lien-ket { margin-top: auto; padding-top: 12px; }
.the-video .video-nhe { margin-bottom: 16px; border-radius: var(--r-sm); }

/* Văn bản dài (chính sách, điều khoản): Lora cho dễ đọc */
.van-ban p, .van-ban li { font-family: var(--f-sach); font-size: 1.04rem; line-height: 1.85; }
.van-ban h2 { font-size: clamp(1.6rem, 2.6vw, 1.95rem); margin-top: 38px; }
.van-ban h2:first-of-type { margin-top: 30px; }
blockquote { text-wrap: balance; }
/* Đầu trang với tên đầy đủ: gọn lại để menu nằm một hàng */
.menu a { padding: 10px 8px; font-size: .93rem; }
.menu a::after { left: 9px; right: 9px; }
.thuong-hieu { gap: 10px; }
.thuong-hieu img { height: 48px; }
.thuong-hieu span { font-size: .97rem; }
.thuong-hieu small { font-size: 0.92rem; }
@media (max-width: 1319px) {
  .menu, .dt-hanh-dong .nut-vien { display: none; }
  .nut-menu { display: grid; place-items: center; }
}
@media (max-width: 420px) {
  .thuong-hieu img { height: 40px; }
  .thuong-hieu span { font-size: 0.92rem; }
  .thuong-hieu small { font-size: 0.92rem; }
}
.ngan-keo { overflow: hidden; }
@media (max-width: 420px) {
  .dau-trang .khung { gap: 8px; }
  .thuong-hieu { gap: 8px; }
  .thuong-hieu img { height: 38px; }
  .thuong-hieu span { font-size: 0.92rem; }
}
@media (max-width: 379px) {
  .thuong-hieu span { white-space: normal; max-width: 190px; line-height: 1.2; }
  .thuong-hieu small { white-space: nowrap; }
}
@media (max-width: 900px) {
  .muc-tranh:not(.tam-nhin) { padding-top: 0; }
  .muc-tranh:not(.tam-nhin) > .tranh { position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 16 / 10; object-position: 78% center; margin-bottom: 34px;
    -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .muc-tranh:not(.tam-nhin)::before { display: none; }
}
.anh-vuong img { transform: scale(1.05); }
.loi-dan .trich { text-align: left; max-width: none; margin: 0; }
.loi-dan .trich .nhan { justify-content: flex-start; }
.loi-dan blockquote { margin: 14px 0 18px; font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
@media (max-width: 640px) {
  .luoi.dac-trung { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dac-trung .ta-than { padding: 14px 14px 16px; }
  .dac-trung h3 { font-size: 1.25rem; margin-bottom: 4px; }
  .dac-trung p { font-size: 0.92rem; line-height: 1.55; }
}
@media (max-width: 640px) { .bst-tu-lieu figcaption { font-size: 0.92rem; line-height: 1.45; } .bst-tu-lieu figure { padding: 8px 8px 10px; } }
@media (max-width: 420px) { .nut-menu { width: 40px; } .thuong-hieu img { height: 36px; } }
@media (max-width: 340px) { .thuong-hieu small { display: none; } .thuong-hieu span { max-width: 160px; } }

/* Đợt 4: bớt dáng "mẫu" — biểu tượng nhẹ, số La Mã, không còn góc khung */
.the .bieu-tuong { width: auto; height: auto; border: 0; background: none; border-radius: 0; color: var(--son); margin-bottom: 14px; display: block; }
.the .bieu-tuong svg { width: 26px; height: 26px; }
.the:hover .bieu-tuong { transform: none; }
.muc-luc .the .bieu-tuong, .muc-go .the .bieu-tuong { background: none; color: var(--nghe-soft); }
.the-goc::before, .the-goc::after { display: none; }
.so-la-ma { display: block; font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--nghe); margin-bottom: 12px; }
.muc-luc .so-la-ma, .muc-go .so-la-ma { color: var(--nghe-soft); }
.chi-duong { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; margin-left: 14px; font-size: 0.92rem; font-weight: 500; color: var(--luc); }
.chi-duong svg { width: 15px; height: 15px; }
.chi-duong:hover { text-decoration: underline; }
/* Tiêu đề nhỏ trong thẻ: Cormorant cần lớn hơn mới rõ nét */
h3 { font-size: clamp(1.5rem, 1.95vw, 1.72rem); letter-spacing: .004em; }
.chi-nhanh .the h3 { font-size: 1.48rem; }
.the h3, .the-anh h3 { line-height: 1.25; }
.moc .nam { font-size: 1.85rem; }
@media (max-width: 640px) {
  h3 { font-size: 1.5rem; }
  .dac-trung h3 { font-size: 1.32rem; }
}
.doi > *, .luoi > * { min-width: 0; } select, input, textarea { max-width: 100%; }

.tranh-tho { max-width: 1080px; margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--bong-lg); }
.tranh-tho img { width: 100%; height: auto; }

.lien-ket-chu { color: var(--son); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 1141px) { .ct-luoi { grid-template-columns: 1.25fr .8fr .8fr 1.75fr; gap: 36px; } }
.ct-luoi li { text-wrap: pretty; }

.lien { white-space: nowrap; }

.nhan-tieu-de { font-style: italic; color: var(--son); font-weight: 600; }
.tin-hieu .the h3 { margin-bottom: 14px; }
.tin-hieu .ds-tich li { font-size: .95rem; margin-bottom: 8px; }
.the-dan { background: var(--nghe-pale); border-color: var(--nghe-soft); }
.bao-anh.bst-tu-lieu { grid-template-columns: repeat(3, 1fr); }
.bao-anh img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: #fff; }
@media (max-width: 900px) { .bao-anh.bst-tu-lieu { grid-template-columns: 1fr 1fr; } }

.lo-trinh .lt-anh { width: calc(100% + 44px); margin: -26px -22px 16px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r) var(--r) 0 0; max-width: none; }
.lo-trinh li { overflow: hidden; }
.nho-tieu { font-size: 1.35rem; margin: 26px 0 10px; color: var(--son); }
/* Sách & sản phẩm */
.muc-nho { padding: 34px 0; }
.danh-muc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dm { display: block; background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); padding: 20px 22px; transition: transform .3s var(--em), box-shadow .3s; }
.dm:hover { transform: translateY(-3px); box-shadow: var(--bong); }
.dm strong { display: block; font-size: 1rem; } .dm small { color: var(--son); font-family: var(--f-sach); font-style: italic; font-size: 0.92rem; }
.mot-dong { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.ke-sach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.sach p { font-size: .93rem; margin-top: 14px; }
.bia { position: relative; aspect-ratio: 3 / 4; border-radius: 4px 10px 10px 4px; padding: 22px 18px 18px 26px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--nghe-soft); box-shadow: 6px 10px 24px rgba(42, 30, 21, .28), inset 6px 0 0 rgba(0, 0, 0, .18); transition: transform .4s var(--em);
  background-image: radial-gradient(circle at 70% 75%, rgba(230, 194, 122, .18), transparent 45%), url("../img/mat-trong-dong.webp"); background-size: auto, 70%; background-repeat: no-repeat; background-position: center, 140% 120%; }
.sach:hover .bia { transform: translateY(-4px) rotate(-.6deg); }
.bia::after { content: "NXB Y học · 2026"; font-family: var(--f-sach); font-style: italic; font-size: 0.92rem; opacity: .8; }
.bia span { font-family: var(--f-sach); font-style: italic; font-size: .95rem; }
.bia b { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.2; color: #f6ead2; margin-top: auto; margin-bottom: 14px; text-wrap: balance; }
.bia-1 { background-color: #1f5a4a; } .bia-2 { background-color: #5a3920; } .bia-3 { background-color: #86251e; } .bia-4 { background-color: #143d33; }
.bia-5 { background-color: #7a5232; } .bia-6 { background-color: #a8322a; } .bia-7 { background-color: #3a2414; }
.sach-bo { grid-column: span 2; } .sach-bo .bia { aspect-ratio: 3 / 2; }
.nut-vien-toi { border: 1.5px solid var(--go); color: var(--go-dark); }
.sap-ra-mat .ta-nhan { color: var(--luc); }
@media (max-width: 1000px) { .ke-sach { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .danh-muc { grid-template-columns: 1fr; gap: 10px; } .ke-sach { gap: 20px 14px; } .bia b { font-size: 1.15rem; } .sach-bo { grid-column: span 2; } }

/* Video dọc (lời kể) */
.khung-video-doc { display: flex; justify-content: center; }
.video-doc { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; height: auto; border-radius: var(--r-lg); background: var(--go-dark); box-shadow: var(--bong-lg); object-fit: cover; }
.bia { background-image: radial-gradient(circle at 70% 80%, rgba(230, 194, 122, .14), transparent 50%); overflow: hidden; }
.bia::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; right: -26%; top: -20%; background: url("../img/mat-trong-dong.webp") center / contain no-repeat; opacity: .22; pointer-events: none; }
.bia > * { position: relative; }

.tranh-tho { overflow: visible; box-shadow: none; }
.tranh-tho img { border-radius: var(--r-lg); box-shadow: var(--bong-lg); }
.loi-tho { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; text-align: center; font-family: var(--f-sach); font-style: italic; color: var(--go-dark); font-size: 1.02rem; line-height: 1.7; }
.loi-tho cite { grid-column: 1 / -1; font-style: normal; font-family: var(--f-text); font-size: 0.92rem; color: var(--muc-2); }
@media (max-width: 700px) { .loi-tho { grid-template-columns: 1fr; gap: 12px; } }

.luoi-video { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; align-items: flex-start; }
.luoi-video figure { margin: 0; width: min(100%, 340px); }
.luoi-video figure.ngang { width: min(100%, 560px); }
.luoi-video .video-ngang { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r); background: var(--go-dark); box-shadow: var(--bong); }
.luoi-video figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muc-2); text-align: center; }
.luoi-video figcaption strong { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--go-dark); }

.video-ngang-lon { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-lg); background: var(--go-dark); box-shadow: var(--bong-lg); }

/* ===== Đợt 6 ===== */
.nen-anh { background: var(--giay-2) var(--anh) center / cover no-repeat; }
.muc-luc.nen-anh { background: var(--luc-dark) var(--anh) center / cover no-repeat; }
.muc-luc.nen-anh::before, .muc-luc.nen-anh::after { display: none; }
.dau-sang { background: var(--giay-2); padding-bottom: clamp(40px, 5vw, 64px); }
.dau-sang > img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; }
.dau-sang .khung { padding-top: 30px; }
.dau-sang .vet-dan, .dau-sang .vet-dan a { color: var(--muc-2); }
.dau-sang h1 { margin-top: 6px; } .dau-sang .lead { max-width: 62ch; margin-top: 16px; }
.dau-trang-con h1.mot-hang { max-width: none; }
.quy-trinh-nho { list-style: none; padding: 0; counter-reset: q; display: grid; gap: 16px; }
.quy-trinh-nho li { counter-increment: q; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.quy-trinh-nho li::before { content: counter(q); grid-row: span 2; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--nghe-soft); line-height: 1; border-right: 1px solid rgba(230, 194, 122, .4); padding-top: 4px; }
.quy-trinh-nho strong { color: var(--giay-2); } .quy-trinh-nho span { color: rgba(250, 244, 231, .78); font-size: .95rem; }
.khung-tranh-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; margin-bottom: 26px; }
.khung-tranh-luoi figure { margin: 0; background: #fff; padding: 12px 12px 18px; border: 1px solid var(--vien); box-shadow: var(--bong); border-radius: 6px; }
.khung-tranh-luoi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.khung-tranh-luoi figcaption { text-align: center; font-size: .92rem; color: var(--muc-2); padding-top: 14px; }
.khung-tranh-luoi strong { display: block; font-family: var(--f-display); font-size: 1.32rem; line-height: 1.25; color: var(--go-dark); text-wrap: balance; }
.bia > span:first-child { font-family: var(--f-sach); }
.bia b .lien, .bia b span { font: inherit; }
.bia-8 { background-color: #1f5a4a; } .bia-9 { background-color: #86251e; }
.duong-hoc { list-style: none; padding: 0; max-width: 1060px; margin: 0 auto; display: grid; gap: 34px; position: relative; }
.duong-hoc::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 1.5px; background: linear-gradient(var(--nghe), var(--luc)); opacity: .55; }
.duong-hoc li { position: relative; display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; }
.duong-hoc li:nth-child(even) .dh-anh { order: 3; } .duong-hoc li:nth-child(even) .dh-chu { order: 1; }
.duong-hoc .dh-so { order: 2; } .duong-hoc li:nth-child(odd) .dh-chu { order: 3; }
.dh-anh img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); box-shadow: var(--bong); }
.dh-so { justify-self: center; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--giay-2); border: 2px solid var(--nghe); font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; color: var(--son); z-index: 1; }
.duong-hoc li:last-child .dh-so { background: var(--luc); border-color: var(--luc); color: var(--giay-2); }
.dh-chu { background: var(--giay-2); border: 1px solid var(--vien); border-radius: var(--r); padding: 26px 28px; box-shadow: var(--bong-sm); }
.dh-chu .cap { font-family: var(--f-sach); font-style: italic; color: var(--son); } .dh-chu h3 { margin: 2px 0 10px; }
.dh-chu dt { font-weight: 600; font-size: 0.92rem; color: var(--go-dark); margin-top: 8px; } .dh-chu dd { margin: 0; font-size: .97rem; color: var(--muc-2); }
@media (max-width: 900px) {
  .khung-tranh-luoi { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .duong-hoc::before { display: none; }
  .duong-hoc li { grid-template-columns: 1fr; gap: 0; }
  .duong-hoc li .dh-anh, .duong-hoc li:nth-child(even) .dh-anh { order: 1; } .duong-hoc .dh-so { order: 2; margin: -28px 0 -28px; } .duong-hoc li .dh-chu, .duong-hoc li:nth-child(even) .dh-chu { order: 3; padding-top: 40px; }
}
@media (max-width: 520px) { .khung-tranh-luoi { grid-template-columns: 1fr; } }

.moc-anh img.mat { object-position: 50% 12%; filter: grayscale(1); }
.moc-anh img.tron { object-fit: contain; background: #f3ead6; padding: 14px; }
.bst.bst-deu { columns: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bst-deu figure { margin: 0; } .bst-deu img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.luoi-bao .ta-anh img { object-fit: cover; object-position: top; } .luoi-bao .video-nhe { border-radius: 0; box-shadow: none; }
.luoi-bao .lien-ket { margin-top: 12px; }
@media (max-width: 900px) { .bst.bst-deu { grid-template-columns: 1fr 1fr; } }

.muc-luc .bieu-mau h3 { color: var(--go-dark); }
.muc-luc .bieu-mau > p { color: var(--muc-2); }

/* =====================================================================
   v7 — đầu trang thống nhất · menu xổ · tìm kiếm · album · sách lật · logo tương tác
   ===================================================================== */
html { scroll-padding-top: 96px; }
.muc-luc { background-color: #1f6250; }
.muc-luc.sang-hon { background: linear-gradient(160deg, #35876d, #2a7560); }
.muc-luc.sang-hon p, .sang-hon .con-so span { color: rgba(255, 252, 243, .94); }
.sang-hon .con-so b, .muc-luc.sang-hon .nhan { color: #ffe3a0; }
.muc-luc.sang-hon .ghi-nguon { color: rgba(255, 252, 243, .82); }
.muc-luc.sang-hon .ds-tich li { color: #fffaf0; }
.muc-luc.sang-hon .bieu-mau p { color: var(--muc-2); }

/* Đầu trang: giống hệt nhau ở mọi trang */
.dau-trang .khung { max-width: 1480px; height: 92px; gap: 16px; }
.dau-trang.da-cuon .khung { height: 76px; }
.thuong-hieu img { height: 70px; width: auto; }
.dau-trang.da-cuon .thuong-hieu img { height: 60px; }
.thuong-hieu span b { font-weight: 700; display: block; }
.menu { gap: 0; }
.menu > li { position: relative; }
.menu > li > a { padding: 12px 10px; font-size: .95rem; }
.menu > li > a::after { left: 10px; right: 10px; }
.menu .xo { position: absolute; left: 0; top: 100%; min-width: 236px; padding: 10px; background: #fffdf7; border: 1px solid var(--vien); border-top: 3px solid var(--son); border-radius: 0 0 14px 14px; box-shadow: var(--bong); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--em), visibility .25s; z-index: 5; }
.menu > li:nth-last-child(-n+3) .xo { left: auto; right: 0; }
.menu > li:hover .xo, .menu > li:focus-within .xo { opacity: 1; visibility: visible; transform: none; }
.menu .xo a { padding: 9px 14px; font-size: .92rem; font-weight: 500; border-radius: 9px; color: var(--muc-2); }
.menu .xo a::after { display: none; }
.menu .xo a:hover, .menu .xo a:focus-visible { background: var(--nghe-pale); color: var(--son-dark); }
.nut-tron { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--vien); background: #fffdf7; color: var(--go-dark); transition: background .3s, color .3s, border-color .3s; padding: 0; }
.nut-tron svg { width: 21px; height: 21px; }
.nut-tron:hover { background: var(--son); color: #fff; border-color: var(--son); }
.nut-menu.nut-tron { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.nut-menu.nut-tron svg { width: 23px; height: 23px; }
@media (max-width: 1500px) { .dt-hanh-dong .nut-son { display: none; } }
@media (max-width: 1319px) { .dt-hanh-dong .nut-son { display: inline-flex; } }
@media (max-width: 760px) { .dt-hanh-dong .nut-son { display: none; } }
@media (max-width: 640px) {
  .dau-trang .khung, .dau-trang.da-cuon .khung { height: 76px; gap: 8px; }
  .thuong-hieu img, .dau-trang.da-cuon .thuong-hieu img { height: 54px; }
  .thuong-hieu span { white-space: normal; max-width: 172px; font-size: 0.92rem; line-height: 1.22; }
  .thuong-hieu small { font-size: 0.92rem; white-space: nowrap; }
  .dt-hanh-dong { gap: 6px; }
  .nut-tron, .nut-menu.nut-tron { width: 42px; height: 42px; }
}
@media (max-width: 379px) {
  .thuong-hieu small { display: none; }
  .thuong-hieu span { max-width: 140px; font-size: 0.92rem; }
  .thuong-hieu img, .dau-trang.da-cuon .thuong-hieu img { height: 46px; }
}

/* Ngăn kéo */
.ngan-keo .tam { overflow-y: auto; width: min(90vw, 400px); }
.ngan-keo .tam-dau img { height: 72px; width: auto; }
.o-tim-nhanh { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid var(--vien); border-radius: 999px; background: #fff; color: var(--muc-2); margin-bottom: 10px; }
.o-tim-nhanh svg { width: 18px; height: 18px; }
.ngan-keo nav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 13px 4px; font-size: 1.06rem; font-weight: 600; color: var(--go-dark); border-bottom: 1px solid var(--vien); }
.ngan-keo nav summary::-webkit-details-marker { display: none; }
.ngan-keo nav summary::after { content: ""; width: 9px; height: 9px; border: solid var(--son); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.ngan-keo nav details[open] summary::after { transform: rotate(-135deg); }
.ngan-keo nav details a { padding: 10px 14px; font-size: .95rem; font-weight: 500; border: 0; color: var(--muc-2); }
.ngan-keo nav details a.tat-ca { color: var(--son); font-weight: 600; }
.ngan-keo nav details a:last-child { padding-bottom: 14px; }
.ngan-keo nav a.don { padding: 13px 4px; font-size: 1.06rem; }

/* Tìm kiếm */
.hop-tim { position: fixed; inset: 0; z-index: 450; background: rgba(60, 42, 24, .42); backdrop-filter: blur(6px); padding: clamp(14px, 8vh, 90px) 16px 16px; }
.hop-tim[hidden] { display: none; }
.hop-tim-tam { max-width: 760px; margin: 0 auto; background: #fffdf7; border-radius: 22px; box-shadow: var(--bong-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 100%; }
.hop-tim-o { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--vien); }
.hop-tim-o > svg { width: 24px; height: 24px; color: var(--son); flex: none; }
.hop-tim-o input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.12rem; color: var(--muc); }
.hop-tim-kq { overflow-y: auto; padding: 10px; }
.hop-tim-kq > a { display: block; padding: 13px 16px; border-radius: 12px; }
.hop-tim-kq > a:hover, .hop-tim-kq > a:focus-visible { background: var(--nghe-pale); }
.hop-tim-kq small { color: var(--son); font-family: var(--f-sach); font-style: italic; }
.hop-tim-kq strong { display: block; font-family: var(--f-display); font-size: 1.28rem; line-height: 1.25; color: var(--go-dark); }
.hop-tim-kq p { font-size: 0.92rem; line-height: 1.55; }
.goi-y { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.goi-y button { border: 1px solid var(--vien); background: var(--giay-2); border-radius: 999px; padding: 8px 16px; font-size: 0.92rem; color: var(--go-dark); }

/* Chân trang */
.ct-thuong-hieu img { height: 118px; width: auto; padding: 14px 20px; border-radius: 18px; }
.ct-thuong-hieu .ct-ten { color: #faf4e7; font-weight: 600; white-space: nowrap; max-width: none; font-size: .98rem; margin-bottom: 8px; }
.ct-thuong-hieu .ct-ten + p { margin-top: 0; }
@media (min-width: 1141px) { .ct-luoi { grid-template-columns: 1.75fr .95fr .85fr 1.5fr; gap: 34px; } }
@media (max-width: 380px) { .ct-thuong-hieu .ct-ten { font-size: 0.92rem; } }
.chan-trang { background-color: #4a3020; }

/* Tranh làng cổ: mảng chữ sáng */
.bang-tranh.sang { background: var(--giay-2); }
.bang-tranh.sang .chu { background: linear-gradient(90deg, rgba(252, 247, 234, .97) 0%, rgba(252, 247, 234, .9) 30%, rgba(252, 247, 234, .45) 48%, rgba(252, 247, 234, 0) 64%); }
.bang-tranh.sang .chu h2 { color: var(--go-dark); }
.bang-tranh.sang .chu p { color: var(--muc-2); }
.bang-tranh.sang .chu .nhan { color: var(--son); }
@media (max-width: 900px) { .bang-tranh.sang .chu { background: var(--giay-2); } }

/* Một hàng */
.dau-trang-con h1.mot-hang { max-width: none; white-space: nowrap; font-size: clamp(1.45rem, 6.2vw, 4rem); }
.h2-mot-hang { white-space: nowrap; font-size: clamp(1.5rem, 3.1vw, 2.55rem); }
@media (max-width: 900px) { .h2-mot-hang { font-size: clamp(1.45rem, 6.4vw, 2.8rem); } }
.khung-chan-dung { margin: 0 auto; max-width: 430px; background: #fff; padding: 16px 16px 20px; border: 1px solid var(--vien); border-radius: 8px; box-shadow: var(--bong); text-align: center; }
.khung-chan-dung img { width: 100%; height: auto; border-radius: 4px; background: #cfcfcf; }
.khung-chan-dung figcaption { padding-top: 14px; font-size: .95rem; color: var(--muc-2); }
.khung-chan-dung strong { display: block; font-family: var(--f-display); font-size: 1.5rem; line-height: 1.25; color: var(--go-dark); }
.moc-anh img.mat { object-fit: contain; object-position: center bottom; filter: grayscale(1); background: #b9b9b9; padding-top: 10px; }
.can-giua .anh-vien::after { inset: 12px -12px -12px 12px; }
.to-giay { background: rgba(255, 253, 247, .9); border: 1px solid var(--vien); border-radius: var(--r-lg); padding: clamp(26px, 5vw, 56px); box-shadow: var(--bong-sm); }

/* Thu gọn, xem thêm */
.thu-gon.co-nut > *:not(.nut-them) { display: none; }
.thu-gon.co-nut.mo > *:not(.nut-them) { display: block; animation: hien .5s var(--em); }
.thu-gon.co-nut.mo > .ds-tich { display: grid; }
.thu-gon.thu-bang.co-nut > table { display: table; }
.thu-bang.co-nut:not(.mo) .them { display: none; }
.thu-bang.co-nut .bang-tt { text-align: left; background: rgba(255, 253, 247, .93); }
.thu-bang { text-align: center; }
.thu-gon > p:first-child { margin-top: 1em; }
.nut-them { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 22px; border: 1.5px solid var(--son); background: #fffdf7; color: var(--son); border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .3s, color .3s; align-self: flex-start; }
.nut-them::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .3s; }
.al-tu::after { display: none; }
.mo > .nut-them::after { transform: rotate(-135deg); }
.nut-them:hover { background: var(--son); color: #fff; }

/* Ảnh cuộn theo người đọc */
.cuon-ke { align-items: start; }
.ck-anh { position: sticky; top: 116px; }
.ck-khung { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; box-shadow: var(--bong); }
.ck-khung figure { margin: 0; position: absolute; inset: 0; opacity: 0; transform: scale(1.05) translateY(14px); transition: opacity .9s, transform 1.2s var(--em); }
.ck-khung figure.hien { opacity: 1; transform: none; }
.ck-khung img { width: 100%; height: 100%; object-fit: cover; }
.ck-khung figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px; color: #fff; font-size: 0.92rem; background: linear-gradient(transparent, rgba(30, 20, 12, .72)); }
.ck-cham { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.ck-cham button { width: 26px; height: 5px; border: 0; padding: 0; border-radius: 5px; background: var(--vien); transition: background .3s, width .3s; }
.ck-cham button.hien { background: var(--son); width: 44px; }
@media (max-width: 900px) { .ck-anh { position: static; } }

/* Logo tương tác */
.logo-kham-pha { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.lg-ban { position: relative; background: #fff; border: 1px solid var(--vien); border-radius: var(--r-lg); box-shadow: var(--bong); aspect-ratio: 632 / 560; overflow: hidden; }
.lg-trong { position: absolute; left: 7%; width: 86%; top: 50%; aspect-ratio: 632 / 526; transform: translateY(-50%); }
.lg-trong > img, .lg-luoi { position: absolute; inset: 0; width: 100%; height: 100%; }
.lg-luoi { overflow: visible; fill: none; stroke: #c9b48a; stroke-width: 1; transition: opacity .4s; }
.lg-o { opacity: .45; }
.lg-truc { stroke: var(--nghe); stroke-dasharray: 6 6; }
.lg-do { stroke: var(--go-mid); }
.lg-ban.tat-luoi .lg-luoi { opacity: 0; }
.lg-trong > img { transition: opacity .5s, filter .5s, transform .7s var(--em); }
.lg-ban.chon .lg-trong > img { opacity: .13; filter: grayscale(1); }
.lg-ban.chon .lg-trong > img.sang { opacity: 1; filter: drop-shadow(0 8px 14px rgba(58, 36, 20, .22)); transform: scale(1.025); }
.lg-diem { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; background: none; padding: 0; z-index: 2; }
.lg-diem i { display: block; width: 18px; height: 18px; margin: auto; border-radius: 50%; background: #fff; border: 4px solid var(--son); box-shadow: 0 0 0 0 rgba(168, 50, 42, .45); animation: nhip 2.4s infinite; }
.lg-diem.hien i { background: var(--son); border-color: #fff; }
@keyframes nhip { 70% { box-shadow: 0 0 0 14px rgba(168, 50, 42, 0); } 100% { box-shadow: 0 0 0 0 rgba(168, 50, 42, 0); } }
.lg-nut { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 20px; }
.lg-y { list-style: none; padding: 0; display: grid; gap: 10px; }
.lg-y li { background: rgba(255, 253, 247, .9); border: 1px solid var(--vien); border-radius: 14px; transition: border-color .3s, box-shadow .3s; }
.lg-y li button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; background: none; padding: 13px 18px; font-family: var(--f-display); font-weight: 700; font-size: 1.36rem; line-height: 1.2; color: var(--go-dark); }
.so-nho { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--nghe); font-size: 1.05rem; color: var(--son); }
.lg-y p { display: none; padding: 0 18px 16px 62px; font-size: .95rem; }
.lg-y li.mo { border-color: var(--son); box-shadow: var(--bong-sm); }
.lg-y li.mo p { display: block; animation: hien .45s var(--em); }
.lg-y li.mo .so-nho { background: var(--son); color: #fff; border-color: var(--son); }
@media (max-width: 900px) { .logo-kham-pha { grid-template-columns: 1fr; } .lg-y p { padding-left: 18px; } }

/* Nhân sự */
.nhom-nv { margin-top: 44px; }
.nhom-nv > h3 { color: var(--son); margin-bottom: 18px; }
.luoi-nv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nv { background: rgba(255, 253, 247, .94); border: 1px solid var(--vien); border-radius: var(--r); padding: 14px 14px 20px; text-align: center; }
.nv.cho { border-style: dashed; }
.nv-anh { display: grid; place-items: end center; aspect-ratio: 4 / 5; border-radius: 12px; background: linear-gradient(#f4ead2, #e8d9b6); overflow: hidden; margin-bottom: 14px; }
.nv-anh svg { width: 70%; fill: #cdb789; }
.nv strong { display: block; font-family: var(--f-display); font-size: 1.32rem; line-height: 1.25; color: var(--go-dark); }
.nv.cho strong { color: #8a7650; }
.nv > span:last-child { font-size: 0.92rem; color: var(--muc-2); line-height: 1.45; display: block; margin-top: 4px; }
@media (max-width: 900px) { .luoi-nv { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Album tư liệu */
.al-the, .loc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.al-the button, .loc button { border: 1.5px solid var(--vien); background: #fffdf7; color: var(--go-dark); border-radius: 999px; padding: 10px 22px; font-weight: 600; font-size: .95rem; transition: all .3s; }
.al-the button[aria-selected="true"], .loc button[aria-pressed="true"] { background: var(--son); border-color: var(--son); color: #fff; }
.al-the small { font-weight: 400; opacity: .8; margin-left: 6px; }
.al-san { position: relative; background: #fffdf7; border: 1px solid var(--vien); border-radius: var(--r-lg); box-shadow: var(--bong); padding: clamp(12px, 2vw, 24px); display: grid; grid-template-columns: 1fr 300px; gap: 26px; }
.al-anh { position: relative; height: clamp(280px, 48vw, 540px); border-radius: 14px; overflow: hidden; background: radial-gradient(circle, #fbf4e2, #efe2c4); }
.al-anh img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; cursor: zoom-in; animation: alvao .6s var(--em); filter: drop-shadow(0 10px 22px rgba(58, 36, 20, .25)); }
@keyframes alvao { from { opacity: 0; transform: translateX(26px) scale(.97); } }
.al-nut { position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; z-index: 2; }
.al-nut.truoc { left: 14px; }
.al-nut.sau { right: 14px; }
.al-nut.truoc svg { transform: rotate(180deg); }
.al-chu { display: flex; flex-direction: column; justify-content: center; padding: 6px 8px; }
.al-chu .dem { font-family: var(--f-sach); font-style: italic; color: var(--son); }
.al-chu .cau { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; line-height: 1.3; color: var(--go-dark); margin: 10px 0 18px; min-height: 5.2em; }
.al-dai { display: flex; gap: 10px; overflow-x: auto; padding: 16px 2px 8px; scrollbar-width: thin; scroll-behavior: smooth; position: relative; }
.al-dai button { flex: none; width: 92px; height: 70px; border-radius: 10px; overflow: hidden; border: 2.5px solid transparent; padding: 0; background: #efe2c4; opacity: .68; transition: all .3s; }
.al-dai button.hien { border-color: var(--son); opacity: 1; }
.al-dai img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .al-san { grid-template-columns: 1fr; gap: 12px; }
  .al-chu .cau { min-height: 0; font-size: 1.3rem; margin: 4px 0 8px; }
  .al-dai button { width: 74px; height: 58px; }
}

/* Sách lật */
.sach-lat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sach-lat.chay { display: block; }
.sl-sach { position: relative; width: min(100%, 1060px); margin: 0 auto; aspect-ratio: 2.25 / 1; perspective: 2400px; }
.sl-to { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.45, .05, .3, 1); cursor: pointer; }
.sl-to.lat { transform: rotateY(-180deg); }
.sl-mat { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fdf8ea; border: 1px solid var(--vien); border-radius: 2px 10px 10px 2px; box-shadow: 0 10px 34px rgba(58, 36, 20, .18), inset 26px 0 34px -26px rgba(58, 36, 20, .35); padding: clamp(10px, 2vw, 24px); display: flex; flex-direction: column; }
.sl-mat.sau { transform: rotateY(180deg); border-radius: 10px 2px 2px 10px; box-shadow: 0 10px 34px rgba(58, 36, 20, .18), inset -26px 0 34px -26px rgba(58, 36, 20, .35); }
.sl-mat figure { margin: 0; height: 100%; display: flex; flex-direction: column; min-height: 0; }
.sl-mat figure img { flex: 1; min-height: 0; width: 100%; height: auto; object-fit: contain; cursor: zoom-in; }
.sl-mat figcaption { font-family: var(--f-sach); font-style: italic; font-size: 0.92rem; color: var(--muc-2); text-align: center; padding-top: 10px; line-height: 1.4; }
.sach-lat:not(.chay) .bia-truoc { display: none; }
.bia-truoc { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 1.5px solid var(--nghe); border-radius: 6px; padding: 16px; background: linear-gradient(150deg, #fff7e0, #f3e0b4); }
.bia-truoc img { height: 34%; width: auto; }
.bia-truoc b { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 2.2rem); line-height: 1.2; color: var(--luc); }
.bia-truoc span { color: var(--muc-2); }
.bia-truoc em { font-family: var(--f-sach); color: var(--son); }
.sl-dieu { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 22px; color: var(--muc-2); }
.sl-dieu .truoc svg { transform: rotate(180deg); }
@media (max-width: 760px) {
  .sl-sach { aspect-ratio: 1 / 1.05; }
  .sl-to { left: 0; width: 100%; }
  .sl-to.lat { transform: rotateY(-178deg); opacity: 0; transition: transform .9s, opacity .5s .35s; pointer-events: none; }
}

/* Rạp chiếu video: sáng, tươi */
.rap-muc { background: linear-gradient(180deg, #fffaf0 0%, #fdeecb 55%, #fff8ea 100%); overflow: hidden; }
.rap-muc::before { content: ""; position: absolute; width: 620px; aspect-ratio: 1; right: -220px; top: -180px; background: url("../img/mat-trong-dong.webp") center / contain no-repeat; opacity: .1; animation: xoay 160s linear infinite; pointer-events: none; }
.rap-muc > .khung { position: relative; }
.rap { background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 24px 60px rgba(120, 84, 24, .2); border: 1px solid #f0dfb5; }
.rap-ngang { max-width: 980px; margin: 0 auto; }
.rap-doi { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 34px; justify-content: center; align-items: start; }
.rap-man { position: relative; border-radius: 17px; overflow: hidden; background: #f6ead0; }
.rap-man video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.rap-doc .rap-man video { aspect-ratio: 9 / 16; }
.rap-nut { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }
.rap-phat { position: absolute; right: 8%; bottom: 10%; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #e2523f, #b3322a); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 14px 30px rgba(120, 30, 20, .35); transition: transform .35s var(--em); animation: tho-nut 2.6s ease-in-out infinite; }
.rap-doc .rap-phat { right: 8%; bottom: 44%; }
.rap-phat svg { width: 34px; height: 34px; margin-left: 5px; }
.rap-nut:hover .rap-phat { transform: scale(1.1); }
@keyframes tho-nut { 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, .3), 0 14px 30px rgba(120, 30, 20, .35); } }
.rap-ten { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rap.dang-phat .rap-nut { display: none; }
.rap-dau { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 8px 0; }
.rap-dau strong { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.2; color: var(--go-dark); }
.rap-dau span { font-size: 0.92rem; color: var(--muc-2); white-space: nowrap; }
.rap-chuong { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 6px 4px; }
.rap-chuong button { border: 1px solid #ecd9a8; background: #fff9ea; border-radius: 12px; padding: 8px 13px; font-size: 0.92rem; line-height: 1.4; color: var(--go-dark); text-align: left; transition: all .25s; }
.rap-chuong button b { color: var(--son); font-weight: 600; margin-right: 8px; font-variant-numeric: tabular-nums; }
.rap-chuong button:hover, .rap-chuong button.hien { background: #2c7a62; border-color: #2c7a62; color: #fff; }
.rap-chuong button:hover b, .rap-chuong button.hien b { color: #ffe3a0; }
@media (max-width: 760px) {
  .rap-doi { grid-template-columns: minmax(0, 400px); }
  .rap-phat { width: 64px; height: 64px; }
  .rap-phat svg { width: 26px; height: 26px; }
  .rap { padding: 8px; border-radius: 20px; }
}

/* Bản đồ theo cơ sở */
.xem-ban-do { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; margin-top: 10px; font-size: 0.92rem; font-weight: 600; color: var(--luc); }
.xem-ban-do svg { width: 16px; height: 16px; }
.chi-nhanh .the { display: flex; flex-direction: column; align-items: flex-start; cursor: pointer; }
.chi-nhanh .the p { flex: 1; }
.chi-nhanh .chi-duong { margin-left: 0; }
.chi-nhanh .the.chon { border-color: var(--son); box-shadow: 0 0 0 2px rgba(168, 50, 42, .18), var(--bong-sm); background: #fffdf7; }
.ban-do { display: grid; grid-template-columns: 320px 1fr; margin-top: 32px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--vien); box-shadow: var(--bong); background: #fffdf7; }
.ban-do iframe { width: 100%; height: 420px; border: 0; }
.bd-chu { padding: 34px 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bd-chu strong { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.2; color: var(--go-dark); }
.bd-chu > span:not(.nhan) { color: var(--muc-2); }
.bd-chu .nut { margin-top: 14px; align-self: flex-start; white-space: normal; }
@media (max-width: 900px) { .ban-do { grid-template-columns: 1fr; } .ban-do iframe { height: 320px; } .bd-chu { padding: 24px; } }
.dat-lich-sang .quy-trinh-nho strong { color: var(--go-dark); }
.dat-lich-sang .quy-trinh-nho span { color: var(--muc-2); }
.dat-lich-sang .quy-trinh-nho li::before { color: var(--son); border-color: var(--nghe); }

/* Lộ trình bốn cấp */
.bac-thang { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.bt-nut { list-style: none; padding: 0; display: grid; gap: 12px; }
.bt-nut li { background: var(--giay-2); border: 1px solid var(--vien); border-radius: 16px; transition: border-color .3s, box-shadow .3s, background .3s; overflow: hidden; }
.bt-nut li.mo { background: #fffdf7; border-color: var(--nghe); box-shadow: var(--bong); }
.bt-nut li > button { width: 100%; display: flex; align-items: center; gap: 18px; padding: 14px 20px; border: 0; background: none; text-align: left; }
.bt-nut i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-style: normal; font-weight: 700; font-size: 1.5rem; color: var(--son); border: 2px solid var(--nghe); background: #fff; transition: all .3s; }
.bt-nut li.mo i { background: var(--son); border-color: var(--son); color: #fff; }
.bt-nut li > button span { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.2; color: var(--go-dark); }
.bt-nut small { display: block; font-family: var(--f-sach); font-style: italic; font-weight: 400; font-size: .92rem; color: var(--son); }
.bt-than { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--em); }
.bt-than > div { overflow: hidden; padding: 0 22px 0 84px; min-height: 0; }
.bt-nut li.mo .bt-than { grid-template-rows: 1fr; }
.bt-nut li.mo .bt-than > div { padding-bottom: 20px; }
.bt-than p { font-size: .96rem; }
.bt-than strong { display: block; font-size: 0.92rem; color: var(--go-dark); }
.bt-anh { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--bong); }
.bt-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s, transform 1.4s var(--em); }
.bt-anh img.hien { opacity: 1; transform: none; }
.bt-anh-nho { display: none; margin: 0 0 14px; }
@media (max-width: 900px) {
  .bac-thang { grid-template-columns: 1fr; }
  .bt-anh { display: none; }
  .bt-anh-nho { display: block; }
  .bt-anh-nho img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
  .bt-than > div { padding: 0 20px; }
  .bt-nut li > button span { font-size: 1.36rem; }
}

/* Ô chờ cập nhật */
.o-cho { background: rgba(255, 253, 247, .85); border: 1.5px dashed #cdb789; border-radius: var(--r); padding: 30px 26px; text-align: center; }
.o-cho > span { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--nghe-pale); color: var(--go-mid); }
.o-cho svg { width: 28px; height: 28px; }
.o-cho strong { font-family: var(--f-sach); font-style: italic; font-weight: 400; color: var(--son); }
.o-cho em { font-size: 0.92rem; color: var(--muc-2); font-style: normal; }
.o-cho h3 { margin: 4px 0 6px; }
.tn-the .the > svg { width: 30px; height: 30px; color: var(--son); margin-bottom: 12px; }
.tn-loi { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.tn-loi a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #fffdf7; border: 1px solid var(--vien); font-weight: 500; font-size: .94rem; }
.tn-loi svg { width: 18px; height: 18px; color: var(--son); }
.tn-loi a:hover { border-color: var(--son); }
@media (prefers-reduced-motion: reduce) { .rap-muc::before { animation: none; } }
.dau-trang-con::before { background: linear-gradient(100deg, rgba(42, 26, 14, .84), rgba(42, 26, 14, .46) 58%, rgba(42, 26, 14, .16)); }

/* Trắc nghiệm */
.tn-ds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tn-bai { text-align: left; background: #fffdf7; border: 1px solid var(--vien); border-radius: var(--r); padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--em), box-shadow .4s, border-color .3s; color: var(--muc-2); }
.tn-bai:first-child { background: linear-gradient(160deg, #fff6dc, #fbe7b6); border-color: var(--nghe-soft); }
.tn-bai:hover { transform: translateY(-5px); box-shadow: var(--bong); border-color: var(--son); }
.tn-bai svg { width: 38px; height: 38px; color: var(--son); margin-bottom: 8px; }
.tn-bai small { font-family: var(--f-sach); font-style: italic; color: var(--son); font-size: .92rem; }
.tn-bai strong { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; line-height: 1.2; color: var(--go-dark); }
.tn-bai span { font-size: .94rem; line-height: 1.65; flex: 1; }
.tn-bai em { font-style: normal; font-size: 0.92rem; font-weight: 600; color: var(--luc); margin-top: 8px; }
.tn-ai { text-align: center; margin-top: 22px; }
.tn-ai button, .tn-lai { border: 0; background: none; color: var(--son); text-decoration: underline; text-underline-offset: 3px; padding: 12px; font-size: .95rem; }
.tn-hop { max-width: 760px; margin: 0 auto; background: #fffdf7; border: 1px solid var(--vien); border-radius: var(--r-lg); box-shadow: var(--bong); padding: clamp(26px, 5vw, 56px); }
.tn-hop > small, .tn-thu > small { font-family: var(--f-sach); font-style: italic; color: var(--son); font-size: 1rem; display: block; margin-bottom: 8px; }
.tn-hop h2:focus, .tn-hop h3:focus { outline: none; }
.tn-hop h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); min-height: 2.4em; }
.tn-tien { height: 6px; border-radius: 6px; background: var(--giay-3); margin-bottom: 26px; overflow: hidden; }
.tn-tien b { display: block; height: 100%; background: linear-gradient(90deg, #35876d, var(--nghe)); border-radius: 6px; transition: width .4s; }
.tn-chon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.tn-chon button { border: 1.5px solid var(--vien); background: #fff; border-radius: 14px; padding: 16px; font-weight: 500; color: var(--go-dark); transition: all .2s; }
.tn-chon button:hover, .tn-chon button.da { border-color: var(--son); background: #fff3e6; transform: translateY(-2px); }
.tn-duoi { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.tn-co { display: grid; gap: 10px; margin-top: 18px; }
.tn-co label { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 13px 16px; border: 1.5px solid var(--vien); border-radius: 12px; background: #fff; cursor: pointer; font-size: .97rem; line-height: 1.5; }
.tn-co input, .tn-gui input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--son); }
.tn-dn p { margin: 12px 0 18px; }
.tn-ma { letter-spacing: .4em; font-size: 1.5rem !important; text-align: center; }
.tn-kq ul { display: grid; gap: 16px; margin: 24px 0 0; }
.tn-dong > div { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; }
.tn-dong span { font-weight: 600; color: #2a7560; white-space: nowrap; }
.tn-dong.vua span { color: #9a6408; }
.tn-dong.can span { color: var(--son); }
.tn-dong i { display: block; height: 9px; border-radius: 9px; background: var(--giay-3); margin-top: 7px; overflow: hidden; }
.tn-dong i b { display: block; height: 100%; border-radius: 9px; background: #35876d; animation: keo 1s var(--em); }
.tn-dong.vua i b { background: var(--nghe); }
.tn-dong.can i b { background: var(--son); }
@keyframes keo { from { width: 0; } }
.tn-khan { margin-top: 18px; padding: 18px 20px; border-radius: 14px; background: #fde7e2; border: 1.5px solid var(--son); color: var(--son-dark); font-weight: 600; }
.tn-the-trang { margin-top: 20px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(150deg, #eef7f1, #fff9e8); border: 1px solid var(--vien); }
.tn-the-trang strong { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; color: var(--luc); }
.tn-gui { margin: 26px 0; padding: 22px; border-radius: 16px; background: var(--giay-2); border: 1px solid var(--vien); }
.tn-tiep { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.tn-tiep strong { width: 100%; }
.tn-tiep button { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--luc); color: var(--luc); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; }
.tn-tiep svg { width: 18px; height: 18px; }
.tn-thu { background: #fffdf7; border: 1px solid var(--vien); border-radius: var(--r-lg); box-shadow: var(--bong); padding: clamp(26px, 4vw, 46px); min-height: 330px; display: flex; flex-direction: column; justify-content: center; }
.tn-thu h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.tn-thu .nut { align-self: flex-start; margin-top: 18px; }
.tn-thu .tn-lai { align-self: flex-start; padding-left: 0; }
@media (max-width: 1100px) { .tn-ds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tn-ds, .tn-chon { grid-template-columns: 1fr; } .tn-hop h3 { min-height: 0; } }
/* Góc học viên, tuyển dụng */
.tc-hoac { text-align: center; position: relative; margin: 4px 0 14px; font-size: 0.92rem; }
.tc-hoac::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--vien); }
.tc-hoac span { position: relative; background: var(--giay-2); padding: 0 14px; }
.tc-kq { margin-top: 16px; }
.tc-kq .thong-bao { display: block; }
.tc-the { background: #fff; border: 1px solid var(--vien); border-left: 4px solid #35876d; border-radius: 12px; padding: 18px 20px; margin-top: 12px; }
.tc-the strong { font-family: var(--f-display); font-size: 1.45rem; }
.tc-the dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin-top: 8px; font-size: .95rem; }
.tc-the dt { color: var(--muc-2); } .tc-the dd { margin: 0; font-weight: 600; }
[data-nhom][hidden] { display: none; }
.td-the { display: flex; flex-direction: column; }
.td-the p { margin-top: 8px; } .td-the p strong { display: block; font-size: 0.92rem; color: var(--son); }
.td-the .lien-ket { margin-top: auto; padding-top: 18px; align-self: flex-start; }
.nen-anh .hoi-dap:not(details) { background: rgba(255, 253, 247, .88); border: 1px solid var(--vien); border-radius: var(--r-lg); padding: 10px clamp(18px, 3vw, 36px); box-shadow: var(--bong-sm); }
.nen-anh .hoi-dap:not(details) details:last-child { border-bottom: 0; }
.con-so span { text-wrap: balance; }
main { overflow-x: clip; }
.ngan-keo { overflow: clip; }
.hop-tim-kq { overflow-x: hidden; overflow-wrap: anywhere; }

/* ===== Đợt 8: đầu trang sáng · màu theo yêu cầu · hành trình thu gọn · nhạc nền · đổi ngôn ngữ ===== */
.hero { color: var(--muc); background: var(--giay-2); }
.hero::before { background:
  radial-gradient(120% 95% at 0% 100%, rgba(255, 250, 238, .98) 0%, rgba(255, 250, 238, .93) 36%, rgba(255, 250, 238, .55) 54%, rgba(255, 250, 238, 0) 72%),
  linear-gradient(0deg, rgba(255, 250, 238, .95) 0%, rgba(255, 250, 238, .55) 16%, rgba(255, 250, 238, 0) 34%); }
.hero h1 { color: #14573f; }
.hero h1 em { color: var(--son); }
.hero .lead { color: #3b2c20; font-weight: 500; }
.hero .nhan { color: var(--son); }
.hero .nut-vien, .dau-trang-con .nut-vien { border-color: rgba(90, 57, 32, .55); color: var(--go-dark); background: rgba(255, 252, 244, .7); }
.hero .nut-vien:hover, .dau-trang-con .nut-vien:hover { background: var(--go-dark); color: #fff; border-color: var(--go-dark); }
.hero-cham button { background: rgba(90, 57, 32, .28); }
.hero-cham button.hien { background: var(--son); }
.hero-chu-anh { color: #4a382a; font-weight: 500; }
@media (max-width: 640px) {
  .hero { background: var(--giay-2); }
  .hero .hero-anh::after { background: linear-gradient(0deg, #faf4e7 0%, rgba(250, 244, 231, 0) 30%); }
}
/* Đầu các trang con: sáng, chữ dồn về bên trái */
.dau-trang-con { color: var(--muc); background: var(--giay-2); }
.dau-trang-con::before { background: linear-gradient(90deg, rgba(255, 250, 238, .98) 0%, rgba(255, 250, 238, .95) 26%, rgba(255, 250, 238, .78) 42%, rgba(255, 250, 238, .22) 60%, rgba(255, 250, 238, 0) 74%); }
.dau-trang-con > .khung { max-width: 1480px; }
.dau-trang-con h1 { color: #14573f; max-width: 15ch; font-size: clamp(2.2rem, 4.5vw, 3.7rem); }
.dau-trang-con h1.mot-hang { font-size: clamp(1.45rem, 4.1vw, 3.5rem); }
.dau-trang-con .lead { color: #3b2c20; max-width: 46ch; font-weight: 500; }
.dau-trang-con .nhan { color: var(--son); }
.dau-trang-con .vet-dan, .dau-trang-con .vet-dan a { color: var(--muc-2); }
.dau-trang-con .vet-dan a:hover { color: var(--son); }
@media (max-width: 760px) {
  .dau-trang-con { padding-top: 250px; }
  .dau-trang-con > img { height: 270px; inset: 0 0 auto 0; }
  .dau-trang-con::before { background: linear-gradient(180deg, rgba(250, 244, 231, 0) 0, rgba(250, 244, 231, 0) 150px, var(--giay-2) 258px); }
}
/* Con số: C100 M20 Y100 · Di sản: M60 Y100 lan từ trái */
#con-so.muc-luc { background: #009356; }
#con-so .con-so span { color: #fff; font-weight: 500; }
#con-so .con-so b, #con-so .nhan { color: #fff3b8; }
#con-so .ghi-nguon { color: #fff; }
#con-so.nen-gach::before { opacity: .07; }
.bang-tranh.sang .chu { background: linear-gradient(90deg, #f58736 0%, rgba(245, 135, 54, .96) 24%, rgba(246, 147, 66, .74) 38%, rgba(249, 176, 100, .34) 52%, rgba(252, 200, 130, 0) 68%); }
.bang-tranh.sang .chu h2 { color: #2c1406; }
.bang-tranh.sang .chu p { color: #2c1406; font-weight: 500; }
.bang-tranh.sang .chu .nhan { color: #4a1208; }
.bang-tranh.sang .chu .khung { max-width: 1480px; }
.bang-tranh.sang .chu .khung > div { max-width: 480px; }
.bang-tranh.sang .nut-nghe { background: #fff8e6; color: #7a2413; box-shadow: 0 8px 22px rgba(90, 30, 0, .22); }
.bang-tranh.sang .nut-nghe:hover { background: #7a2413; color: #fff; }
@media (max-width: 900px) { .bang-tranh.sang .chu { background: linear-gradient(100deg, #f58736, #f9b26b); } }
/* Vạch ngăn hai phần */
.ngan-cach { border-top: 1px solid rgba(201, 138, 27, .45); }
.ngan-cach::after { content: ""; position: absolute; left: 50%; top: 0; width: 92px; height: 46px; transform: translate(-50%, -50%); background: var(--giay-2) url("../img/logo/bieu-tuong.png") center / auto 34px no-repeat; border-radius: 40px; box-shadow: 0 0 0 1px rgba(201, 138, 27, .45); z-index: 2; }
/* Hành trình phát triển: thanh mốc thời gian + một thẻ */
.ht { max-width: 1120px; margin: 0 auto; }
.ht-the-he { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.ht-the-he button { border: 1px solid var(--vien); background: #fffdf7; border-radius: 99px; padding: 10px 22px; font: 600 .95rem var(--f-text); color: var(--muc-2); cursor: pointer; transition: .3s; min-height: 44px; }
.ht-the-he button.hien { background: #14573f; border-color: #14573f; color: #fff; }
.ht-ray { position: relative; display: flex; overflow-x: auto; scrollbar-width: none; margin-bottom: 26px; scroll-behavior: smooth; }
.ht-ray::-webkit-scrollbar { display: none; }
.ht-ray button { flex: 1 0 auto; min-width: 100px; position: relative; border: 0; background: none; padding: 32px 8px 6px; font: 600 0.92rem var(--f-text); color: var(--muc-2); cursor: pointer; white-space: nowrap; min-height: 44px; }
.ht-ray button::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: #e2cfa4; }
.ht-ray button::after { content: ""; position: absolute; left: 50%; top: 6px; width: 17px; height: 17px; margin-left: -8px; border-radius: 50%; background: #fffdf7; border: 3px solid #d7b878; transition: .3s; box-sizing: border-box; }
.ht-ray button.qua::before, .ht-ray button.hien::before { background: var(--son); }
.ht-ray button.qua::after { border-color: var(--son); background: var(--son); }
.ht-ray button.hien { color: var(--son); }
.ht-ray button.hien::after { border-color: var(--son); box-shadow: 0 0 0 5px rgba(168, 50, 42, .14); }
.ht-the { background: #fffdf7; border: 1px solid var(--vien); border-radius: 24px; box-shadow: var(--bong); overflow: hidden; position: relative; }
.ht .dong-tg.co-anh { max-width: none; }
.ht:not(.het) .dong-tg::before { display: none; }
.ht:not(.het) .dong-tg .moc { display: none; }
.ht:not(.het) .dong-tg .moc.hien { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 0; padding: 0; align-items: stretch; opacity: 1; transform: none; animation: hien .55s var(--em); }
.ht:not(.het) .dong-tg .moc::before { display: none; }
.ht:not(.het) .dong-tg .moc .moc-chu { order: 2; text-align: left; padding: clamp(24px, 3.4vw, 48px); align-self: center; }
.ht:not(.het) .dong-tg .moc .moc-anh { margin: 0; display: flex; flex-direction: column; background: #f3ead6; }
.ht:not(.het) .dong-tg .moc .moc-anh img { border-radius: 0; box-shadow: none; aspect-ratio: auto; height: clamp(260px, 30vw, 400px); flex: 1; }
.ht:not(.het) .dong-tg .moc .moc-anh figcaption { margin: 0; padding: 10px 18px 12px; background: #f3ead6; text-align: left; }
.ht:not(.het) .moc .nam { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.ht-day { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.ht-day .ht-dem { font: 500 0.92rem var(--f-text); color: var(--muc-2); }
.ht-day > div { display: flex; gap: 10px; }
.ht-xem { border: 0; background: none; color: var(--son); font: 600 .95rem var(--f-text); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.ht.het .ht-ray, .ht.het .ht-the-he, .ht.het .ht-lui, .ht.het .ht-toi, .ht.het .ht-dem { display: none; }
.ht.het .ht-the { background: none; border: 0; box-shadow: none; overflow: visible; }
.ht.het .ht-day { justify-content: center; }
@media (max-width: 760px) { .ht:not(.het) .dong-tg .moc.hien { grid-template-columns: 1fr; } .ht:not(.het) .dong-tg .moc .moc-anh img { height: 56vw; } }
/* Gói Kiện Thể trên phần video */
.goi-dai { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; max-width: 760px; margin: -10px auto 34px; padding: 16px 26px; border-radius: 18px; background: linear-gradient(100deg, #14573f, #1f7a57); color: #fff; text-align: center; }
.goi-dai span { font-size: .95rem; }
.goi-dai b { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; color: #ffe9ae; }
.goi-dai small { flex-basis: 100%; font-size: .92rem; }
/* Nút ngôn ngữ, nhạc nền */
.nut-nn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--vien); background: #fffdf7; font: 700 0.92rem var(--f-text); letter-spacing: .04em; color: var(--luc); transition: .3s; }
.nut-nn:hover { background: var(--luc); color: #fff; }
.nut-nhac { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(201, 138, 27, .5); background: rgba(255, 252, 243, .95); color: var(--luc); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(58, 36, 20, .18); transition: .3s; padding: 0; }
.nut-nhac:hover { transform: scale(1.06); }
.nut-nhac svg { width: 21px; height: 21px; }
.nut-nhac .tat { display: none; }
.nut-nhac:not(.keu) .keu-i { display: none; }
.nut-nhac:not(.keu) .tat { display: block; }
.nut-nhac.keu::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--nghe); animation: nhac 3s ease-out infinite; pointer-events: none; }
.nut-nhac .loi-nhac { position: absolute; left: 56px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fffdf7; border: 1px solid var(--vien); border-radius: 99px; padding: 7px 14px; font: 500 0.92rem var(--f-text); color: var(--muc-2); box-shadow: var(--bong-sm); opacity: 0; pointer-events: none; transition: opacity .4s; }
.nut-nhac:hover .loi-nhac { opacity: 1; }
@keyframes nhac { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nut-nhac.keu::after { animation: none; } }
@media (max-width: 640px) { .nut-nhac { left: 12px; bottom: 12px; } .nut-nhac .loi-nhac { display: none; } .nut-nn { min-width: 42px; height: 42px; padding: 0 9px; } }
#con-so { overflow: hidden; }
@media (min-width: 1000px) {
  .hero .hero-anh { left: 20%; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .12) 9%, rgba(0, 0, 0, .85) 30%, #000 38%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .12) 9%, rgba(0, 0, 0, .85) 30%, #000 38%); }
  .hero > .khung { max-width: 1480px; }
  .hero::before { background: linear-gradient(0deg, rgba(250, 244, 231, .95) 0%, rgba(250, 244, 231, .35) 14%, rgba(250, 244, 231, 0) 26%), linear-gradient(90deg, rgba(250, 244, 231, .97) 0%, rgba(250, 244, 231, .95) 34%, rgba(250, 244, 231, .5) 43%, rgba(250, 244, 231, 0) 54%); }
  .hero .lead { max-width: 40ch; }
  .hero h1 { max-width: none; width: 560px; font-size: clamp(2.2rem, 3.7vw, 3.5rem); }
  .hero .hero-nut { max-width: 460px; }
}
@media (min-width: 1461px) { .dt-hanh-dong .nut-son { display: inline-flex; } }
@media (max-width: 1460px) { .dt-hanh-dong .nut-son { display: none; } }
@media (max-width: 1319px) { .dt-hanh-dong .nut-son { display: inline-flex; } }
@media (max-width: 900px) { .dt-hanh-dong .nut-son { display: none; } }
@media (max-width: 760px) { .dau-trang-con h1.mot-hang { font-size: clamp(1.5rem, 6.6vw, 2.9rem); } }
@media (max-width: 420px) {
  .dau-trang .khung { gap: 6px; }
  .thuong-hieu { min-width: 0; flex: 0 1 auto; gap: 7px; }
  .thuong-hieu img { width: 46px; height: auto; }
  .thuong-hieu b { font-size: 0.92rem; line-height: 1.2; }
  .thuong-hieu small { display: none; }
  .dt-hanh-dong { gap: 4px; flex: none; }
  .dt-hanh-dong .nut-tron, .nut-nn { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  .dau-trang-con h1 { font-size: 1.95rem; }
}
html[lang="en"] .dau-trang-con h1.mot-hang { white-space: normal; }

/* ===== Đợt 9: ánh xanh, chữ lớn, thư viện, trắc nghiệm thân thiện ===== */
html { font-size: 17.5px; }
body { font-size: 1.06rem; }
@media (max-width: 640px) { html { font-size: 17px; } body { font-size: 1.06rem; } }
html.chu-lon { font-size: 20px; }
/* Đầu trang: ảnh phủ kín, ánh xanh ngọc dâng từ dưới và từ trái */
.hero, .dau-trang-con { color: #fffdf5; background: #0d7350; }
.hero .hero-anh { left: 0; -webkit-mask-image: none; mask-image: none; }
.hero::before { background:
  linear-gradient(0deg, rgba(4, 92, 62, .9) 0%, rgba(8, 116, 79, .5) 17%, rgba(14, 136, 94, .12) 34%, rgba(20, 150, 105, 0) 44%),
  linear-gradient(90deg, rgba(4, 92, 62, .96) 0%, rgba(5, 102, 69, .92) 22%, rgba(8, 116, 79, .7) 36%, rgba(12, 132, 90, .3) 49%, rgba(16, 144, 100, 0) 62%); }
.hero h1, .dau-trang-con h1 { color: #fffdf5; text-shadow: 0 2px 18px rgba(0, 50, 32, .35); }
.hero h1 { width: auto; max-width: 15ch; font-size: clamp(2.1rem, 3.6vw, 3.3rem); }
.hero h1 em { color: #ffe39a; }
.hero .lead, .dau-trang-con .lead { color: #fdfaf0; font-weight: 500; }
.hero .lead { max-width: 42ch; }
.hero .hero-nut { max-width: none; }
.hero .nhan, .dau-trang-con .nhan { color: #ffe39a; }
.hero .nut-vien, .dau-trang-con .nut-vien { border-color: rgba(255, 253, 245, .75); color: #fff; background: rgba(255, 255, 255, .12); }
.hero .nut-vien:hover, .dau-trang-con .nut-vien:hover { background: #fffdf5; color: #0a5c40; border-color: #fffdf5; }
.hero-cham button { background: rgba(255, 253, 245, .45); }
.hero-cham button.hien { background: #ffe39a; }
.hero-chu-anh { color: #fffdf5; }
.dau-trang-con::before { background:
  linear-gradient(90deg, rgba(4, 96, 65, .95) 0%, rgba(6, 108, 73, .88) 26%, rgba(10, 126, 86, .6) 44%, rgba(16, 144, 100, .2) 64%, rgba(16, 144, 100, 0) 80%),
  linear-gradient(0deg, rgba(4, 92, 62, .55) 0%, rgba(8, 120, 82, .18) 30%, rgba(8, 120, 82, 0) 52%); }
.dau-trang-con .vet-dan, .dau-trang-con .vet-dan a { color: rgba(255, 253, 245, .92); }
.dau-trang-con .vet-dan a:hover { color: #ffe39a; }
.dau-trang-con .lead { max-width: 50ch; }
@media (max-width: 760px) {
  .dau-trang-con::before { background: linear-gradient(180deg, rgba(8, 120, 82, 0) 0, rgba(8, 120, 82, .1) 110px, #0a6f4c 262px); }
}
@media (max-width: 640px) {
  .hero { background: #0a6f4c; }
  .hero .hero-anh::after { background: linear-gradient(0deg, #0a6f4c 0%, rgba(10, 111, 76, 0) 42%); }
}
/* Con số: xanh đậm cổ kính · Di sản: cam đậm, loang từ từ */
#con-so.muc-luc { background: radial-gradient(120% 140% at 50% 0%, #087a4c 0%, #066541 60%, #05563a 100%); }
#con-so.nen-gach::before { opacity: .1; }
.bang-tranh.sang .chu { background: linear-gradient(90deg, #e06f1f 0%, #e67827 10%, rgba(232, 127, 47, .95) 20%, rgba(234, 136, 58, .82) 29%, rgba(236, 146, 71, .63) 38%, rgba(239, 160, 90, .42) 47%, rgba(243, 178, 116, .22) 57%, rgba(246, 194, 143, .08) 68%, rgba(250, 210, 170, 0) 80%); }
.bang-tranh.sang .chu .khung { max-width: none; padding-left: clamp(20px, 5.5vw, 108px); }
.bang-tranh.sang .chu .khung > div { max-width: min(470px, 34vw); }
.bang-tranh.sang .chu h2, .bang-tranh.sang .chu p { color: #241003; }
@media (max-width: 900px) { .bang-tranh.sang .chu { background: linear-gradient(160deg, #e06f1f, #f0a457); } .bang-tranh.sang .chu .khung > div { max-width: none; } }
/* Logo hòa vào nền giấy */
.lg-ban { background: none; border: 0; box-shadow: none; overflow: visible; }
.lg-ban::before { content: ""; position: absolute; inset: -6%; background: radial-gradient(closest-side, rgba(255, 250, 236, .75), rgba(255, 250, 236, 0)); }
.lg-luoi { stroke: #b08a4a; -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 108%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }
.lg-o { opacity: .32; }
.lg-trong > img { mix-blend-mode: multiply; }
.lg-y li { background: rgba(255, 251, 239, .5); border-color: rgba(176, 138, 74, .35); backdrop-filter: blur(3px); }
.lg-y li.mo { background: rgba(255, 251, 239, .82); }
.lg-y p { font-size: 1rem; }
/* Di nguyện: chân dung cụ Tán */
.khung-to { position: relative; max-width: 400px; margin: 0 auto; padding: 14px; background: linear-gradient(150deg, #fff8e6, #ecd8ad); border-radius: 220px 220px 22px 22px; box-shadow: 0 22px 50px rgba(90, 57, 20, .25); border: 1px solid #d9bb7c; }
.khung-to img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 208px 208px 14px 14px; filter: sepia(.28) saturate(.82) contrast(1.02); }
.khung-to figcaption { text-align: center; padding: 14px 8px 4px; font-family: var(--f-display); font-weight: 700; font-size: 1.32rem; line-height: 1.25; color: var(--go-dark); }
.khung-to figcaption small { display: block; font: 500 .95rem var(--f-text); color: var(--muc-2); }
.anh-tron-ven { border-radius: var(--r); overflow: hidden; box-shadow: var(--bong); }
.anh-tron-ven img { display: block; width: 100%; height: auto; }
/* Nhà thờ: một ảnh lớn, dải ảnh nhỏ */
.bst.bst-to { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bst.bst-to figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; box-shadow: var(--bong-sm); }
.bst.bst-to figure:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; border-radius: 22px; box-shadow: var(--bong); }
.bst.bst-to img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--em); }
.bst.bst-to figure:first-child img { object-position: 50% 62%; }
.bst.bst-to figure:hover img { transform: scale(1.04); }
.bst.bst-to figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 12px; color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgba(6, 70, 48, .86)); opacity: 1; }
.bst.bst-to figure:not(:first-child) figcaption { opacity: 0; transition: opacity .3s; font-size: .92rem; line-height: 1.35; }
.bst.bst-to figure:hover figcaption, .bst.bst-to figure:focus-visible figcaption { opacity: 1; }
@media (max-width: 760px) { .bst.bst-to { grid-template-columns: 1fr 1fr; } .bst.bst-to figure:first-child { aspect-ratio: 4 / 3; } .bst.bst-to figure:not(:first-child) figcaption { opacity: 1; padding: 22px 10px 8px; } .bst.bst-to figure:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
/* Mục lục video gọn */
.rap-thanh { padding: 14px 8px 2px; }
.rt-day { position: relative; height: 26px; margin: 0 6px; }
.rt-day::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: #f0dfb5; }
.rt-day > i { position: absolute; left: 0; top: 11px; height: 4px; border-radius: 4px; background: #0d7350; width: 0; }
.rt-day button { position: absolute; top: 0; width: 26px; height: 26px; margin-left: -13px; border: 0; background: none; padding: 0; cursor: pointer; }
.rt-day button::after { content: ""; position: absolute; left: 8px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #fffaf0; border: 2.5px solid #d3a845; box-sizing: border-box; transition: .25s; }
.rt-day button:hover::after, .rt-day button.hien::after { left: 5px; top: 5px; width: 16px; height: 16px; border-color: #0d7350; background: #0d7350; }
.rt-hien { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rt-hien p { flex: 1; margin: 0; text-align: center; line-height: 1.35; font-size: .95rem; color: var(--go-dark); min-height: 2.7em; display: grid; align-content: center; }
.rt-hien p b { display: block; color: var(--son); font-size: .92rem; font-weight: 600; }
.rt-hien .nut-tron { flex: none; width: 42px; height: 42px; }
.rap-thanh + .rap-chuong { display: none; }
/* Cỡ chữ, nút A+ */
.nut-chu { position: fixed; left: 18px; bottom: 74px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(201, 138, 27, .5); background: rgba(255, 252, 243, .95); color: var(--luc); font: 700 1rem var(--f-text); cursor: pointer; box-shadow: 0 8px 22px rgba(58, 36, 20, .18); padding: 0; }
html.chu-lon .nut-chu { background: var(--luc); color: #fff; }
.nut-nhac .loi-nhac { left: auto; bottom: 54px; top: auto; transform: none; left: 0; }
@media (max-width: 640px) { .nut-chu { left: 12px; bottom: 66px; } }
/* ===== Thư viện ===== */
.tv { position: relative; overflow: hidden; background: #f3e3c0; color: var(--go-dark); }
.tv-dau { position: relative; text-align: center; padding: clamp(46px, 6vw, 84px) 20px 20px; background: linear-gradient(180deg, #fdf3dc, #f6e6c2); }
.tv-dau .vet-dan { justify-content: center; color: var(--muc-2); }
.tv-dau .nhan { justify-content: center; }
.tv-dau h1 { color: #14573f; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.tv-dau .lead { max-width: 62ch; margin: 12px auto 24px; }
.tv-tab { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 7px; border-radius: 99px; background: rgba(255, 253, 245, .8); border: 1px solid #e2cb97; }
.tv-tab button { border: 0; background: none; border-radius: 99px; padding: 11px 24px; min-height: 48px; font: 600 1rem var(--f-text); color: var(--go); display: inline-flex; gap: 9px; align-items: center; cursor: pointer; transition: .3s; }
.tv-tab svg { width: 20px; height: 20px; }
.tv-tab button[aria-selected="true"] { background: #14573f; color: #fff; }
.tv-san { position: relative; perspective: 1600px; overflow: hidden; }
.tv-ray { display: flex; width: 300%; transition: transform 1.1s cubic-bezier(.6, .05, .2, 1); align-items: stretch; }
.tv-phong { width: 33.3334%; position: relative; padding: 56px clamp(14px, 5vw, 84px) 150px; transition: opacity .8s, transform 1.1s cubic-bezier(.6, .05, .2, 1), filter .8s; background:
  linear-gradient(180deg, rgba(255, 246, 222, .2), rgba(120, 78, 30, .12)), repeating-linear-gradient(90deg, #f7e9c9 0 118px, #f2e1ba 118px 120px); }
.tv-phong::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 104px; background: repeating-linear-gradient(92deg, #b98a50 0 90px, #ae7f45 90px 92px, #c19359 92px 190px, #b08349 190px 192px); box-shadow: inset 0 16px 26px rgba(80, 46, 12, .35); border-top: 9px solid #8e6331; }
.tv-phong:not(.hien) { opacity: .35; transform: scale(.93); filter: blur(2px); }
.tv-phong > .khung { position: relative; z-index: 1; max-width: 1160px; padding: 0; }
.tv-bien { display: block; width: fit-content; margin: 0 auto 30px; padding: 12px 40px; background: linear-gradient(180deg, #8a3a26, #6d2a1a); color: #ffe7a8; font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.2; border-radius: 8px; border: 3px solid #d6a84c; box-shadow: 0 10px 22px rgba(70, 30, 8, .3); text-align: center; }
.tv-den { position: absolute; top: -56px; width: 2px; height: 56px; background: #8e6331; z-index: 0; }
.tv-den::after { content: ""; position: absolute; left: -24px; top: 52px; width: 50px; height: 62px; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 50% 55%, #fff6cf, #ffd071 55%, #e79a3c); box-shadow: 0 0 60px 26px rgba(255, 206, 110, .45); animation: den 5s ease-in-out infinite; }
@keyframes den { 50% { box-shadow: 0 0 74px 34px rgba(255, 214, 130, .6); } }
/* kệ sách */
.ke { position: relative; padding: 26px 26px 0; margin-bottom: 0; background: linear-gradient(180deg, #7b5027, #8b5e30 30%, #6f4722); border: 12px solid #9a6b38; border-image: linear-gradient(180deg, #b98348, #8a5c2c) 1; box-shadow: 0 26px 50px rgba(70, 40, 10, .35), inset 0 10px 34px rgba(40, 20, 4, .55); }
.ke-hang { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 330px; padding: 0 10px; border-bottom: 18px solid #a8763d; box-shadow: 0 12px 16px -6px rgba(35, 18, 4, .6); margin-bottom: 26px; perspective: 1200px; }
.ke-hang:last-child { margin-bottom: 0; }
.gay-sach { position: relative; width: clamp(80px, 8.6vw, 116px); height: 286px; border: 0; padding: 18px 4px; cursor: pointer; border-radius: 5px 4px 3px 5px; color: #fff3d2; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .16) 18%, rgba(255, 255, 255, .03) 60%, rgba(0, 0, 0, .25)), var(--m); box-shadow: 3px 4px 10px rgba(20, 8, 0, .45); transition: transform .45s var(--em), box-shadow .45s; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.gay-sach:nth-of-type(3n) { height: 302px; } .gay-sach:nth-of-type(3n+2) { height: 270px; }
.gay-sach::before, .gay-sach::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: #e9c46f; top: 12px; } .gay-sach::after { top: auto; bottom: 38px; }
.gay-sach b { writing-mode: vertical-rl; font: 700 1.24rem/1.14 var(--f-display); text-align: center; max-height: 204px; text-wrap: balance; margin: auto 0; }
.gay-sach small { font: 600 .92rem var(--f-text); color: #ffe19a; line-height: 1; margin-top: 8px; }
.gay-sach:hover, .gay-sach:focus-visible { transform: translateY(-16px) rotateX(-4deg) scale(1.03); box-shadow: 0 18px 26px rgba(20, 8, 0, .5); outline: 3px solid #ffe39a; }
.ke-vat { align-self: flex-end; width: 96px; text-align: center; padding-bottom: 4px; }
.ke-vat img { width: 92px; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.tv-goi { text-align: center; margin-top: 24px; font-size: 1rem; font-weight: 500; }
/* tủ thuốc */
.tu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 22px; background: linear-gradient(180deg, #8b5e30, #6f4722); border: 12px solid #9a6b38; border-radius: 10px; box-shadow: 0 26px 50px rgba(70, 40, 10, .35); }
.ngan { position: relative; border: 0; text-align: left; cursor: pointer; border-radius: 8px; padding: 22px 20px 26px; min-height: 140px; background: linear-gradient(180deg, #c8955a, #b07e44); box-shadow: inset 0 0 0 3px #8c602f, 0 3px 8px rgba(30, 14, 2, .4); color: #2c1705; transition: transform .4s var(--em), box-shadow .4s; font-family: var(--f-text); }
.ngan::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 34px; height: 12px; margin-left: -17px; border-radius: 0 0 18px 18px; border: 4px solid #e0b75f; border-top: 0; }
.ngan b { display: block; width: fit-content; margin: 0 auto; background: #fff4d7; padding: 7px 18px; border-radius: 6px; font: 700 1.35rem var(--f-display); border: 1px solid #d6b171; }
.ngan span { display: none; background: #fffaf0; margin: 12px 0 8px; padding: 12px 14px; border-radius: 8px; font-size: .98rem; line-height: 1.55; }
.ngan[aria-expanded="true"] { transform: translateY(6px) scale(1.02); box-shadow: inset 0 0 0 3px #8c602f, 0 22px 30px rgba(30, 14, 2, .5); z-index: 2; }
.ngan[aria-expanded="true"] span { display: block; animation: hien .4s var(--em); }
/* bệ trưng bày */
.be-hang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: end; }
.be { text-align: center; }
.be-vat { width: 190px; height: 190px; margin: 0 auto -8px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fffdf3 30%, rgba(255, 236, 182, .75) 62%, rgba(255, 236, 182, 0) 72%); }
.be-vat svg { width: 84px; height: 84px; color: #14573f; stroke-width: 1.3; }
.be-de { background: linear-gradient(180deg, #fffaf0, #ecd9ac); border: 1px solid #d9bb7c; border-radius: 14px 14px 4px 4px; padding: 24px 22px 30px; box-shadow: 0 18px 34px rgba(70, 40, 10, .22); border-top: 8px solid #c99b52; }
.be-de h3 { font-size: 1.6rem; } .be-de p { margin: 8px 0 12px; } .be-de em, .the-sap { display: inline-block; font-style: normal; font-weight: 600; font-size: .95rem; color: #14573f; background: #e3f2e8; padding: 6px 16px; border-radius: 99px; }
/* cửa vào thư viện */
.tv-cua { position: absolute; inset: 0; z-index: 8; display: flex; perspective: 1700px; pointer-events: none; }
.tv-cua i { flex: 1; background: repeating-linear-gradient(90deg, #8d5c2b 0 60px, #7f5125 60px 62px), #8d5c2b; border: 14px solid #a9763c; box-shadow: inset 0 0 70px rgba(40, 18, 2, .6); transform-origin: left; animation: cua-trai 1.7s .35s cubic-bezier(.6, 0, .2, 1) forwards; position: relative; }
.tv-cua i:last-child { transform-origin: right; animation-name: cua-phai; }
.tv-cua i::after { content: ""; position: absolute; top: 300px; right: 16px; width: 26px; height: 70px; border-radius: 14px; background: linear-gradient(180deg, #f1d083, #b98732); } .tv-cua i:last-child::after { right: auto; left: 16px; }
@keyframes cua-trai { to { transform: rotateY(-104deg); opacity: .0; } } @keyframes cua-phai { to { transform: rotateY(104deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tv-cua { display: none; } .tv-ray, .tv-phong { transition: none; } .tv-den::after { animation: none; } }
/* bàn đọc */
.ban-doc { position: fixed; inset: 0; z-index: 120; display: none; background: rgba(6, 60, 41, .78); padding: clamp(8px, 2.4vw, 36px); overflow: auto; }
.ban-doc.mo { display: block; animation: hien .35s var(--em); }
.bd-tam { position: relative; max-width: 1240px; margin: 0 auto; background: linear-gradient(180deg, #fdf6e4, #f5e7c6); border-radius: 24px; padding: clamp(18px, 3vw, 40px); display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3.4vw, 48px); align-items: start; }
.bd-dong { position: absolute; right: 14px; top: 14px; z-index: 5; }
.bd-sach { perspective: 2000px; }
.bd-trang { position: relative; min-height: clamp(430px, 46vw, 570px); background: linear-gradient(90deg, rgba(90, 57, 20, .22), rgba(90, 57, 20, 0) 7%), #fffdf6; border-radius: 4px 14px 14px 4px; box-shadow: 8px 10px 0 -3px #f1e4c4, 14px 18px 0 -6px #e8d8b1, 0 26px 50px rgba(60, 34, 8, .3); padding: clamp(24px, 3.4vw, 52px) clamp(22px, 3.4vw, 54px); transform-origin: left; }
.bd-trang.lat { animation: lat-trang .6s cubic-bezier(.5, 0, .2, 1); } .bd-trang.lat-lui { animation: lat-trang .6s cubic-bezier(.5, 0, .2, 1) reverse; }
@keyframes lat-trang { 0% { transform: rotateY(-72deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.bd-trang.bia { background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(255, 255, 255, .12) 5%, rgba(0, 0, 0, 0) 12%), var(--m); color: #fff6dc; display: grid; align-content: center; text-align: center; }
.bd-trang.bia h3 { color: #ffe9ae; font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin: 18px 0; } .bd-trang.bia p { color: #fff6dc; } .bd-trang.bia img { width: 130px; margin: 0 auto; background: #fffaf0; border-radius: 50%; padding: 18px; }
.bd-trang h3 { font-size: 1.7rem; color: #14573f; margin-bottom: 14px; } .bd-trang ol, .bd-trang ul { padding-left: 1.2em; display: grid; gap: 7px; } .bd-trang blockquote { font: italic 1.2rem/1.75 var(--f-sach); margin: 0; }
.bd-dieu { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; font-weight: 600; }
.bd-tin h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin: 6px 44px 10px 0; }
.bd-gia { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 16px 20px; margin: 18px 0; background: #fffdf6; border: 1px solid #e2cb97; border-radius: 14px; } .bd-gia b { font: 700 1.35rem var(--f-display); color: var(--son); text-align: right; }
.bd-nut { display: flex; flex-wrap: wrap; gap: 12px; }
.bd-mua { margin-top: 20px; padding: 20px; border-radius: 16px; background: #fffdf6; border: 1px dashed #c99b52; }
.bd-mua[hidden] { display: none; }
.bd-mua ul { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 9px; } .bd-mua li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid #ead9b0; border-radius: 12px; color: var(--muc-2); } .bd-mua li svg { width: 24px; height: 24px; color: #14573f; flex: none; } .bd-mua li em { margin-left: auto; font-style: normal; font-size: .92rem; white-space: nowrap; }
@media (max-width: 900px) {
  .bd-tam { grid-template-columns: 1fr; } .bd-trang { min-height: 420px; }
  .ke { padding: 18px 8px 0; border-width: 8px; } .ke-hang { gap: 5px; padding: 0 2px; min-height: 250px; border-bottom-width: 14px; } .gay-sach { width: 60px; height: 226px !important; padding: 14px 2px; } .gay-sach b { font-size: 1.04rem; max-height: 158px; } .ke-vat { display: none; }
  .tu, .be-hang { grid-template-columns: 1fr; } .tu { grid-template-columns: 1fr 1fr; padding: 12px; border-width: 8px; } .ngan[aria-expanded="true"] { grid-column: 1 / -1; }
  .tv-phong { padding: 46px 12px 130px; } .tv-den { display: none; } .tv-tab { border-radius: 26px; } .tv-tab button { padding: 10px 16px; }
}
/* ===== Trắc nghiệm thân thiện ===== */
.tn-sen { display: grid; grid-template-columns: 74px 1fr; gap: 16px; align-items: end; margin-bottom: 22px; }
.tn-sen img { width: 74px; height: 74px; object-fit: contain; padding: 8px; border-radius: 50%; background: radial-gradient(circle, #fffdf6, #e2f1e7); border: 2px solid #cfe6d7; }
.tn-sen p { margin: 0; padding: 14px 20px; background: #e8f4ec; border-radius: 20px 20px 20px 4px; line-height: 1.55; color: #16402f; font-weight: 500; width: fit-content; }
.tn-hop h3 { min-height: 0; line-height: 1.3; text-wrap: balance; }
.tn-chon button, .tn-the-chon button { min-height: 62px; font-size: 1.08rem; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.tn-chon .cham { display: inline-flex; gap: 4px; } .tn-chon .cham i { width: 10px; height: 10px; border-radius: 50%; background: #e7d7b4; } .tn-chon .cham i.day { background: #14805a; }
.tn-the-chon { display: flex; flex-wrap: wrap; gap: 11px; margin: 20px 0; }
.tn-the-chon button { border: 1.5px solid var(--vien); background: #fff; border-radius: 99px; padding: 10px 24px; min-height: 54px; font-weight: 500; color: var(--go-dark); cursor: pointer; }
.tn-the-chon button:hover, .tn-the-chon button[aria-pressed="true"] { border-color: #14805a; background: #e3f2e8; color: #0c4a33; }
.tn-hop .o-nhap input { font-size: 1.1rem; min-height: 54px; }
.tn-dong-y { display: grid; gap: 12px; margin: 16px 0 20px; }
.tn-hop .dong-y { font-size: 1rem; line-height: 1.55; }
.tn-hop .dong-y input { width: 22px; height: 22px; }
.tn-rieng { margin-top: 22px; padding: 20px 24px; border-radius: 16px; background: #eef7f1; border: 1px solid #cfe6d7; } .tn-rieng ul { margin: 8px 0 0; padding-left: 1.2em; display: list-item; list-style: disc; } .tn-kq .tn-rieng ul { display: block; margin: 8px 0 0; } .tn-rieng li { margin: 5px 0; }
.tn-ai b { overflow-wrap: anywhere; }
@media (max-width: 640px) { .tn-sen { grid-template-columns: 56px 1fr; gap: 10px; } .tn-sen img { width: 56px; height: 56px; padding: 5px; } .tn-sen p { padding: 12px 15px; } }
/* đầu trang: giữ gọn khi chữ lớn */
.menu a { font-size: 1rem; } .thuong-hieu b { font-size: 1.04rem; } .thuong-hieu small { font-size: .92rem; } .dt-hanh-dong .nut { font-size: 1rem; }
@media (min-width: 1100px) { .dau-trang .khung { gap: 14px; } }
@media (max-width: 1700px) { .dt-hanh-dong .nut-son { display: none; } }
@media (max-width: 1500px) { .menu a { font-size: .95rem; } .thuong-hieu b { font-size: .95rem; } .thuong-hieu small { font-size: 0.92rem; } }
@media (min-width: 901px) and (max-width: 1319px) { .dt-hanh-dong .nut-son { display: inline-flex; } }
.ht-the-he button.hien { color: #fff; }
@media (min-width: 760px) { .nut-nhac, .nut-chu { width: 40px; height: 40px; left: 5px; } .nut-chu { bottom: 64px; font-size: .95rem; } .nut-nhac svg { width: 18px; height: 18px; } }
@media (max-width: 560px) { .thuong-hieu small { display: none; } .thuong-hieu b { font-size: .92rem; } .dt-hanh-dong .nut-tron, .nut-nn { width: 42px; min-width: 42px; height: 42px; padding: 0; } .dt-hanh-dong { gap: 5px; flex: none; } .thuong-hieu { min-width: 0; flex: 0 1 auto; } }
main small { font-size: max(.92rem, 16px); }
html[lang="en"] .mot-dong, html[lang="en"] .mot-hang { white-space: normal; }
@media (min-width: 1100px) { html.chu-lon .menu a { font-size: clamp(14.5px, 1.12vw, 17px); padding-left: 7px; padding-right: 7px; } html.chu-lon .thuong-hieu b { font-size: clamp(14.5px, 1.15vw, 18px); } html.chu-lon .thuong-hieu small { font-size: 14px; } html.chu-lon .dt-hanh-dong .nut { font-size: 16px; padding: 8px 16px; } }
html[lang="en"] .h2-mot-hang { white-space: normal; }
/* ===== Đợt 10: đầu trang đồng nhất, chuyển tiếp mềm, bố cục tạp chí, thư quán ===== */
:root { --xanh: #0d6a49; --xanh-dam: #0a4a36; --le: clamp(18px, 5.4vw, 104px); --cao-dau: clamp(560px, 78vh, 720px); --ke: rgba(150, 105, 40, .3); --maxw: 1280px; }
html { scrollbar-gutter: stable; }
.dau-trang { view-transition-name: dau-trang; }
/* Thanh đầu: hai hàng thẳng mép, cao bằng nhau mọi trang */
.thanh-tren { background: var(--xanh-dam); }
.thanh-tren .khung, .dau-trang .khung { max-width: 1640px; padding-inline: clamp(16px, 3vw, 48px); }
.thanh-tren .khung { height: 40px; min-height: 0; }
.dau-trang { background: rgba(250, 243, 228, .93); border-bottom-color: rgba(150, 105, 40, .18); }
.dau-trang.da-cuon { background: rgba(252, 247, 236, .97); }
@media (min-width: 1320px) {
  .dau-trang .khung, .dau-trang.da-cuon .khung { height: 88px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; }
  .dau-trang nav { justify-self: center; }
  .thuong-hieu img, .dau-trang.da-cuon .thuong-hieu img { height: 64px; }
  .dt-hanh-dong { justify-content: flex-end; }
}
/* Nhãn đầu mục: một nét mảnh thay hình tròn */
.nhan { gap: 14px; margin-bottom: 16px; }
.nhan::before { width: 38px; height: 1px; background: currentColor; opacity: .55; }
.giua .nhan::after, .trich .nhan::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .55; }
/* ---------- Ảnh đầu trang: để trong, chỉ ánh xanh nhẹ ở đáy ---------- */
.hero, .dau-trang-con { height: auto; min-height: var(--cao-dau); padding: 0; display: flex; align-items: flex-end; background: #0b5a40; overflow: hidden; }
.hero .hero-anh img { object-position: 50% 22%; }
.dau-trang-con > img { object-position: 50% 40%; }
.hero::before, .dau-trang-con::before { background: linear-gradient(0deg, rgba(5, 66, 46, .93) 0%, rgba(5, 68, 47, .86) 16%, rgba(6, 74, 52, .66) 28%, rgba(8, 84, 59, .34) 39%, rgba(10, 92, 65, .1) 49%, rgba(10, 92, 65, 0) 57%); }
.hero > .khung, .dau-trang-con > .khung { max-width: 1640px; padding: 0 var(--le) 46px; }
.hero > .khung { padding-bottom: 78px; }
.hero h1, .dau-trang-con h1, .dau-trang-con h1.mot-hang { width: auto; max-width: 20ch; font-size: clamp(2.1rem, 3.35vw, 3.35rem); line-height: 1.16; margin: 0; text-wrap: balance; white-space: normal; text-shadow: 0 1px 16px rgba(0, 40, 26, .4); }
.hero .lead, .dau-trang-con .lead { max-width: 56ch; margin: 0; font-size: 1.06rem; line-height: 1.7; font-weight: 400; color: #fffdf5; text-shadow: 0 1px 10px rgba(0, 40, 26, .45); }
.hero .nhan, .dau-trang-con .nhan { margin: 0 0 10px; text-shadow: 0 1px 8px rgba(0, 40, 26, .5); }
.dau-trang-con .vet-dan { margin: 0 0 14px; text-shadow: 0 1px 8px rgba(0, 40, 26, .5); }
.hero .hero-nut, .dau-trang-con .hero-nut { margin: 20px 0 0 !important; }
.hero .nut-vien, .dau-trang-con .nut-vien { background: rgba(255, 255, 255, .06); border-color: rgba(255, 253, 245, .6); }
.hero-cham { right: var(--le); bottom: 34px; }
.hero-cham button { height: 2px; border-radius: 0; }
.hero-chu-anh { left: var(--le); right: auto; bottom: 24px; text-align: left; opacity: .9; }
@media (min-width: 1000px) {
  .hero > .khung, .dau-trang-con > .khung { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(40px, 6vw, 110px); align-items: end; }
  .hero > .khung > *, .dau-trang-con > .khung > * { grid-column: 1; }
  .hero > .khung > .lead, .dau-trang-con > .khung > .lead { grid-column: 2; grid-row: 1 / span 4; align-self: end; border-left: 1px solid rgba(255, 227, 154, .5); padding-left: 28px; }
  .hero > .khung:has(.hero-nut) > .lead, .dau-trang-con > .khung:has(.hero-nut) > .lead { grid-row: 1 / span 3; }
  .hero > .khung > .hero-nut, .dau-trang-con > .khung > .hero-nut { grid-column: 2; padding-left: 29px; }
  .hero > .khung > h1, .dau-trang-con > .khung > h1 { grid-row: auto / span 1; }
  .dau-trang-con > .khung:has(.hero-nut) > h1 { grid-row: 3 / span 2; }
  .hero > .khung > h1 { grid-row: 2 / span 2; }
  .hero > .khung > .nhan { grid-row: 1; align-self: end; }
  .hero h1 em { display: block; }
}
/* Bản sáng: chữ nâu trên nền giấy (Thư viện, Liên hệ) */
.dau-trang-con.sang { background: var(--giay-2); }
.dau-trang-con.sang::before { background: linear-gradient(0deg, var(--giay) 0, rgba(245, 236, 218, .6) 12%, rgba(245, 236, 218, 0) 40%); }
.dau-trang-con.sang h1 { color: #14573f; text-shadow: none; }
.dau-trang-con.sang .lead { color: #3b2c20; text-shadow: none; border-color: var(--ke) !important; }
.dau-trang-con.sang .nhan { color: var(--son); text-shadow: none; } .dau-trang-con.sang .vet-dan, .dau-trang-con.sang .vet-dan a { color: var(--muc-2); text-shadow: none; }
.dau-trang-con.lien > img { object-position: 50% 0; }
@media (min-width: 761px) { .dau-trang-con.lien > img { height: 84%; inset: 0 0 auto 0; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); } }
/* ---------- Các phần tan vào nhau ---------- */
.muc { padding: clamp(76px, 8.4vw, 132px) 0; }
.nen-gach:not(.muc-luc):not(.muc-go)::before { display: none; }
.muc-sau { background: linear-gradient(180deg, rgba(252, 247, 236, 0), #fcf7ec 150px, #fcf7ec calc(100% - 150px), rgba(252, 247, 236, 0)); }
.muc-dam { background: linear-gradient(180deg, rgba(240, 227, 198, 0), #f0e3c6 170px, #f0e3c6 calc(100% - 170px), rgba(240, 227, 198, 0)); }
.rap-muc { background: linear-gradient(180deg, rgba(253, 238, 203, 0), #fdeecb 34%, #fdf1d6 70%, rgba(253, 238, 203, 0)); }
.rap-muc::before { display: none; }
.nen-anh:not(.muc-luc) { background: linear-gradient(180deg, #f5ecda 0, rgba(245, 236, 218, 0) 190px, rgba(245, 236, 218, 0) calc(100% - 190px), #f5ecda 100%), var(--anh) center / cover no-repeat; }
.nen-anh.muc-sau, .nen-anh.muc-dam { background-color: transparent; }
@media (min-width: 901px) {
  .muc-tranh > .tranh { -webkit-mask-image: linear-gradient(180deg, transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(180deg, transparent, #000 17%, #000 83%, transparent); }
  .bang-tranh { -webkit-mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 9%, #000 88%, transparent); }
}
.bang-tranh.sang { background: none; }
/* Mảng xanh: mép lượn như dải lụa */
.muc-luc, .muc-go { --lua-tren: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 90V52C210 4 420 6 700 40s520 46 740-12v62z'/%3E%3C/svg%3E"); --lua-duoi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 0v38c240 58 470 50 740 14S1260 6 1440 62V0z'/%3E%3C/svg%3E");
  background: radial-gradient(110% 150% at 78% 0%, #0f7a53 0%, #0b6244 46%, #0a5039 100%); }
#con-so.muc-luc, .muc-luc.sang-hon { background: radial-gradient(110% 150% at 78% 0%, #0f7a53 0%, #0b6244 46%, #0a5039 100%); }
.muc-luc.nen-anh { background: linear-gradient(rgba(9, 84, 59, .55), rgba(9, 84, 59, .55)), var(--xanh) var(--anh) center / cover no-repeat; }
.muc-luc, .muc-go { padding: clamp(120px, 12vw, 190px) 0 !important; margin: -10px 0; -webkit-mask: var(--lua-tren) top / 100% 90px no-repeat, linear-gradient(#000 0 0) 0 89px / 100% calc(100% - 178px) no-repeat, var(--lua-duoi) bottom / 100% 90px no-repeat; mask: var(--lua-tren) top / 100% 90px no-repeat, linear-gradient(#000 0 0) 0 89px / 100% calc(100% - 178px) no-repeat, var(--lua-duoi) bottom / 100% 90px no-repeat; }
.muc-luc p, .muc-go p, .muc-luc .the p, .muc-go .the p { color: rgba(255, 252, 243, .94); }
.muc-luc.nen-gach::before { opacity: .06 !important; }
/* Lời mời cuối trang: khung bo mềm nằm trên giấy */
main > .muc-luc:last-child { -webkit-mask: none; mask: none; margin: 30px clamp(12px, 3vw, 56px) 0; border-radius: clamp(26px, 3vw, 46px); padding: clamp(60px, 7vw, 108px) 0 !important; overflow: hidden; }
main > .muc-luc:last-child .bieu-mau { box-shadow: 0 24px 60px rgba(0, 40, 26, .3); }
.muc-luc .bieu-mau p { color: var(--muc-2) !important; }
.con-so > div { text-align: left; padding: 4px 26px; }
.con-so > div + div::before { top: 0; height: 100%; background: linear-gradient(rgba(255, 243, 184, 0), rgba(255, 243, 184, .5), rgba(255, 243, 184, 0)); }
.con-so b { font-size: clamp(2.8rem, 4.6vw, 4.5rem); font-weight: 600; font-feature-settings: "lnum"; white-space: nowrap; }
.con-so span { max-width: 26ch; font-size: 1rem; }
/* Vạch ngăn: nét vàng tan hai đầu */
.ngan-cach { border-top: 0; }
.ngan-cach::before { content: ""; position: absolute; left: 50%; top: 0; width: min(620px, 76vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(201, 138, 27, .75) 38%, transparent 46%, transparent 54%, rgba(201, 138, 27, .75) 62%, transparent); }
.ngan-cach::after { width: 46px; height: 40px; background: url("../img/logo/bieu-tuong.png") center / contain no-repeat; border-radius: 0; box-shadow: none; }
/* ---------- Đầu mục kiểu tạp chí ---------- */
h2 { font-size: clamp(2.05rem, 3.5vw, 3.2rem); line-height: 1.16; letter-spacing: -.005em; }
.dau-muc { max-width: 760px; }
@media (min-width: 1000px) {
  .dau-muc.giua:has(> p) { max-width: none; text-align: left; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(40px, 7vw, 120px); align-items: end; }
  .dau-muc.giua:has(> p) > * { grid-column: 1; }
  .dau-muc.giua:has(> p) > .nhan { grid-column: 1 / -1; justify-content: flex-start; }
  .dau-muc.giua:has(> p) > .nhan::after { display: none; }
  .dau-muc.giua:has(> p) > p { grid-column: 2; margin: 0 0 8px; }
  .dau-muc.giua:has(> p) > p + p { margin-top: 8px; }
}
/* Hỏi đáp: tiêu đề đứng yên bên trái */
@media (min-width: 1000px) {
  #hoi-dap > .khung { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
  #hoi-dap .dau-muc, #hoi-dap .dau-muc.giua { position: sticky; top: 130px; text-align: left; margin: 0; display: block; }
  #hoi-dap .dau-muc .nhan { justify-content: flex-start; } #hoi-dap .dau-muc .nhan::after { display: none; }
  #hoi-dap .hoi-dap { max-width: none; margin: 0; }
}
.nen-anh .hoi-dap:not(details), .hoi-dap:not(details) { background: none; border: 0; border-top: 1px solid var(--ke); border-radius: 0; padding: 0; box-shadow: none; }
.hoi-dap details, .nen-anh .hoi-dap:not(details) details:last-child { border-bottom: 1px solid var(--ke); }
.hoi-dap summary { font-family: var(--f-display); font-weight: 700; font-size: 1.42rem; line-height: 1.3; padding: 24px 4px; }
.hoi-dap summary::after { width: 11px; height: 11px; border-width: 0 1.5px 1.5px 0; }
/* ---------- Thẻ: bỏ hộp, dùng nét mảnh ---------- */
.luoi > .the:not(a):not(.the-video):not(:has(.video-nhe)) { background: none; border: 0; border-top: 1px solid var(--ke); border-radius: 0; padding: 26px 10px 10px 0; box-shadow: none; }
.luoi > .the:not(a):not(.the-video):not(:has(.video-nhe)):hover { transform: none; box-shadow: none; }
.luoi > .the:not(a)::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--son); transition: width .7s var(--em); border: 0 !important; display: block !important; opacity: 1; border-radius: 0; }
.luoi > .the:not(a):hover::before { width: 72px; }
.luoi > .the:not(a)::after { display: none !important; }
.muc-luc .luoi > .the:not(a), .muc-go .luoi > .the:not(a) { border-top-color: rgba(255, 243, 184, .38) !important; }
.muc-luc .luoi > .the:not(a)::before, .muc-go .luoi > .the:not(a)::before { background: #ffe39a; }
.luoi > .the .so-la-ma { font-size: 1.5rem; }
.luoi > .the-anh { background: none; border: 0; border-radius: 0; overflow: visible; }
.luoi > .the-anh:hover { transform: none; box-shadow: none; }
.luoi > .the-anh > .ta-anh { border-radius: 4px 56px 4px 4px; box-shadow: 0 16px 40px rgba(58, 36, 20, .13); transition: border-radius .7s var(--em), box-shadow .5s; }
.luoi > .the-anh:hover > .ta-anh { border-radius: 4px; box-shadow: 0 24px 54px rgba(58, 36, 20, .2); }
.luoi > .the-anh > .ta-than { padding: 22px 4px 0; }
.luoi > .the-anh h3 { transition: color .3s; } .luoi > .the-anh:hover h3 { color: var(--son); }
@media (min-width: 1000px) {
  .luoi.l-4 > .the-anh > .ta-anh { aspect-ratio: 4 / 5; }
  .luoi.l-4:not(.dac-trung) > .the-anh:nth-child(even) { margin-top: 52px; height: auto; }
}
/* Ảnh: một góc cong như cánh sen, không còn khung viền lệch */
.anh-vien::after { display: none; }
.doi .anh-khung { border-radius: 6px 110px 6px 6px; box-shadow: 0 24px 60px rgba(58, 36, 20, .18); }
.doi > .anh-cot:first-child .anh-khung, .doi > div:first-child .anh-khung { border-radius: 110px 6px 6px 6px; }
.doi.anh-phai > .anh-cot:first-child .anh-khung { border-radius: 6px 110px 6px 6px; }
.chong-anh .anh-phu { border-radius: 4px; border-width: 8px; border-color: var(--giay); box-shadow: 0 20px 44px rgba(58, 36, 20, .2); }
.ds-tich li::before { width: 8px; height: 8px; margin: 10px 0 0 4px; border-radius: 50%; transform: none; background: var(--nghe); box-shadow: none !important; border: 0; }
/* Nút */
.nut-son, .nut-nghe { box-shadow: none; }
.nut-son:hover, .nut-nghe:hover { box-shadow: 0 12px 26px rgba(58, 36, 20, .2); }
.bieu-mau { border: 0; background: #fffdf8; border-radius: 22px; box-shadow: 0 22px 60px rgba(58, 36, 20, .13); }
.mien-tru { background: none; border: 0; border-left: 2px solid var(--nghe); border-radius: 0; padding: 2px 0 2px 16px; }
.muc-luc .mien-tru, .muc-go .mien-tru { background: none; }
/* Dải ảnh */
.dai-ray figure { border-radius: 4px; box-shadow: none; height: clamp(200px, 24vw, 310px); }
.dai-ray figcaption { opacity: 0; transition: opacity .4s; } .dai-ray figure:hover figcaption { opacity: 1; }
@media (hover: none) { .dai-ray figcaption { opacity: 1; } }
.dai-anh { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Nhân sự: chỉ hiện người đã công bố */
.nv.cho { display: none; }
.nhom-nv:not(:has(.nv:not(.cho))) { display: none; }
.nhom-nv .nv { background: none; border: 0; border-top: 1px solid var(--ke); border-radius: 0; padding: 22px 0 0; text-align: left; grid-column: 1 / -1; max-width: 520px; }
.nhom-nv .nv-anh { display: none; } .nhom-nv .nv strong { font-size: 1.8rem; }
/* ---------- Chân trang: dãy núi mờ dâng lên từ giấy ---------- */
.chan-trang { background: var(--xanh-dam); overflow: visible; margin-top: clamp(150px, 17vw, 250px); padding-top: 40px; }
.chan-trang::before { display: none; }
.chan-trang::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(110px, 13vw, 200px); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%230a4a36' fill-opacity='.13' d='M0 200V96c60-14 96-52 150-58 62-6 84 46 150 44 80-2 110-74 190-78 74-4 96 66 170 70 66 4 100-44 168-42 80 2 104 62 180 58 72-4 108-62 180-66 60-4 90 30 152 40v136z'/%3E%3Cpath fill='%230a4a36' fill-opacity='.3' d='M0 200v-62c90-6 140-50 220-50 92 0 120 46 210 44 88-2 130-66 220-60 84 6 112 62 200 60 84-2 126-52 210-50 86 2 120 46 200 44 70-2 110-34 180-30v104z'/%3E%3Cpath fill='%230a4a36' d='M0 200v-22c140-34 260-40 420-18 150 20 260 18 420-6 170-24 300-14 420 10 70 14 120 16 180 10v26z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.ct-thuong-hieu img { background: #fffaf0; }
.ct-duoi, .ct-thuong-hieu p { color: rgba(250, 244, 231, .8); }
/* ---------- Chuyển động nhẹ ---------- */
.hien-dan { transform: translateY(30px); transition: opacity 1s var(--em), transform 1.1s var(--em); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes troi-nhe { from { translate: 0 -3.2%; } to { translate: 0 3.2%; } }
    .anh-khung > img, .anh-vom > img { scale: 1.075; animation: troi-nhe linear both; animation-timeline: view(); }
    @keyframes lui-anh { to { translate: 0 12%; } }
    .dau-trang-con:not(.lien) > img, .hero .hero-anh { animation: lui-anh linear both; animation-timeline: scroll(root); animation-range: 0 800px; }
  }
}
/* ---------- Thư quán ---------- */
/* Khối sách 3 chiều: cấu trúc theo 3d-book-image-css-generator của S. Castiel (giấy phép MIT) */
.sach3d { --r: 218px; --d: 30px; --g: -24deg; position: relative; display: block; width: var(--r); aspect-ratio: 19 / 25; border: 0; padding: 0; background: none; perspective: 1100px; cursor: pointer; margin: 0 auto; }
.sach3d i { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transform: rotateY(var(--g)); transition: transform .9s var(--em); font-style: normal; }
.sach3d:hover i, .sach3d:focus-visible i, .sach:hover .sach3d i { transform: rotateY(-4deg) translateY(-6px); }
.sach3d i::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: calc(var(--d) - 2px); transform: translateX(calc(var(--r) - var(--d) / 2 - 4px)) rotateY(90deg); background: repeating-linear-gradient(90deg, #fffdf6 0 2px, #e9dfc8 2px 3px); }
.sach3d i::after { content: ""; position: absolute; inset: 0; transform: translateZ(calc(var(--d) / -2)); background: var(--m); border-radius: 0 3px 3px 0; box-shadow: -14px 16px 38px 6px rgba(52, 32, 12, .34); }
.bia3d { position: absolute; inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 4px 4px 2px; overflow: hidden; background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .16) 2.4%, rgba(0, 0, 0, .14) 5%, rgba(255, 255, 255, .04) 7%, rgba(255, 255, 255, 0) 60%), var(--m); color: var(--c); text-align: left; display: flex; flex-direction: column; padding: 10% 9% 8% 13%; container-type: inline-size; }
.bia3d::after { content: ""; position: absolute; width: 130%; aspect-ratio: 1; right: -62%; bottom: -24%; background: url("../img/mat-trong-dong.webp") center / contain no-repeat; opacity: .26; mix-blend-mode: var(--hoa, screen); filter: grayscale(1) contrast(1.2); }
.bia3d > * { position: relative; z-index: 1; }
.bia3d small { font: 500 5.6cqw/1.45 var(--f-text); color: inherit; opacity: .9; }
.bia3d b { display: block; margin: 8cqw 0 auto; padding-top: 6cqw; border-top: 1px solid currentColor; font: 700 12.4cqw/1.12 var(--f-display); text-wrap: balance; }
.bia3d b.dai { font-size: 10.6cqw; }
.bia3d u { text-decoration: none; font: italic 600 15cqw/1 var(--f-display); opacity: .92; margin-bottom: 3cqw; }
.nhom-nen { --m: #0c573f; --c: #f7e6b4; } .nhom-bo { --m: #ecd9ac; --c: #4a2c12; --hoa: multiply; } .nhom-gt { --m: #8a2f25; --c: #fbe8c6; }
.tq-nav { position: sticky; top: 88px; z-index: 40; background: rgba(245, 236, 218, .95); border-bottom: 1px solid var(--ke); }
.tq-nav .khung { display: flex; gap: clamp(20px, 4vw, 54px); overflow-x: auto; scrollbar-width: none; }
.tq-nav a { flex: none; padding: 18px 0; font: 600 1.02rem var(--f-text); color: var(--muc-2); border-bottom: 2px solid transparent; }
.tq-nav a:hover, .tq-nav a.hien { color: var(--son); border-color: var(--son); }
.tq section, #bo-sach, #duoc-lieu, #thiet-bi { scroll-margin-top: 150px; }
.tq-noi { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 7vw, 120px); align-items: center; }
.tq-be { display: grid; place-items: center; padding: clamp(40px, 5vw, 80px) 0; position: relative; }
.tq-be::before { content: ""; position: absolute; inset: 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 250, 236, .95), rgba(255, 246, 222, 0)); }
.tq-be .sach3d { --r: clamp(240px, 24vw, 344px); --d: 54px; --g: -30deg; }
.tq-noi dl { display: grid; grid-template-columns: auto 1fr; gap: 0 28px; margin: 26px 0 30px; border-top: 1px solid var(--ke); }
.tq-noi dt, .tq-noi dd { padding: 12px 0; border-bottom: 1px solid var(--ke); margin: 0; } .tq-noi dt { color: var(--muc-2); } .tq-noi dd { color: var(--go-dark); font-weight: 500; }
.tq-loc { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin: clamp(80px, 9vw, 130px) 0 clamp(36px, 4vw, 56px); padding-bottom: 22px; border-bottom: 1px solid var(--ke); }
.tq-loc h2 { margin: 0; }
.tq-loc div { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.tq-loc button { border: 0; background: none; padding: 10px 0; min-height: 44px; font: 500 1.02rem var(--f-text); color: var(--muc-2); border-bottom: 1.5px solid transparent; }
.tq-loc button[aria-pressed="true"] { color: var(--xanh); border-color: var(--xanh); font-weight: 600; }
.tq-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(48px, 5.4vw, 84px) clamp(20px, 4vw, 64px); }
.sach { text-align: center; } .sach[hidden] { display: none; }
.sach .sach3d { margin-bottom: 40px; }
.sach h3 { font-size: 1.42rem; max-width: 18em; margin: 0 auto 6px; text-wrap: balance; } .sach p { font-size: 1rem; max-width: 34ch; margin: 0 auto 8px; } .sach .sg { color: var(--son); font-weight: 500; }
.tq-ghi { margin-top: 54px; font-size: 1rem; }
.tq-hang { list-style: none; padding: 0; border-top: 1px solid var(--ke); }
.tq-hang li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--ke); transition: padding .5s var(--em); }
.tq-hang li:hover { padding-left: 22px; }
.tq-hang b { font: 600 clamp(1.7rem, 2.7vw, 2.4rem)/1.15 var(--f-display); color: var(--go-dark); transition: color .3s; } .tq-hang li:hover b { color: var(--xanh); }
.tq-hang em { font-family: var(--f-sach); color: var(--son); white-space: nowrap; }
.tq-dl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.tq-dl > div:first-child { position: sticky; top: 190px; }
.the .tq-sap { display: inline-block; margin-top: 12px; font-family: var(--f-sach); font-style: italic; color: var(--son); }
.ban-doc { background: rgba(8, 56, 40, .82); backdrop-filter: blur(6px); } .bd-tam { border-radius: 18px; background: #f7efdd; } .bd-trang { box-shadow: 0 24px 60px rgba(60, 34, 8, .26); border-radius: 2px 6px 6px 2px; }
.bd-trang.bia.nhom-bo { color: #4a2c12; } .bd-trang.bia.nhom-bo h3 { color: #4a2c12; } .bd-trang.bia.nhom-bo p { color: #4a2c12; }
@media (max-width: 900px) {
  .tq-noi, .tq-dl { grid-template-columns: 1fr; } .tq-dl > div:first-child { position: static; }
  .tq-luoi { grid-template-columns: 1fr 1fr; gap: 44px 18px; } .sach3d { --r: min(38vw, 200px); --d: 22px; } .tq-be .sach3d { --r: 58vw; --d: 40px; } .sach h3 { font-size: 1.18rem; } .sach .mt { display: none; }
  .tq-nav { top: 76px; } .tq-nav a { padding: 14px 0; } .sach .sach3d { margin-bottom: 26px; }
}
/* ---------- Điện thoại ---------- */
@media (max-width: 999px) { .hero .lead, .dau-trang-con .lead { margin-top: 14px; } .hero > .khung, .dau-trang-con > .khung { padding-inline: clamp(18px, 4vw, 40px); } }
@media (max-width: 760px) {
  :root { --cao-dau: 0; }
  .hero, .dau-trang-con, .dau-trang-con.sang { display: block; background: var(--giay); padding: 0; min-height: 0; }
  .hero .hero-anh, .dau-trang-con > img { position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; z-index: 0; animation: none; }
  .hero::before, .dau-trang-con::before, .dau-trang-con.sang::before { display: none; }
  .hero .hero-anh { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); } .dau-trang-con > img { -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .hero .hero-anh::after { display: none; }
  .hero > .khung, .dau-trang-con > .khung { padding-top: 14px; padding-bottom: 34px; }
  .hero h1, .dau-trang-con h1, .dau-trang-con h1.mot-hang { color: #14573f; text-shadow: none; font-size: clamp(2rem, 8.4vw, 2.7rem); }
  .hero h1 em { color: var(--son); }
  .hero .lead, .dau-trang-con .lead { color: #3b2c20; text-shadow: none; }
  .hero .nhan, .dau-trang-con .nhan { color: var(--son); text-shadow: none; }
  .dau-trang-con .vet-dan, .dau-trang-con .vet-dan a { color: var(--muc-2); text-shadow: none; }
  .hero .nut-vien, .dau-trang-con .nut-vien { color: var(--go-dark); border-color: rgba(90, 57, 32, .5); background: none; }
  .hero-cham { top: calc(75vw - 34px); bottom: auto; right: 18px; } .hero-cham button { background: rgba(255, 255, 255, .6); height: 3px; } .hero-cham button.hien { background: #fff; }
  .dau-trang-con.lien > img { aspect-ratio: 16 / 9; }
  .muc-luc, .muc-go { padding: 96px 0 !important; -webkit-mask-size: 100% 46px, 100% calc(100% - 90px), 100% 46px; mask-size: 100% 46px, 100% calc(100% - 90px), 100% 46px; -webkit-mask-position: top, 0 45px, bottom; mask-position: top, 0 45px, bottom; }
  .doi .anh-khung, .doi > .anh-cot:first-child .anh-khung, .doi > div:first-child .anh-khung { border-radius: 64px 6px 6px 6px; }
  .con-so > div { padding: 10px 14px; }
  .hoi-dap summary { font-size: 1.25rem; padding: 18px 0; }
}
/* --- tinh chỉnh --- */
@media (min-width: 1000px) {
  .dau-trang-con.sang:not(.lien) > .khung { display: block; padding-bottom: clamp(70px, 10vh, 120px); }
  .dau-trang-con.sang:not(.lien) .lead { border: 0; padding: 0; margin-top: 16px; max-width: 46ch; }
}
#hoi-dap.nen-anh { background: linear-gradient(180deg, #f5ecda 0, rgba(245, 236, 218, .74) 190px, rgba(245, 236, 218, .74) calc(100% - 190px), #f5ecda 100%), var(--anh) center / cover no-repeat; }
.cho-bo-sung { background: none; border: 0; border-left: 2px solid var(--nghe); border-radius: 0; padding: 2px 0 2px 16px; color: var(--muc-2); }
.hero .lead, .dau-trang-con:not(.sang) .lead { font-weight: 500; text-shadow: 0 0 2px rgba(0, 46, 30, .55), 0 1px 14px rgba(0, 46, 30, .75); }
.hero .nhan, .dau-trang-con:not(.sang) .nhan { font-size: 1.12rem; text-shadow: 0 0 2px rgba(0, 46, 30, .7), 0 1px 12px rgba(0, 46, 30, .8); }
.tq-nav { background: #f7efdf; }
@media (min-width: 1000px) {
  .hero h1 { max-width: none; font-size: clamp(2rem, 3vw, 3.1rem); text-wrap: wrap; }
  .hero > .khung { padding-bottom: 96px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .dau-trang-con:not(.sang) > .khung { padding-bottom: 86px; }
  .hero-cham { bottom: 60px; } .hero-chu-anh { bottom: 50px; }
}
@media (min-width: 761px) {
  .hero, .dau-trang-con:not(.sang) { --lua-duoi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0v30c260 30 500 34 780 14S1220 0 1440 34V0z'/%3E%3C/svg%3E"); -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 43px) no-repeat, var(--lua-duoi) bottom / 100% 44px no-repeat; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 43px) no-repeat, var(--lua-duoi) bottom / 100% 44px no-repeat; }
}
/* Ảnh tập thể có người đứng thấp: nâng ảnh, chữ nằm dưới chân ảnh */
@media (min-width: 1000px) {
  .dau-trang-con.thap { background: #07573e; }
  .dau-trang-con.thap > img { inset: 0 0 auto 0; height: 80%; object-position: 50% var(--y, 90%) !important; animation: none; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .dau-trang-con.thap::before { background: linear-gradient(0deg, #064f38 0, rgba(6, 80, 57, .96) 20%, rgba(6, 80, 57, .55) 30%, rgba(8, 88, 62, .14) 40%, rgba(8, 88, 62, 0) 47%); }
  .dau-trang-con.thap > .khung { padding-bottom: 66px; }
  .dau-trang-con.thap .vet-dan { margin-bottom: 6px; } .dau-trang-con.thap .nhan { margin-bottom: 6px; }
  .dau-trang-con.thap h1 { font-size: clamp(2rem, 2.9vw, 3rem); max-width: 24ch; }
}
@media (min-width: 1000px) {
  .hero::before, .dau-trang-con:not(.thap):not(.sang)::before { background: linear-gradient(0deg, rgba(5, 70, 49, .92) 0%, rgba(5, 72, 50, .78) 16%, rgba(6, 76, 54, .52) 28%, rgba(8, 84, 59, .2) 38%, rgba(10, 92, 65, 0) 47%); }
  .hero { background: #07573e; } .hero .hero-anh { bottom: 12%; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
  .dau-trang-con h1.mot-hang { max-width: none; white-space: nowrap; font-size: clamp(2rem, 2.9vw, 3.1rem); }
  html[lang="en"] .dau-trang-con h1.mot-hang { white-space: normal; }
}
@media (min-width: 1000px) {
  .hero .hero-anh { bottom: 19%; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .hero .hero-anh img { object-position: 50% 34%; }
  .hero::before { background: linear-gradient(0deg, #064f38 0, rgba(6, 80, 57, .95) 18%, rgba(6, 80, 57, .6) 29%, rgba(8, 88, 62, .2) 39%, rgba(8, 88, 62, 0) 47%); }
  .hero > .khung { padding-bottom: 90px; }
}
.chan-trang::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%230a4a36' fill-opacity='.12' d='M0 200V92C70 78 100 36 160 34s92 48 160 46 108-70 196-74 98 62 176 66 110-42 178-40 104 60 182 56 106-58 180-60 120 30 208 42V200z'/%3E%3Cpath fill='%230a4a36' fill-opacity='.26' d='M0 200V136C96 130 146 88 232 88s124 46 214 44 134-64 226-58 116 60 206 60 130-50 216-48 126 44 206 42 120-30 340-14V200z'/%3E%3Cpath fill='%230a4a36' d='M0 200V176C150 140 280 136 440 158s260 18 420-6 300-12 420 10 110 10 160 2V200z'/%3E%3C/svg%3E"); }
@media (min-width: 1000px) {
  .hero .hero-anh { bottom: 25%; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
  .hero .hero-anh img { object-position: 50% 58%; }
  .hero::before { background: linear-gradient(0deg, #064f38 0, rgba(6, 80, 57, .97) 22%, rgba(6, 80, 57, .62) 32%, rgba(8, 88, 62, .18) 41%, rgba(8, 88, 62, 0) 47%); }
  .hero > .khung { padding-bottom: 84px; }
  .hero-cham { bottom: 44px; } .hero-chu-anh { bottom: 36px; }
}
@media (max-width: 999px) { .hero .nhan, .dau-trang-con:not(.sang) .nhan { font-size: 1.05rem; } }
@media (max-width: 760px) { .hero .lead, .dau-trang-con:not(.sang) .lead, .hero .nhan, .dau-trang-con:not(.sang) .nhan, .hero h1, .dau-trang-con h1 { text-shadow: none; font-weight: revert-layer; } .hero .lead, .dau-trang-con:not(.sang) .lead { font-weight: 400; } .hero .nhan, .dau-trang-con:not(.sang) .nhan { font-weight: 400; } .hero h1, .dau-trang-con h1 { font-weight: 700; } .hero .nut-nghe, .dau-trang-con .nut-nghe { background: var(--son); color: #fff; } }
@media (min-width: 1000px) {
  .hero > .khung > h1 { grid-row: 1 / span 3; align-self: end; }
  .hero > .khung > .nhan { grid-row: 4; margin: 14px 0 0; }
  .hero > .khung > .lead { grid-row: 1 / span 2 !important; } .hero > .khung > .hero-nut { grid-row: 3 / span 2; }
  .hero-chu-anh { left: auto; right: calc(var(--le) + 270px); text-align: right; }
}
@media (max-width: 640px) { .ct-thuong-hieu .ct-ten { white-space: normal; } }
.sach.da-hien:not([hidden]) { animation: hien .6s var(--em); }
.muc-luc, .muc-go { -webkit-mask-size: 100% 90px, 100% calc(100% - 168px), 100% 90px; mask-size: 100% 90px, 100% calc(100% - 168px), 100% 90px; -webkit-mask-position: top, 0 84px, bottom; mask-position: top, 0 84px, bottom; }
@media (max-width: 900px) { .bang-tranh .khung-tranh { -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); } .bang-tranh.sang .chu { border-radius: 0 0 34px 34px; } }
@media (max-width: 760px) { .muc-luc, .muc-go { -webkit-mask-size: 100% 46px, 100% calc(100% - 82px), 100% 46px; mask-size: 100% 46px, 100% calc(100% - 82px), 100% 46px; -webkit-mask-position: top, 0 41px, bottom; mask-position: top, 0 41px, bottom; } }
.chan-trang::after { bottom: calc(100% - 4px); }
.nhan { text-wrap: balance; }
@media (max-width: 760px) { .nhan { gap: 10px; } .nhan::before, .giua .nhan::after, .trich .nhan::after { width: 20px; flex: none; } .giua > .nhan::after { flex: none; } }
/* ===== Đợt 11: một khuôn rộng chung, ảnh đầu trang trong, nền chuyển động, chân trang gọn ===== */
:root { --rong: 1440px; --le-k: clamp(18px, 2.8vw, 40px); --cao-dau: min(78vh, max(720px, 31vw)); }
@media (max-height: 760px) { :root { --cao-dau: max(560px, 78vh); } }
@media (min-width: 2200px) { html { font-size: 20px; } html.chu-lon { font-size: 23px; } :root { --rong: 1760px; } }
@media (min-width: 3000px) { html { font-size: 22px; } html.chu-lon { font-size: 25px; } :root { --rong: 2060px; } }
.khung:not(.khung-hep), .thanh-tren .khung, .dau-trang .khung, .bang-tranh.sang .chu .khung { max-width: var(--rong); padding-left: var(--le-k); padding-right: var(--le-k); margin-inline: auto; }
.khung-hep { max-width: 52rem; }
@media (min-width: 1320px) { .dau-trang .khung, .dau-trang.da-cuon .khung { height: 5rem; } .thuong-hieu img, .dau-trang.da-cuon .thuong-hieu img { height: 3.7rem; } .thanh-tren .khung { height: 2.3rem; } .tq-nav { top: 5rem; } }
@media (min-width: 2200px) { .menu > li > a, .thuong-hieu b { font-size: 1.04rem; } .nut-tron, .nut-nn { width: 2.6rem; height: 2.6rem; min-width: 2.6rem; } }
/* ---------- Đầu trang: ảnh trong, chữ trên tấm giấy ---------- */
@media (min-width: 761px) {
  body main > .hero.hero.hero, body main > .dau-trang-con.dau-trang-con.dau-trang-con { --ho: 92px; min-height: var(--cao-dau); background: none; overflow: visible; -webkit-mask: none; mask: none; align-items: flex-end; padding: 0; margin-bottom: -20px;
    --lua-duoi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0v30c260 30 500 34 780 14S1220 0 1440 34V0z'/%3E%3C/svg%3E"); }
  body main > .hero.hero.hero > .hero-anh, body main > .dau-trang-con.dau-trang-con.dau-trang-con > img, body main > .hero.hero.hero::before, body main > .dau-trang-con.dau-trang-con.dau-trang-con::before { position: absolute; inset: 0 0 var(--ho) 0; width: 100%; height: calc(100% - var(--ho)); animation: none; -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 49px) no-repeat, var(--lua-duoi) bottom / 100% 52px no-repeat; mask: linear-gradient(#000 0 0) top / 100% calc(100% - 49px) no-repeat, var(--lua-duoi) bottom / 100% 52px no-repeat; }
  body main > .hero.hero.hero::before, body main > .dau-trang-con.dau-trang-con.dau-trang-con::before { content: ""; background: linear-gradient(0deg, rgba(6, 92, 63, .5) 0, rgba(8, 104, 72, .2) 18%, rgba(8, 104, 72, 0) 38%); }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con.sang::before { background: none; }
  body main > .hero.hero.hero .hero-anh img { object-position: 50% 42%; }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con.thap > img { object-position: 50% var(--y, 80%) !important; }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con.lien > img { object-position: 50% 0; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
  body main > .hero.hero.hero > .khung, body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung { position: relative; width: calc(100% - 2 * var(--le-k)); max-width: calc(var(--rong) - 2 * var(--le-k)); padding: 1.7rem clamp(24px, 3vw, 3.2rem) 1.9rem; background: linear-gradient(115deg, rgba(255, 252, 244, .97), rgba(253, 245, 226, .95)); border-radius: 4px 84px 4px 4px; box-shadow: 0 26px 60px rgba(48, 30, 10, .2); display: grid; grid-template-columns: 1fr; align-items: center; }
  body main > .hero.hero.hero > .khung::before, body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(#d9a441, var(--son) 55%, var(--xanh)); border-radius: 4px 0 0 4px; }
  body main > section > .khung.khung.khung.khung > h1, body main > .hero.hero.hero > .khung > h1, body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung > h1.mot-hang { color: #14573f; text-shadow: none; font-size: clamp(1.9rem, 2.75vw, 3.1rem); max-width: none; margin: 0; white-space: normal; text-wrap: balance; }
  body main > .hero.hero.hero h1 em { color: var(--son); display: block; }
  body main > section > .khung.khung.khung.khung > .lead { color: #3b2c20; text-shadow: none; font-weight: 400; max-width: none; margin: 0; }
  body main > section > .khung.khung.khung.khung > .nhan { color: var(--son); text-shadow: none; font-size: 1.05rem; margin: 0 0 6px; }
  body main > .hero.hero.hero > .khung > .nhan { margin: 12px 0 0; }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung > .vet-dan, body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung > .vet-dan a { color: var(--muc-2); text-shadow: none; } body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung > .vet-dan { margin: 0 0 8px; font-size: .95rem; }
  body main > section > .khung.khung.khung.khung > .hero-nut { margin: 16px 0 0 !important; }
  body main > .hero.hero.hero .nut-vien, body main > .dau-trang-con.dau-trang-con.dau-trang-con .nut-vien { color: var(--go-dark); border-color: rgba(90, 57, 32, .45); background: none; }
  body main > .hero.hero.hero .nut-vien:hover, body main > .dau-trang-con.dau-trang-con.dau-trang-con .nut-vien:hover { background: var(--go-dark); color: #fff; }
  body main > .hero.hero.hero .nut-nghe, body main > .dau-trang-con.dau-trang-con.dau-trang-con .nut-nghe { background: var(--son); color: #fff; }
  body main > .hero.hero.hero .hero-cham { grid-area: auto; right: 0; bottom: calc(100% + 20px); } body main > .hero.hero.hero .hero-chu-anh { grid-area: auto; left: auto; right: 270px; bottom: calc(100% + 10px); color: #fff; text-shadow: 0 1px 8px rgba(0, 40, 26, .8); }
  .hero-cham button { height: 4px; background: rgba(255, 255, 255, .65); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); } .hero-cham button.hien { background: #ffd978; }
}
@media (min-width: 1000px) {
  body main > .hero.hero.hero > .khung, body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 90px); }
  body main > section > .khung.khung.khung.khung > .lead { grid-column: 2; grid-row: 1 / span 4 !important; align-self: center; border-left: 1px solid var(--ke); padding-left: clamp(24px, 3vw, 46px); }
  body main > section > .khung.khung.khung.khung:has(> .hero-nut) > .lead { grid-row: 1 / span 3 !important; align-self: end; }
  body main > section > .khung.khung.khung.khung > .hero-nut { grid-column: 2; padding-left: clamp(24px, 3vw, 46px); }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con.sang > .khung > .lead { border-left: 1px solid var(--ke); padding-left: clamp(24px, 3vw, 46px); margin: 0; }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con.sang > .khung { display: grid; padding-bottom: 1.9rem; }
  body main > .dau-trang-con.dau-trang-con.dau-trang-con > .khung:not(:has(> .lead)) { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { body main > section:first-child + .muc { padding-top: clamp(90px, 8vw, 140px); } }
/* ---------- Tranh làng cổ: mật ong nhạt thay cam ---------- */
.bang-tranh.sang .chu { background: linear-gradient(90deg, rgba(250, 235, 204, .97) 0, rgba(248, 230, 192, .93) 22%, rgba(245, 222, 176, .74) 36%, rgba(240, 212, 160, .38) 49%, rgba(236, 204, 150, .1) 62%, rgba(236, 204, 150, 0) 72%); }
.bang-tranh.sang .chu h2 { color: #14573f; } .bang-tranh.sang .chu p { color: #3b2716; } .bang-tranh.sang .chu .nhan { color: var(--son); }
.bang-tranh.sang .nut-nghe { background: var(--son); color: #fff; }
@media (min-width: 901px) { .bang-tranh.sang .chu .khung > div { max-width: min(30rem, 36vw); } }
@media (max-width: 900px) { .bang-tranh.sang .chu { background: linear-gradient(170deg, #f7e4ba, #fbf0d6); } }
.bang-tranh .khung-tranh { overflow: hidden; position: relative; }
.bang-tranh .khung-tranh::after { content: ""; position: absolute; left: -30%; right: -30%; bottom: 6%; height: 46%; pointer-events: none; background: radial-gradient(40% 60% at 25% 60%, rgba(255, 250, 235, .5), transparent 70%), radial-gradient(34% 50% at 70% 50%, rgba(255, 250, 235, .42), transparent 70%); animation: suong 26s ease-in-out infinite alternate; }
@keyframes suong { from { transform: translateX(-9%); } to { transform: translateX(9%); } }
/* ---------- Nền chuyển động ---------- */
main > .muc { position: relative; isolation: isolate; }
.nd { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.nd b { position: absolute; width: max(46vw, 520px); aspect-ratio: 1; border-radius: 50%; will-change: transform; animation: nd-troi 24s ease-in-out infinite alternate; }
.nd b:nth-child(1) { left: -12vw; top: -8%; background: radial-gradient(closest-side, var(--a), transparent); }
.nd b:nth-child(2) { right: -12vw; top: 18%; background: radial-gradient(closest-side, var(--b), transparent); animation-duration: 31s; animation-delay: -9s; animation-direction: alternate-reverse; }
.nd b:nth-child(3) { left: 24vw; bottom: -22%; background: radial-gradient(closest-side, var(--c), transparent); animation-duration: 37s; animation-delay: -17s; }
@keyframes nd-troi { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(7vw, 5vh, 0) scale(1.14); } 100% { transform: translate3d(-4vw, 9vh, 0) scale(.94); } }
.nd-1 { --a: rgba(146, 196, 160, .58); --b: rgba(250, 207, 120, .56); --c: rgba(246, 188, 166, .42); }
.nd-2 { --a: rgba(247, 183, 158, .52); --b: rgba(157, 203, 178, .52); --c: rgba(252, 220, 146, .52); }
.nd-3 { --a: rgba(252, 211, 124, .56); --b: rgba(243, 172, 150, .42); --c: rgba(150, 202, 190, .5); }
.nd-x { --a: rgba(34, 168, 110, .55); --b: rgba(240, 196, 92, .26); --c: rgba(4, 60, 42, .5); }
.nd svg { position: absolute; left: -10%; width: 120%; height: 100%; top: 0; fill: none; stroke: #b98a35; stroke-width: 1.4; opacity: .3; }
.nd-x svg { stroke: #fff0c0; opacity: .2; }
.nd path { animation: nd-song 19s ease-in-out infinite alternate; } .nd path:nth-child(2n) { animation-duration: 25s; animation-direction: alternate-reverse; }
@keyframes nd-song { from { transform: translate3d(-3%, -12px, 0); } to { transform: translate3d(3%, 16px, 0); } }
.nd u { position: absolute; right: -14vw; top: 50%; width: max(44vw, 480px); aspect-ratio: 1; margin-top: -22vw; background: url("../img/mat-trong-dong.webp") center / contain no-repeat; opacity: .13; mix-blend-mode: multiply; animation: xoay 150s linear infinite; } .nd.trai u { right: auto; left: -16vw; }
.nd.ngung *, .nd.ngung { animation-play-state: paused; }
/* ---------- Dẫn mắt người đọc ---------- */
.to-sang { background: linear-gradient(transparent 60%, rgba(250, 197, 84, .62) 60%, rgba(250, 197, 84, .62) 94%, transparent 94%) 0 0 / 0 100% no-repeat; transition: background-size 1.1s .35s var(--em); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.to-sang.da { background-size: 100% 100%; }
.muc-luc .to-sang, .muc-go .to-sang { background-image: linear-gradient(transparent 60%, rgba(255, 224, 140, .34) 60%, rgba(255, 224, 140, .34) 94%, transparent 94%); }
h2.tach > span { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .75s var(--em), transform .85s var(--em); transition-delay: calc(var(--i) * 55ms); }
h2.tach.da > span { opacity: 1; transform: none; }
.mien-tru { position: relative; border-left-color: transparent; }
.mien-tru::before { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%; background: var(--nghe); transform: scaleY(0); transform-origin: top; transition: transform 1.1s .3s var(--em); }
.mien-tru.da::before { transform: none; }
.nut-son, .nut-nghe { position: relative; overflow: hidden; }
.nut-son::after, .nut-nghe::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 46%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); animation: anh-quet 6.5s 2s ease-in-out infinite; pointer-events: none; }
@keyframes anh-quet { 0%, 72% { left: -60%; } 100% { left: 130%; } }
.ben { position: fixed; right: 6px; top: 50%; transform: translateY(-50%); z-index: 55; display: none; }
@media (min-width: 1320px) and (min-height: 600px) { .ben { display: grid; gap: 2px; } }
.ben a { position: relative; display: grid; place-items: center; width: 26px; height: 26px; }
.ben a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(120, 84, 34, .38); box-shadow: 0 0 0 2px rgba(255, 252, 244, .65); transition: .35s var(--em); }
.ben a.hien::before { height: 22px; border-radius: 8px; background: var(--son); } .ben a:hover::before { background: var(--xanh); }
.ben span { position: absolute; right: 30px; top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; padding: 5px 14px; border-radius: 99px; background: rgba(255, 252, 244, .97); color: #14573f; font-size: .92rem; font-weight: 500; box-shadow: 0 8px 22px rgba(58, 36, 20, .16); transition: .3s; }
.ben a:hover span, .ben a:focus-visible span, .ben.keu a.hien span { opacity: 1; transform: translate(0, -50%); }
/* ---------- Hành trình di sản thu gọn ---------- */
.hg-dai { display: flex; gap: 12px; height: clamp(340px, 34vw, 520px); }
.hg-dai button { position: relative; flex: 1 1 0; min-width: 0; border: 0; padding: 0; overflow: hidden; border-radius: 4px; background: none; cursor: pointer; transition: flex .8s var(--em), border-radius .6s; text-align: left; }
.hg-dai button:first-child { border-radius: 64px 4px 4px 4px; } .hg-dai button:last-child { border-radius: 4px 4px 64px 4px; }
.hg-dai button:hover, .hg-dai button:focus-visible, .hg-dai button.ro { flex: 2.5 1 0; }
.hg-dai:hover button.ro:not(:hover) { flex: 1 1 0; }
.hg-dai img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--em); } .hg-dai button:hover img { transform: scale(1.05); }
.hg-dai button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22, 44, 28, .86), rgba(22, 44, 28, .2) 46%, transparent 70%); }
.hg-dai span { position: absolute; z-index: 1; left: 20px; right: 14px; bottom: 18px; color: #fff; }
.hg-dai b { display: block; font: 700 1.5rem/1.15 var(--f-display); color: #ffe39a; } .hg-dai small { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.4; color: #fffdf5; }
.hg-nut { display: flex; justify-content: center; margin-top: 30px; } .hg-nut .nut svg { transition: transform .5s; }
.hg-mo .hg-dai { display: none; } .hg:not(.hg-mo) .dong-tg { display: none; }
.hg-mo .dong-tg { animation: hien .8s var(--em); }
@media (max-width: 760px) { .hg-dai { flex-direction: column; height: auto; gap: 8px; } .hg-dai button { flex: none !important; height: 108px; } .hg-dai button:first-child { border-radius: 40px 4px 4px 4px; } .hg-dai button::after { background: linear-gradient(90deg, rgba(22, 44, 28, .86), rgba(22, 44, 28, .2)); } }
/* ---------- Báo chí ---------- */
.h2-ngang { white-space: nowrap; font-size: clamp(1.5rem, 3.05vw, 3.2rem); } .dau-muc:has(.h2-ngang) { max-width: none; }
html[lang="en"] .h2-ngang { white-space: normal; } @media (max-width: 760px) { .h2-ngang { white-space: normal; font-size: 1.9rem; } }
.bao-nhom { margin: 0 0 22px; color: var(--son); } .bao-nhom + .luoi { margin-bottom: clamp(50px, 5vw, 80px); }
#bao-chi .luoi.l-4 > .the-anh > .ta-anh { aspect-ratio: 4 / 3; } #bao-chi .luoi.l-4 > .the-anh:nth-child(even) { margin-top: 0; }
#bao-chi .video-nhe { border-radius: 4px 56px 4px 4px; aspect-ratio: 4 / 3; }
/* ---------- Chân trang gọn ---------- */
.chan-trang { padding: 34px 0 26px; }
.ct-tren { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 40px; align-items: center; }
.ct-tren .ct-th { display: flex; align-items: center; gap: 18px; }
.ct-tren .ct-th img { height: 78px; width: auto; background: #fffaf0; padding: 10px 14px; border-radius: 4px 26px 4px 4px; }
.ct-th b { display: block; font: 700 1.55rem/1.2 var(--f-display); color: #fffaf0; } .ct-th small { display: block; margin-top: 3px; color: rgba(250, 244, 231, .82); font-size: .95rem; }
.ct-goi { text-align: right; } .ct-goi span { display: block; color: rgba(250, 244, 231, .82); font-size: .95rem; } .ct-goi a { font: 700 1.9rem/1.1 var(--f-display); color: #ffe39a; white-space: nowrap; }
.ct-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 26px; margin: 28px 0; padding: 16px 0; border-block: 1px solid rgba(255, 227, 154, .22); }
.ct-nav a { padding: 8px 0; color: #fffaf0; font-weight: 500; white-space: nowrap; }
.ct-dc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(24px, 4vw, 60px); }
.ct-dc h4 { font: italic 400 1.06rem var(--f-sach); color: #ffe39a; margin-bottom: 6px; } .ct-dc p { color: rgba(250, 244, 231, .9); font-size: 1rem; line-height: 1.6; margin: 0; } .ct-dc a { color: #fffaf0; }
.chan-trang .ct-duoi { margin-top: 30px; padding-top: 18px; align-items: center; gap: 10px 26px; color: rgba(250, 244, 231, .82); }
.ct-phu { display: flex; flex-wrap: wrap; gap: 4px 22px; } .ct-phu a { text-decoration: none; padding: 6px 0; } .chan-trang .mxh { margin: 0; }
.ct-luu { flex-basis: 100%; font-size: .92rem; }
@media (max-width: 1100px) { .ct-nav { justify-content: flex-start; } }
@media (max-width: 760px) { .ct-tren { grid-template-columns: 1fr; } .ct-goi { text-align: left; } .ct-tren .ct-th img { height: 62px; } .ct-th b { font-size: 1.25rem; } .ct-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .ct-dc { grid-template-columns: 1fr; gap: 18px; } .chan-trang { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .nd *, .nut-son::after, .nut-nghe::after, .bang-tranh .khung-tranh::after { animation: none !important; } h2.tach > span { opacity: 1; transform: none; } }
@media (min-width: 1000px) {
  body main > section > .khung.khung.khung.khung.khung > .hero-nut { grid-row: 4; }
  body main > section > .khung.khung.khung.khung.khung:has(> .hero-nut) > .lead { grid-row: 1 / span 3 !important; align-self: end; }
}
body main > .hero .hero-chu-anh { background: rgba(8, 62, 44, .55); padding: 3px 14px; border-radius: 99px; }
.ben.an { opacity: 0; pointer-events: none; } .ben { transition: opacity .4s; }
@media (min-width: 1320px) and (max-width: 1560px) { .nut-nhac, .nut-chu { width: 34px; height: 34px; left: 2px; } .nut-chu { bottom: 58px; font-size: .82rem; } }
body main > .hero.hero.hero.hero .hero-chu-anh { bottom: calc(100% + 16px); } body main > .hero.hero.hero.hero .hero-cham { bottom: calc(100% + 28px); }
.chong-anh:has(> .anh-vom) { max-width: min(30rem, 88%); margin-inline: auto; }
@media (max-width: 640px) { .dau-trang .khung { padding-left: 12px; padding-right: 12px; } }
@media (max-width: 380px) { .dau-trang .khung { padding-left: 8px; padding-right: 8px; gap: 4px; } .thuong-hieu img { width: 38px !important; height: auto !important; } .thuong-hieu { gap: 5px; min-width: 0; flex: 1 1 0; } .thuong-hieu span { max-width: none; min-width: 0; white-space: normal; } .dt-hanh-dong .nut-tron, .nut-menu.nut-tron, .nut-nn { width: 36px; min-width: 36px; height: 36px; } .thuong-hieu b { font-size: .86rem; } }
@media (max-width: 760px) { .ct-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ct-nav a { white-space: normal; } .ct-goi a { font-size: 1.7rem; } }
/* ===== Đợt 12: ảnh đầu trang không bị che, nền giấy dó cổ điển, mép giấy xé ===== */
:root { --cao-anh: clamp(400px, min(60vh, 32vw), 820px); --cao-chu: 15.5rem; --deckle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22V9l7 2 5-4 9 3 6-5 8 4 4-2 9 5 7-6 6 3 10-2 5 4 8-5 6 3 9-1 4 4 9-6 7 3 5-2 10 4 6-5 8 3 5-1 9 4 6-4 7 2 9-3 5 5 8-4 6 2 10-3 4 3 8-5 7 4 6-2 9 3 5-4 8 3 7-2 6 4 9-5 5 3 8-1 6 3 9-4 7 4 5-3 10 3 6-4 7 2 8-3 6 5 9-4 5 2 8-2 7 3 6-3 9 4 5-5 8 3 7-1 6 3 9-4 5 4 8-3 7 2 6-3 9 4 6-5 8 4 5-2 9 3 7-3 6 4 8-4 5 3 9-2 7 3 6-4 8 4 5-3 7 2 9-2 6 3V22z'/%3E%3C/svg%3E"); }
/* ---------- Đầu trang: ảnh nguyên vẹn, chữ trên dải giấy bên dưới ---------- */
@media (min-width: 761px) {
  html body main > section.hero.hero.hero.hero, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con { display: block; min-height: 0; height: calc(var(--cao-anh) + var(--cao-chu)); margin: 0; padding: 0; overflow: hidden; background: #f3e6c8 url("../img/giay/do-song.jpg") center bottom / cover; }
  html body main > section.hero.hero.hero.hero > .hero-anh, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > img { position: absolute; inset: 0 0 auto 0; width: 100%; height: var(--cao-anh); -webkit-mask: none; mask: none; animation: none; }
  html body main > section.hero.hero.hero.hero::before, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--cao-anh) - 24px); bottom: 0; height: auto; width: auto; z-index: 1; -webkit-mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% 100% no-repeat; mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% 100% no-repeat; background: #f5ead0 url("../img/giay/do-song.jpg") center 70% / cover; filter: drop-shadow(0 -3px 4px rgba(60, 36, 10, .25)); }
  html body main > section.hero.hero.hero.hero > .khung.khung.khung.khung.khung.khung, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung.khung.khung.khung.khung.khung { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); top: calc(var(--cao-anh) + 4px); bottom: 0; width: 100%; max-width: var(--rong); padding: 0 var(--le-k); background: none; border-radius: 0; box-shadow: none; align-content: center; }
  html body main > section.hero.hero.hero.hero > .khung::before, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung::before { display: none; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con.thap > img { object-position: 50% var(--y, 80%) !important; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con.lien > img { object-fit: cover; object-position: 50% 30%; -webkit-mask: none; mask: none; }
  html body main > section.hero.hero.hero.hero .hero-cham { position: absolute; top: calc(var(--cao-anh) - 64px); bottom: auto; right: max(var(--le-k), calc((100% - var(--rong)) / 2 + var(--le-k))); z-index: 3; }
  html body main > section.hero.hero.hero.hero .hero-chu-anh { position: absolute; top: calc(var(--cao-anh) - 104px); bottom: auto; left: auto; right: max(var(--le-k), calc((100% - var(--rong)) / 2 + var(--le-k))); z-index: 3; }
}
@media (min-width: 761px) and (max-width: 999px) { :root { --cao-chu: 19rem; } }
/* ---------- Đầu trang trên cùng: cân hai bên, menu ở giữa ---------- */
@media (min-width: 1600px) {
  .dau-trang .khung, .dau-trang.da-cuon .khung { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .dau-trang nav { justify-self: center; } .dt-hanh-dong { justify-self: end; }
}
.thuong-hieu span { min-width: 0; }
/* ---------- Ảnh đôi: không chồng lên nhau ---------- */
.chong-anh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .56fr); gap: 16px; align-items: end; }
.chong-anh > :first-child { grid-column: 1; }
.chong-anh .anh-phu { position: static; width: auto; right: auto; bottom: auto; border: 0; border-radius: 4px 4px 40px 4px; box-shadow: 0 16px 34px rgba(58, 36, 20, .18); aspect-ratio: 3 / 4; margin-bottom: -28px; }
.chong-anh:has(> .anh-vom) { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); }
.chong-anh > .anh-vom { aspect-ratio: 4 / 5; }
/* ---------- Nền giấy dó: mỗi phần một tờ giấy, mép xé ---------- */
main > .muc:not(.muc-tranh) { background-color: transparent; }
.nd { -webkit-mask-image: none; mask-image: none; inset: 0; background: var(--g-mau, #f4ead3) var(--g-anh) var(--g-vt, center) / cover no-repeat; }
.nd::after { content: ""; position: absolute; inset: 0; background: var(--giay-van); opacity: .9; mix-blend-mode: multiply; }
.nd b, .nd u, .nd svg { display: none !important; }
.nd i { position: absolute; inset: -4%; background: inherit; background-color: transparent; animation: giay-tho 38s ease-in-out infinite alternate; }
@keyframes giay-tho { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.05) translate3d(-1.2%, .8%, 0); } }
.nd-1 { --g-anh: url("../img/giay/do-song.jpg"); --g-mau: #f6edd8; }
.nd-2 { --g-anh: url("../img/giay/chim-trong.jpg"); --g-mau: #f1e1bd; }
.nd-3 { --g-anh: url("../img/giay/dan-lat.jpg"); --g-mau: #efe0c2; }
.nd-4 { --g-anh: url("../img/giay/tia-to.jpg"); --g-mau: #f7f0e0; }
.nd-5 { --g-anh: url("../img/giay/sen.jpg"); --g-mau: #f2dfb9; }
.nd-x { --g-anh: url("../img/giay/ngoc.jpg"); --g-mau: #0d3f2f; }
.nd-x::after { mix-blend-mode: soft-light; opacity: .5; }
.nd-anh { display: none; }
main > .muc + .muc:not(.muc-luc):not(.muc-go), main > .muc + .bang-tranh + .muc, .tq > .muc + .muc { margin-top: -14px; -webkit-mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% 100% no-repeat; mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% 100% no-repeat; }
.muc-sau, .muc-dam, .rap-muc { background: none; }
/* Mảng xanh: giấy sơn mài, mép xé hai đầu, chỉ một trống đồng */
.muc-luc, .muc-go { margin: -14px 0 0 !important; padding: clamp(96px, 9vw, 150px) 0 !important; --deckle-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Cpath d='M0 0v13l7-2 5 4 9-3 6 5 8-4 4 2 9-5 7 6 6-3 10 2 5-4 8 5 6-3 9 1 4-4 9 6 7-3 5 2 10-4 6 5 8-3 5 1 9-4 6 4 7-2 9 3 5-5 8 4 6-2 10 3 4-3 8 5 7-4 6 2 9-3 5 4 8-3 7 2 6-4 9 5 5-3 8 1 6-3 9 4 7-4 5 3 10-3 6 4 7-2 8 3 6-5 9 4 5-2 8 2 7-3 6 3 9-4 5 5 8-3 7 1 6-3 9 4 5-4 8 3 7-2 6 3 9-4 6 5 8-4 5 2 9-3 7 3 6-4 8 4 5-3 9 2 7-3 6 4 8-4 5 3 7-2 9 2 6-3V0z'/%3E%3C/svg%3E");
  -webkit-mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% calc(100% - 42px) no-repeat, var(--deckle-d) bottom / 600px 22px repeat-x; mask: var(--deckle) top / 600px 22px repeat-x, linear-gradient(#000 0 0) 0 21px / 100% calc(100% - 42px) no-repeat, var(--deckle-d) bottom / 600px 22px repeat-x; }
.muc-luc + .muc, .muc-go + .muc { margin-top: -14px; }
#con-so .nd { --g-anh: none; background: radial-gradient(110% 150% at 78% 0%, #136b4b 0%, #0b5a40 46%, #0a4733 100%); }
#con-so .trong-dong-nen { width: min(980px, 64vw); right: -14vw !important; top: 50% !important; margin-top: calc(min(980px, 64vw) / -2); opacity: .16; }
main > .muc-luc:last-child { -webkit-mask: none; mask: none; margin: 30px clamp(12px, 3vw, 56px) 0 !important; }
main > .muc-luc:last-child .nd { border-radius: inherit; }
.muc-luc .ds-tich li::before { background: #ffd978; }
@media (max-width: 760px) {
  main > .muc + .muc:not(.muc-luc):not(.muc-go), .muc-luc, .muc-go { -webkit-mask-size: 300px 12px, 100% 100%, 300px 12px; mask-size: 300px 12px, 100% 100%, 300px 12px; }
  .muc-luc, .muc-go { -webkit-mask-size: 300px 12px, 100% calc(100% - 22px), 300px 12px; mask-size: 300px 12px, 100% calc(100% - 22px), 300px 12px; -webkit-mask-position: top, 0 11px, bottom; mask-position: top, 0 11px, bottom; padding: 80px 0 !important; }
  .chong-anh { grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); gap: 10px; } .chong-anh .anh-phu { margin-bottom: 0; }
}
/* Chân trang: dãy núi trên nền giấy */
.chan-trang { margin-top: clamp(120px, 13vw, 200px); }
/* Báo chí */
#bao-chi .h2-ngang { font-size: clamp(1.5rem, 2.25vw, 2.5rem); }
@media (max-width: 1199px) { #bao-chi .h2-ngang { white-space: normal; } }
@media (min-width: 1000px) and (max-width: 1199px) { :root { --cao-chu: 17rem; } }

/* ===== Đợt 13: thanh đầu trang cố định một khuôn, dải chữ đầu trang cân giữa ===== */
@media (min-width: 1320px) {
  :root { --ben: 17.8rem; }
  html body .dau-trang .khung, html body .dau-trang.da-cuon .khung { display: grid; grid-template-columns: var(--ben) minmax(0, 1fr) auto; column-gap: clamp(20px, 2vw, 44px); max-width: min(100%, calc(var(--rong) + 12rem)); }
  html body .dau-trang nav { justify-self: center; }
  html body .dau-trang .thuong-hieu { width: var(--ben); min-width: 0; }
  html body .dt-hanh-dong { justify-self: end; gap: 8px; }
  html body .dt-hanh-dong .nut-nn { width: 46px; min-width: 46px; padding: 0; justify-content: center; }
}
@media (min-width: 1701px) {
  html body .dau-trang .khung, html body .dau-trang.da-cuon .khung { grid-template-columns: var(--ben) minmax(0, 1fr) var(--ben); }
  html body .dt-hanh-dong { width: var(--ben); }
  html body .dt-hanh-dong .nut-son { flex: 1 1 auto; justify-content: center; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}
/* Dải chữ dưới ảnh: hai cột rộng bằng nhau, đường kẻ nằm đúng giữa */
@media (min-width: 1000px) {
  html body main > section.hero.hero.hero.hero > .khung.khung.khung.khung.khung.khung, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung.khung.khung.khung.khung.khung:has(> .lead) { display: grid; grid-template-columns: minmax(0, 34rem) minmax(0, 34rem); justify-content: center; column-gap: 0; align-content: center; }
  html body main > section.hero.hero.hero.hero > .khung > :not(.lead):not(.hero-nut):not(.hero-cham):not(.hero-chu-anh), html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > :not(.lead) { grid-column: 1; padding-right: clamp(28px, 3vw, 56px); }
  html body main > section.hero.hero.hero.hero > .khung > .lead, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > .lead { grid-column: 2; align-self: center; margin: 0; padding-left: clamp(28px, 3vw, 56px); border-left: 1px solid rgba(150, 105, 40, .35); }
  html body main > section.hero.hero.hero.hero > .khung > .hero-nut { grid-column: 2; padding-left: clamp(28px, 3vw, 56px); }
}

/* ===== Đợt 14: tên phương pháp không xuống dòng, đầu trang một khuôn ở mọi cỡ màn hình ===== */
.nw { white-space: nowrap; }
@media (min-width: 1320px) {
  html body .dau-trang .khung, html body .dau-trang.da-cuon .khung { grid-template-columns: var(--ben) minmax(0, 1fr) var(--ben); }
  html body .dau-trang .menu { display: flex; }
  html body .dt-hanh-dong { width: var(--ben); }
  html body .dt-hanh-dong .nut-son { display: inline-flex; flex: 1 1 auto; justify-content: center; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
}
/* Màn hình nhỏ hơn: thu nhỏ cả thanh theo cùng tỉ lệ, không bớt nút */
@media (min-width: 1320px) and (max-width: 1439px) { html body .dau-trang .khung { zoom: .76; } }
@media (min-width: 1440px) and (max-width: 1559px) { html body .dau-trang .khung { zoom: .83; } }
@media (min-width: 1560px) and (max-width: 1639px) { html body .dau-trang .khung { zoom: .9; } }
@media (min-width: 1640px) and (max-width: 1719px) { html body .dau-trang .khung { zoom: .95; } }
/* Dải chữ dưới ảnh: hai cột rộng bằng nhau (bề rộng do JS tính theo tiêu đề), nút nằm cột phải */
@media (min-width: 1000px) {
  html body main > section.hero.hero.hero.hero > .khung.khung.khung.khung.khung.khung, html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung.khung.khung.khung.khung.khung:has(> .lead) { grid-template-columns: var(--cot, minmax(0, 34rem)) var(--cot, minmax(0, 34rem)); }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > :not(.lead):not(.hero-nut) { grid-row: auto; grid-column: 1; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung:has(> .hero-nut) > .lead { grid-row: 1 / span 3; align-self: end; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > .hero-nut { grid-column: 2; grid-row: 4; align-self: start; margin: 0; padding: .55rem 0 0 clamp(28px, 3vw, 56px); border-left: 1px solid rgba(150, 105, 40, .35); flex-wrap: nowrap; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > .hero-nut .nut { white-space: nowrap; }
  html body main > section.dau-trang-con.dau-trang-con.dau-trang-con.dau-trang-con > .khung > h1 { white-space: normal; }
}

/* ===== Đợt 15: ảnh đầu trang cao theo bề ngang màn hình, không phụ thuộc chiều cao cửa sổ ===== */
:root { --cao-anh: clamp(400px, 31vw, 820px); }
