/* Các khối riêng của trang chủ (thiết kế bàn giao 18/10/2026, H13). Nạp SAU chung.css (màu, chữ, nút, đầu trang, chân trang). */
/* ── Hero ── */
.hero { position: relative; min-height: clamp(640px, 92vh, 880px); display: flex; align-items: center; overflow: hidden; z-index: 2; }
.hero-anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.85); }
.hero-phu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 38, 50, 0) 55%, var(--abyssal) 100%),
  linear-gradient(90deg, var(--abyssal) 0%, rgba(27, 38, 50, .94) 38%, rgba(27, 38, 50, .55) 70%, rgba(27, 38, 50, .75) 100%); }
.hero-quy { position: absolute; right: -140px; top: 50%; width: 760px; height: 760px; margin-top: -380px; }
.hero-quy .r2 { inset: 90px; }
.hero-quy .r3 { inset: 190px; }
.hero-sang { position: absolute; inset: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 177, 98, .05), rgba(255, 177, 98, 0) 70%); }
.hero-trong { width: 100%; padding-top: 72px; padding-bottom: 120px; }
.hero-chu { max-width: 920px; display: flex; flex-direction: column; gap: 26px; }
.hero-h1 { margin: 0; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.serif { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400; color: var(--cam); letter-spacing: -.01em; }
.hero-lead { max-width: 600px; color: rgba(238, 233, 223, .86); }
.hero-hv { margin: 0; font-size: 15px; color: var(--yen); }
.hero-hv a { color: var(--kem); text-underline-offset: 3px; }
.cuon-xuong { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--yen); text-decoration: none; z-index: 3; }
.cuon-xuong .mono { font-size: 11px; letter-spacing: .14em; }
.chuot { width: 24px; height: 38px; border: 1.5px solid rgba(238, 233, 223, .6); border-radius: 14px; position: relative; }
.chuot::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--kem); animation: cuon 1.8s ease-in-out infinite; }

.ticker-box { position: relative; z-index: 2; border-top: 1px solid rgba(238, 233, 223, .10); border-bottom: 1px solid rgba(238, 233, 223, .10); background: var(--nen-sau); overflow: hidden; padding: 16px 0; }
.ticker { display: flex; width: max-content; animation: truot 46s linear infinite; }
.ticker-box:hover .ticker, .gal-box:hover .gal-row { animation-play-state: paused; }
.ticker-dong { display: flex; gap: 44px; padding-right: 44px; font-size: clamp(16px, 1.6vw, 22px); font-weight: 600; white-space: nowrap; align-items: center; color: var(--yen); }
.thoi { color: var(--yen); }

