/* =========================================================
   TRUNGTAMMMO — Khóa học
   Đen trắng. Một màu nhấn duy nhất: trắng.
   ========================================================= */

:root {
  --bg: #000;
  --bg-2: #0b0b0b;
  --fg: #fff;
  --muted: #a6a6a6;
  --dim: #6e6e6e;
  --line: rgba(255, 255, 255, 0.13);
  --line-2: rgba(255, 255, 255, 0.28);

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --radius: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --fs-display: clamp(2.75rem, 7.2vw, 6.5rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 4rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 1.75rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --diacritic-room: 0.32em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

/* Icons ----------------------------------------------------- */
.ic-s, .ic-f { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle; }
.ic-s { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-f { fill: currentColor; }

/* Background layers ----------------------------------------- */
.shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: #030510;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, .footer { position: relative; z-index: 1; }

/* Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn .ic-s { transition: transform 0.4s var(--ease); }
.btn:hover .ic-s { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #d9d9d9; }
.btn-black { background: #000; color: #fff; }
.btn-black:hover { background: #262626; }
.btn-ghost { border: 1px solid var(--line-2); color: #fff; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: #fff; }
.btn-sm { min-height: 40px; padding: 0 1.05rem; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 0 1.75rem; font-size: 1rem; }

/* Labels ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.eyebrow .num { color: #fff; }
.eyebrow .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 0.75rem; vertical-align: middle; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } }

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.tag-solid { background: #fff; color: #000; border-color: #fff; }
.by { margin-left: 0.75rem; font-size: var(--fs-small); color: var(--muted); }

/* Navigation ------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.nav-links { display: flex; gap: 0.25rem; margin: 0 auto; }
.nav-links a { position: relative; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); border-radius: 8px; transition: color 0.25s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #000;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.3rem, 5.5vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; transform: translateY(16px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.mobile-menu nav a span { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; color: var(--dim); }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open nav a:nth-child(6) { transition-delay: 0.2s; }
.mobile-menu .btn { width: 100%; }

/* Hero: vừa đúng một màn hình ---------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 8px) var(--gutter) clamp(16px, 3vh, 32px);
  overflow: hidden;
}
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 52%, rgba(3, 5, 16, 0.62) 0%, rgba(3, 5, 16, 0.3) 55%, rgba(3, 5, 16, 0) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 78%, #000 100%);
}
.hero-inner { position: relative; width: 100%; max-width: 980px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2.2vh, 24px); will-change: transform, opacity; }
.hero-title { font-size: min(10.5vw, 15vh, 10rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.055em; }
.hero-title .line { display: block; overflow: hidden; padding: var(--diacritic-room) 0.04em 0.06em; margin-top: calc(-1 * var(--diacritic-room)); }
.hero-title .line:first-child { font-weight: 600; color: #e4e4e4; font-size: 0.42em; letter-spacing: -0.025em; line-height: 1.15; padding-bottom: 0.1em; }
.hero-title .line-logo { overflow: visible; padding: 0; margin-top: 0.02em; line-height: 0; }
.split { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; will-change: transform; }
.hero-sub { font-size: clamp(0.95rem, 1.9vh, 1.15rem); color: var(--muted); max-width: 52ch; }
.hero-by { color: #fff; }
.hero-contact { display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 1.6vh, 16px); width: 100%; margin-top: clamp(2px, 0.8vh, 8px); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.btn-zalo { background: #0068ff; color: #fff; padding: 0 0.45rem 0 0.45rem; gap: 0.75rem; box-shadow: 0 12px 40px -12px rgba(0, 104, 255, 0.8); }
.btn-zalo:hover { background: #1a78ff; }
.btn-arrow { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); }
.btn-zalo:hover .btn-arrow .ic-s { transform: translateX(2px); }
.hero-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.875rem; color: var(--muted); transition: color 0.3s; }
.hero-link:hover { color: #fff; }
.hero-link .ic-s { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* Routes (cuộn ngang) --------------------------------------- */
.routes { position: relative; background: var(--bg); border-top: 1px solid var(--line); }
.routes-pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; overflow: hidden; padding-top: var(--nav-h); }
.routes-head { display: flex; align-items: center; gap: 2rem; max-width: none; }
.routes-progress { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.routes-progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.routes-track { display: flex; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.route {
  position: relative;
  width: clamp(300px, 30vw, 420px);
  min-height: min(56vh, 500px);
  padding: 2rem 2rem 2rem 2rem;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.route-intro { width: clamp(320px, 34vw, 500px); border-left: 0; padding-left: 0; justify-content: flex-end; }
.display { font-family: var(--font); font-size: var(--fs-display); font-style: normal; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; padding: 0.12em 0.04em; text-wrap: balance; }
.route-no { font-size: clamp(4.5rem, 7.5vw, 7.5rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: -webkit-text-stroke-color 0.5s; }
.route-icons { display: flex; gap: 0.6rem; margin-top: auto; }
.route-icons .ic-f { width: 28px; height: 28px; }
.route h3 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.route p { color: var(--muted); font-size: 0.95rem; transition: color 0.5s; }
.route-price { font-family: var(--mono); font-size: 0.85rem; padding-top: 1rem; border-top: 1px solid var(--line); transition: border-color 0.5s; }
.route-go { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.route-go .ic-s { transition: transform 0.4s var(--ease); }
a.route:hover { background: #fff; color: #000; }
a.route:hover p { color: #3d3d3d; }
a.route:hover .route-no { -webkit-text-stroke-color: rgba(0, 0, 0, 0.35); }
a.route:hover .route-price { border-color: rgba(0, 0, 0, 0.15); }
a.route:hover .route-go .ic-s { transform: translateX(5px); }

/* Group sections -------------------------------------------- */
.group { position: relative; background: var(--bg); padding: clamp(96px, 14vw, 180px) 0 clamp(48px, 8vw, 96px); border-top: 1px solid var(--line); }
.group-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.group-side { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 1.25rem; }
.group-head { display: flex; flex-direction: column; gap: 1.25rem; max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.group-title { font-size: var(--fs-h2); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
/* Khung che chữ khi hiện từng chữ: chừa chỗ phía trên cho dấu hai tầng của tiếng Việt (ẵ, ẫ, ầ, ặ) */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding: var(--diacritic-room) 0 0.26em; margin: calc(-1 * var(--diacritic-room)) 0 -0.26em; }
.reveal-words .w > span { display: inline-block; will-change: transform; }
.group-side .muted, .group-head .muted { font-size: 1.05rem; max-width: 46ch; }
.brand-row { display: flex; gap: 1rem; color: #fff; }
.brand-row .ic-f { width: 28px; height: 28px; }

/* Plan ------------------------------------------------------ */
.plan { position: relative; padding: 2.5rem 0 3.5rem; }
.plan + .plan { margin-top: 1rem; }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.9rem; margin-bottom: 2rem; }
.plan-head h3, .course-head h3 { flex-basis: 100%; font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.plan-desc { flex-basis: 100%; color: var(--muted); font-size: 0.95rem; margin-top: -0.4rem; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; column-gap: 2.5rem; }
.feat li { display: flex; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.5; }
.feat .ic-s { margin-top: 0.2em; color: #fff; width: 1em; height: 1em; stroke-width: 2.5; }
.plan-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2.25rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.price strong { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 0.9rem; }

/* Ads ------------------------------------------------------- */
.ads-list { position: relative; }
.ads-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.6fr) 80px minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: color 0.45s var(--ease);
}
.ads-row::before { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); z-index: -1; }
.ads-row:hover { color: #000; }
.ads-row:hover::before { transform: scaleY(1); }
.ads-row:hover .tag { border-color: rgba(0, 0, 0, 0.25); }
.ads-row:hover .tag-solid { background: #000; color: #fff; border-color: #000; }
.ads-row:hover small { color: #555; }
.ads-row .tag { justify-self: start; }
.ads-ic .ic-f { width: 30px; height: 30px; }
.ads-name { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -0.03em; }
.ads-price { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.ads-price small { font-weight: 400; color: var(--muted); font-size: 0.85rem; transition: color 0.45s; }
.ads-cta { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9rem; }

/* Full (đảo màu) ------------------------------------------- */
.full { position: relative; background: #fff; color: #000; padding: clamp(96px, 13vw, 170px) 0; overflow: hidden; }
.full .eyebrow { color: #555; }
.full .eyebrow .num { color: #000; }
.full .eyebrow .num::after { background: rgba(0, 0, 0, 0.3); }
.full-marquee { position: absolute; top: clamp(24px, 4vw, 48px); left: 0; white-space: nowrap; font-size: clamp(5rem, 16vw, 15rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, 0.12); pointer-events: none; user-select: none; }
.full-marquee span { display: inline-block; will-change: transform; }
.full-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; padding-top: clamp(60px, 10vw, 140px); }
.full-title { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.full-icons { display: flex; gap: 1rem; }
.full-icons .ic-f { width: 30px; height: 30px; }
.full-price { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; margin: 1rem 0 1.25rem; }
.full-price strong { font-size: clamp(3.5rem, 13vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.full-price span { font-family: var(--mono); font-size: 0.9rem; letter-spacing: 0.08em; color: #555; }

/* Lập trình ------------------------------------------------- */
.course { position: relative; padding: 2.75rem 0 4rem; }
.course + .course { margin-top: 2rem; }
.course-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; }
.course-head > div:first-child { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0.9rem; max-width: 640px; }
.course-head h3 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.05; }
.course-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.course-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 2rem; padding: 2.25rem 0; border-top: 1px solid var(--line); }
.block-title { display: flex; align-items: center; gap: 0.6rem; font-size: 1rem; font-weight: 600; align-self: start; position: sticky; top: calc(var(--nav-h) + 24px); }
.block-title .ic-s { color: var(--muted); }

/* FAQ ------------------------------------------------------- */
.faq { position: relative; background: var(--bg); padding: clamp(96px, 13vw, 170px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 1.25rem; }
.faq-list { position: relative; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; text-align: left; padding: 1.5rem 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.015em; transition: color 0.3s; }
.faq-q:hover { color: #fff; }
.faq-q i { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.5s var(--ease), background-color 0.3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: background-color 0.3s; }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q i { transform: rotate(135deg); background: #fff; }
.faq-item.open .faq-q i::before, .faq-item.open .faq-q i::after { background: #000; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 3.5rem 1.75rem 0; color: var(--muted); }
.faq-a strong { color: #fff; font-weight: 600; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* CTA ------------------------------------------------------- */
.cta { position: relative; min-height: 92vh; display: flex; align-items: center; padding: clamp(120px, 14vw, 180px) 0; overflow: hidden; }
.cta .hero-shade { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, #000 100%); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.6rem; }
.cta-title { font-size: clamp(2rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.055em; line-height: 0.95; }

/* Footer ---------------------------------------------------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(64px, 9vw, 112px) 0; }
.thank-you-footer { text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer-brand { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; }
.footer-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; text-wrap: balance; }
.footer-message { max-width: 42ch; color: var(--muted); font-size: 0.95rem; }

/* Floating -------------------------------------------------- */
.zalo-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 52px;
  padding: 0 1.2rem 0 1rem;
  border-radius: var(--radius);
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease);
}
.zalo-float .ic-f { width: 32px; height: 32px; }
.zalo-float:hover { transform: translateY(-3px); }
.to-top {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease), border-color 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: #fff; }

/* Thành viên nòng cốt: chân dung và phần giới thiệu mở rộng --- */
.team { position: relative; padding: clamp(80px, 10vw, 144px) 0; border-top: 1px solid var(--line); background: var(--bg); }
.company-intro { display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 36px); margin-bottom: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); text-align: center; }
.company-title { max-width: 36ch; font-size: clamp(1.35rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; text-wrap: balance; }
.company-photo { display: block; width: min(100%, 440px); height: auto; border-radius: 8px; }
.company-intro .company-bio { width: 100%; max-width: 76ch; margin-top: 0; }
.company-intro .company-bio > summary { justify-content: center; gap: 0.75rem; }
.company-description { max-width: 76ch; padding: 0.5rem 0 0.25rem; font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.85; overflow-wrap: anywhere; }
.company-description p + p { margin-top: 1rem; }
.company-description strong { font-weight: 600; }
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(36px, 5vw, 64px); }
.team-head .group-title { max-width: 16ch; line-height: 1.12; }
.team-head > p { max-width: 27ch; padding-bottom: 0.25rem; font-size: 1.05rem; }
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.team-member { min-width: 0; }
.member-photo { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 8px; background: var(--bg-2); }
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.member-photo-tuan img { object-position: 50% 22%; }
/* Ảnh vuông, người đứng nhỏ giữa tường logo: phóng lên, giữ đáy ảnh để thấy từ đầu tới hông */
.member-photo-khang img { transform: scale(1.35); transform-origin: 50% 100%; }
.member-photo-office img { object-position: 50% 30%; }
.member-caption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.7rem; margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.85rem; }
.member-no { padding-top: 0.3em; font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }
.member-caption h3 { font-size: clamp(1.05rem, 1.45vw, 1.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; }
.member-role { margin-top: 0.4rem; font-size: 0.82rem; line-height: 1.55; }
.member-handle { min-width: 0; font-size: 0.78rem; overflow-wrap: anywhere; }
.member-tiktok { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.5rem; min-height: 32px; margin-top: 0.55rem; font-size: 0.8rem; font-weight: 600; }
.member-tiktok .ic-f { flex: none; width: 16px; height: 16px; }
.member-more { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font: inherit; font-size: 0.82rem; font-weight: 600; text-align: left; cursor: pointer; }
.member-more .ic-s { transition: transform 0.3s var(--ease); }
.member-more:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.member-dialog { width: min(92vw, 640px); max-height: min(86vh, 780px); margin: auto; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--fg); overflow: auto; overscroll-behavior: contain; }
.member-dialog::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.member-dialog h3 { padding-right: 2.5rem; font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.3; }
.member-dialog .member-role { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.member-dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; }
.member-dialog-x { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.member-dialog-x:hover { border-color: var(--fg); }
.member-tiktok:focus-visible, .member-bio > summary:focus-visible { outline-color: var(--fg); outline-offset: 6px; }
.member-bio { margin-top: 1rem; border-top: 1px solid var(--line); }
.member-bio > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: 0.75rem 0; font-weight: 600; font-size: 0.9rem; list-style: none; cursor: pointer; }
.member-bio > summary::-webkit-details-marker { display: none; }
.member-bio > summary .ic-s { transition: transform 0.3s var(--ease); }
.member-bio .bio-less, .member-bio[open] .bio-more { display: none; }
.member-bio[open] .bio-less { display: inline; }
.member-bio[open] > summary .ic-s { transform: rotate(180deg); }
.member-bio-text { padding: 0.5rem 0 0.25rem; font-size: 0.95rem; line-height: 1.85; overflow-wrap: anywhere; }
.member-bio-text p + p { margin-top: 1rem; }
.member-bio-text strong { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .member-more:hover .ic-s { transform: translate(2px, -2px); }
  .member-bio > summary:hover { text-decoration: underline; text-underline-offset: 0.3em; }
}
@media (max-width: 640px) {
  .team-head { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .team-head > p { max-width: 30ch; font-size: 0.95rem; }
}

@media (max-width: 1000px) {
  .team-grid { display: flex; gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-member { flex: 0 0 clamp(168px, 42vw, 240px); scroll-snap-align: start; }
}

/* Reveal fallback (chạy khi không có JS animation) ------------ */
.no-motion .rv { opacity: 1 !important; transform: none !important; }

/* Responsive ------------------------------------------------ */
@media (max-width: 1240px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
}

@media (max-width: 960px) {
  .group-grid, .faq-grid { grid-template-columns: 1fr; }
  .group-side, .faq-side { position: static; }
  .course-block { grid-template-columns: 1fr; gap: 1.25rem; }
  .course-block > .block-title { position: static; }
  .ads-row { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 0.75rem; padding: 1.5rem 0.75rem; }
  .ads-price { grid-column: 2; }
  .ads-cta { grid-column: 3; grid-row: 2; justify-self: end; }

  /* Lộ trình: xếp dọc trên màn nhỏ */
  .routes-pin { height: auto; padding: clamp(80px, 14vw, 120px) 0 clamp(48px, 8vw, 80px); gap: 2rem; }
  .routes-track { flex-direction: column; width: auto; }
  .route, .route-intro { width: auto; min-height: 0; border-left: 0; border-top: 1px solid var(--line); padding: 1.75rem 0; }
  .route-intro { border-top: 0; padding-top: 0; }
  a.route { padding-left: 0; padding-right: 0; transition: padding 0.4s var(--ease), background-color 0.5s, color 0.5s; }
  a.route:hover { padding-left: 1rem; padding-right: 1rem; }
  .route-icons { margin-top: 0; order: -1; }
  .route-no { position: absolute; right: 0; top: 1.5rem; font-size: 3.5rem; }
  a.route:hover .route-no { right: 1rem; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .hide-xs { display: none; }
  .feat { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; flex-direction: column; gap: 0.6rem; }
  .hero-cta .btn { width: 100%; }
  .btn-zalo { justify-content: space-between; }
  .hero-title { font-size: min(12.4vw, 13vh); }
  .hero-sub { font-size: 0.9rem; }
  .hero-by { display: block; }
  .plan-foot .btn, .course-buy .btn, .full .btn { width: 100%; white-space: normal; text-align: center; }
  .plan-foot, .course-buy { width: 100%; }
  .by { flex-basis: 100%; margin-left: 0; }
  .ads-row { grid-template-columns: 36px minmax(0, 1fr); gap: 0.4rem 0.9rem; }
  .ads-row .tag { grid-column: 2; grid-row: 2; justify-self: start; }
  .ads-price { grid-column: 2; grid-row: 3; }
  .ads-cta { grid-column: 2; grid-row: 4; justify-self: start; margin-top: 0.3rem; }
  .ads-ic { align-self: start; padding-top: 0.2rem; }
  .ads-ic .ic-f { width: 26px; height: 26px; }
  .faq-a p { padding-right: 0; }
  .zalo-float { right: 16px; bottom: 16px; height: 48px; padding: 0 1rem 0 0.85rem; }
  .zalo-float span { display: none; }
  .zalo-float { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .to-top { right: 16px; bottom: 80px; width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Đường kẻ đầu khối: chạy từ trái khi cuộn tới (GSAP đổi --line-scale) */
.plan::before, .course::before, .ads-list::before, .faq-list::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--line-2);
  transform-origin: left;
  transform: scaleX(var(--line-scale, 1));
}

/* Nav hiện dần lúc mở trang và luôn cố định khi cuộn */
.nav { animation: nav-in 1s var(--ease) 0.5s both; }
@keyframes nav-in { from { opacity: 0; } }

@media (max-width: 640px) {
  .nav-inner { gap: 0.75rem; }
  .brand { gap: 0.55rem; min-width: 0; }
  .nav-actions { gap: 0.4rem; }
}

/* =========================================================
   Màu: lấy từ logo TRUNGTAMMMO (cam → đỏ → xanh) và màu
   thương hiệu của từng nền tảng. Nền vẫn tối để màu nổi.
   ========================================================= */
:root {
  --brand-orange: #ffb545;
  --brand-red: #ff563f;
  --brand-blue: #2563eb;
  --brand-grad: linear-gradient(110deg, #ffb545 0%, #ff563f 45%, #2563eb 100%);
  --fb: #1877f2;
  --tt-pink: #fe2c55;
  --tt-cyan: #25f4ee;
  --ads: #ff8a3d;
  --dev: #10b981;
  --zalo: #0068ff;
  --accent: #fff;
  --accent-ink: #fff;
}
.acc-fb { --accent: var(--fb); --accent-soft: rgba(24, 119, 242, 0.14); --accent-ink: #fff; }
.acc-tt { --accent: var(--tt-pink); --accent-2: var(--tt-cyan); --accent-soft: rgba(254, 44, 85, 0.13); --accent-ink: #fff; }
.acc-ads { --accent: var(--ads); --accent-soft: rgba(255, 138, 61, 0.14); --accent-ink: #160800; }
.acc-dev { --accent: var(--dev); --accent-soft: rgba(16, 185, 129, 0.13); --accent-ink: #00150d; }
.acc-brand { --accent: var(--brand-red); --accent-soft: rgba(255, 86, 63, 0.13); --accent-ink: #fff; }

/* Logo thương hiệu đúng màu */
.bi-facebook { color: var(--fb); }
.bi-tiktok { color: #fff; filter: drop-shadow(-1.5px -1px 0 var(--tt-cyan)) drop-shadow(1.5px 1px 0 var(--tt-pink)); }
.bi-spring { color: #6db33f; }
.bi-postgresql { color: #4f8be8; }
.bi-ubuntu { color: #e95420; }
.bi-html5 { color: #e34f26; }
.bi-openjdk { color: #f89820; }

/* Chữ gradient và nút chính */
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text .ch { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-brand { background: var(--brand-grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(255, 86, 63, 0.7); }
.btn-brand:hover { filter: brightness(1.08); }
.btn-acc { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 34px -12px var(--accent); }
.btn-acc:hover { filter: brightness(1.1); }
.dot { background: var(--brand-orange); box-shadow: 0 0 0 4px rgba(255, 181, 69, 0.2); }
.pill { border-color: rgba(255, 181, 69, 0.35); }

/* Nhãn, số, dấu tích theo màu nhóm */
[class*="acc-"] .eyebrow .num { color: var(--accent); }
[class*="acc-"] .eyebrow .num::after { background: var(--accent); opacity: 0.6; }
[class*="acc-"] .feat .ic-s { color: var(--accent); }
[class*="acc-"] .tag-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[class*="acc-"] .tag { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
[class*="acc-"] .plan::before, [class*="acc-"] .course::before, [class*="acc-"] .faq-list::before { background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.12) 60%); }
[class*="acc-"] .price strong { color: #fff; }
.acc-tt .price strong { text-shadow: -2px -1px 0 rgba(37, 244, 238, 0.55), 2px 1px 0 rgba(254, 44, 85, 0.55); }
[class*="acc-"] .group-title .w:last-child > span { color: var(--accent); }
.acc-tt .group-title .w:last-child > span { color: #fff; text-shadow: -3px -2px 0 var(--tt-cyan), 3px 2px 0 var(--tt-pink); }

[class*="acc-"] .block-title .ic-s { color: var(--accent); }

.faq.acc-brand .faq-item.open .faq-q i { background: var(--brand-grad); border-color: transparent; }
.faq.acc-brand .faq-item.open .faq-q i::before, .faq.acc-brand .faq-item.open .faq-q i::after { background: #fff; }
.faq-a strong { color: var(--brand-orange); }

/* Quầng màu mờ phía sau mỗi nhóm */
.group[class*="acc-"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 60%;
  height: 520px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

/* Lộ trình: số viền màu, hover phủ màu nhóm */
.routes-progress i { background: var(--brand-grad); }
.route[class*="acc-"] .route-no { -webkit-text-stroke-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.route[class*="acc-"] .route-price { color: var(--accent); }
a.route[class*="acc-"]:hover { background: var(--accent); color: var(--accent-ink); }
a.route.acc-brand:hover { background: var(--brand-grad); }
a.route.acc-tt:hover { background: linear-gradient(135deg, var(--tt-pink), #b3123f); }
a.route[class*="acc-"]:hover p { color: inherit; opacity: 0.85; }
a.route[class*="acc-"]:hover .route-price { color: inherit; border-color: rgba(255, 255, 255, 0.3); }
a.route[class*="acc-"]:hover .route-no { -webkit-text-stroke-color: rgba(255, 255, 255, 0.55); }
a.route.acc-ads:hover .route-no, a.route.acc-dev:hover .route-no { -webkit-text-stroke-color: rgba(0, 0, 0, 0.35); }
a.route.acc-ads:hover .route-price, a.route.acc-dev:hover .route-price { border-color: rgba(0, 0, 0, 0.2); }
a.route:hover .bi { color: currentColor; filter: none; }
.route-intro .display { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ads: hover phủ màu nền tảng */
.ads-row.acc-fb::before { background: var(--fb); }
.ads-row.acc-tt::before { background: linear-gradient(90deg, var(--tt-pink), #c4134a 70%, var(--tt-cyan)); }
.ads-row:hover { color: #fff; }
.ads-row:hover .bi { color: #fff; filter: none; }
.ads-row:hover small { color: rgba(255, 255, 255, 0.8); }
.ads-row:hover .tag { border-color: rgba(255, 255, 255, 0.5); }
.ads-row:hover .tag-solid { background: #fff; color: #000; border-color: #fff; }
.ads-row .ads-price { color: var(--accent); }
.ads-row:hover .ads-price { color: #fff; }

/* Full Mạng Xã Hội: nền gradient của logo */
.full { background: var(--brand-grad); color: #fff; }
.full::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(0, 0, 0, 0.18), transparent 70%); pointer-events: none; }
.full .eyebrow, .full-price span { color: rgba(255, 255, 255, 0.85); }
.full .eyebrow .num { color: #fff; }
.full .eyebrow .num::after { background: rgba(255, 255, 255, 0.6); }
.full-marquee { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28); }
.full-inner { z-index: 1; }
.full-price strong { text-shadow: 0 8px 40px rgba(0, 0, 0, 0.18); }
.full .bi { color: #fff; filter: none; }
.full .btn-white { color: #d6331f; }

/* Liên hệ, chân trang, nút nổi */
.cta-title .w:last-child > span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
.zalo-float { background: var(--zalo); color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 104, 255, 0.7); }
.nav .btn-white { background: var(--zalo); color: #fff; }
.nav .btn-white:hover { background: #1a78ff; }
.to-top:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
::selection { background: var(--brand-red); color: #fff; }

/* Logo Zalo thật (assets/brands/zalo.svg, Wikimedia) */
.zalo-logo { width: 24px; height: 24px; flex: none; border-radius: 28%; }
.zalo-logo-lg { width: 42px; height: 42px; }
.btn-lg .zalo-logo:not(.zalo-logo-lg) { width: 28px; height: 28px; }
.zalo-float .zalo-logo { width: 34px; height: 34px; box-shadow: 0 0 0 2px #fff; }
.nav .btn-white { background: #fff; color: #000; }
.nav .btn-white:hover { background: #e6e6e6; }
.zalo-float { background: #fff; color: #0068ff; padding-left: 0.5rem; }

/* =========================================================
   Infographic
   ========================================================= */

/* Quỹ đạo các nền tảng quanh logo */
.route-intro { justify-content: space-between; gap: 1.5rem; }
.orbit { --size: clamp(200px, 20vw, 280px); --chip: 46px; position: relative; width: var(--size); height: var(--size); flex: none; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.18); }
.orbit-ring-2 { inset: 22%; border-style: solid; border-color: rgba(255, 255, 255, 0.09); }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 28%; filter: drop-shadow(0 12px 30px rgba(255, 86, 63, 0.5)); }
.orbit-spin { --off: calc(var(--size) / -2); position: absolute; inset: 0; animation: orbit 28s linear infinite; }
.orbit-spin-in { --off: calc(var(--size) * -0.28); animation-duration: 20s; animation-direction: reverse; }
.orbit-spin > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--chip);
  height: var(--chip);
  margin: calc(var(--chip) / -2) 0 0 calc(var(--chip) / -2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(var(--a)) translateY(var(--off)) rotate(calc(-1 * var(--a)));
}
.orbit-spin > span > * { animation: orbit 28s linear infinite reverse; }
.orbit-spin-in > span > * { animation-duration: 20s; animation-direction: normal; }
.orbit-spin .ic-f { width: 22px; height: 22px; }
.orbit-spin img { width: 26px; height: 26px; border-radius: 28%; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* Nút Zalo nổi chỉ hiện sau khi qua màn đầu (màn đầu đã có nút Zalo lớn) */
.zalo-float { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease); }
.zalo-float.show { opacity: 1; visibility: visible; transform: none; }
.zalo-float.show:hover { transform: translateY(-3px); }

@media (max-width: 960px) {
  .route-intro { flex-direction: row; align-items: center; }
  .orbit { --size: 150px; --chip: 34px; }
  .orbit-spin .ic-f { width: 17px; height: 17px; }
  .orbit-spin img { width: 20px; height: 20px; }

}
@media (max-width: 640px) {
  .hero-title { font-size: min(10.6vw, 12vh); }
  .route-intro { flex-direction: column; align-items: flex-start; }
  .orbit { margin: 0 auto 0.5rem; }

}

@media (max-width: 640px) { .to-top { display: none; } }


/* =========================================================
   Kể chuyện bằng hình (thay các khối ô + chữ)
   ========================================================= */

/* Chữ chỉ cho trình đọc màn hình */
.rot-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }

/* Đường lộ trình: thanh dọc sáng dần, mỗi nút bật lên khi thanh chạy tới */
.path { position: relative; }
.path-rail { position: absolute; left: 21px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.path-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); transform-origin: top; transform: scaleY(var(--fill, 1)); }
.acc-tt .path-rail i { background: linear-gradient(180deg, var(--tt-cyan), var(--tt-pink)); }
.path ol { display: flex; flex-direction: column; }
.path li { position: relative; display: grid; grid-template-columns: 44px 2rem minmax(0, 1fr); align-items: center; column-gap: 0.9rem; padding: 0.55rem 0; }
.path-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0b0b0b;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #8c8c8c;
  transition: background-color 0.5s var(--ease), border-color 0.5s, color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease);
}
.path-node .ic-s { width: 20px; height: 20px; stroke-width: 1.9; }
.path-step { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); transition: color 0.5s; }
.path-text { font-size: 1.02rem; line-height: 1.45; color: #8f8f8f; transition: color 0.5s; }
.path li.lit .path-node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 30px -8px var(--accent); transform: scale(1.04); }
.acc-tt .path li.lit .path-node { background: linear-gradient(135deg, var(--tt-cyan), var(--tt-pink)); border-color: transparent; color: #fff; }
.path li.lit .path-step { color: var(--accent); }
.path li.lit .path-text { color: #fff; }

/* Cột giá nằm ngang: gọn, không đẩy cột trái quá cao */
.ladder { display: flex; flex-direction: column; gap: 1rem; max-width: 420px; margin: 0.75rem 0 0; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab val" "track track"; align-items: end; gap: 0.45rem 0.75rem; }
.bar::before { content: ""; grid-area: track; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); }
.bar i {
  grid-area: track;
  position: relative;
  z-index: 1;
  display: block;
  height: 12px;
  width: calc(var(--h) * 100%);
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), var(--accent));
  transform-origin: left;
  transition: filter 0.3s;
}
.bar-pro i { box-shadow: 0 0 24px -4px var(--accent); }
.acc-tt .bar i { background: linear-gradient(90deg, var(--tt-cyan), var(--tt-pink)); }
.bar:hover i { filter: brightness(1.25); }
.bar-lab { grid-area: lab; display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.bar-lab b { font-family: var(--mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; color: #fff; }
.bar-val { grid-area: val; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

/* Đối tượng phù hợp: băng ngang, cuộn tới thì ghim lại và trượt qua từng ý.
   Không có JS hoặc tắt chuyển động: hiện thành danh sách dọc. */
.rotator { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.rot-view { overflow: hidden; }
.rot-track { display: flex; flex-direction: column; gap: 1rem; }
.rot-track li { display: flex; flex-direction: column; gap: 0.4rem; }
.rot-no { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent); }
.rot-text { font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; }
.rot-dots { display: none; gap: 0.4rem; }
.rot-dots i { position: relative; width: 34px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.rot-dots i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

.rotator.rot-h .rot-view { -webkit-mask-image: linear-gradient(90deg, #000 76%, transparent); mask-image: linear-gradient(90deg, #000 76%, transparent); }
.rotator.rot-h .rot-track { flex-direction: row; gap: clamp(24px, 4vw, 56px); width: max-content; will-change: transform; }
.rotator.rot-h .rot-track li { flex: none; width: var(--slide-w, 80%); opacity: 0.22; transition: opacity 0.45s var(--ease); }
.rotator.rot-h .rot-track li.on { opacity: 1; }
.rotator.rot-h .rot-text { font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.12; }
.rotator.rot-h li.on .rot-text { background: linear-gradient(transparent 66%, var(--accent-soft) 66%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.rotator.rot-h .rot-dots { display: flex; }
.course-block.is-pinned { background: var(--bg); }

/* Giáo trình: danh sách mục bên trái, nội dung một mục bên phải */
.curri { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.cur-tabs { display: flex; flex-direction: column; }
.cur-tab {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.25rem 0.8rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #8f8f8f;
  transition: color 0.3s, padding 0.45s var(--ease);
}
.cur-tab:hover { color: #fff; }
.cur-tab::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform 0.45s var(--ease); }
.cur-tab.on { color: #fff; padding-left: 0.9rem; }
.cur-tab.on::before { transform: scaleY(1); }
.cur-no { font-family: var(--mono); font-size: 0.74rem; font-weight: 400; color: var(--dim); }
.cur-tab.on .cur-no { color: var(--accent); }
.cur-ic { display: inline-grid; place-items: center; }
.cur-ic .ic-f { width: 18px; height: 18px; }
.cur-panels { position: sticky; top: calc(var(--nav-h) + 24px); }
.cur-panel {
  position: relative;
  min-height: 340px;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 62%), #090909;
  overflow: hidden;
}
.cur-big { position: absolute; right: -0.04em; bottom: -0.24em; font-size: clamp(7rem, 13vw, 12rem); font-weight: 800; letter-spacing: -0.07em; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--accent) 50%, transparent); pointer-events: none; user-select: none; }
.cur-panel h5 { position: relative; display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.cur-panel h5 .ic-f { width: 24px; height: 24px; }
.cur-panel ul { position: relative; display: flex; flex-direction: column; gap: 0.6rem; max-width: 34ch; }
.cur-panel li { display: flex; align-items: baseline; gap: 0.75rem; color: #dcdcdc; font-size: 0.98rem; }
.cur-panel li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateY(-2px) rotate(45deg); }
.cur-panel.on li { animation: cur-in 0.55s var(--ease) both; }
.cur-panel.on li:nth-child(2) { animation-delay: 0.04s; }
.cur-panel.on li:nth-child(3) { animation-delay: 0.08s; }
.cur-panel.on li:nth-child(4) { animation-delay: 0.12s; }
.cur-panel.on li:nth-child(5) { animation-delay: 0.16s; }
.cur-panel.on li:nth-child(6) { animation-delay: 0.2s; }
.cur-panel.on li:nth-child(7) { animation-delay: 0.24s; }
@keyframes cur-in { from { opacity: 0; transform: translateX(-10px); } }

/* Dự án cuối khóa: cửa sổ terminal */
.project { display: flex; flex-direction: column; gap: 1.25rem; }
.project-text { font-size: 1.05rem; max-width: 62ch; }
.term {
  max-width: 640px;
  border-radius: 16px;
  overflow: hidden;
  background: #06090b;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 30px 80px -40px rgba(16, 185, 129, 0.65);
  font-family: var(--mono);
}
.term-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.72rem; color: var(--dim); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 0.6rem; }
.term-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.25rem 1.25rem; font-size: 0.88rem; color: #d1fae5; }
.term-body li { display: flex; gap: 0.75rem; }
.term-ok, .term-ps { color: var(--dev); }
.term-cmd { color: #fff; }
.term-caret { display: inline-block; width: 0.6em; height: 1.1em; background: var(--dev); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Kết quả sau khóa học: hai băng chữ chạy ngược chiều, tràn hết chiều ngang */
.course-block:has(.outcomes) { grid-template-columns: 1fr; }
.outcomes { position: relative; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
.om { display: flex; flex-direction: column; gap: 0.6rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.om-row { display: flex; width: max-content; }
.om-track { display: flex; flex: none; animation: om-move 46s linear infinite; }
.om-rev .om-track { animation-direction: reverse; }
.om:hover .om-track { animation-play-state: paused; }
.om-track span { display: inline-flex; align-items: center; gap: 1.1rem; padding-right: 2.2rem; white-space: nowrap; font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.om-track span::before { content: ""; flex: none; width: 0.55em; height: 0.55em; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.om-rev .om-track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); }
@keyframes om-move { to { transform: translateX(-100%); } }

/* Panel lộ trình: logo lớn lấp khoảng trống */
.route-art { position: absolute; right: 1.5rem; top: 46%; transform: translateY(-50%); opacity: 0.14; pointer-events: none; transition: opacity 0.5s, transform 0.9s var(--ease); }
.route-art .ic-f { width: clamp(110px, 11vw, 170px); height: clamp(110px, 11vw, 170px); }
a.route:hover .route-art { opacity: 0.28; transform: translateY(-50%) rotate(-8deg) scale(1.06); }

/* Lộ trình vừa màn hình thấp (laptop có thanh bookmark) */
.orbit { --size: clamp(150px, min(20vw, 30vh), 280px); }
.route-intro .display { font-size: min(var(--fs-display), 9.5vh); }
.route { min-height: min(56vh, 500px); }

/* Cột trái luôn dính trên desktop; chữ và khoảng cách co theo chiều cao màn để thấy trọn */
@media (min-width: 961px) {
  .group-side, .faq-side { top: calc(var(--nav-h) + 16px); gap: clamp(0.6rem, 2vh, 1.25rem); }
  .group-side .group-title, .faq-side .group-title { font-size: min(var(--fs-h2), 8vh); }
  .group-side .muted { font-size: min(1.05rem, 2.2vh); }
  .group-side .ladder { gap: min(1rem, 1.6vh); }
}
/* Màn quá thấp mới thôi dính */
@media (max-height: 560px) {
  .group-side, .faq-side, .cur-panels { position: static; }
}

/* Thanh cuộn */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { border-radius: 10px; border: 3px solid #050505; background: linear-gradient(180deg, #ffb545, #ff563f 50%, #2563eb); }
::-webkit-scrollbar-thumb:hover { border-width: 2px; }
::-webkit-scrollbar-corner { background: #050505; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #ff563f #050505; }
}

@media (max-width: 960px) {
  .route-art { display: none; }
  .route, .route-intro { min-height: 0; }
  .orbit { --size: 150px; }
}
@media (max-width: 760px) {
  .curri { grid-template-columns: 1fr; }
  .cur-panels { position: static; }
  .cur-tabs { flex-direction: row; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.25rem; }
  .cur-tabs::-webkit-scrollbar { display: none; }
  .cur-tab { flex: none; width: 150px; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 14px; scroll-snap-align: start; }
  .cur-tab.on { padding-left: 0.8rem; border-color: var(--accent); background: var(--accent-soft); }
  .cur-tab::before, .cur-tab .cur-ic { display: none; }
  .cur-title { font-size: 0.85rem; line-height: 1.3; }
  .cur-panel { min-height: 0; }
  .path li { grid-template-columns: 40px minmax(0, 1fr); column-gap: 0.8rem; }
  .path-node { width: 40px; height: 40px; }
  .path-rail { left: 19px; }
  .path-step { display: none; }
  .path-text { font-size: 0.95rem; }
  .term-body { font-size: 0.8rem; padding: 0.9rem 1rem 1rem; }
  .om-track span { font-size: 1.5rem; }
}

/* Màn đầu: bong bóng chat hỗ trợ (đang gõ… rồi hiện câu) */

/* Tên gói + đường lộ trình ghim cùng nhau; hàng co theo chiều cao màn để gói 9 điểm vẫn vừa */
.plan-stage { --node: clamp(34px, 5.4vh, 44px); }
@media (min-width: 961px) {
  .plan-stage .plan-head { margin-bottom: clamp(0.9rem, 2.6vh, 2rem); }
  .plan-stage .path li { grid-template-columns: var(--node) 2rem minmax(0, 1fr); padding-block: clamp(0.2rem, 0.85vh, 0.55rem); }
  .plan-stage .path-node { width: var(--node); height: var(--node); }
  .plan-stage .path-node .ic-s { width: calc(var(--node) * 0.45); height: calc(var(--node) * 0.45); }
  .plan-stage .path-rail { left: calc(var(--node) / 2 - 1px); top: calc(var(--node) / 2 + 8px); bottom: calc(var(--node) / 2 + 8px); }
  .plan-stage .path-text { font-size: min(1.02rem, 2.3vh); }
}
.plan-stage.is-pinned { background: var(--bg); }

/* =========================================================
   Logo chữ TRUNGTAMMMO (lấy từ trungtammmo.vn, nền trong suốt nên dùng được ở cả hai theme)
   ========================================================= */
.brand-logo { display: block; height: 52px; width: auto; }
.hero-logo-img { display: block; height: min(26vh, 203px); width: auto; max-width: min(92vw, 700px); margin: 0 auto; filter: drop-shadow(0 16px 36px rgba(255, 86, 63, 0.35)); }
@media (max-width: 640px) {
  .brand-logo { height: 40px; }
  .hero-logo-img { height: auto; width: min(92vw, 360px); max-height: 24vh; object-fit: contain; }
}

/* Nút đổi theme */
.theme-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease); }
.theme-btn:hover { border-color: var(--fg); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn .ic-s { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform 0.55s var(--ease), opacity 0.3s; }
.theme-btn .ic-sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
:root[data-theme="light"] .theme-btn .ic-sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-btn .ic-moon { opacity: 0; transform: rotate(90deg) scale(0.4); }

/* =========================================================
   Theme sáng. Phần nền, chữ, đường kẻ đổi qua biến;
   chỗ nào code cứng trắng/đen thì ghi đè ở dưới.
   ========================================================= */
:root { color-scheme: dark; }
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf7;
  --bg-2: #f1efe9;
  --fg: #0c0c10;
  --muted: #55555f;
  --dim: #85858f;
  --line: rgba(12, 12, 16, 0.12);
  --line-2: rgba(12, 12, 16, 0.26);
  --accent-soft-boost: 1;
}
:root[data-theme="light"] ::selection { background: var(--brand-red); color: #fff; }
:root[data-theme="light"] :focus-visible { outline-color: #0c0c10; }

/* Nền */
:root[data-theme="light"] .shader { background: #fbfaf7; }
:root[data-theme="light"] .grain { opacity: 0.035; }
:root[data-theme="light"] .hero-shade { background:
  radial-gradient(ellipse 58% 52% at 50% 52%, rgba(251, 250, 247, 0.92) 0%, rgba(251, 250, 247, 0.7) 48%, rgba(251, 250, 247, 0.1) 100%),
  linear-gradient(to bottom, rgba(251, 250, 247, 0.5) 0%, rgba(251, 250, 247, 0) 20%, rgba(251, 250, 247, 0) 78%, var(--bg) 100%); }
:root[data-theme="light"] .cta .hero-shade { background:
  radial-gradient(ellipse 60% 50% at 50% 50%, rgba(251, 250, 247, 0.9) 0%, rgba(251, 250, 247, 0.55) 55%, rgba(251, 250, 247, 0) 100%),
  linear-gradient(to bottom, var(--bg) 0%, rgba(251, 250, 247, 0) 22%, rgba(251, 250, 247, 0) 78%, var(--bg) 100%); }

/* Điều hướng */
:root[data-theme="light"] .nav.scrolled { background: rgba(251, 250, 247, 0.8); }
:root[data-theme="light"] .nav-links a:hover, :root[data-theme="light"] .nav-links a.active { color: var(--fg); }
:root[data-theme="light"] .nav-links a::after { background: var(--fg); }
:root[data-theme="light"] .menu-btn span { background: var(--fg); }
:root[data-theme="light"] .mobile-menu { background: var(--bg); }
:root[data-theme="light"] .nav .btn-white { background: #0c0c10; color: #fff; }
:root[data-theme="light"] .nav .btn-white:hover { background: #2a2a33; }

/* Nút và nhãn */
:root[data-theme="light"] .btn-white { background: #0c0c10; color: #fff; }
:root[data-theme="light"] .btn-white:hover { background: #2a2a33; }
:root[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.7); color: var(--fg); }
:root[data-theme="light"] .btn-ghost:hover { border-color: var(--fg); }
:root[data-theme="light"] .tag-solid { background: #0c0c10; color: #fff; border-color: #0c0c10; }
:root[data-theme="light"] .pill { background: rgba(255, 255, 255, 0.75); }
:root[data-theme="light"] .eyebrow .num { color: var(--fg); }

/* Màn đầu */
:root[data-theme="light"] .hero-title .line:first-child { color: #3a3a44; }
:root[data-theme="light"] .hero-by { color: var(--fg); }
:root[data-theme="light"] .hero-link:hover { color: var(--fg); }
:root[data-theme="light"] .hero-logo-img, :root[data-theme="light"] .brand-logo { filter: drop-shadow(0 0 1px rgba(90, 25, 0, 0.7)) drop-shadow(0 12px 22px rgba(255, 86, 63, 0.25)); }

/* Lộ trình */
:root[data-theme="light"] .route-no { -webkit-text-stroke-color: var(--line-2); }
:root[data-theme="light"] .route-art { opacity: 0.12; }
:root[data-theme="light"] a.route:hover { background: #0c0c10; color: #fff; }
:root[data-theme="light"] a.route:hover p { color: #cfcfd6; }
:root[data-theme="light"] .orbit-ring { border-color: rgba(12, 12, 16, 0.2); }
:root[data-theme="light"] .orbit-ring-2 { border-color: rgba(12, 12, 16, 0.1); }
:root[data-theme="light"] .orbit-spin > span { background: #fff; border-color: rgba(12, 12, 16, 0.14); box-shadow: 0 6px 16px -8px rgba(12, 12, 16, 0.4); }

/* Nhóm khóa */
:root[data-theme="light"] .brand-row { color: var(--fg); }
:root[data-theme="light"] .feat .ic-s { color: var(--fg); }
:root[data-theme="light"] [class*="acc-"] .price strong { color: var(--fg); }
:root[data-theme="light"] .acc-tt .price strong { text-shadow: -2px -1px 0 rgba(37, 244, 238, 0.7), 2px 1px 0 rgba(254, 44, 85, 0.45); }
:root[data-theme="light"] .acc-tt .group-title .w:last-child > span { color: #0c0c10; text-shadow: -3px -2px 0 var(--tt-cyan), 3px 2px 0 var(--tt-pink); }
:root[data-theme="light"] .bi-tiktok { color: #0c0c10; }
:root[data-theme="light"] .acc-ads { --accent: #e8590c; }
:root[data-theme="light"] .acc-dev { --accent: #059669; }
:root[data-theme="light"] .acc-brand { --accent: #e0402a; }

/* Đường lộ trình, thanh giá, giáo trình */
:root[data-theme="light"] .path-rail { background: rgba(12, 12, 16, 0.1); }
:root[data-theme="light"] .path-node { background: #fff; border-color: rgba(12, 12, 16, 0.18); color: #6e6e78; }
:root[data-theme="light"] .path-text { color: #70707a; }
:root[data-theme="light"] .path li.lit .path-text { color: var(--fg); }
:root[data-theme="light"] .bar::before { background: rgba(12, 12, 16, 0.08); }
:root[data-theme="light"] .bar-lab b { color: var(--fg); }
:root[data-theme="light"] .rot-dots i { background: rgba(12, 12, 16, 0.14); }
:root[data-theme="light"] .cur-tab { color: #70707a; }
:root[data-theme="light"] .cur-tab:hover, :root[data-theme="light"] .cur-tab.on { color: var(--fg); }
:root[data-theme="light"] .cur-panel { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 62%), #fff; box-shadow: 0 24px 60px -36px rgba(12, 12, 16, 0.35); }
:root[data-theme="light"] .cur-panel li { color: #2a2a32; }
:root[data-theme="light"] .om-rev .om-track span { -webkit-text-stroke-color: rgba(12, 12, 16, 0.45); }

/* Ads */
:root[data-theme="light"] .ads-row:hover .ads-price { color: #fff; }

/* FAQ */
:root[data-theme="light"] .faq-q:hover { color: var(--fg); }
:root[data-theme="light"] .faq-a strong { color: #c2410c; }
:root[data-theme="light"] .faq-item.open .faq-q i { background: #0c0c10; }
:root[data-theme="light"] .faq-item.open .faq-q i::before, :root[data-theme="light"] .faq-item.open .faq-q i::after { background: #fff; }

/* Chân trang, nút nổi, thanh cuộn */
:root[data-theme="light"] .zalo-float { box-shadow: 0 12px 30px -8px rgba(0, 104, 255, 0.55), 0 0 0 1px rgba(12, 12, 16, 0.08); }
:root[data-theme="light"] .to-top { background: rgba(255, 255, 255, 0.85); color: var(--fg); }
:root[data-theme="light"] .to-top:hover { border-color: var(--brand-red); color: var(--brand-red); }
:root[data-theme="light"] ::-webkit-scrollbar-track { background: #efede7; }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { border-color: #efede7; }
:root[data-theme="light"] ::-webkit-scrollbar-corner { background: #efede7; }
@supports not selector(::-webkit-scrollbar) {
  :root[data-theme="light"] { scrollbar-color: #ff563f #efede7; }
}

/* Đổi theme êm, nhưng không làm chậm các hiệu ứng khác */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after { transition: background-color 0.45s, color 0.45s, border-color 0.45s, fill 0.45s, stroke 0.45s !important; }

/* =========================================================
   Màn đầu kiểu huy hiệu: logo chữ T lớn ở giữa, tên giãn chữ, slogan gradient
   ========================================================= */
.hero-crest { position: relative; display: grid; place-items: center; }
.hero-halo {
  position: absolute;
  width: 210%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 140, 70, 0.35), rgba(37, 99, 235, 0.16) 55%, transparent 72%);
  filter: blur(6px);
  animation: halo-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes halo-breathe { 50% { transform: scale(1.08); opacity: 0.8; } }
.hero-mark {
  position: relative;
  display: block;
  width: min(20vh, 168px);
  height: min(20vh, 168px);
  border-radius: 28%;
  filter: drop-shadow(0 22px 48px rgba(255, 86, 63, 0.45));
}
.hero-name {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  font-family: var(--font);
  font-size: clamp(0.8rem, min(1.6vw, 2.2vh), 1.15rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1.6;
  color: #f1f1f1;
}
.hero-name-text { padding-left: 0.34em; }
.hero-rule { display: block; width: clamp(28px, 6vw, 72px); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 181, 69, 0.8)); }
.hero-rule:last-child { background: linear-gradient(90deg, rgba(255, 181, 69, 0.8), transparent); }
.hero-slogan {
  font-family: var(--font);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.1rem, min(6.6vw, 9vh), 5.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  padding: 0.12em 0.08em 0.1em;
  background: linear-gradient(100deg, #ffd27a 0%, #ff9a3c 22%, #ff563f 48%, #c84bd6 72%, #4f7bff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slogan-flow 9s ease-in-out infinite alternate;
  text-wrap: balance;
}
@keyframes slogan-flow { to { background-position: 100% 0; } }
:root[data-theme="light"] .hero-name { color: #1a1a20; }
:root[data-theme="light"] .hero-halo { background: radial-gradient(closest-side, rgba(255, 140, 70, 0.3), rgba(37, 99, 235, 0.12) 55%, transparent 72%); }
:root[data-theme="light"] .hero-slogan { background-image: linear-gradient(100deg, #f59e0b 0%, #f97316 22%, #e0402a 48%, #a21caf 72%, #2563eb 100%); }
@media (max-width: 640px) {
  .hero-mark { width: min(14vh, 120px); height: min(14vh, 120px); }
  .hero-name { letter-spacing: 0.22em; font-size: 0.78rem; }
  .hero-name-text { padding-left: 0.22em; }
  .hero-rule { width: 22px; }
  .hero-slogan { font-size: min(10vw, 6.4vh); }
}

/* Nội dung màn đầu cao hơn khung thì dồn xuống, không tràn lên dưới thanh điều hướng */
.hero { align-items: safe center; }

/* Cuộn ngang: khối "5 nhóm khóa học" chiếm trọn màn và nằm giữa lúc bắt đầu,
   cuộn thì các thẻ khóa học kéo qua từ bên phải (chỉ màn rộng; màn nhỏ xếp dọc) */
@media (min-width: 961px) {
  .route-intro {
    width: 100vw;
    margin-left: calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    min-height: min(56vh, 500px);
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2.4vh, 1.6rem);
    text-align: center;
    border-left: 0;
  }
  .route-intro .orbit { --size: clamp(190px, min(22vw, 32vh), 320px); --chip: clamp(40px, calc(var(--size) * 0.17), 56px); }
  .route-intro .orbit-spin .ic-f { width: calc(var(--chip) * 0.48); height: calc(var(--chip) * 0.48); }
  .route-intro .orbit-spin img { width: calc(var(--chip) * 0.56); height: calc(var(--chip) * 0.56); }
  .route-intro .display { font-size: min(7.4vw, 12vh); }
  .route-intro .display br { display: none; }
  .route-intro .muted { max-width: 48ch; font-size: clamp(0.95rem, 2.2vh, 1.15rem); }
  .route-hint { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; color: var(--muted); }
  .route-hint i { display: block; width: 48px; height: 1px; background: currentColor; transform-origin: left; animation: hint-line 2.2s var(--ease) infinite; }
  .route-hint .ic-s { animation: hint-nudge 2.2s var(--ease) infinite; }
}
@keyframes hint-line { 0%, 100% { transform: scaleX(0.3); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }
@keyframes hint-nudge { 50% { transform: translateX(6px); } }
@media (max-width: 960px) { .route-hint { display: none; } }
