/*
 * Trang chủ Bess Leader Online — Định vị → Học → Làm → Gỡ vướng → Thành viên.
 * Card markup được dùng nguyên từ trang danh mục; selector được scope theo
 * từng shelf vì course/question cùng dùng một số class nền.
 */

/* Header dính khai ở base.css (`.bess-home-page .site-header`) — fixed + chỗ
 * trống cố định trên body, không phải sticky. Xem comment ở đó trước khi đổi. */

/* ---------- Actions ---------- */

.home-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

/* Semantic button adapters — presentation comes from the global 7-variant system. */
.home-button--primary.bess-button--brand,
.home-final-cta .home-button--primary.bess-button--brand {
  border-color: var(--teal-brand);
  color: var(--teal-brand-ink);
  background: var(--teal-brand);
}
.home-button--primary.bess-button--brand:hover,
.home-final-cta .home-button--primary.bess-button--brand:hover,
.home-final-cta .home-button--primary.bess-button--brand:focus-visible {
  border-color: var(--teal-brand-hover);
  color: var(--teal-brand-ink);
  background: var(--teal-brand-hover);
}
.home-button--secondary.bess-button--gray {
  border-color: var(--button-gray);
  color: var(--white);
  background: var(--button-gray);
}
.home-button--secondary.bess-button--gray:hover {
  border-color: var(--button-gray-hover);
  color: var(--white);
  background: var(--button-gray-hover);
}
.home-final-cta__link.bess-button--text-white {
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
}
.home-final-cta__link.bess-button--text-white:hover { color: var(--white); }

.home-button .material-symbols-outlined { font-size: 18px; transition: transform 180ms ease; }
.home-button:hover { transform: translateY(-1px); }
.home-button:hover .material-symbols-outlined { transform: translateX(3px); }

.home-button--primary { border: 2px solid var(--teal-brand); color: var(--teal-brand-ink); background: var(--teal-brand); }
.home-button--primary:hover { border-color: var(--teal-brand-hover); color: var(--teal-brand-ink); background: var(--teal-brand-hover); }
.home-button--secondary { border: 2px solid var(--button-gray); color: var(--white); background: var(--button-gray); }
.home-button--secondary:hover { border-color: var(--button-gray-hover); background: var(--button-gray-hover); }

/* ---------- Hero v7 ---------- */

.home-hero {
  --home-hero-capability-overlap: 56px;
  border-bottom: 0 solid var(--line);
  background: #050606;
}
.home-hero__banner { position: relative; overflow: hidden; background: linear-gradient(105deg, #050606 0%, #08090a 58%, #101516 100%); }
.home-hero__banner::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--home-hero-capability-overlap) + 80px);
  background: linear-gradient(
    to bottom,
    rgb(5 6 6 / 0) 0%,
    rgb(5 6 6 / 0.7) 42%,
    #050606 59%,
    #050606 100%
  );
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: calc(148px + var(--home-hero-capability-overlap));
}

.home-hero__copy { position: relative; z-index: 3; width: 60%; padding-right: clamp(32px, 5vw, 72px); }
.home-hero__visual { position: absolute; z-index: 0; top: 0; right: 0; bottom: 0; display: flex; width: 55%; min-width: 0; align-items: flex-start; justify-content: center; isolation: isolate; }
.home-hero__visual::before { content: ""; position: absolute; z-index: 0; top: 4%; left: 50%; width: min(118%, 500px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / 0.11) 0%, rgb(29 233 182 / 0.055) 42%, transparent 70%); transform: translateX(-50%); }
.home-hero__visual img { position: relative; z-index: 1; width: auto; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 24px 42px rgb(0 0 0 / 0.34)); }
/* Chỉ hero còn kicker — xem đầu front-page.php. */
.home-hero__kicker {
  display: block;
  margin: 0;
  color: var(--body);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 22px 0 0;
  font-size: clamp(48px, 4.8vw, 50px);
  font-weight: 800;
  line-height: 1.20;
  letter-spacing: -0.045em;
}

.home-hero__lead { max-width: 618px; margin: 24px 0 0; color: var(--body); font-size: 17.5px; line-height: 1.68; text-wrap: balance; }
.home-hero .home-button { margin-top: 34px; }