/* ── Lối tắt (BAN-GIAO 10.1): 3 cột, ≤1100 2 cột, ≤640 1 cột; đè lên mép dưới hero 64px ── */
.loi-tat-khoi { position: relative; z-index: 3; margin-top: -64px; }
.lt-nhan { margin: 0 0 14px; font-size: 12px; letter-spacing: .1em; color: var(--yen); }
.loi-tat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; }
.lt-o { display: flex; gap: 14px; align-items: center; min-height: 76px; padding: 14px 12px 12px 0; background: radial-gradient(ellipse 80% 90% at 0% 0%, rgba(27, 38, 50, .85), rgba(27, 38, 50, .35) 70%, rgba(27, 38, 50, 0) 100%); }
.lt-chu { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lt-chu strong { font-size: 16px; line-height: 1.3; }
.lt-chu span { font-size: 13px; color: var(--yen); line-height: 1.4; }
.lt-chinh { border-radius: 14px; padding-left: 12px; background: radial-gradient(ellipse 90% 100% at 0% 0%, rgba(238, 233, 223, .10), rgba(238, 233, 223, .03) 70%, rgba(238, 233, 223, 0) 100%); }
.lt-chinh::before { width: 0; }
@media (max-width: 1100px) { .loi-tat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .loi-tat { grid-template-columns: minmax(0, 1fr); } .loi-tat-khoi { margin-top: -40px; } }
.hero:has(+ .loi-tat-khoi) .cuon-xuong { bottom: 84px; }
.hero:has(+ .loi-tat-khoi) .hero-trong { padding-bottom: 170px; }

/* ── Dải con số ── */
.dem-khoi { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(24px, 3vw, 40px); }
.dem { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); column-gap: 16px; border-top: 1px solid rgba(238, 233, 223, .14); }
.dem-o { padding: 22px 20px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.dem-o .o-ic { margin-left: -10px; }
.dem-so { font-size: clamp(54px, 6vw, 84px); line-height: 1; color: var(--kem); font-variant-numeric: tabular-nums; }
.dem-nhan { font-weight: 600; }
.dem-phu { font-size: 14px; color: var(--yen); }

/* ── Hệ sinh thái ── */
/* Ba trụ một hàng, Phát triển bản thân trải ngang bên dưới làm nền đỡ (luật 4 gói thiết kế, giống trang Về ĐTV). */
.luoi-tru { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; }
.tru { padding: 18px 4px 10px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 15px; }
.tru .phu { font-size: 14px; }
/* Gốc là mặt nền đỡ ba trụ: một đường chân trời cam, quầng sáng tỏa từ dưới lên. */
.tru-goc { grid-column: 1 / -1; order: 2; flex-direction: row; align-items: center; padding: 18px 0 14px; background: radial-gradient(70% 140% at 30% 0%, rgba(238, 233, 223, .06), rgba(238, 233, 223, 0) 70%);
  border-top: 1px solid rgba(238, 233, 223, .35); }
.tru-goc::before { width: 0; }
@media (max-width: 560px) { .luoi-tru { grid-template-columns: 1fr; } .tru { flex-direction: row; } }
.qd { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.qd .qd-r2 { inset: 12%; }
.qd .qd-r3 { inset: 26%; }
.qd-sat { right: 14%; top: 12%; }
.qd-tam { position: absolute; inset: 34%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--xanh), var(--abyssal) 75%); border: 1px solid rgba(238, 233, 223, .3);
  box-shadow: 0 0 60px rgba(238, 233, 223, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px; padding: 8px; }
.qd-tam .mono { font-size: clamp(9px, 1.6vw, 11px); color: var(--yen); letter-spacing: .1em; }
.qd-tam strong { font-size: clamp(13px, 2.4vw, 18px); line-height: 1.2; }
.qd-n { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; background: var(--abyssal); border: 1px solid rgba(238, 233, 223, .25); border-radius: 999px;
  padding: 8px 14px 8px 8px; font-size: 13px; font-weight: 600; white-space: nowrap; z-index: 2; }
.qd-n:hover { border-color: var(--kem); }
.qd-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--xanh); display: flex; align-items: center; justify-content: center; flex: none; }
.qd-ic .ico { width: 16px; height: 16px; }
.qd-nb { border-color: rgba(238, 233, 223, .6); }
.qd-nb .qd-ic { background: var(--kem); }
.qd-nb .qd-ic .ico { color: var(--abyssal); }
.qd-dk { border-style: dashed; border-color: rgba(238, 233, 223, .4); color: var(--yen); }
.qd-dk .qd-ic { background: none; border: 1px dashed rgba(238, 233, 223, .4); }
.qd-dk .qd-ic .ico { color: var(--yen); }
.qd-p0 { left: 50%; top: 4%; }
.qd-p1 { left: 84%; top: 17%; }
.qd-p2 { left: 96%; top: 50%; transform: translate(-60%, -50%); }
.qd-p3 { left: 84%; top: 83%; }
.qd-p4 { left: 50%; top: 96%; }
.qd-p5 { left: 16%; top: 83%; }
.qd-p6 { left: 4%; top: 50%; transform: translate(-40%, -50%); }
.qd-p7 { left: 16%; top: 17%; }
/* Màn vừa: nhãn dài của nút quỹ đạo chạm mép, chỉ giữ biểu tượng (tên vẫn có trong aria-label). */
@media (max-width: 1240px) and (min-width: 861px) { .qd .orb-lbl { display: none; } .qd-n { padding: 8px; } }

