/* =========================================================
   SCHOOL TIME – Landing page
   Design frame: 1440px. Mọi số đo đã quy đổi từ thiết kế gốc.
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Bowlby One"; src: url("../assets/fonts/bowlby-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gochi Hand"; src: url("../assets/fonts/gochi-hand-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("../assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  /* colors */
  --c-page:        #FEF8E6;
  --c-hero:        #F6EFE6;
  --c-cream-yellow:#FAEECB;
  --c-plum:        #4F232B;   /* heading */
  --c-orange:      #F3582A;
  --c-text:        #6A6663;   /* body / subtitle */
  --c-nav:         #6D6A62;
  --c-yellow:      #FFC72B;
  --c-yellow-dark: #F2B41C;
  --c-yellow-line: #FBD35A;
  --c-white:       #FFFFFF;
  --c-blue:        #2E9FE3;
  --c-green:       #17733A;

  /* fonts */
  --f-display: "Bowlby One", "Arial Black", sans-serif;
  --f-ui:      "Alegreya Sans", system-ui, sans-serif;
  --f-body:    "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-sub:     "Lexend", system-ui, sans-serif;
  --f-hand:    "Gochi Hand", cursive;

  /* layout */
  --frame: 1440px;
  --gutter: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--c-page); color: var(--c-text); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { width: 100%; overflow-x: clip; }