.home-capabilities {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 44px;
  margin-top: calc(-1 * (var(--home-hero-capability-overlap) + 0px));
  padding-block: 0 48px;
}
.home-capability { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.home-capability::before { position: absolute; top: 0; bottom: 0; left: -22px; width: 1px; background: var(--line); content: ''; }
.home-capability:first-child::before { display: none; }
.home-capability:hover strong,
.home-capability:focus-visible strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.home-capability:focus-visible { border-radius: 2px; outline: 2px solid var(--brand); outline-offset: 6px; }
.home-capability__heading { display: flex; min-width: 0; align-items: baseline; gap: 16px; }
.home-capability__number { flex: 0 0 auto; color: var(--white); font-size: 16px; font-weight: 800; line-height: 1.2; }
.home-capability strong { color: var(--white); font-size: 16px; line-height: 1.35; letter-spacing: -0.015em; }
.home-capability__description { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ---------- Shared section heading ---------- */

.home-section-heading { max-width: 720px; margin-inline: auto; text-align: center; }
.home-section-heading--wide { max-width: none; }
.home-section-kicker,
.home-final-cta__kicker { margin: 0; color: var(--body); font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.home-section-kicker { margin-bottom: 14px; text-align: inherit; }
.home-section-heading h2,
.home-shelf__title { margin: 0; font-weight: 800; line-height: 1.36; letter-spacing: -0.04em; text-wrap: balance; }
.home-section-heading h2 { font-size: clamp(32px, 3.4vw, 44px); }
.home-section-heading > p:last-child { max-width: 680px; margin: 16px auto 0; color: var(--body); font-size: 15px; line-height: 1.7; }

/* ---------- Lộ trình phát triển nghề nghiệp ---------- */

.home-career-roadmap { padding-block: 100px; }
.home-career-roadmap__inner { display: grid; grid-template-columns: 50% auto; gap: clamp(64px, 9vw, 140px); align-items: center; }
.home-career-roadmap__intro { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.home-career-roadmap__intro h2 { margin: 0; font-size: 32px ; font-weight: 800; line-height: 1.46; letter-spacing: -0.04em; }
.home-manager-tools .home-career-roadmap__intro h2 { font-size: clamp(32px, 3.4vw, 44px); }
.home-career-roadmap__caption { max-width: 560px; margin: 16px 0 0; color: var(--body); font-size: 15px; line-height: 1.7; }
.home-career-roadmap__intro .home-button { margin-top: 24px; }
.home-career-roadmap__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.home-career-roadmap__actions .home-button { margin-top: 0; }
/*
 * Danh sách quyền lợi: mỗi dòng là một câu hoàn chỉnh, không còn cặp tên
 * Việt/Anh nên bỏ luôn cấp `strong` + caption.
 *
 * Icon canh theo DÒNG ĐẦU chứ không canh giữa cả ô: ở XL phần lớn mục vừa
 * đúng một dòng, nhưng từ SM thì mục nào cũng xuống 2 dòng — canh giữa sẽ đẩy
 * icon rơi vào giữa hai dòng chữ. Cho icon cùng line-height với chữ rồi
 * `align-items: start` để hai trường hợp trông như nhau.
 */
.home-career-roadmap__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.home-career-roadmap__list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 16px; align-items: start; min-height: 38px; padding-block: 11px; }
.home-career-roadmap__list > li > .material-symbols-outlined { color: rgb(255 255 255 / 0.82); font-size: 22px; line-height: 23.25px; }
.home-career-roadmap__list p { min-width: 0; margin: 0; color: var(--white); font-size: 15px; font-weight: 400; line-height: 1.55; }

.home-manager-tools { padding-top: 48px; }
.home-manager-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.home-manager-tools__grid li { display: flex; min-width: 0; min-height: 146px; flex-direction: column; align-items: center; justify-content: center; padding: clamp(20px, 2.4vw, 32px) 14px; text-align: center; }
.home-manager-tools__grid li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.home-manager-tools__grid li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.home-manager-tools__grid .material-symbols-outlined { margin-bottom: 16px; color: rgb(255 255 255 / 0.88); font-size: 40px; }
.home-manager-tools__grid strong { color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.4; }
.home-manager-tools__grid strong + span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* ---------- Sections + carousel shell ---------- */

.home-learning,
.home-questions { border-bottom: 0; }
.home-learning { padding-top: 24px; }
.home-learning > .home-section-heading { padding-bottom: 32px; }
.home-learning .home-shelf { padding-bottom: 0; }
.home-questions { padding: 24px 0 var(--space-section); }

/* ---------- Hỏi đáp với chuyên gia ---------- */

.home-questions > .home-section-heading { margin-bottom: 44px; }

.home-qa-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 900px) 50px;
  align-items: center;
  justify-content: space-between;
}

.home-qa-showcase__viewport { position: relative; grid-column: 2; width: 100%; min-width: 0; padding-inline: 0; outline: 0; touch-action: pan-y; }
.home-qa-showcase__viewport:focus-visible { outline: 2px solid rgb(29 233 182 / 0.62); outline-offset: 6px; border-radius: 14px; }
.home-qa-slide { position: relative; min-height: 460px; animation: home-qa-slide-in 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.home-qa-slide[hidden] { display: none; }

.home-qa-slide__visual {
  position: relative;
  width: 42%;
  min-height: 460px;
  overflow: hidden;
  margin-left: auto;
  border-radius: 12px;
  background: #15171a;
}

.home-qa-slide__visual img { height: 460px; object-fit: cover; }

.home-qa-slide__panel {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  display: flex;
  width: 70%;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 3.2vw, 44px);
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 10px;
  background: #24282f;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.34);
  transform: translateY(-50%);
}

.home-qa-slide__context { margin: 0 0 18px; color: var(--white); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.home-qa-slide h3 { color: var(--white); max-width: 690px; margin: 0; font-size: clamp(15px, 1.1vw, 17px); font-weight: var(--font-weight-semibold); line-height: 1.7; letter-spacing: -0.01em; }
.home-qa-slide__answer { max-width: 690px; margin-top: 22px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.13); }
.home-qa-slide__answer > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.home-qa-slide__answer p { margin: 0; color: var(--body); font-size: 13.5px; line-height: 1.72; }

.home-qa-showcase__arrow {
  position: relative;
  z-index: 3;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  color: rgb(255 255 255 / 0.7);
  background: #272a30;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-qa-showcase__arrow:hover { border-color: rgb(255 255 255 / 0.28); color: var(--white); background: #24282f; transform: scale(1.04); }
.home-qa-showcase__arrow:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.home-qa-showcase__arrow--previous { grid-column: 1; justify-self: start; }
.home-qa-showcase__arrow--next { grid-column: 3; justify-self: end; }
.home-qa-showcase__arrow .material-symbols-outlined { font-size: 26px; }

.home-qa-showcase__dots { display: flex; justify-content: center; gap: 0; margin-top: 12px; }
.home-qa-showcase__dots button { display: grid; width: var(--tap-min); height: var(--tap-min); padding: 0; place-items: center; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.home-qa-showcase__dots button::before { width: 6px; height: 6px; border-radius: inherit; background: rgb(255 255 255 / 0.28); content: ""; transition: width 220ms ease, background-color 220ms ease; }
.home-qa-showcase__dots button[aria-current="true"]::before { width: 24px; background: var(--white); }
.home-qa-showcase__dots button:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.home-qa-showcase__actions { display: flex; justify-content: center; gap: 12px; margin-top: 40px; margin-bottom: 24px }

@keyframes home-qa-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.home-shelf__heading-row { position: relative; display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 30px; text-align: center; }
.home-shelf__heading-row--sub { justify-content: space-between; text-align: left; }
.home-shelf__heading-copy { min-width: 0; max-width: 760px; margin-inline: auto; }
.home-shelf__title { margin: 0; font-size: clamp(27px, 2.6vw, 36px); }
.home-shelf__description { max-width: 680px; margin: 13px auto 0; color: var(--body); font-size: 15px; line-height: 1.7; }
.home-shelf__sub-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; }
.home-shelf__controls { position: absolute; top: 50%; right: 0; display: flex; flex: 0 0 auto; gap: 10px; transform: translateY(-50%); }
.home-shelf__heading-row--sub .home-shelf__controls { position: static; transform: none; }

.home-shelf__arrow {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  background: var(--surface);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.home-shelf__arrow:hover { border-color: rgb(255 255 255 / 0.36); background: var(--surface-hover); }
.home-shelf__arrow:disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.home-shelf__arrow .material-symbols-outlined { font-size: 22px; }

.home-shelf__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px var(--gutter) 8px var(--bleed-inset);
  scroll-padding-inline-start: var(--bleed-inset);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.home-shelf__track::-webkit-scrollbar { display: none; }
.home-shelf__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.home-shelf__item { width: clamp(240px, 19.5vw, 330px); flex: 0 0 auto; scroll-snap-align: start; }
.home-shelf__footer { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- Bộ lọc Module theo 5 Stage ---------- */

.home-course-browser__filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }

.home-course-filter {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: #191a1d;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}

.home-course-filter__number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}
.home-course-filter:hover { color: var(--white); background: var(--surface-hover); }
.home-course-filter.is-active { color: var(--white); background: #191a1d; }
.home-course-panel { margin-top: 38px; }
.home-course-panel[hidden] { display: none; }

.home-course-browser__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-block: 34px var(--space-section);
}

/* ---------- Học từ chuyên gia ---------- */

.home-expert-courses { padding: 0 0 clamp(84px, 8vw, 124px); }
.home-expert-courses > .home-section-heading { padding-bottom: clamp(34px, 4vw, 52px); }

.home-expert-courses__panel {
  display: grid;
  height: 500px;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 0;
  border-radius: 16px;
  background: #242629;
}

.home-expert-courses__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 5vw, 76px);
  background: #242629;
  text-align: center;
}

.home-expert-courses__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border: 2.25px solid rgb(255 255 255 / 0.86);
  border-radius: 50%;
  color: var(--white);
  background: rgb(28 32 34 / 0.45);
  box-shadow: 0 3px 18px rgb(13 16 18 / 0.34);
  transform: translate(-50%, -50%);
  transition: background-color 200ms ease, transform 200ms ease;
  backdrop-filter: blur(3px);
  pointer-events: none;
}
.home-expert-courses__play svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  transform: translateX(1px);
}

