/* ============================================================
   HƯỚNG NGHIỆP THCS — Stylesheet
   ============================================================ */

:root {
  --indigo: #4f46e5;
  --indigo-dark: #3730a3;
  --violet: #7c3aed;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --pink: #ec4899;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-soft-2: #f1f5f9;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .1), 0 32px 64px rgba(15, 23, 42, .08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--ink); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--ink-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--indigo);
  background: #eef2ff; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.section--ink .eyebrow { background: rgba(255,255,255,.1); color: #c7d2fe; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.04rem; }
.lead { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; box-shadow: 0 8px 22px rgba(79, 70, 229, .32);
}
.btn--primary:hover { box-shadow: 0 12px 30px rgba(79, 70, 229, .42); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: #cbd5e1; }
.btn--light { background: #fff; color: var(--indigo-dark); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .86rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 1.06rem; letter-spacing: -.02em; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--indigo), var(--violet) 55%, var(--pink));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(124, 58, 237, .35);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 9px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.nav__links a:hover { background: var(--bg-soft-2); color: var(--indigo); }
.nav__cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; padding: 8px; border-radius: 10px; }
.burger svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 96px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 82% -8%, #e0e7ff 0%, transparent 62%),
    radial-gradient(700px 420px at 8% 8%, #ccfbf1 0%, transparent 60%),
    radial-gradient(600px 400px at 55% 105%, #fce7f3 0%, transparent 60%),
    linear-gradient(180deg, #ffffff, #f8fafc);
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
}
.hero h1 span {
  background: linear-gradient(115deg, var(--indigo), var(--violet) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { margin: 20px 0 32px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust div strong { display: block; font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; color: var(--indigo-dark); }
.hero__trust div span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card {
  background: #fff; border-radius: 26px; padding: 26px;
  box-shadow: var(--shadow-lg); border: 1px solid #f1f5f9;
  position: relative; z-index: 2;
}
.hero__card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.riasec-mini { display: grid; gap: 13px; }
.riasec-mini__row { display: grid; grid-template-columns: 30px 1fr 42px; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.riasec-mini__bar { height: 9px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.riasec-mini__fill { height: 100%; border-radius: 99px; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes grow { from { width: 0 !important; } }
.hero__float {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  font-size: .84rem; font-weight: 700; border: 1px solid #f1f5f9;
}
.hero__float--1 { top: -22px; right: -6px; animation: floaty 5s ease-in-out infinite; }
.hero__float--2 { bottom: -26px; left: -14px; animation: floaty 5s ease-in-out infinite .9s; }
.hero__float .dot { width: 9px; height: 9px; border-radius: 99px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Stats strip ---------- */
.strip { background: var(--ink); color: #fff; padding: 34px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip__grid strong { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(120deg,#a5b4fc,#67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip__grid span { font-size: .84rem; color: #94a3b8; font-weight: 600; }

/* ---------- Cards / grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--fc, var(--indigo)); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.feature:hover::after { transform: scaleX(1); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px; background: var(--fb, #eef2ff);
}
.feature h3 { margin-bottom: 9px; }
.feature p { font-size: .93rem; }

/* ---------- Quiz ---------- */
.quiz-shell {
  background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg);
  border: 1px solid #eef2f7; overflow: hidden;
}
.quiz-top {
  padding: 24px 30px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #f8fafc, #eef2ff);
}
.quiz-top__label { font-weight: 800; font-size: .95rem; }
.quiz-progress { flex: 1; min-width: 160px; height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.quiz-progress__bar { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--indigo), var(--violet), var(--pink)); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.quiz-counter { font-weight: 800; font-size: .9rem; color: var(--indigo-dark); font-variant-numeric: tabular-nums; }

.quiz-body { padding: 40px 30px; min-height: 300px; }
.quiz-q { font-size: clamp(1.24rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.quiz-num { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--violet); margin-bottom: 14px; display: block; }
.quiz-options { display: grid; gap: 12px; margin-top: 26px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 16px 20px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; font-size: .97rem; font-weight: 600; color: var(--ink-2);
  transition: all .16s ease;
}
.opt:hover { border-color: var(--indigo); background: #f5f3ff; transform: translateX(3px); }
.opt__key {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--bg-soft-2); font-size: .8rem; font-weight: 900; color: var(--muted);
}
.opt:hover .opt__key { background: var(--indigo); color: #fff; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.quiz-hint { font-size: .82rem; color: var(--muted); font-weight: 600; }

.quiz-result { padding: 40px 30px; }
.result-head { text-align: center; margin-bottom: 30px; }
.result-badge {
  width: 92px; height: 92px; border-radius: 26px; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 2.6rem;
  box-shadow: 0 14px 32px rgba(79,70,229,.22);
}
.result-title { font-size: clamp(1.5rem,3vw,2rem); margin-bottom: 10px; }
.bars { display: grid; gap: 14px; margin: 30px 0; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 14px; font-size: .88rem; font-weight: 700; }
.bar-row .bar { height: 12px; border-radius: 99px; background: var(--bg-soft-2); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 560px) { .bar-row { grid-template-columns: 96px 1fr 36px; font-size: .78rem; } }

/* ---------- Career explorer ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; align-items: center; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-size: .86rem; font-weight: 700; color: var(--ink-2);
  transition: all .16s; display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: #c7d2fe; background: #f8faff; }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  min-width: 240px;
}
.search svg { width: 18px; height: 18px; stroke: var(--muted); flex: none; }
.search input { border: none; outline: none; font-family: inherit; font-size: .9rem; width: 100%; color: var(--ink); background: transparent; }

.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.career {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; text-align: left;
  position: relative;
}
.career:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }
.career__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.career__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.35rem; flex: none; }
.career__tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 99px; white-space: nowrap;
}
.career h3 { font-size: 1.03rem; }
.career p.desc { font-size: .86rem; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.career__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.career__foot svg { width: 16px; height: 16px; stroke: var(--indigo); transition: transform .2s; }
.career:hover .career__foot svg { transform: translateX(4px); }
.hot-inline {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 99px;
  background: linear-gradient(135deg,#fff7ed,#ffedd5); color: #c2410c;
  border: 1px solid #fed7aa;
}
.hot-badge {
  position: absolute; top: 14px; right: 14px;
  background: linear-gradient(135deg,#f97316,#ef4444); color: #fff;
  font-size: .66rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 99px; box-shadow: 0 4px 10px rgba(239,68,68,.3);
}
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15,23,42,.55); backdrop-filter: blur(6px);
}
.modal.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__box {
  background: #fff; border-radius: 24px; width: min(720px, 100%);
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: pop .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.modal__head { padding: 28px 30px 20px; border-bottom: 1px solid var(--line); position: relative; }
.modal__close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; background: var(--bg-soft-2); color: var(--ink-2); font-size: 1.2rem;
  transition: background .16s;
}
.modal__close:hover { background: #e2e8f0; }
.modal__body { padding: 26px 30px 32px; }
.detail-block { margin-bottom: 22px; }
.detail-block h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; font-weight: 800; }
.detail-block p { font-size: .94rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: .8rem; font-weight: 700; padding: 6px 13px; border-radius: 99px;
  background: var(--bg-soft-2); color: var(--ink-2);
}
.tag--skill { background: #eef2ff; color: #4338ca; }
.tag--subject { background: #ecfdf5; color: #047857; }
.riasec-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px;
  font-size: .8rem; font-weight: 800; color: #fff;
}
.income-box {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(120deg, #fffbeb, #fef3c7); border: 1px solid #fde68a;
}
.income-box strong { display: block; font-size: 1rem; color: #92400e; }
.income-box span { font-size: .78rem; color: #a16207; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.income-box .ico { font-size: 1.6rem; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.road {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; position: relative; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.road:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.road__num {
  position: absolute; top: -14px; left: 22px; width: 34px; height: 34px; border-radius: 11px;
  background: var(--rc); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .92rem;
  box-shadow: 0 8px 18px rgba(15,23,42,.16);
}
.road__icon { font-size: 2rem; margin: 18px 0 12px; }
.road h3 { font-size: 1.05rem; margin-bottom: 10px; }
.road__sub { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--rc); margin: 16px 0 7px; }
.road p, .road li { font-size: .87rem; color: var(--ink-2); }
.road ul { display: grid; gap: 7px; }
.road ul li { padding-left: 20px; position: relative; }
.road ul li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 900; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 22px; right: 24px;
  font-size: 3.4rem; font-weight: 900; color: #eef2ff; line-height: 1; letter-spacing: -.05em;
}
.step h3 { margin-bottom: 8px; position: relative; }
.step p { font-size: .92rem; position: relative; }
.step__ico { font-size: 1.7rem; margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: var(--shadow); border-color: #c7d2fe; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left; font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-q .plus { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--bg-soft-2); display: grid; place-items: center; font-weight: 900; color: var(--indigo); transition: transform .25s, background .2s; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--indigo); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a p { padding: 0 24px 22px; font-size: .94rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px;
}
.quote p { color: #e2e8f0; font-size: .96rem; font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar {
  width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center;
  font-weight: 900; font-size: .86rem; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--indigo), var(--pink));
}
.quote__who strong { color: #fff; font-size: .9rem; display: block; }
.quote__who span { color: #94a3b8; font-size: .78rem; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 28px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-dark), var(--indigo) 45%, var(--violet));
  color: #fff; box-shadow: 0 24px 60px rgba(79,70,229,.35);
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 999px; background: rgba(255,255,255,.09);
}
.cta::before { width: 340px; height: 340px; top: -140px; right: -90px; }
.cta::after { width: 260px; height: 260px; bottom: -150px; left: -70px; }
.cta h2 { position: relative; color: #fff; }
.cta p { position: relative; color: #e0e7ff; margin: 16px auto 30px; max-width: 560px; }
.cta__actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #94a3b8; padding: 60px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer p { color: #94a3b8; font-size: .88rem; max-width: 300px; }
.footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { font-size: .88rem; transition: color .16s; }
.footer ul a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__visual { max-width: 460px; }
  .grid-3, .career-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav__links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; padding: 14px 4vw 20px; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .grid-3, .grid-2, .career-grid, .roadmap, .steps { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .cta { padding: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .filters { gap: 8px; }
  .search { margin-left: 0; width: 100%; }
  .quiz-body, .quiz-result { padding: 28px 20px; }
  .modal__head, .modal__body { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 44px 0 72px; }
  .hero__float--1 { top: -16px; right: 0; }
}


/* ============================================================
   VIDEO YOUTUBE
   ============================================================ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.vcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cbd5e1; }

/* facade (ảnh bìa + nút play) */
.vcard__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #831843);
  display: block; width: 100%; border: none; padding: 0;
}
.vcard__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease, opacity .3s ease;
}
.vcard__thumb:hover img { transform: scale(1.045); opacity: .92; }
.vcard__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.55) 100%);
  pointer-events: none;
}
.vcard__play {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  width: 62px; height: 62px; border-radius: 99px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.94); color: #dc2626;
  box-shadow: 0 10px 26px rgba(15,23,42,.35);
  transition: transform .2s ease, background .2s ease;
  pointer-events: none;
}
.vcard__play svg { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.vcard__thumb:hover .vcard__play { transform: scale(1.1); background: #fff; }
.vcard__dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(15,23,42,.82); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  letter-spacing: .02em;
}
.vcard__fallback {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-items: center; text-align: center;
  padding: 18px; color: #e0e7ff; font-size: .84rem; font-weight: 700; line-height: 1.45;
}

/* iframe khi đã bấm play */
.vcard__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vcard__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.vcard__meta .kênh, .vcard__meta .kenh { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 700; }
.vcard__badge {
  padding: 4px 9px; border-radius: 99px; background: #eef2ff; color: #4338ca;
}
.vcard__badge--tinh-cach { background: #fdf2f8; color: #be185d; }
.vcard__badge--nghe-cu-the { background: #ecfdf5; color: #047857; }
.vcard h3 { font-size: .98rem; line-height: 1.35; }
.vcard p { font-size: .85rem; color: var(--muted); line-height: 1.55; }
.vcard__link {
  margin-top: auto; padding-top: 10px; font-size: .8rem; font-weight: 800;
  color: var(--indigo); display: inline-flex; align-items: center; gap: 6px;
}
.vcard__link:hover { text-decoration: underline; }

/* video trong modal nghề */
.video-inline { display: grid; gap: 12px; }
.video-inline__item {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f8fafc;
}
.video-inline__head { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.video-inline__thumb {
  position: relative; flex: none; width: 110px; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden;
  background: #1e1b4b; border: none; padding: 0; cursor: pointer;
}
.video-inline__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-inline__thumb .mini-play {
  position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 99px;
  background: rgba(255,255,255,.92); color: #dc2626; display: grid; place-items: center;
}
.video-inline__thumb .mini-play svg { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; }
.video-inline__t { font-size: .84rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.video-inline__c { font-size: .74rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.video-inline iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }

.video-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 22px; padding: 14px 18px; border-radius: 12px;
  background: #fffbeb; border: 1px solid #fde68a; font-size: .84rem; color: #92400e;
}
.video-note strong { font-weight: 800; }

@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .vcard__play { width: 54px; height: 54px; }
  .video-inline__thumb { width: 88px; }
}
/* ---------- Print ---------- */
@media print {
  .header, .burger, .hero__float, #quiz, #printBtn, .footer, .cta__actions .btn { display: none !important; }
  body { color: #000; }
  .section { padding: 24px 0; page-break-inside: avoid; }
  .section--ink { background: #fff !important; color: #000 !important; }
  .section--ink h2, .quote p, .footer p { color: #000 !important; }
  .quote { border: 1px solid #ddd; background: #fff; }
  .quote__who strong { color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .faq-a { max-height: none !important; overflow: visible !important; }
  a { text-decoration: underline; }
  .career, .road, .step, .feature { box-shadow: none !important; border-color: #ddd !important; break-inside: avoid; }
}

/* số video trên thẻ nghề */
.career__vids {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .74rem; font-weight: 800; color: #dc2626;
  background: #fef2f2; border: 1px solid #fecaca;
  padding: 3px 8px; border-radius: 99px; white-space: nowrap;
}
@media print { .career__vids { display: none; } }