.text-orange { color: var(--c-orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-family: var(--f-ui); font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--white {
  background: var(--c-white); color: var(--c-orange);
  font-size: 19px; font-weight: 700;
}
.btn--yellow {
  background: var(--c-yellow); color: var(--c-plum);
  font-size: 22px;
  box-shadow: inset 0 -3px 0 var(--c-yellow-dark);
}
.btn--yellow:hover { box-shadow: inset 0 -3px 0 var(--c-yellow-dark), 0 10px 20px -8px rgba(242,180,28,.7); }
.btn__arrow { width: 22px; height: 22px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 1445px;
  background-color: var(--c-hero);
  background-image: url("../assets/img/doodle-pattern.svg");
  background-size: 520px 520px;
  background-position: -40px 40px;
  padding-top: 30px;
}

/* ---------- Header ---------- */
.header {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: var(--frame); margin: 0 auto;
  padding: 0 102px 0 99px;
}
.logo svg { width: 150px; height: 76px; overflow: visible; }
.logo--lg svg { width: 225px; height: 114px; }
.logo__text { pointer-events: none; }
.logo__text text {
  font-family: var(--f-display); font-size: 33px; letter-spacing: -0.5px;
  fill: var(--c-white);
  stroke: var(--c-orange); stroke-width: 7px; stroke-linejoin: round;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 0 #D94515);
}

.nav {
  position: absolute; left: 501px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 32px; margin-top: 3px;
}
.nav__link {
  font-family: var(--f-ui); font-weight: 700; font-size: 19px; line-height: 1;
  color: var(--c-nav);
  padding: 8px 0; border: 2.5px solid transparent; border-radius: 999px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, padding .2s ease;
}
.nav__link:hover { color: var(--c-plum); }
.nav__link.is-active {
  color: var(--c-plum); font-weight: 700;
  background: var(--c-white); border-color: var(--c-yellow-line);
  padding: 7px 13px; margin-right: -4px;
}
.header__cta { width: 150px; height: 56px; }

.burger { display: none; }

/* ---------- Hero content ---------- */
.hero__content { position: relative; text-align: center; }

.hero__title {
  margin-top: 69px;
  font-family: var(--f-display); font-weight: 400;
  font-size: 73px; line-height: 95px; letter-spacing: 0;
  text-transform: uppercase; color: var(--c-plum);
}
.hero__line { display: block; position: relative; }
.hero__line:first-child { width: max-content; margin: 0 auto; }

.hero__book {
  position: absolute; width: 114px; height: 67px;
  left: calc(100% + 25px); top: 8px;
}

.hero__subtitle {
  margin-top: 21px;
  font-family: var(--f-sub); font-weight: 500;
  font-size: 32px; line-height: 49px; letter-spacing: 0.7px; color: var(--c-text);
}

.hero__cloud {
  position: absolute; width: 124px; height: 91px;
  left: calc(50% - 463px); top: 238px;
}

.hero__cta { margin-top: 54px; width: 280px; height: 64px; }

/* ---------- Scalloped photo ---------- */
.hero__media {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: 667px; width: 1200px; height: 656px;
}
.scallop { width: 100%; height: 100%; overflow: visible; }
.scallop__stroke { fill: none; stroke: var(--c-yellow-line); stroke-width: 4; stroke-linejoin: round; }

/* =========================================================
   SECTION HEAD (dùng chung)
   ========================================================= */
.sec-head { position: relative; text-align: center; }
.eyebrow {
  font-family: var(--f-hand); font-size: 28px; line-height: 1;
  color: var(--c-orange); letter-spacing: 1.7px;
}
.h2 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 58px; line-height: 72px; text-transform: uppercase; letter-spacing: -1.7px;
  color: var(--c-plum);
}
.lead {
  font-family: var(--f-sub); font-weight: 500;
  font-size: 30px; line-height: 48px; letter-spacing: 1.5px; color: var(--c-text);
}
.btn--sm { height: 56px; font-size: 20px; }
.btn--light {
  background: var(--c-white); color: var(--c-plum);
  box-shadow: inset 0 -3px 0 var(--c-plum);
}

/* deco */


/* mây trắng có bóng vàng */
.cloud-band { position: absolute; left: 0; width: 100%; pointer-events: none; }
.cloud-band--up   { top: 643px; height: 377px; }
.cloud-band--down { top: -8px; height: 383px; }

/* =========================================================
   3. JOURNEY
   ========================================================= */
.journey {
  position: relative;
  height: 965px;                 /* 1445 → 2410 */
  padding-top: 127px;
  background: var(--c-cream-yellow);
  text-align: center;
}
.journey .h2 { margin-top: 12px; }
.journey__text {
  width: 1240px; margin: 13px auto 0;
  font-family: var(--f-sub); font-weight: 500;
  font-size: 28px; line-height: 54px; letter-spacing: .7px; color: var(--c-text);
}
.ico-inline {
  display: inline-block; width: 56px; height: 56px;
  vertical-align: middle; margin: -14px 2px -10px;
}
.journey__cta { margin-top: 64px; width: 432px; height: 64px; font-size: 21px; gap: 14px; }
.btn__play { width: 28px; height: 24px; }
.journey__sun { position: absolute; left: calc(50% - 429px); top: 624px; width: 163px; height: 163px; z-index: 1; }

/* =========================================================
   4. PROGRAMS
   ========================================================= */
.programs { position: relative; background: var(--c-white); height: 988px; padding-top: 75px; }
.programs .h2 { margin-top: 10px; }
.programs .lead { margin-top: 28px; }
.programs__swirl { position: absolute; width: 110px; height: 130px; left: calc(50% + 537px); top: 190px; }

.tabs {
  position: absolute; left: calc(50% - 621px); top: 421px;
  width: 1244px; height: 446px;
  display: flex; gap: 8px;
}
.tab {
  position: relative; flex: 0 0 56px; border-radius: 6px; overflow: hidden;
  transition: flex-basis .55s cubic-bezier(.65,.05,.25,1), flex-grow .55s cubic-bezier(.65,.05,.25,1);
}
.tab.is-open { flex: 1 1 auto; }
.tab--blue   { background: #40B2F2; }
.tab--pink   { background: #FFA0C7; }
.tab--green  { background: #9DCA50; }
.tab--purple { background: #8E91C7; }

.tab__label {
  position: absolute; inset: 0; width: 56px; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-ui); font-weight: 700; font-size: 23px; color: var(--c-plum);
  white-space: nowrap; transition: opacity .3s ease;
}
.tab.is-open .tab__label { opacity: 0; pointer-events: none; }

.tab__panel {
  position: absolute; top: 0; left: 0; width: 1050px; height: 100%;
  display: flex; padding: 16px; gap: 31px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease .15s, visibility 0s .5s;
}
.tab.is-open .tab__panel { opacity: 1; visibility: visible; transition-delay: .2s, 0s; }
.tab__img { width: 490px; height: 414px; object-fit: cover; border-radius: 4px; flex: none; }
.tab__body { padding-top: 58px; width: 486px; }
.tab__title {
  font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.2;
  text-transform: uppercase; color: var(--c-plum);
}
.tab__desc {
  margin-top: 14px; font-family: var(--f-ui); font-weight: 500;
  font-size: 23.5px; line-height: 32px; color: #4A2A30;
}
.tab__meta {
  display: flex; align-items: center; margin-top: 22px; height: 54px;
  border-top: 1.5px dashed rgba(79,35,43,.25); border-bottom: 1.5px dashed rgba(79,35,43,.25);
  font-family: var(--f-ui); font-weight: 500; font-size: 20px; color: var(--c-plum);
}
.tab__meta span { flex: 1; padding-left: 2px; }
.tab__meta span + span { border-left: 1.5px dashed rgba(79,35,43,.25); padding-left: 22px; }
.tab__meta b { font-weight: 700; margin-right: 6px; }
.tab__price { flex: 0 0 82px !important; font-family: var(--f-sub); font-size: 25px; text-align: right; padding-right: 10px; }
.tab .btn--light { margin-top: 24px; width: 302px; height: 53px; font-size: 20px; }

/* =========================================================
   5. STATS
   ========================================================= */
.stats { position: relative; height: 528px; background: #F7E6B3; }
.stat {
  position: absolute; left: calc(50% - 720px + var(--x)); top: 121px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.stat__ico {
  width: 148px; height: 148px; border-radius: 50%;
  border: 2.5px dashed #3A1A1E; padding: 5px;
}
.stat__ico img { width: 100%; height: 100%; border-radius: 50%; }
.stat__num {
  margin-top: 20px; font-family: var(--f-display); font-weight: 400;
  font-size: 60px; line-height: 72px; color: var(--c-plum);
}
.stat__lbl { margin-top: 12px; font-family: var(--f-sub); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--c-text); white-space: nowrap; }

/* =========================================================
   6. MARQUEE
   ========================================================= */
.marquee { height: 114px; background: #4B1C25; overflow: hidden; display: flex; align-items: center; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group span {
  display: inline-flex; align-items: center; gap: 18px; padding-right: 32px;
  font-family: var(--f-sub); font-weight: 400; font-size: 24px; text-transform: uppercase;
  color: #fff; white-space: nowrap;
}
.marquee__group svg { width: 34px; height: 34px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   7. COURSES
   ========================================================= */
.courses { position: relative; height: 1418px; padding-top: 127px; background: var(--c-white); }
.courses .h2 { margin-top: 11px; }
.courses .lead { margin-top: 28px; }

.slider { position: absolute; left: calc(50% - 601px); top: 494px; width: 1202px; }
.slider__viewport { overflow: hidden; padding: 0 0 4px; }
.slider__track { display: flex; gap: 23px; transition: transform .55s cubic-bezier(.65,.05,.25,1); }
.course {
  position: relative; flex: 0 0 385px; height: 653px;
  border: 2px dashed #5A2A33; border-radius: 8px;
  padding: 22px 0 0 18px;
}
.course__media { position: relative; width: 341px; height: 261px; }
.course__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.badge {
  position: absolute; right: 2px; bottom: -30px; width: 76px; height: 76px;
  display: grid; place-items: center;
  font-family: var(--f-sub); font-weight: 400; font-size: 20px; color: #fff;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23EE5C26' d='M94 50A11 11 0 0 1 89.6 69.1A11 11 0 0 1 77.4 84.4A11 11 0 0 1 59.8 92.9A11 11 0 0 1 40.2 92.9A11 11 0 0 1 22.6 84.4A11 11 0 0 1 10.4 69.1A11 11 0 0 1 6 50A11 11 0 0 1 10.4 30.9A11 11 0 0 1 22.6 15.6A11 11 0 0 1 40.2 7.1A11 11 0 0 1 59.8 7.1A11 11 0 0 1 77.4 15.6A11 11 0 0 1 89.6 30.9A11 11 0 0 1 94 50Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.course__title { margin-top: 29px; font-family: var(--f-sub); font-weight: 400; font-size: 25.5px; line-height: 36px; color: #2B1418; }
.course__desc { margin-top: 10px; font-family: var(--f-ui); font-weight: 500; font-size: 23.5px; line-height: 32px; color: var(--c-text); }
.course__meta {
  display: flex; margin-top: 16px; width: 341px; height: 86px;
  border-top: 1.5px dashed #E2DADA; border-bottom: 1.5px dashed #E2DADA;
}
.course__meta > div { display: flex; flex-direction: column; justify-content: center; }
.course__meta > div:first-child { flex: 0 0 196px; border-right: 1.5px dashed #E2DADA; font-family: var(--f-ui); font-size: 22px; line-height: 30px; }
.course__meta b { font-weight: 700; color: #2B1418; }
.course__meta span { font-weight: 500; color: var(--c-text); }
.course__price { flex: 1; align-items: flex-end; padding-right: 14px; font-family: var(--f-sub); font-size: 21px; line-height: 30px; }
.course__price b { font-weight: 500; color: #2B1418; }
.course__price s { color: #2B1418; font-weight: 400; text-decoration-thickness: 1.5px; }
.course .btn--sm { position: absolute; left: 39px; top: 571px; width: 302px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 30px; margin-top: 61px; }
.pager__btn { width: 37px; height: 37px; border: 0; border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: background-color .2s ease; }
.pager__btn svg { width: 20px; height: 20px; }
.pager__prev { background: #C9C9C9; color: #4D4D4D; }
.pager__prev svg { transform: rotate(180deg); }
.pager__next { background: #4D4D4D; color: #fff; }
.pager__btn:hover { background: var(--c-plum); color: #fff; }
.pager__dots { display: flex; gap: 6px; align-items: center; }
.pager__dots button { width: 7px; height: 7px; border: 0; padding: 0; border-radius: 4px; background: #C9C9C9; cursor: pointer; transition: width .3s ease, background-color .3s ease; }
.pager__dots button.is-active { width: 20px; background: #4D4D4D; }

/* =========================================================
   8. CTA
   ========================================================= */
.cta {
  position: relative; height: 1165px; margin-top: -94px; padding-top: 222px;
  background-color: #F2E1B0;
  background-image: url("../assets/img/doodle-pattern-yellow.svg");
  background-size: 420px 420px;
  /* mép trên lượn sóng */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 153' preserveAspectRatio='none'%3E%3Cpath d='M1.0 134.6C1.0 123.2 1.2 115.0 1.5 113.9C2.4 110.6 4.1 109.1 7.4 108.7C11.4 108.2 11.3 108.3 21.2 98.5C30.6 89.2 31.6 88.5 35.9 87.5C37.3 87.2 39.4 86.2 40.5 85.4C46.1 81.4 53.4 77.7 62.5 74.4C65.0 73.5 65.6 73.4 69.0 74.0C71.1 74.3 78.7 74.8 86.0 75.0C93.3 75.2 99.7 75.5 100.2 75.7C100.8 76.0 104.7 78.1 109.0 80.4C113.2 82.8 118.1 85.1 119.7 85.5C124.5 86.9 125.4 87.3 127.9 89.7C132.3 93.8 134.3 94.0 138.2 91.1C139.6 90.0 142.9 88.0 145.5 86.6C148.1 85.2 151.8 83.3 153.8 82.2C157.2 80.2 157.2 80.2 168.9 80.1C182.0 79.9 183.2 80.1 190.5 83.6C194.6 85.6 195.0 85.7 199.8 85.8C202.5 85.8 205.7 86.0 206.8 86.2C209.5 86.7 211.1 85.8 215.3 81.1C217.4 78.8 219.4 77.2 221.6 76.0C223.3 75.1 225.8 73.6 227.0 72.7C230.0 70.6 240.9 65.2 244.1 64.3C258.6 60.1 275.2 58.5 285.0 60.3C301.2 63.2 301.5 63.3 304.8 65.8C306.5 67.1 313.1 70.9 319.2 74.0C323.0 76.0 324.1 76.8 327.2 80.5C329.3 82.8 332.0 85.8 333.2 87.0C334.5 88.2 337.0 91.1 338.8 93.3C344.6 100.7 347.5 102.7 351.2 101.6C360.9 98.8 367.7 98.1 374.5 99.2C376.8 99.6 380.8 100.2 383.3 100.4C387.5 100.9 388.4 101.2 393.1 103.7C395.9 105.3 399.0 107.3 400.0 108.2C403.1 111.1 405.2 111.7 408.0 110.3C410.0 109.2 412.8 105.7 413.8 103.0C415.2 99.2 416.9 95.8 418.6 93.7C419.5 92.5 420.8 90.6 421.5 89.4C422.6 87.7 423.9 86.5 427.8 84.1C430.5 82.4 434.4 79.6 436.3 77.9C439.0 75.5 440.6 74.5 442.8 73.8C444.4 73.3 447.9 71.8 450.5 70.4C457.1 66.9 461.0 66.2 475.8 66.3C490.5 66.3 495.0 67.0 502.5 70.5C505.4 71.8 509.2 73.3 510.9 73.8C514.8 74.8 518.2 77.2 524.0 83.0C530.4 89.3 535.8 93.5 537.7 93.5C538.7 93.5 541.4 92.1 546.7 88.6C556.1 82.4 559.8 80.5 567.9 77.9C573.9 76.0 574.4 75.9 577.0 76.4C587.9 78.6 590.0 79.2 595.1 81.6C602.0 84.8 602.6 84.7 607.9 79.9C610.0 78.0 612.8 75.8 614.0 75.1C615.2 74.4 619.0 72.0 622.3 69.8C628.7 65.4 630.1 64.9 646.0 59.8C662.1 54.7 660.0 55.0 684.5 55.0C710.8 55.0 716.0 55.7 726.0 60.2C728.6 61.4 732.3 62.9 734.2 63.5C738.5 64.9 743.8 67.5 747.5 70.0C749.0 71.0 752.0 73.0 754.2 74.3C756.5 75.7 759.4 77.6 760.7 78.7C766.6 83.2 769.0 83.5 774.7 80.5C784.9 75.1 791.8 74.5 802.8 78.0C806.2 79.1 809.3 80.0 809.7 80.0C810.1 80.0 811.7 80.9 813.4 82.0C815.1 83.1 817.5 84.5 818.6 85.1C819.8 85.6 822.0 87.3 823.5 88.7C829.6 94.5 830.8 94.5 836.7 89.0C844.4 81.8 851.8 76.7 857.1 74.9C858.8 74.4 861.6 72.9 863.5 71.7C866.6 69.6 867.4 69.3 870.9 69.0C873.0 68.7 877.5 68.0 880.8 67.3C889.4 65.4 903.6 65.4 910.0 67.2C916.6 69.0 923.7 71.8 929.5 74.8C934.7 77.4 934.9 77.6 943.4 86.5C952.0 95.6 952.0 95.6 955.1 101.9C958.6 109.3 959.6 110.7 961.6 111.8C963.7 112.9 965.0 112.4 968.3 109.5C971.7 106.5 976.3 104.2 983.1 102.0C987.7 100.6 988.5 100.5 995.3 100.5C1002.7 100.5 1002.7 100.5 1008.7 103.5C1012.8 105.4 1015.7 107.3 1017.8 109.1C1022.6 113.4 1026.5 116.0 1028.2 116.0C1030.3 116.0 1031.3 115.3 1037.8 109.0C1045.9 101.2 1050.7 99.0 1058.5 99.7C1060.6 99.9 1063.2 99.7 1065.7 99.3C1071.4 98.1 1077.2 98.3 1084.3 99.8C1090.0 100.9 1090.6 101.0 1092.2 100.3C1094.5 99.3 1099.2 94.7 1101.9 90.6C1103.3 88.6 1105.0 86.9 1106.6 85.8C1108.1 84.9 1111.2 82.4 1113.5 80.2C1118.1 75.8 1121.8 73.2 1127.3 70.3C1129.2 69.3 1132.2 67.3 1133.8 65.9C1137.9 62.4 1140.3 61.4 1146.0 61.0C1148.6 60.8 1151.9 60.4 1153.4 60.0C1158.2 58.9 1181.5 59.6 1185.5 60.9C1187.3 61.6 1189.9 62.3 1191.2 62.5C1194.0 63.1 1204.0 67.3 1207.6 69.5C1208.8 70.3 1211.6 71.7 1213.7 72.7C1217.2 74.3 1218.5 75.4 1225.5 82.2C1234.7 91.3 1235.8 91.8 1239.4 88.8C1240.9 87.5 1248.0 83.0 1251.2 81.3C1254.4 79.7 1270.2 78.9 1280.0 79.8C1286.3 80.4 1290.2 82.2 1299.9 88.8C1307.8 94.3 1308.6 94.3 1314.0 89.3C1315.6 87.9 1318.4 86.1 1320.4 85.1C1322.5 84.2 1324.7 83.0 1325.4 82.4C1326.2 81.9 1330.0 79.8 1334.0 77.9C1341.2 74.4 1341.2 74.4 1350.0 74.7C1356.9 75.0 1359.6 74.9 1362.7 74.3C1366.1 73.6 1367.0 73.6 1370.2 74.2C1372.1 74.6 1375.3 75.1 1377.2 75.2C1381.6 75.6 1387.8 78.1 1399.8 84.3C1409.1 89.1 1409.3 89.3 1415.3 95.0C1424.0 103.4 1428.5 106.8 1432.6 108.0C1436.3 109.1 1438.3 110.9 1438.8 113.7C1439.0 115.0 1438.8 132.0 1438.4 149.6L1438.3 153.5L719.6 153.5L1.0 153.5L1.0 134.6Z'/%3E%3Crect y='149' width='1440' height='4'/%3E%3C/svg%3E") top / 100% 153px no-repeat,
                linear-gradient(#000 0 0) 0 151px / 100% calc(100% - 151px) no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 153' preserveAspectRatio='none'%3E%3Cpath d='M1.0 134.6C1.0 123.2 1.2 115.0 1.5 113.9C2.4 110.6 4.1 109.1 7.4 108.7C11.4 108.2 11.3 108.3 21.2 98.5C30.6 89.2 31.6 88.5 35.9 87.5C37.3 87.2 39.4 86.2 40.5 85.4C46.1 81.4 53.4 77.7 62.5 74.4C65.0 73.5 65.6 73.4 69.0 74.0C71.1 74.3 78.7 74.8 86.0 75.0C93.3 75.2 99.7 75.5 100.2 75.7C100.8 76.0 104.7 78.1 109.0 80.4C113.2 82.8 118.1 85.1 119.7 85.5C124.5 86.9 125.4 87.3 127.9 89.7C132.3 93.8 134.3 94.0 138.2 91.1C139.6 90.0 142.9 88.0 145.5 86.6C148.1 85.2 151.8 83.3 153.8 82.2C157.2 80.2 157.2 80.2 168.9 80.1C182.0 79.9 183.2 80.1 190.5 83.6C194.6 85.6 195.0 85.7 199.8 85.8C202.5 85.8 205.7 86.0 206.8 86.2C209.5 86.7 211.1 85.8 215.3 81.1C217.4 78.8 219.4 77.2 221.6 76.0C223.3 75.1 225.8 73.6 227.0 72.7C230.0 70.6 240.9 65.2 244.1 64.3C258.6 60.1 275.2 58.5 285.0 60.3C301.2 63.2 301.5 63.3 304.8 65.8C306.5 67.1 313.1 70.9 319.2 74.0C323.0 76.0 324.1 76.8 327.2 80.5C329.3 82.8 332.0 85.8 333.2 87.0C334.5 88.2 337.0 91.1 338.8 93.3C344.6 100.7 347.5 102.7 351.2 101.6C360.9 98.8 367.7 98.1 374.5 99.2C376.8 99.6 380.8 100.2 383.3 100.4C387.5 100.9 388.4 101.2 393.1 103.7C395.9 105.3 399.0 107.3 400.0 108.2C403.1 111.1 405.2 111.7 408.0 110.3C410.0 109.2 412.8 105.7 413.8 103.0C415.2 99.2 416.9 95.8 418.6 93.7C419.5 92.5 420.8 90.6 421.5 89.4C422.6 87.7 423.9 86.5 427.8 84.1C430.5 82.4 434.4 79.6 436.3 77.9C439.0 75.5 440.6 74.5 442.8 73.8C444.4 73.3 447.9 71.8 450.5 70.4C457.1 66.9 461.0 66.2 475.8 66.3C490.5 66.3 495.0 67.0 502.5 70.5C505.4 71.8 509.2 73.3 510.9 73.8C514.8 74.8 518.2 77.2 524.0 83.0C530.4 89.3 535.8 93.5 537.7 93.5C538.7 93.5 541.4 92.1 546.7 88.6C556.1 82.4 559.8 80.5 567.9 77.9C573.9 76.0 574.4 75.9 577.0 76.4C587.9 78.6 590.0 79.2 595.1 81.6C602.0 84.8 602.6 84.7 607.9 79.9C610.0 78.0 612.8 75.8 614.0 75.1C615.2 74.4 619.0 72.0 622.3 69.8C628.7 65.4 630.1 64.9 646.0 59.8C662.1 54.7 660.0 55.0 684.5 55.0C710.8 55.0 716.0 55.7 726.0 60.2C728.6 61.4 732.3 62.9 734.2 63.5C738.5 64.9 743.8 67.5 747.5 70.0C749.0 71.0 752.0 73.0 754.2 74.3C756.5 75.7 759.4 77.6 760.7 78.7C766.6 83.2 769.0 83.5 774.7 80.5C784.9 75.1 791.8 74.5 802.8 78.0C806.2 79.1 809.3 80.0 809.7 80.0C810.1 80.0 811.7 80.9 813.4 82.0C815.1 83.1 817.5 84.5 818.6 85.1C819.8 85.6 822.0 87.3 823.5 88.7C829.6 94.5 830.8 94.5 836.7 89.0C844.4 81.8 851.8 76.7 857.1 74.9C858.8 74.4 861.6 72.9 863.5 71.7C866.6 69.6 867.4 69.3 870.9 69.0C873.0 68.7 877.5 68.0 880.8 67.3C889.4 65.4 903.6 65.4 910.0 67.2C916.6 69.0 923.7 71.8 929.5 74.8C934.7 77.4 934.9 77.6 943.4 86.5C952.0 95.6 952.0 95.6 955.1 101.9C958.6 109.3 959.6 110.7 961.6 111.8C963.7 112.9 965.0 112.4 968.3 109.5C971.7 106.5 976.3 104.2 983.1 102.0C987.7 100.6 988.5 100.5 995.3 100.5C1002.7 100.5 1002.7 100.5 1008.7 103.5C1012.8 105.4 1015.7 107.3 1017.8 109.1C1022.6 113.4 1026.5 116.0 1028.2 116.0C1030.3 116.0 1031.3 115.3 1037.8 109.0C1045.9 101.2 1050.7 99.0 1058.5 99.7C1060.6 99.9 1063.2 99.7 1065.7 99.3C1071.4 98.1 1077.2 98.3 1084.3 99.8C1090.0 100.9 1090.6 101.0 1092.2 100.3C1094.5 99.3 1099.2 94.7 1101.9 90.6C1103.3 88.6 1105.0 86.9 1106.6 85.8C1108.1 84.9 1111.2 82.4 1113.5 80.2C1118.1 75.8 1121.8 73.2 1127.3 70.3C1129.2 69.3 1132.2 67.3 1133.8 65.9C1137.9 62.4 1140.3 61.4 1146.0 61.0C1148.6 60.8 1151.9 60.4 1153.4 60.0C1158.2 58.9 1181.5 59.6 1185.5 60.9C1187.3 61.6 1189.9 62.3 1191.2 62.5C1194.0 63.1 1204.0 67.3 1207.6 69.5C1208.8 70.3 1211.6 71.7 1213.7 72.7C1217.2 74.3 1218.5 75.4 1225.5 82.2C1234.7 91.3 1235.8 91.8 1239.4 88.8C1240.9 87.5 1248.0 83.0 1251.2 81.3C1254.4 79.7 1270.2 78.9 1280.0 79.8C1286.3 80.4 1290.2 82.2 1299.9 88.8C1307.8 94.3 1308.6 94.3 1314.0 89.3C1315.6 87.9 1318.4 86.1 1320.4 85.1C1322.5 84.2 1324.7 83.0 1325.4 82.4C1326.2 81.9 1330.0 79.8 1334.0 77.9C1341.2 74.4 1341.2 74.4 1350.0 74.7C1356.9 75.0 1359.6 74.9 1362.7 74.3C1366.1 73.6 1367.0 73.6 1370.2 74.2C1372.1 74.6 1375.3 75.1 1377.2 75.2C1381.6 75.6 1387.8 78.1 1399.8 84.3C1409.1 89.1 1409.3 89.3 1415.3 95.0C1424.0 103.4 1428.5 106.8 1432.6 108.0C1436.3 109.1 1438.3 110.9 1438.8 113.7C1439.0 115.0 1438.8 132.0 1438.4 149.6L1438.3 153.5L719.6 153.5L1.0 153.5L1.0 134.6Z'/%3E%3Crect y='149' width='1440' height='4'/%3E%3C/svg%3E") top / 100% 153px no-repeat,
                linear-gradient(#000 0 0) 0 151px / 100% calc(100% - 151px) no-repeat;
  text-align: center;
}
.cta .h2 { margin-top: 12px; }
.cta__btn { margin-top: 44px; width: 283px; height: 63px; }
.cta__spark { position: absolute; left: calc(50% + 166px); top: 178px; width: 69px; height: 67px; }
.cta__squiggle { position: absolute; left: calc(50% - 642px); top: 341px; width: 197px; height: 147px; }
.cta__photos {
  position: absolute; left: calc(50% - 715px); top: 593px;
  display: grid; grid-template-columns: 340px 354px 354px 341px; gap: 14px;
}
.cta__photos img {
  width: 100%; height: 448px; object-fit: cover;
  border: 3px solid #fff; border-radius: 8px;
  transition: transform .35s ease;
}
.cta__photos img:hover { transform: translateY(-6px) rotate(-1deg); }

/* =========================================================
   9. REVIEWS
   ========================================================= */
.reviews { position: relative; height: 967px; padding-top: 126px; background: var(--c-white); }
.reviews .h2 { margin-top: 13px; }
.reviews .lead { margin-top: 28px; }
.reviews__swirl { position: absolute; left: calc(50% - 501px); top: 114px; width: 110px; height: 142px; }
.reviews__row {
  position: absolute; left: calc(50% - 897px); top: 494px;
  display: flex; gap: 22px; align-items: flex-start;
}
.review {
  flex: 0 0 432px; height: 313px; border-radius: 8px; padding: 20px;
  transition: transform .3s ease;
}
.review.is-low { margin-top: 31px; }
.review:hover { transform: translateY(-6px); }
.review--blue   { background: #40B2F2; }
.review--pink   { background: #FFA0C7; }
.review--green  { background: #9DCA50; }
.review--purple { background: #8E91C7; }
.review > * { position: relative; }
.review::before { content: none; }
.review { display: flex; flex-direction: column; }
.review h3, .review blockquote { background: #fff; }
.review h3 {
  border-radius: 4px 4px 0 0; padding: 30px 30px 0;
  font-family: var(--f-sub); font-weight: 400; font-size: 28px; line-height: 40px; color: #2B1418;
}
.review blockquote {
  flex: 1; border-radius: 0 0 4px 4px; padding: 12px 34px 0 30px;
  font-family: var(--f-ui); font-weight: 500; font-size: 23.5px; line-height: 32px; color: #2B1418;
}

/* =========================================================
   10. FOOTER
   ========================================================= */
.footer { position: relative; height: 961px; background: #F7F0E7; overflow: hidden; }
.footer__art { position: absolute; right: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 140px); mask-image: linear-gradient(90deg, transparent 0, #000 140px); top: 269px; width: 1122px; height: 692px; pointer-events: none; }
.footer__sun { position: absolute; left: calc(50% - 269px); top: 328px; width: 149px; height: 149px; }
.footer__cloud { position: absolute; left: calc(50% + 271px); top: 148px; width: 180px; height: 118px; }
.footer__inner { position: relative; z-index: 1; max-width: var(--frame); margin: 0 auto; padding: 404px 0 0 99px; }
.footer__cols { display: grid; grid-template-columns: 340px 300px; margin-top: 66px; }
.footer h4 {
  font-family: var(--f-sub); font-weight: 400; font-size: 26px; line-height: 34px; color: #2B1418;
}
.footer__item {
  display: flex; align-items: center; gap: 14px; margin: 13px 0 22px;
  font-family: var(--f-sub); font-weight: 400; font-size: 19px; color: var(--c-text);
}
.footer__item svg { width: 24px; height: 24px; color: #2B1418; flex: none; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 48px; height: 48px; transition: transform .2s ease; }
.social a:hover { transform: translateY(-3px); }
.social svg { width: 100%; height: 100%; }
.footer__copy { position: absolute; left: 102px; top: 916px; font-family: var(--f-sub); font-size: 17px; color: var(--c-text); }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .tab, .slider__track { transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  :root { --gutter: 48px; }
  .header { padding: 0 var(--gutter); }
  .nav { left: 50%; transform: translate(-50%, -50%); }
  .hero { height: auto; padding-bottom: 100px; }
  .hero__media { position: relative; top: auto; left: auto; transform: none; margin: 64px auto 0; width: calc(100% - 2 * var(--gutter)); height: auto; aspect-ratio: 1200 / 656; }
  .hero__cloud { left: 6%; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--c-white); cursor: pointer; padding: 0 13px; }
  .burger span { height: 2.5px; background: var(--c-plum); border-radius: 2px; }
  .header.is-open .nav { display: flex; flex-direction: column; position: absolute; top: 90px; left: var(--gutter); right: var(--gutter); transform: none; background: var(--c-white); border-radius: 24px; padding: 24px; gap: 14px; box-shadow: 0 20px 40px -20px rgba(79,35,43,.3); }
  .logo svg { width: 120px; height: 61px; }
  .hero__title { font-size: clamp(30px, 7.2vw, 60px); line-height: 1.3; margin-top: 48px; }
  .hero__book { width: 13vw; height: auto; max-width: 90px; left: calc(100% + 10px); top: 0; }
  .hero__subtitle { font-size: clamp(18px, 3.6vw, 26px); line-height: 1.5; }
  .hero__cloud { width: 80px; height: 60px; top: auto; bottom: 90px; left: 4%; }
  .hero__cta { margin-top: 32px; width: 240px; height: 56px; font-size: 18px; }
}

@media (max-width: 520px) {
  :root { --gutter: 20px; }
  .hero { padding-top: 20px; }
  .hero__line:first-child { width: auto; }
  .hero__book { display: none; }
  .hero__cloud { display: none; }
  .hero__media { margin-top: 44px; aspect-ratio: 4 / 3.4; }
}

/* =========================================================
   RESPONSIVE – các section 3 → 10
   ========================================================= */
@media (max-width: 1280px) {
  .journey, .programs, .stats, .courses, .cta, .reviews, .footer { height: auto; }

  .journey { padding: 110px var(--gutter) 300px; }
  .journey__text { width: auto; max-width: 1100px; }
  .journey__text br { display: none; }
  .journey__sun { left: 12%; top: auto; bottom: 230px; width: 120px; height: 120px; }
  .cloud-band--up { top: auto; bottom: -1px; height: 260px; }

  .programs { padding: 60px var(--gutter) 110px; }
  .programs__swirl { left: auto; right: 4%; }
  .tabs { position: relative; left: auto; top: auto; width: 100%; margin-top: 56px; }
  .tab__panel { width: calc(100vw - 2 * var(--gutter) - 3 * 64px); max-width: 1050px; }
  .tab__img { width: 42%; height: 100%; }
  .tab__body { width: auto; flex: 1; padding-top: 32px; padding-right: 16px; }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 110px var(--gutter); }
  .stat { position: static; transform: none; }

  .courses { padding: 110px 0 140px; }
  .slider { position: relative; left: auto; top: auto; width: calc(100% - 2 * var(--gutter)); max-width: 1202px; margin: 56px auto 0; }

  .cta { padding-bottom: 110px; }
  .cta__photos { position: relative; left: auto; top: auto; margin-top: 64px; grid-template-columns: repeat(4, 1fr); padding: 0 6px; }
  .cta__photos img { height: auto; aspect-ratio: 340 / 448; }
  .cta__spark { left: auto; right: 30%; }
  .cta__squiggle { left: 3%; }

  .reviews { padding-bottom: 320px; }
  .reviews__swirl { left: 6%; }
  .reviews__row {
    position: relative; left: auto; top: auto; margin-top: 56px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 40px;
    scrollbar-width: none;
  }
  .reviews__row::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: center; }

  .footer { min-height: 820px; }
  .footer__inner { padding: 360px var(--gutter) 40px; }
  .footer__copy { position: static; margin-top: 120px; }
  .footer__art { left: auto; right: 0; top: auto; bottom: 0; width: min(1122px, 75vw); height: auto; }
  .footer__sun { left: 34%; }
  .footer__cloud { left: auto; right: 22%; }
}

@media (max-width: 900px) {
  .h2 { font-size: clamp(30px, 6.4vw, 48px); line-height: 1.22; letter-spacing: -.5px; }
  .h2 br { display: none; }
  .lead { font-size: clamp(17px, 3.4vw, 24px); line-height: 1.6; letter-spacing: .3px; padding: 0 var(--gutter); }
  .lead br { display: none; }
  .eyebrow { font-size: 24px; }

  .journey__text { font-size: clamp(17px, 3.4vw, 24px); line-height: 2; }
  .ico-inline { width: 40px; height: 40px; margin: -10px 2px -8px; }
  .journey__cta { width: auto; padding: 0 28px; height: 56px; font-size: 18px; }

  /* Programs → accordion dọc */
  .tabs { flex-direction: column; height: auto; }
  .tab { flex: none !important; height: 60px; transition: height .45s ease; }
  .tab.is-open { height: auto; }
  .tab__label { width: 100%; height: 60px; writing-mode: horizontal-tb; transform: none; justify-content: flex-start; padding: 0 22px; }
  .tab__panel { position: relative; width: 100%; height: auto; flex-direction: column; gap: 18px; }
  .tab:not(.is-open) .tab__panel { display: none; }
  .tab__img { width: 100%; height: auto; aspect-ratio: 490 / 414; }
  .tab__body { padding: 0 4px 8px; }
  .tab__title { font-size: 24px; }
  .tab__desc { font-size: 19px; line-height: 1.55; }
  .tab__meta { font-size: 17px; height: auto; padding: 12px 0; flex-wrap: wrap; gap: 8px 0; }
  .tab__meta span + span { padding-left: 14px; }
  .tab .btn--light { width: 100%; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 56px; padding: 80px var(--gutter); }
  .stat__ico { width: 120px; height: 120px; }
  .stat__num { font-size: 46px; line-height: 1.3; margin-top: 14px; }
  .stat__lbl { font-size: clamp(15px, 3.6vw, 18px); margin-top: 4px; white-space: normal; }

  .marquee { height: 80px; }
  .marquee__group span { font-size: 18px; }
  .marquee__group svg { width: 26px; height: 26px; }

  .slider__viewport { overflow: visible; }
  .courses { overflow: hidden; }
  .course { flex-basis: min(385px, 82vw); height: auto; padding: 18px 16px 24px; }
  .course__media { width: 100%; height: auto; aspect-ratio: 341 / 261; }
  .course__meta { width: 100%; }
  .course .btn--sm { position: static; width: 100%; margin-top: 22px; }

  .cta { padding-left: var(--gutter); padding-right: var(--gutter); }
  .cta__photos { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; }
  .cta__squiggle { width: 110px; height: auto; top: 260px; }
  .cta__btn { width: 240px; height: 56px; }

  .reviews__swirl, .programs__swirl { display: none; }
  .review { flex-basis: min(432px, 84vw); height: auto; min-height: 280px; }
  .review.is-low { margin-top: 0; }

  .footer { display: flex; flex-direction: column; min-height: 0; }
  .footer__inner { padding-top: 230px; padding-bottom: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__art { position: relative; order: 2; right: auto; width: 100%; margin-top: 8px; }
  .footer__sun { top: 190px; left: auto; right: 10%; width: 90px; height: 90px; }
  .course__desc br { display: none; }
  .footer__cloud { display: none; }
  .footer__copy { margin-top: 40px; }
}

@media (max-width: 520px) {
  .journey { padding-bottom: 220px; }
  .journey__sun { display: none; }
  .cloud-band--up { height: 180px; }
  .cloud-band--down { height: 220px; }
  .programs__swirl, .reviews__swirl, .cta__spark { display: none; }
  .cta__squiggle { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .logo--lg svg { width: 180px; height: 91px; }
}