.home-expert-courses__badge {
  margin: 0 0 30px;
  padding: 9px 14px 7px;
  border-radius: 999px;
  color: #111315;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.home-expert-courses__content h3 {
  max-width: 460px;
  margin: 0;
  color: var(--white);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: clamp(25px, 2.25vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.home-expert-courses__content h3 span { display: block; }

.home-expert-courses__description {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.72;
  text-wrap: balance;
  text-align: center;
}

.home-expert-courses__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.home-expert-courses__visual {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--white);
  background: #171a1d;
}
.home-expert-courses__visual:hover .home-expert-courses__play {
  background: rgb(28 32 34 / 0.68);
  transform: translate(-50%, -50%) scale(1.08);
}
.home-expert-courses__visual:focus-visible { outline: 2px solid var(--white); outline-offset: -5px; }
.home-expert-courses__visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: 36% 50%;
}

/* ==================================================
   CARD: COURSE — cùng visual với /course
   ================================================== */

.home-shelf--question .course-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  cursor: pointer;
  isolation: isolate;
  text-align: left;
  transform: translateZ(0);
  transition: transform 240ms ease;
}

.home-shelf--question .course-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 200ms ease;
}

.home-shelf--question .course-card:hover { transform: translateY(-2px); }
.home-shelf--question .course-card:hover::after { border-color: rgb(255 255 255 / 0.34); }

