:root {
  color-scheme: light;
  --kids-theme: #93c2b4;
  --kids-theme-pale: #dfece7;
  --kids-ink: #0b2932;
  --kids-ink-soft: #163a42;
  --kids-paper: #f3f0e8;
  --kids-white: #fffdf8;
  --kids-line: rgba(11, 41, 50, .16);
  --section-x: clamp(24px, 6.6vw, 108px);
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--kids-paper); }
body.certificate-modal-open { overflow: hidden; }

.kids-page {
  min-height: 100vh;
  overflow: hidden;
  background: var(--kids-paper);
  color: var(--kids-ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.kids-page * { box-sizing: border-box; }
.kids-page a { color: inherit; text-decoration: none; }
.kids-page img, .kids-page video { display: block; max-width: 100%; }
.kids-page button { font: inherit; }

.kids-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  width: min(1560px, 100%);
  height: 92px;
  margin: 0 auto;
  padding: 0 var(--section-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.kids-wordmark {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .24em;
}

.kids-nav-links { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); font-size: 11px; font-weight: 800; }
.kids-nav-links > a { opacity: .74; transition: opacity .2s ease; }
.kids-nav-links > a:hover, .kids-nav-links > a:focus-visible { opacity: 1; }
.kids-nav-links .nav-cta { padding: 13px 19px; border: 1px solid rgba(255, 255, 255, .52); border-radius: 999px; opacity: 1; }

.kids-hero {
  position: relative;
  min-height: min(900px, 100svh);
  color: white;
  background: var(--kids-ink);
  isolation: isolate;
}

.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 28, 36, .94) 0%, rgba(5, 28, 36, .83) 35%, rgba(5, 28, 36, .32) 67%, rgba(5, 28, 36, .08) 100%),
    linear-gradient(0deg, rgba(5, 28, 36, .48), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1560px, 100%);
  min-height: min(900px, 100svh);
  margin: 0 auto;
  padding: 132px var(--section-x) 62px;
  display: grid;
  grid-template-columns: 82px minmax(0, 620px) 1fr;
  gap: clamp(24px, 3.8vw, 62px);
  align-items: center;
}