/* ── Con đường ── */
.hanh-sang { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 75% 45%, rgba(255, 177, 98, .05), rgba(255, 177, 98, 0) 70%); pointer-events: none; }
.khoi-dau-tren { padding-top: 0; }
#hanh-trinh.khoi-tc { padding-bottom: 0; }
.road-sec { position: relative; height: 900px; max-width: 1440px; margin: 32px auto 0; z-index: 2; }
/* Con đường chìm vào nền (Quỳnh 18/10): lòng đường mờ mép, không dải đặc, hai đầu tan dần. */
.road-d { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 88%, rgba(0, 0, 0, .6) 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 88%, rgba(0, 0, 0, .6) 100%); }
.road-d path { fill: none; vector-effect: non-scaling-stroke; }
.duong-vien { stroke: rgba(238, 233, 223, .035); stroke-width: 1.2; }
.duong-le { stroke: rgba(238, 233, 223, .045); stroke-width: 120; stroke-linecap: round; }
.duong-mau { stroke: url(#dtvRoad); stroke-width: 84; stroke-linecap: round; }
.duong-sang { stroke: var(--cam); stroke-opacity: .85; stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(255, 177, 98, .5)); }
.duong-chay { stroke: rgba(238, 233, 223, .28); stroke-width: 1.5; }
.nhanh-nen { stroke: rgba(238, 233, 223, .07); stroke-width: 48; stroke-linecap: round; stroke-dasharray: 2 14; }
.nhanh-chay { stroke: var(--yen); stroke-width: 2; }
.moving { fill: var(--cam); filter: drop-shadow(0 0 10px var(--cam)); }
.road-m { display: none; position: absolute; left: 8px; top: 0; width: 60px; height: 100%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent); }
.road-m path { fill: none; vector-effect: non-scaling-stroke; }
.duong-m-nen { stroke: rgba(238, 233, 223, .05); stroke-width: 22; }
.duong-m-chay { stroke: rgba(238, 233, 223, .22); stroke-width: 1.5; }
/* Đường sáng chạy dần theo nhịp cuộn (khi trình duyệt hỗ trợ; không hỗ trợ thì hiện đủ). */
.duong-m-sang { stroke: var(--cam); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px rgba(255, 177, 98, .7)); }
.stc-so { display: none; }
.stp { position: absolute; transform: translate(-50%, -50%); z-index: 3; }
.node { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.node-on { background: var(--cam); color: var(--abyssal); animation: vang 2.4s ease-out infinite; }
.n0 { left: 10.4%; top: 92%; background: var(--abyssal); border: 2px solid var(--kem); }
.n1 { left: 29.2%; top: 71.1%; }
.n2 { left: 56.9%; top: 81.1%; }
.n3 { left: 75%; top: 46.7%; width: 58px; height: 58px; font-size: 18px; }
.n4 { left: 89.6%; top: 16.7%; background: var(--nen-sau); border: 2px dashed var(--yen); color: var(--yen); }
.road-list { position: relative; height: 100%; }
.stc { position: absolute; width: 262px; z-index: 3; padding: 18px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.s0 { left: 3%; top: 53%; }
.s1 { left: 20%; top: 21%; }
.s2 { left: 44%; top: 40%; }
.s3 { right: 1.5%; top: 52%; }
.s4 { left: 64%; top: 4%; width: 240px; }
.stc-nb { background: radial-gradient(ellipse 90% 80% at 0% 0%, rgba(238, 233, 223, .06), rgba(44, 59, 77, .4) 45%, rgba(44, 59, 77, 0) 100%); }
.stc-nb::before { width: 64px; opacity: 1; }
.stc-nb .stc-nhan { color: var(--kem); }
/* Tầng 4: nhánh có điều kiện, đánh dấu bằng nét đứt bên trái (cùng nét với nhánh trên con đường), không đóng hộp. */
.tram-dk { border-left: 1.5px dashed rgba(238, 233, 223, .4); background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(22, 33, 44, .7), rgba(22, 33, 44, 0) 100%); }
.stc-dau { display: flex; align-items: center; gap: 8px; }
.stc-dau .ico { width: 18px; height: 18px; }
.stc-nhan { font-size: 12px; color: var(--yen); }
.stc-ten { font-size: 20px; line-height: 1.25; }
.tram-dk .stc-ten { font-size: 19px; }
.stc-hoi { font-size: 14px; color: var(--yen); }
.stc-cu { font-size: 13px; color: var(--yen); }
.stc-lk { color: var(--kem); font-weight: 600; font-size: 15px; min-height: 40px; display: flex; align-items: center; gap: 6px; }
.tram-dk .stc-lk { color: var(--kem); font-weight: 400; }
.khoi-dau-duoi { padding-bottom: clamp(56px, 7vw, 96px); }
.luoi-duoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 12px; }
.the-duoi { padding: 18px 8px 14px 0; display: flex; gap: 14px; align-items: center; justify-content: space-between; font-size: 15px; }
.the-duoi-trai { display: flex; gap: 14px; align-items: center; }
/* Màn chưa đủ rộng cho con đường vẽ (thẻ trạm cố định 262px) thì chuyển sang danh sách dọc. */
@media (max-width: 1180px) {
  .road-d, .stp { display: none !important; }
  .road-sec { height: auto; max-width: 1240px; padding: 0 clamp(16px, 4vw, 40px); }
  .road-m { display: block; left: clamp(8px, 4vw - 8px, 32px); }
  .road-list { padding: 8px 0 8px 72px; max-width: 800px; }
  .stc { position: relative; left: auto; top: auto; right: auto; width: auto; margin-bottom: 18px; }
  /* Số trạm đặt ngay trên đường (tâm đường cách mép thẻ 50px), trạm đang mở nhịp sáng như bản máy tính. */
  .stc-so { display: flex; position: absolute; left: -65px; top: 14px; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 13px; background: var(--cam); color: var(--abyssal); box-shadow: 0 0 0 5px var(--nen-sau); animation: vang 2.4s ease-out infinite; }
  .s0 .stc-so { background: var(--abyssal); color: var(--kem); border: 1.5px solid var(--kem); animation: none; }
  .stc-so-dk { background: var(--nen-sau); color: var(--yen); border: 1.5px dashed var(--yen); animation: none; }
  .tram-dk { border-left: 0; }
  .tram-dk::before { width: 0; }
}
@supports (animation-timeline: view()) {
  @media (max-width: 1180px) {
    .duong-m-sang { animation: ve linear both; animation-timeline: view(); animation-range: cover 5% cover 70%; }
    .stc { animation: truot-vao linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
    .stc-so { animation: vang 2.4s ease-out infinite, hien-so linear both; animation-timeline: auto, view(); animation-range: normal, entry 10% cover 30%; }
    .s0 .stc-so, .stc-so-dk { animation: hien-so linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  }
}
@keyframes truot-vao { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes hien-so { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Bài test ── */
.bt-sang { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(255, 177, 98, .05), rgba(255, 177, 98, 0) 70%); pointer-events: none; }
.test-the { max-width: 980px; margin: 0 auto; padding: clamp(8px, 2vw, 20px) 0; background: radial-gradient(60% 70% at 50% 0%, rgba(44, 59, 77, .45), rgba(44, 59, 77, 0) 75%); }
.test-the::before { left: 50%; margin-left: -16px; }
.test-trong { position: relative; z-index: 1; }
#test-khung { display: flex; flex-direction: column; gap: 24px; }
.test-thanh { display: flex; align-items: center; gap: 10px; }
.test-thanh span { flex: 1; height: 5px; border-radius: 5px; background: rgba(238, 233, 223, .15); }
.test-thanh .dat { background: var(--kem); }
.test-cau { display: flex; flex-direction: column; gap: 16px; }
.test-so { margin: 0; font-size: 13px; color: var(--yen); }
.test-hoi { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.test-hoi:focus { outline: none; }
.test-phu { font-weight: 400; color: var(--yen); font-size: .7em; }
.test-luoi { display: grid; gap: 0 28px; }
.luoi-260 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.luoi-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
/* Lựa chọn là dòng mở, ngăn bằng đường tóc, không đóng ô; đang chọn thì chữ cam và quầng sáng. */
.qopt { text-align: left; background: transparent; color: var(--kem); border: 0; border-bottom: 1px solid rgba(238, 233, 223, .12); border-radius: 0; padding: 14px 6px; min-height: 56px;
  font: inherit; font-size: 16px; font-weight: 500; display: flex; gap: 14px; align-items: center; cursor: pointer; width: 100%; text-decoration: none; }
.qopt:hover { color: #fff; background: radial-gradient(80% 120% at 0% 50%, rgba(238, 233, 223, .07), rgba(255, 177, 98, 0) 70%); }
.qopt[aria-pressed="true"] { color: #fff; border-bottom-color: var(--kem); background: radial-gradient(80% 120% at 0% 50%, rgba(238, 233, 223, .10), rgba(238, 233, 223, 0) 70%); }
.qopt-so { width: 36px; height: 36px; border-radius: 50%; background: transparent; border: 1px solid rgba(238, 233, 223, .35); color: var(--kem); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.qopt-lon { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 120px; }
.qopt-nhan { color: var(--yen); font-size: 13px; }
.qopt-lon strong { font-size: 17px; }
.qopt-mo { font-size: 14px; color: var(--yen); font-weight: 400; }
.test-ghi { margin: 0; font-size: 14px; color: var(--yen); }
.test-lui { align-self: flex-start; background: none; border: 0; color: var(--yen); font: inherit; font-size: 15px; cursor: pointer; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.test-lui:hover { color: #fff; }
.test-kq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: start; }
.test-kq-chu, .test-kq-ben { display: flex; flex-direction: column; gap: 14px; }
.test-kq-ten { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.test-kq-ten:focus { outline: none; }
.test-kq-ly { margin: 0; color: rgba(238, 233, 223, .86); }
.test-kq-dong { border-top: 1px solid rgba(238, 233, 223, .14); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.test-kq-dong .mono { font-size: 12px; color: var(--yen); }
.test-kq-ghi { margin: 0; font-size: 14px; color: var(--yen); border-left: 2px solid var(--nau); padding-left: 12px; }
.test-kq-khac { margin: 0; font-size: 15px; }
.test-kq-loi { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.test-kq-loi .lnk { font-size: 15px; min-height: 44px; display: flex; align-items: center; }
.test-khong-js p { margin: 0 0 14px; color: var(--yen); }
.test-khong-js ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.test-khong-js .qopt { justify-content: space-between; }

/* ── Chương trình đang mở ── */
.luoi-ct { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 20px; align-items: stretch; }
.ct-the { display: flex; flex-direction: column; }
.ct-the .trinh { box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); }
.ct-the.gborder .trinh { border-color: rgba(238, 233, 223, .25); }
.ct-chip { position: absolute; left: 14px; bottom: 14px; }
.ct-than { padding: 22px 0 0; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ct-than h3 { margin: 0; font-size: 26px; line-height: 1.2; }
.ct-than .phu { margin: 0; }
.gian { flex: 1; }
.ct-lich { margin: 0; font-size: 13px; }
.ct-tat-ca { margin: 28px 0 0; font-size: 15px; }
.swipe-hint { display: none; margin: 14px 0 0; font-size: 12px; color: var(--yen); align-items: center; gap: 8px; }
.swipe-hint .ico { color: currentColor; }
.nudge { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }

/* ── Học viện ── */
.hv-sang { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 50% at 50% 70%, rgba(255, 177, 98, .05), rgba(255, 177, 98, 0) 70%); pointer-events: none; }
#hoc-vien { padding: clamp(64px, 8vw, 120px) 0; }
.luoi-hv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; align-items: start; }
.hv-man { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hv-lech { padding-top: clamp(0px, 4vw, 48px); }
.phone { border-radius: 30px; padding: 9px; background: #0f161e; border: 1px solid rgba(238, 233, 223, .18); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4) inset; animation: noi 6s ease-in-out infinite; }
.hv-man:nth-child(2) .phone { animation-delay: -1.5s; }
.hv-man:nth-child(3) .phone { animation-delay: -3s; }
.hv-man:nth-child(4) .phone { animation-delay: -4.5s; }
.phone img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 22px; display: block; }
.hv-man figcaption { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.hv-cuoi { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--vien); padding-top: 24px; }
.hv-cuoi p { margin: 0; max-width: 540px; }

/* ── Phương pháp ── */
.luoi-buoc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.buoc { padding: 26px 18px 18px 0; display: flex; flex-direction: column; gap: 14px; }
.buoc-dau { display: flex; justify-content: space-between; align-items: center; }
.buoc-ic { width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 233, 223, .10), rgba(238, 233, 223, 0) 70%); display: flex; align-items: center; justify-content: center; }
.buoc-so { font-size: 40px; color: rgba(238, 233, 223, .14); }
.buoc-ten { font-size: 24px; }
.buoc .phu { font-size: 15px; }
.buoc-vd { font-size: 15px; border-top: 1px solid rgba(238, 233, 223, .14); padding-top: 12px; }
.pp-cuoi { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.pp-cuoi p { margin: 0; }
.pp-cuoi .lnk { min-height: 44px; display: flex; align-items: center; }

/* ── Chuyên san (khi có bài) ── */
.luoi-bai { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.bai { padding: 22px 12px 18px 0; display: flex; flex-direction: column; gap: 8px; }
.bai strong { font-size: 20px; line-height: 1.3; }

/* ── Người dẫn dắt (nền sáng) ── */
.nen-sang { position: relative; z-index: 2; background: var(--kem); color: var(--abyssal); overflow: hidden; }
.nd-luoi { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: clamp(32px, 6vw, 80px); }
.nd-anh { margin: 0; position: relative; }
.nd-anh img { width: 100%; height: clamp(420px, 50vw, 680px); object-fit: cover; border-radius: 24px; display: block; }
.nd-vong { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 50%; border: 1px dashed rgba(27, 38, 50, .4); animation: quay 40s linear infinite; }
.nd-doan { margin: 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; text-wrap: pretty; }
.nd-muc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 15px; color: var(--xanh); }
.nd-muc li { padding: 10px 0; border-top: 1px solid rgba(27, 38, 50, .18); }
.nd-muc li:last-child { border-bottom: 1px solid rgba(27, 38, 50, .18); }
.nen-sang :focus-visible { outline-color: var(--abyssal); }

/* ── Đời sống ── */
.doi-song { padding-bottom: 0; }
.ds-dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.ds-lead { max-width: 420px; }
.gal-box { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
/* Khoảng cách bằng margin, không dùng gap: trượt -50% mới khớp đúng mép, không giật. */
.gal-row { display: flex; width: max-content; animation: truot 150s linear infinite; }
.gal-row.nguoc { animation-direction: reverse; animation-duration: 180s; }
.gal-row img { margin-right: 14px; height: clamp(170px, 18vw, 250px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 16px; display: block; filter: saturate(.9); transition: filter .3s, transform .3s; }
.gal-row img:hover { filter: saturate(1.08); transform: translateY(-4px); }
.ds-the { margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.the-to { padding: clamp(20px, 3vw, 30px) clamp(8px, 2vw, 24px) clamp(20px, 3vw, 30px) 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.the-to > * { position: relative; z-index: 1; margin: 0; }
.the-to h3 { font-size: 26px; }
.the-to > .o-ic { margin-left: -10px; }
.the-nhan { display: flex; align-items: center; gap: 8px; }


@supports (animation-timeline: view()) {
  .rv-road { animation: ve linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; stroke-dasharray: 1; }
}
@media (max-width: 860px) {
  .hv-lech { padding-top: 0; }
  .qd .orb-lbl { display: none; }
  .qd-n { padding: 8px; }
  .dem { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-trong { padding-top: 48px; padding-bottom: 104px; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: clamp(36px, 10.5vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .rv-road { stroke-dashoffset: 0 !important; }
  .moving { display: none; }
}

/* ── Form để lại liên hệ sau bài test (không bắt buộc; không hộp: ô gạch chân, quầng sáng mờ) ── */
.test-lh { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(238, 233, 223, .12); display: grid; gap: 14px; }
.test-lh-tieu { margin: 0; font-size: 18px; font-weight: 600; }
.test-lh-phu { margin: -8px 0 0; font-size: 14px; color: var(--yen); }
.test-lh-o { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.test-lh label > span { display: block; font-size: 13px; color: var(--yen); margin-bottom: 4px; }
.test-lh input:not([type="checkbox"]) { width: 100%; font: 400 17px/1.5 var(--chu); color: var(--kem); background: transparent; border: 0; border-bottom: 1.5px solid rgba(238, 233, 223, .3);
  border-radius: 0; padding: 10px 2px; min-height: 48px; }
.test-lh input:not([type="checkbox"]):focus-visible { outline: none; border-bottom-color: var(--cam); }
.test-lh.co-loi input:not([type="checkbox"]) { border-bottom-color: var(--nau); }
.test-lh-them { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--yen); cursor: pointer; }
.test-lh-them input { margin-top: 3px; accent-color: var(--kem); width: 18px; height: 18px; }
.test-lh-bao { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--yen); }
.test-lh.co-loi .test-lh-bao { color: var(--kem); border-left: 3px solid var(--nau); padding-left: 10px; }
.test-lh-cuoi { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.test-lh-cuoi .btn-o { cursor: pointer; font: inherit; font-weight: 600; }
.test-lh-cuoi .btn-o:disabled { opacity: .6; cursor: wait; }
.test-lh-rt { font-size: 12.5px; color: var(--yen); max-width: 46ch; }
.test-lh-xong { border-top: 1px solid rgba(238, 233, 223, .12); padding: 22px 0 0 14px; border-left: 2px solid var(--kem); }
.test-lh-xong p { margin: 0; }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .test-lh-o { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .nd-vong { right: 0; width: 96px; height: 96px; } }