/* ==================================================
   CARD: QUESTION — cùng visual với /ask
   ================================================== */

.home-shelf--question .qa-card { aspect-ratio: 1; background: radial-gradient(circle at 94% 4%, rgb(255 255 255 / 0.035), transparent 31%), #131b23; box-shadow: 0 18px 44px rgb(0 0 0 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.035); }
.home-shelf--question .qa-card::after { border-color: rgb(255 255 255 / 0.16); }
.home-shelf--question .qa-card .card-overlay { position: absolute; z-index: -1; inset: 0; }
.home-shelf--question .qa-card .card-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: stretch; padding: 20px; text-align: left; }
.home-shelf--question .qa-title { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: #f1f3f5; font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -0.035em; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.home-shelf--question .qa-description { display: -webkit-box; overflow: hidden; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 0.14); color: rgb(241 243 246 / 0.82); font-size: 11px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-shelf--question .qa-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.home-shelf--question .qa-bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-shelf--question .qa-brand { color: rgb(255 255 255 / 0.28); font-size: 8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.home-shelf--question .qa-cta { display: inline-flex; align-items: center; gap: 7px; color: var(--white); font-size: 10px; font-weight: 800; white-space: nowrap; }
.home-shelf--question .qa-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 180ms ease; }
.home-shelf--question .qa-card:hover .qa-cta svg { transform: translateX(3px); }