.hero-index { align-self: stretch; padding-top: 18vh; display: flex; flex-direction: column; align-items: center; gap: 20px; border-right: 1px solid rgba(255, 255, 255, .24); }
.hero-index span { font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.hero-index b { font-size: 8px; line-height: 1.65; letter-spacing: .18em; writing-mode: vertical-rl; }
.eyebrow { margin: 0; color: #52796f; font-size: 10px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.hero-copy .eyebrow, .light-heading .eyebrow { color: var(--kids-theme); }
.hero-copy h1 {
  max-width: 680px;
  margin: 28px 0 29px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(58px, 6.2vw, 96px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -.065em;
}

.hero-copy h1 em { color: var(--kids-theme); font-style: normal; }
.hero-emotion { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.9; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.button { min-height: 54px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .04em; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { min-width: 142px; background: var(--kids-theme); color: var(--kids-ink); box-shadow: 0 18px 50px rgba(147, 194, 180, .24); }
.text-link { padding-bottom: 7px; border-bottom: 1px solid rgba(255, 255, 255, .35); color: rgba(255, 255, 255, .78); font-size: 11px; font-weight: 800; }
.text-link span { margin-left: 13px; color: var(--kids-theme); }
.hero-note { align-self: end; justify-self: end; max-width: 235px; margin: 0; padding: 18px 0 0 22px; border-top: 1px solid rgba(255, 255, 255, .55); color: rgba(255, 255, 255, .82); font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.75; }

.course-overview { background: var(--kids-white); color: var(--kids-ink); }
.overview-lower { background: var(--kids-white); }
.overview-included { width: min(1560px, 100%); margin: 0 auto; padding: 34px var(--section-x) 30px; }
.overview-included h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.overview-points { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--kids-line); }
.overview-points span { min-height: 52px; padding: 14px 17px; display: flex; align-items: center; border-right: 1px solid var(--kids-line); font-family: Georgia, "Songti SC", serif; font-size: clamp(11px, 1.05vw, 14px); line-height: 1.45; }
.overview-points span:last-child { border-right: 0; }
.overview-actions { margin-top: 15px; display: grid; grid-template-columns: minmax(330px, 430px) minmax(0, 1fr); gap: clamp(22px, 4vw, 60px); align-items: center; }
.kids-page .certificate-badge { width: 100%; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--kids-ink); color: white; cursor: pointer; }
.kids-page .certificate-badge:hover, .kids-page .certificate-badge:focus-visible { background: var(--kids-ink-soft); }
.kids-page .certificate-badge:focus-visible { outline: 3px solid var(--kids-theme); outline-offset: 3px; }
.certificate-badge span { color: var(--kids-theme); font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.certificate-badge strong { font-family: Georgia, "Songti SC", serif; font-size: 14px; font-weight: 500; }
.certificate-badge i { margin-left: auto; color: var(--kids-theme); font-size: 9px; font-style: normal; font-weight: 800; }
.overview-notes p { margin: 0; color: rgba(11, 41, 50, .56); font-size: 9px; line-height: 1.7; }

.certificate-modal[hidden] { display: none; }
.certificate-modal { position: fixed; z-index: 100; inset: 0; padding: 24px; display: grid; place-items: center; }
.certificate-backdrop { position: absolute; inset: 0; background: rgba(5, 28, 36, .86); backdrop-filter: blur(8px); }
.certificate-dialog { position: relative; z-index: 1; width: min(860px, 100%); max-height: calc(100svh - 48px); overflow: auto; border: 1px solid rgba(255, 255, 255, .16); background: var(--kids-white); color: var(--kids-ink); box-shadow: 0 34px 100px rgba(0, 0, 0, .42); }
.certificate-dialog:focus { outline: 0; }
.certificate-dialog-header { min-height: 82px; padding: 17px 20px 15px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--kids-line); }
.certificate-dialog-header p { margin: 0 0 5px; color: #52796f; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.certificate-dialog-header h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 24px; font-weight: 500; }
.certificate-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--kids-line); border-radius: 50%; background: transparent; color: var(--kids-ink); font-size: 25px; line-height: 1; cursor: pointer; }
.certificate-close:hover, .certificate-close:focus-visible { background: var(--kids-theme-pale); outline: 0; }
.certificate-dialog figure { margin: 0; padding: 24px; }
.certificate-dialog img { width: 100%; height: auto; object-fit: contain; background: #eaf3f5; }
.certificate-dialog figcaption { margin-top: 14px; color: rgba(11, 41, 50, .62); font-size: 10px; line-height: 1.7; }

.stories-section { padding: 126px 0 112px; overflow: hidden; background: var(--kids-ink); color: white; }
.editorial-heading {
  width: min(1360px, 100%);
  margin: 0 auto 68px;
  padding: 0 var(--section-x);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .58fr);
  gap: clamp(48px, 9vw, 160px);
  align-items: end;
}

.editorial-heading h2 {
  max-width: 760px;
  margin: 22px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(43px, 5vw, 70px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.heading-side > p { margin: 0; color: #66797b; font-size: 13px; line-height: 1.9; }
.light-heading .heading-side > p { color: rgba(255, 255, 255, .57); }
.story-controls { margin-top: 34px; display: flex; align-items: center; gap: 19px; }
.story-controls button { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: transparent; color: white; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.story-controls button:hover, .story-controls button:focus-visible { background: var(--kids-theme); color: var(--kids-ink); outline: 0; }
.story-controls button:disabled { opacity: .25; cursor: default; }
.story-controls span { min-width: 58px; color: rgba(255, 255, 255, .4); font-family: Georgia, serif; font-size: 12px; letter-spacing: .12em; }
.story-controls b { color: white; font-size: 20px; font-weight: 500; }

.story-viewport { width: 100%; padding: 0 var(--section-x) 20px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--section-x); scrollbar-width: none; overscroll-behavior-x: contain; }
.story-viewport::-webkit-scrollbar { display: none; }
.story-viewport:focus-visible { outline: 1px solid var(--kids-theme); outline-offset: -1px; }
.story-track { width: max-content; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(286px, 24vw, 360px); gap: clamp(18px, 2vw, 30px); }
.story-card { min-width: 0; scroll-snap-align: start; opacity: .58; transform: scale(.985); transform-origin: bottom center; transition: opacity .35s ease, transform .35s ease; }
.story-card.active { opacity: 1; transform: scale(1); }
.story-video { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 48% 48% 10px 10px / 16% 16% 10px 10px; background: #061d26; box-shadow: 0 26px 70px rgba(0, 0, 0, .26); }
.story-video video { width: 100%; height: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #061d26; }
.story-number { position: absolute; z-index: 2; top: 22px; left: 22px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .64); border-radius: 50%; background: rgba(5, 29, 37, .16); color: white; font-family: Georgia, serif; font-size: 12px; pointer-events: none; backdrop-filter: blur(8px); }
.story-copy { padding: 24px 5px 0; }
.story-copy p { margin: 0 0 12px; color: var(--kids-theme); font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.story-copy h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 23px; font-weight: 500; line-height: 1.3; }
.story-copy > span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .48); font-size: 11px; line-height: 1.65; }
.story-footer { width: min(1360px, 100%); margin: 43px auto 0; padding: 0 var(--section-x); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.story-footer > p { max-width: 650px; margin: 0; color: rgba(255, 255, 255, .42); font-size: 10px; line-height: 1.7; text-align: right; }
.story-dots { display: flex; align-items: center; gap: 9px; }
.story-dots span { width: 20px; height: 2px; display: block; background: rgba(255, 255, 255, .2); transition: width .25s ease, background .25s ease; }
.story-dots span.active { width: 44px; background: var(--kids-theme); }

.kids-footer { min-height: 170px; padding: 48px var(--section-x); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--kids-ink); color: white; }
.kids-footer p { margin: 0; color: rgba(255, 255, 255, .35); font-size: 8px; letter-spacing: .2em; }
.mobile-booking-bar { display: none; }

@media (max-width: 1040px) {
  .hero-content { grid-template-columns: 62px minmax(0, 590px) 1fr; }
  .overview-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-points span:nth-child(2) { border-right: 0; }
  .overview-points span:nth-child(-n+2) { border-bottom: 1px solid rgba(11, 41, 50, .16); }
  .story-track { grid-auto-columns: clamp(286px, 36vw, 350px); }
}

@media (max-width: 760px) {
  :root { --section-x: 20px; }
  .kids-nav { height: 70px; }
  .kids-nav-links > a:not(.nav-cta) { display: none; }
  .kids-nav-links .nav-cta { padding: 10px 14px; }
  .kids-hero, .hero-content { min-height: 760px; }
  .hero-image img { object-position: 64% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(5, 28, 36, .96) 0%, rgba(5, 28, 36, .76) 46%, rgba(5, 28, 36, .15) 100%); }
  .hero-content { padding-top: 108px; padding-bottom: 38px; grid-template-columns: 1fr; align-content: end; }
  .hero-index { position: absolute; top: 90px; left: 20px; align-self: auto; padding: 0; flex-direction: row; border: 0; }
  .hero-index b { writing-mode: initial; }
  .hero-copy h1 { margin: 18px 0 21px; font-size: clamp(51px, 15vw, 69px); line-height: .99; }
  .hero-emotion { font-size: 13px; }
  .hero-actions { margin-top: 29px; }
  .hero-note { justify-self: start; max-width: 270px; padding: 13px 0 0; border-top-color: rgba(255, 255, 255, .35); font-size: 12px; }
  .overview-included { padding: 24px 20px 22px; }
  .overview-included h2 { font-size: 18px; }
  .overview-points { margin-top: 16px; }
  .overview-points span { min-height: 54px; padding: 11px 10px; font-size: 11px; line-height: 1.45; }
  .overview-actions { margin-top: 14px; grid-template-columns: 1fr; gap: 10px; }
  .kids-page .certificate-badge { min-height: 46px; padding: 0 12px; gap: 8px; }
  .certificate-badge span { font-size: 7px; }
  .certificate-badge strong { font-size: 12px; }
  .certificate-badge i { font-size: 8px; }
  .overview-notes p { font-size: 9px; line-height: 1.6; }
  .certificate-modal { padding: 16px; }
  .certificate-dialog { max-height: calc(100svh - 32px); }
  .certificate-dialog-header { min-height: 70px; padding: 12px 12px 11px 16px; }
  .certificate-dialog-header h2 { font-size: 19px; }
  .certificate-dialog figure { padding: 14px 14px 16px; }
  .certificate-dialog figcaption { margin-top: 10px; font-size: 9px; line-height: 1.6; }
  .stories-section { padding-top: 82px; padding-bottom: 82px; }
  .editorial-heading { margin-bottom: 43px; grid-template-columns: 1fr; gap: 24px; }
  .editorial-heading h2 { max-width: 480px; font-size: clamp(38px, 11vw, 50px); }
  .heading-side > p { font-size: 12px; line-height: 1.8; }
  .story-controls { margin-top: 25px; justify-content: space-between; }
  .story-viewport { scroll-padding-left: 20px; }
  .story-track { grid-auto-columns: min(78vw, 330px); gap: 16px; }
  .story-copy h3 { font-size: 21px; }
  .story-footer { margin-top: 26px; display: grid; }
  .story-footer > p { text-align: left; }
  .kids-footer { min-height: 205px; padding-bottom: 102px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; }
  .mobile-booking-bar { position: fixed; z-index: 50; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 68px; padding: 9px 9px 9px 17px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(11, 41, 50, .95); color: white; box-shadow: 0 16px 44px rgba(5, 22, 29, .34); backdrop-filter: blur(16px); }
  .mobile-booking-bar div { min-width: 0; display: grid; gap: 4px; }
  .mobile-booking-bar small { color: rgba(255, 255, 255, .5); font-size: 8px; }
  .mobile-booking-bar strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-booking-bar > a { min-width: 104px; min-height: 48px; display: grid; place-items: center; background: var(--kids-theme); color: var(--kids-ink); font-size: 12px; font-weight: 900; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kids-page *, .kids-page *::before, .kids-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