/* ---------- CTA cuối trang ---------- */

.home-final-cta {
  --cta-image-size: min(38vw, 480px);
  --cta-image-bleed: clamp(24px, 2vw, 32px);
  padding-block: clamp(72px, 7vw, 108px);
  padding-top: 40px;
}

.home-final-cta__panel {
  display: grid;
  width: 100%;
  min-height: calc(var(--cta-image-size) - (var(--cta-image-bleed) * 2));
  grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
  gap: 0;
  align-items: stretch;
  padding: 0;
  border-radius: 16px;
  background: #242629;
}

.home-final-cta__visual {
  width: var(--cta-image-size);
  align-self: center;
  justify-self: end;
  margin: calc(var(--cta-image-bleed) * -1) 0;
}
.home-final-cta__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  object-position: 55% 50%;
}

.home-final-cta__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 5vw, 76px) clamp(44px, 5vw, 76px) clamp(48px, 5vw, 76px) clamp(32px, 3.33vw, 50.67px);
}
.home-final-cta__kicker span { color: var(--muted); font-weight: 700; }
.home-final-cta h2 { margin: 20px 0 0; font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -0.04em; text-wrap: balance; }
.home-final-cta__description { max-width: 460px; margin: 20px 0 0; color: var(--body); font-size: 16px; line-height: 1.7; }
.home-final-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 38px; margin-top: 34px; }
.home-final-cta .home-button--primary { border-color: var(--teal-brand); color: var(--teal-brand-ink); background: var(--teal-brand); }
.home-final-cta .home-button--primary:hover,
.home-final-cta .home-button--primary:focus-visible { border-color: var(--teal-brand-hover); color: var(--teal-brand-ink); background: var(--teal-brand-hover); }

.home-final-cta__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 180ms ease;
}
.home-final-cta__link .material-symbols-outlined { font-size: 20px; }
.home-final-cta__link:hover { color: var(--white); text-decoration: none; }

/* ---------- Responsive ---------- */

@media (min-width: 1024px) {
  .home-course-browser__filters { padding-inline: 0 }
}

@media (max-width: 1279px) {
  .home-shelf__item { width: clamp(232px, 25vw, 320px); }
}

@media (max-width: 1023px) {
  .home-hero__copy { width: 50%; padding-right: 32px; }
  .home-hero__visual { width: 50%; }
  .home-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 44px; padding-block: 0 48px; }
  .home-capability::before { display: none; }
  .home-capability:nth-child(even)::before { display: block; }
  .home-capability:nth-child(n+3) { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
  .home-career-roadmap__inner { gap: 48px; }
  .home-qa-slide__panel { width: 69%; }
  .home-qa-slide__visual { width: 44%; }
  .home-shelf__item { width: min(340px, 34vw); }

  .home-expert-courses__panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-expert-courses__content { padding: 38px; }
  .home-expert-courses__actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 767px) {
  .home-hero__banner { background: linear-gradient(180deg, #050606 0%, #090b0c 64%, #0e1314 100%); }
  .home-hero__inner { padding: 48px 0 0; }
  .home-hero__copy { width: 100%; padding-right: 0; }
  .home-hero__visual { position: relative; top: auto; right: auto; bottom: auto; width: 100%; height: clamp(360px, 104vw, 430px); margin-top: 38px; }
  .home-hero__visual::before { top: 4%; width: min(112%, 420px); }
  .home-hero__visual img { transform: none; }
  .home-hero__title { margin-top: 12px; font-size: clamp(25px, 8vw, 34px); line-height: 1.2; }
  .home-hero__title-nowrap { white-space: nowrap; }
  .home-hero__lead { font-size: 15px; text-wrap: balance; }
  .home-hero .home-button { width: 100%; }
  .home-capabilities { grid-template-columns: 1fr; column-gap: 0; }
  .home-capability:nth-child(even)::before { display: none; }
  .home-capability:nth-child(n+2) { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

  .home-career-roadmap { padding-block: 72px 110px; }
  .home-career-roadmap__inner { grid-template-columns: 1fr; gap: 42px; }
  .home-career-roadmap__intro { align-items: center; text-align: center; }
  .home-career-roadmap__intro .home-button { width: 100%; }
  .home-career-roadmap__actions { width: 100%; flex-direction: column; }
  .home-career-roadmap__list { width: min(100%, 520px); margin-inline: auto; }

  .home-questions > .home-section-heading { margin-bottom: 32px; }
  .home-qa-showcase { display: block; }
  .home-qa-showcase__viewport { width: auto; padding-inline: 0; }
  .home-qa-slide { min-height: 0; }
  .home-qa-slide__visual { width: 100%; min-height: 0; aspect-ratio: 16 / 10; margin: 0; border-radius: 10px; }
  .home-qa-slide__visual img { height: 100%; }
  .home-qa-slide__panel { position: relative; top: auto; left: auto; width: auto; min-height: 0; margin: -38px 14px 0; padding: 26px 22px 28px; transform: none; }
  .home-qa-slide__context { margin-bottom: 12px; }
  .home-qa-slide h3 { font-size: clamp(15px, 4.4vw, 17px); line-height: 1.68; }
  .home-qa-slide__answer { margin-top: 20px; padding-top: 17px; }
  .home-qa-slide__answer p { font-size: 13px; }
  .home-qa-showcase__arrow { position: absolute; top: clamp(92px, 31vw, 170px); width: var(--tap-min); height: var(--tap-min); transform: translateY(-50%); }
  .home-qa-showcase__arrow:hover { transform: translateY(-50%) scale(1.04); }
  .home-qa-showcase__arrow--previous { left: 8px; }
  .home-qa-showcase__arrow--next { right: 8px; }
  .home-qa-showcase__dots { margin-top: 10px; }
  .home-qa-showcase__actions { flex-direction: column; margin-top: 26px; }
  .home-qa-showcase__actions .home-button { width: 100%; }

  .home-shelf__heading-row { gap: 16px; margin-bottom: 22px; }
  .home-shelf__controls { display: none; }
  .home-shelf__track { gap: 12px; padding-block: 3px 6px; scroll-snap-type: x mandatory; }
  .home-shelf__item { width: 78vw; max-width: 330px; }
  .home-shelf__footer { margin-top: 26px; }
  .home-shelf__footer .home-button { width: 100%; }

  .home-course-browser__filters {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
    margin-inline: 0;
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .home-course-browser__filters::-webkit-scrollbar { display: none; }
  .home-course-filter { min-height: var(--tap-min); padding: 7px 12px; font-size: 15px; }
  .home-course-filter__number { width: 26px; height: 26px; flex-basis: 26px; font-size: 13px; }
  .home-course-panel { margin-top: 30px; }
  .home-course-browser__actions { flex-direction: column; padding-top: 28px; }
  .home-course-browser__actions .home-button { width: 100%; }

  .home-expert-courses { padding-bottom: 90px; }
  .home-expert-courses > .home-section-heading { padding-bottom: 30px; }
  .home-expert-courses__panel { height: auto; min-height: 0; grid-template-columns: 1fr; border-radius: 10px; }
  .home-expert-courses__visual { min-height: 0; aspect-ratio: auto; }
  .home-expert-courses__visual img { height: auto; min-height: 0; object-fit: initial; object-position: initial; }
  .home-expert-courses__content { align-items: center; padding: 30px 24px 34px; text-align: center; }
  .home-expert-courses__play { width: 52px; height: 52px; border-width: 2px; }
  .home-expert-courses__play svg { width: 27px; height: 27px; }
  .home-expert-courses__badge { margin-bottom: 16px; }
  .home-expert-courses__content h3 { font-size: clamp(24px, 7vw, 30px); }
  .home-expert-courses__description { margin-top: 18px; font-size: 14px; }
  .home-expert-courses__actions { width: 100%; margin-top: 26px; }
  .home-expert-courses__actions .home-button { width: 100%; }

  .home-shelf--question .course-card { border-radius: 10px; }
  .home-shelf--question .qa-card .card-body { padding: 18px; }
  .home-shelf--question .qa-title { font-size: 19px; }
  .home-shelf--question .qa-description { font-size: 12px; -webkit-line-clamp: 3; }

  .home-final-cta__panel { min-height: 0; grid-template-columns: 1fr; gap: 26px; padding: 14px 14px 34px; border-radius: 12px; }
  .home-final-cta__visual { width: 100%; margin: 0; }
  .home-final-cta__visual img { aspect-ratio: 16 / 11; border-radius: 9px; }
  .home-final-cta__content { padding-inline: 8px; }
  .home-final-cta__description { max-width: none; font-size: 15px; }
  .home-final-cta__actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 28px; }
  .home-final-cta .home-button { width: 100%; }
  .home-final-cta__link { justify-content: center; }
}

@media (max-width: 479px) {
  .home-shelf--question .course-card { border-radius: 8px; }
}

/* ---------- Homepage v2: Roadmap-led information architecture ---------- */

.home-v2 { overflow: hidden; background: var(--page); }
.home-v2 .home-hero { padding-bottom: 0; }
.home-v2 .home-hero__inner { min-height: min(780px, calc(100vh - 92px)); padding-bottom: 90px; }
.home-v2-section { padding: clamp(78px, 9vw, 132px) 0; border-top: 1px solid var(--line); }
.home-v2-heading { position: relative; margin-bottom: clamp(38px, 5vw, 64px); }
.home-v2-heading > p { margin: 0 0 15px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.home-v2-heading h2 { max-width: 820px; margin: 0; color: var(--white); font-family: inherit; font-size: clamp(38px, 5vw, 68px); font-weight: 700; letter-spacing: -.025em; line-height: .98; }
.home-v2-heading > span { display: block; max-width: 660px; margin: 20px 0 0; color: var(--body); line-height: 1.65; }
.home-v2-heading > a { position: absolute; right: 0; bottom: 4px; color: var(--white); font-size: 13px; font-weight: 700; text-decoration: none; }
.home-v2-heading > a:hover { color: var(--brand); }
.home-v2-heading--center { display: grid; justify-items: center; text-align: center; }
.home-v2-heading--center h2,
.home-v2-heading--center > span { margin-right: auto; margin-left: auto; }

.home-v2-roadmap { background: var(--surface); }
.home-v2-stage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); }
.home-v2-stage { display: flex; min-height: 340px; flex-direction: column; padding: 28px 24px; border-right: 1px solid var(--line); color: var(--white); text-decoration: none; transition: color 180ms ease, background 180ms ease; }
.home-v2-stage:last-child { border-right: 0; }
.home-v2-stage:hover { color: #07100e; background: var(--brand); }
.home-v2-stage__number { margin-bottom: auto; color: var(--body); font-family: inherit; font-size: 42px; }
.home-v2-stage:hover .home-v2-stage__number { color: rgb(7 16 14 / 62%); }
.home-v2-stage__eyebrow { margin-bottom: 13px; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-v2-stage strong { min-height: 3.6em; font-family: inherit; font-size: 25px; font-weight: 700; line-height: 1.18; }
.home-v2-stage > span:last-child { margin-top: 22px; font-size: 11px; font-weight: 700; text-transform: uppercase; }

.home-v2-materials { background: var(--page); }
.home-v2-material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-v2-material { display: grid; min-height: 320px; align-content: space-between; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.home-v2-material > .material-symbols-outlined { color: var(--brand); font-size: 35px; }
.home-v2-material p { margin: 0 0 8px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-v2-material h3 { margin: 0 0 12px; color: var(--white); font-family: inherit; font-size: 30px; font-weight: 700; }
.home-v2-material div > span { color: var(--body); font-size: 13px; line-height: 1.65; }

.home-v2-audience { background: var(--surface); }
.home-v2-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(50px, 9vw, 130px); }
.home-v2-audience-list { border-top: 1px solid var(--line); }
.home-v2-audience-list article { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.home-v2-audience-list article > span { color: var(--brand); font-size: 11px; font-weight: 800; }
.home-v2-audience-list h3 { margin: 0 0 8px; color: var(--white); font-size: 19px; }
.home-v2-audience-list p { margin: 0; color: var(--body); font-size: 14px; line-height: 1.65; }

.home-v2-platform { background: var(--page); }
.home-v2-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.home-v2-feature-grid article { min-height: 250px; padding: 34px; background: var(--surface); }
.home-v2-feature-grid .material-symbols-outlined { color: var(--brand); font-size: 38px; }
.home-v2-feature-grid h3 { margin: 60px 0 10px; color: var(--white); font-family: inherit; font-size: 28px; font-weight: 700; }
.home-v2-feature-grid p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.65; }

.home-v2-school { background: var(--surface); }
.home-v2-school__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); align-items: center; gap: clamp(44px, 8vw, 112px); }
.home-v2-school__media { min-height: 520px; background: #171a1b; }
.home-v2-school__media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; filter: saturate(.75) contrast(1.04); }
.home-v2-school .home-v2-heading { margin-bottom: 26px; }
.home-v2-school__grid > div:last-child > p { margin: 0 0 30px; color: var(--body); line-height: 1.75; }

.home-v2-testimonials { background: var(--page); }
.home-v2-quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-v2-quote-grid blockquote { display: grid; min-height: 300px; align-content: space-between; margin: 0; padding: 30px; border: 1px solid var(--line); }
.home-v2-quote-grid blockquote p { margin: 0; color: var(--white); font-family: inherit; font-size: 24px; line-height: 1.35; }
.home-v2-quote-grid footer { color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.home-v2-pricing { background: var(--surface); }
.home-v2-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.home-v2-price { position: relative; display: grid; min-height: 330px; align-content: start; padding: 34px; border: 1px solid var(--line); color: var(--white); text-decoration: none; transition: border-color 180ms ease, transform 180ms ease; }
.home-v2-price:hover { border-color: var(--brand); transform: translateY(-3px); }
.home-v2-price.is-featured { border-color: var(--brand); }
.home-v2-price__badge { position: absolute; top: 0; right: 0; padding: 8px 12px; color: #07100e; background: var(--brand); font-size: 9px; font-weight: var(--font-weight-display); letter-spacing: .08em; text-transform: uppercase; }
.home-v2-price > strong { font-family: inherit; font-size: 30px; font-weight: 700; }
.home-v2-price__amount { margin: 34px 0 16px; color: var(--brand); font-size: 28px; font-weight: 800; }
.home-v2-price > span:not(.home-v2-price__badge):not(.home-v2-price__amount) { color: var(--body); font-size: 13px; line-height: 1.6; }
.home-v2-price > b { align-self: end; margin-top: auto; padding-top: 46px; font-size: 12px; }
.home-v2-premium-active { display: flex; align-items: center; gap: 24px; max-width: 900px; margin: 0 auto; padding: 30px; border: 1px solid var(--brand); }
.home-v2-premium-active > .material-symbols-outlined { color: var(--brand); font-size: 40px; }
.home-v2-premium-active h3 { margin: 0 0 5px; color: var(--white); }
.home-v2-premium-active p { margin: 0; color: var(--body); }
.home-v2-premium-active > a { margin-left: auto; }

@media (max-width: 1023px) {
  .home-v2-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-v2-stage { min-height: 280px; border-bottom: 1px solid var(--line); }
  .home-v2-stage:nth-child(2n) { border-right: 0; }
  .home-v2-stage:last-child { grid-column: 1 / -1; }
  .home-v2-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-v2-school__grid { grid-template-columns: 1fr; }
  .home-v2-school__media,
  .home-v2-school__media img { min-height: 400px; }
}

@media (max-width: 767px) {
  .home-v2 .home-hero__inner { min-height: 700px; padding-bottom: 62px; }
  .home-v2-heading > a { position: static; display: inline-block; margin-top: 22px; }
  .home-v2-stage-grid,
  .home-v2-material-grid,
  .home-v2-feature-grid,
  .home-v2-quote-grid,
  .home-v2-price-grid,
  .home-v2-split { grid-template-columns: 1fr; }
  .home-v2-stage,
  .home-v2-stage:nth-child(2n) { min-height: 245px; border-right: 0; }
  .home-v2-stage:last-child { grid-column: auto; }
  .home-v2-material { min-height: 250px; }
  .home-v2-feature-grid { gap: 1px; }
  .home-v2-premium-active { align-items: flex-start; flex-direction: column; }
  .home-v2-premium-active > a { width: 100%; margin-left: 0; justify-content: center; }
}
