:root {
  --navy-950: #172554;
  --navy-900: #1e3a8a;
  --navy-700: #2746a6;
  --navy-100: #e0e7ff;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --purple-600: #6d28d9;
  --purple-100: #ede9fe;
  --lime-600: #65a30d;
  --lime-100: #ecfccb;
  --orange-600: #ea580c;
  --orange-100: #ffedd5;
  --teal-600: #0d9488;
  --teal-100: #ccfbf1;
  --sky-100: #e0f2fe;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(23, 37, 84, 0.06);
  --shadow: 0 12px 32px -12px rgba(23, 37, 84, 0.25);
  --shadow-lg: 0 24px 56px -20px rgba(23, 37, 84, 0.35);
  --header-h: 72px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-my: 'Noto Sans Myanmar', 'Padauk', 'Myanmar Text', sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

html[lang='my'] body {
  font-family: 'Montserrat', var(--font-my);
  line-height: 1.9;
}

html[lang='my'] .hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  color: var(--navy-950);
  font-weight: 800;
}

html[lang='my'] h1,
html[lang='my'] h2,
html[lang='my'] h3,
html[lang='my'] h4 {
  line-height: 1.6;
  font-weight: 700;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 20px;
}

[data-value^='phone'] {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--amber-500);
  color: var(--navy-950);
  box-shadow: 0 10px 24px -10px rgba(245, 158, 11, 0.8);
}

.btn-accent:hover {
  background: var(--amber-400);
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-950);
}

.btn-outline {
  border-color: currentColor;
  background: transparent;
}

.btn-light {
  background: var(--white);
  color: var(--navy-950);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  margin-right: auto;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-text strong {
  color: var(--navy-950);
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--navy-950);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html[lang='my'] .main-nav a {
  padding-inline: 0.65rem;
  font-size: 0.9rem;
}

.main-nav a:hover {
  background: var(--navy-100);
}

.main-nav a[aria-current='page'] {
  background: var(--navy-950);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-actions .btn {
  white-space: nowrap;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--navy-900);
}

.lang-toggle [data-lang-label] {
  font-family: var(--font-my), var(--font);
}

html[lang='my'] .lang-toggle [data-lang-label] {
  font-family: var(--font);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy-950);
  cursor: pointer;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2.5px auto;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  padding: 88px 0;
}

.section-tint {
  background: var(--white);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head.align-left {
  margin-left: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--amber-100);
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[lang='my'] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  min-height: clamp(560px, 82vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
  color: var(--white);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 37, 84, 0.92) 0%, rgba(23, 37, 84, 0.72) 45%, rgba(23, 37, 84, 0.2) 100%),
    linear-gradient(0deg, rgba(23, 37, 84, 0.6) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: 96px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-badge .icon {
  color: var(--amber-400);
}

.hero h1 {
  max-width: 17ch;
  color: var(--white);
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--amber-400);
}

.hero-lead {
  max-width: 36rem;
  margin: 1.25rem 0 2rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-outline {
  color: var(--white);
}

.hero .btn-outline:hover {
  background: var(--white);
  color: var(--navy-950);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 88px;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dots button[aria-current='true'] {
  width: 32px;
  background: var(--amber-400);
}

.stats {
  position: relative;
  z-index: 5;
  margin-top: -56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.stats.stats-inline {
  margin-top: 0;
  padding-bottom: 24px;
}

.stat {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--navy-900);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
}

.stat:nth-child(2) strong {
  color: var(--purple-600);
}

.stat:nth-child(3) strong {
  color: var(--orange-600);
}

.stat:nth-child(4) strong {
  color: var(--teal-600);
}

.stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.split-text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.split-text p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.split-text .btn-row {
  margin-top: 1.75rem;
}

.photo-frame {
  position: relative;
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.photo-frame.tall img {
  aspect-ratio: 4 / 5;
}

.photo-frame::before {
  content: '';
  position: absolute;
  inset: auto auto -18px -18px;
  z-index: -1;
  width: 55%;
  height: 55%;
  border-radius: var(--radius-lg);
  background: var(--amber-400);
}

.split.reverse .photo-frame::before {
  inset: -18px -18px auto auto;
  background: var(--purple-100);
}

.vision-card {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--amber-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--amber-100);
}

.vision-card h3 {
  font-size: 0.85rem;
  color: #92400e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vision-card p {
  margin-top: 0.35rem;
  color: var(--navy-950);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-top: 1.1rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 1.5rem;
}

.tone-navy .icon-badge {
  background: var(--navy-100);
  color: var(--navy-900);
}

.tone-amber .icon-badge {
  background: var(--amber-100);
  color: #b45309;
}

.tone-purple .icon-badge {
  background: var(--purple-100);
  color: var(--purple-600);
}

.tone-lime .icon-badge {
  background: var(--lime-100);
  color: var(--lime-600);
}

.tone-orange .icon-badge {
  background: var(--orange-100);
  color: var(--orange-600);
}

.tone-teal .icon-badge {
  background: var(--teal-100);
  color: var(--teal-600);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.level-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.level-card.tone-orange {
  background: linear-gradient(150deg, #f97316, #c2410c);
}

.level-card.tone-purple {
  background: linear-gradient(150deg, #7c3aed, #5b21b6);
}

.level-card.tone-navy {
  background: linear-gradient(150deg, var(--navy-700), var(--navy-950));
}

.level-card small {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.level-card h3 {
  margin: 0.35rem 0 0.75rem;
  color: var(--white);
  font-size: 1.5rem;
}

.level-card p {
  opacity: 0.92;
}

.level-card .link-arrow {
  margin-top: auto;
  padding-top: 1.25rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}

.link-arrow .icon {
  transition: transform 0.2s ease;
}

a:hover > .link-arrow .icon,
.link-arrow:hover .icon {
  transform: translateX(4px);
}

.parent-corner {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}

.parent-corner .section-head h2 {
  color: var(--white);
}

.parent-corner .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

.parent-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.parent-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

a.parent-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.parent-card .icon {
  width: 32px;
  height: 32px;
  color: var(--amber-400);
}

.parent-card h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.parent-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.parent-card.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  padding: 2rem;
  border: 0;
  background: linear-gradient(145deg, var(--amber-400), var(--amber-500));
  color: var(--navy-950);
}

.parent-card.is-featured:hover {
  background: linear-gradient(145deg, #fcd34d, var(--amber-400));
}

.parent-card.is-featured .icon {
  width: 48px;
  height: 48px;
  color: var(--navy-950);
}

.parent-card .link-arrow .icon {
  width: 1.25em;
  height: 1.25em;
}

.parent-card.is-featured h3 {
  color: var(--navy-950);
  font-size: 1.6rem;
}

.parent-card.is-featured p {
  color: rgba(23, 37, 84, 0.85);
  font-size: 1rem;
}

.kids-zone {
  position: relative;
  overflow: hidden;
  background: #fffbeb;
}

.kids-zone::before,
.kids-zone::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.kids-zone::before {
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: var(--lime-100);
}

.kids-zone::after {
  bottom: -100px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: var(--purple-100);
}

.kids-zone .container {
  position: relative;
  z-index: 1;
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4.5rem) / 3);
  gap: 1.25rem;
  margin: 0 -1rem;
  padding: 0.75rem 1rem 1.75rem;
  overflow-x: auto;
  scroll-padding-inline: 1rem;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.voice-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 20px -12px rgba(23, 37, 84, 0.3);
}

.voice-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
}

.voice-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.5rem;
}

.voice-body blockquote {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.voice-body footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}

.voice-body strong {
  display: block;
  color: var(--navy-950);
  font-weight: 800;
}

.voice-body span {
  color: var(--purple-600);
  font-size: 0.85rem;
  font-weight: 700;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.round-btn:hover {
  background: var(--navy-700);
  transform: scale(1.06);
}

.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.quiz {
  max-width: 760px;
  margin: 4rem auto 0;
  padding: 2rem;
  border: 3px dashed var(--amber-400);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.quiz h3 {
  font-size: 1.5rem;
}

.quiz-intro {
  margin-top: 0.5rem;
  color: var(--muted);
}

.quiz-progress {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0 1rem;
}

.quiz-progress span {
  width: 36px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.3s ease;
}

.quiz-progress span.is-done {
  background: var(--amber-500);
}

.quiz-question {
  margin-bottom: 1.25rem;
  color: var(--navy-950);
  font-size: 1.15rem;
  font-weight: 700;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quiz-option {
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.quiz-option:hover {
  border-color: var(--purple-600);
  background: var(--purple-100);
  transform: translateY(-2px);
}

.quiz-result {
  padding: 1rem 0 0.5rem;
}

.quiz-result .icon-badge {
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--amber-100);
  color: #b45309;
}

.quiz-result .icon {
  width: 36px;
  height: 36px;
}

.quiz-result-name {
  font-size: 1.5rem;
  color: var(--purple-600);
}

.quiz-result p {
  max-width: 32rem;
  margin: 0.5rem auto 1.25rem;
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.mosaic a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.mosaic a:first-child {
  grid-row: span 2;
}

.mosaic a:last-child {
  grid-column: span 2;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic a:hover img {
  transform: scale(1.05);
}

.mosaic span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-950);
  font-size: 0.8rem;
  font-weight: 700;
}

.center-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: var(--shadow);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: var(--navy-950);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--amber-500);
  transition: transform 0.25s ease;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}

.visit-band {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple-600), var(--navy-900));
  color: var(--white);
}

.visit-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.visit-band p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.visit-band .btn-row {
  justify-content: flex-end;
}

.visit-band .btn-outline {
  color: var(--white);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  padding: 64px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--hero-shade) 0%, transparent 70%),
    linear-gradient(120deg, var(--hero-from), var(--hero-to));
  color: var(--white);
}

.hero-blue {
  --hero-shade: rgba(20, 45, 140, 0.55);
  --hero-from: #2f6df0;
  --hero-to: #7aa6ff;
  --shape-1: var(--amber-400);
  --shape-2: #ff6b5e;
}

.hero-coral {
  --hero-shade: rgba(190, 55, 45, 0.55);
  --hero-from: #ff6b5e;
  --hero-to: #ffa05e;
  --shape-1: rgba(255, 255, 255, 0.35);
  --shape-2: var(--amber-400);
}

.hero-mint {
  --hero-shade: rgba(8, 110, 92, 0.55);
  --hero-from: #27c2a0;
  --hero-to: #3fd0c0;
  --shape-1: var(--amber-400);
  --shape-2: rgba(255, 255, 255, 0.4);
}

.hero-amber {
  --hero-shade: rgba(185, 90, 0, 0.5);
  --hero-from: #ffb01f;
  --hero-to: #ff8a00;
  --shape-1: rgba(255, 255, 255, 0.35);
  --shape-2: #ff6b5e;
}

.hero-royal {
  --hero-shade: rgba(12, 30, 95, 0.45);
  --hero-from: #1a4bc4;
  --hero-to: #2f6df0;
  --shape-1: #27c2a0;
  --shape-2: var(--amber-400);
}

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  animation: float 6s ease-in-out infinite;
}

.hero-shapes span:nth-child(1) {
  top: 14%;
  right: 12%;
  width: 120px;
  height: 120px;
  background: var(--shape-1);
}

.hero-shapes span:nth-child(2) {
  right: 30%;
  bottom: 16%;
  width: 70px;
  height: 70px;
  background: var(--shape-2);
  animation-delay: 1s;
}

.hero-shapes span:nth-child(3) {
  top: 34%;
  right: 44%;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.4);
  animation-delay: 2s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

.page-hero .container {
  position: relative;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 0.875rem;
  font-weight: 700;
}

.page-hero h1 {
  max-width: 18ch;
  color: var(--white);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

.page-lead {
  max-width: 38rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

.feature-rows {
  display: grid;
  gap: 5rem;
}

.badge-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--navy-950);
  color: var(--white);
}

.badge-card .icon-badge {
  width: 72px;
  height: 72px;
  background: var(--amber-500);
  color: var(--navy-950);
}

.badge-card .icon {
  width: 36px;
  height: 36px;
}

.badge-card h3 {
  color: var(--white);
  font-size: 1.25rem;
}

.badge-card p {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.team-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
}

.team-card div {
  padding: 1.1rem 1rem 1.3rem;
}

.team-card h3 {
  font-size: 1.05rem;
}

.team-card p {
  margin-top: 0.25rem;
  color: var(--purple-600);
  font-size: 0.875rem;
  font-weight: 700;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2.5rem;
  padding: 0.4rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: none;
  min-height: 44px;
  padding: 0.6rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab[aria-selected='true'] {
  background: var(--navy-950);
  color: var(--white);
}

.js [role='tabpanel'][hidden] {
  display: none;
}

.course-panel + .course-panel {
  margin-top: 3rem;
}

.js .course-panel + .course-panel {
  margin-top: 0;
}

.panel-title {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.course-card {
  padding: 1.75rem;
  border-top: 6px solid var(--navy-900);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.course-card.tone-orange {
  border-color: var(--orange-600);
}

.course-card.tone-purple {
  border-color: var(--purple-600);
}

.course-card.tone-lime {
  border-color: var(--lime-600);
}

.course-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-card h3 {
  margin: 0.25rem 0 1rem;
  font-size: 1.3rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy-950);
  font-size: 0.85rem;
  font-weight: 600;
}

.year-table {
  width: 100%;
  margin-top: 2.5rem;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.year-table caption {
  padding-bottom: 1rem;
  color: var(--navy-950);
  font-weight: 800;
  text-align: left;
}

.year-table th,
.year-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.year-table th {
  background: var(--navy-950);
  color: var(--white);
  font-weight: 700;
}

.year-table tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--amber-500);
  color: var(--navy-950);
  font-size: 1.25rem;
  font-weight: 800;
}

.step h3 {
  font-size: 1.15rem;
}

.step p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-950);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--navy-900);
}

.filter-btn[aria-pressed='true'] {
  border-color: var(--navy-950);
  background: var(--navy-950);
  color: var(--white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--line);
  cursor: zoom-in;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 37, 84, 0.85);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 16, 40, 0.94);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(10, 16, 40, 0.6);
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(1100px, 92vw);
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  width: auto;
  border-radius: var(--radius-sm);
  touch-action: pan-y;
}

.lightbox figcaption {
  font-weight: 600;
  text-align: center;
}

.lightbox .round-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
}

.lightbox .round-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.map-frame {
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.form-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 1.5rem;
}

.form-card > p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--navy-950);
  font-size: 0.875rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  background: var(--white);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-hint {
  color: var(--muted);
  font-weight: 500;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.is-error {
  color: #b91c1c;
}

.form-card form {
  position: relative;
}

.form-success,
.form-closed {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0.5rem;
  text-align: center;
}

.form-success[hidden],
.form-closed[hidden] {
  display: none;
}

.form-closed .icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--amber-100);
  color: #b45309;
}

.form-closed .icon-badge .icon {
  width: 36px;
  height: 36px;
}

.form-closed h2 {
  font-size: 1.5rem;
  outline: none;
}

.form-closed p {
  max-width: 26rem;
  color: var(--muted);
}

.form-success .icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.form-success .icon-badge .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.5;
}

.form-success h2 {
  font-size: 1.75rem;
  outline: none;
}

.form-success p {
  max-width: 26rem;
  color: var(--muted);
}

.form-success .btn {
  margin-top: 0.75rem;
}

.form-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-row.on-light {
  justify-content: center;
}

.on-light .social-link {
  background: var(--navy-950);
  color: var(--white);
}

.on-light .social-link:hover {
  background: var(--navy-700);
}

.center-cta .social-row {
  justify-content: center;
}

.follow-us {
  margin: 4rem auto 0;
}

.follow-us h2 {
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.enrich-grid {
  grid-template-columns: repeat(5, 1fr);
}

.enrich-grid .feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

.site-footer {
  padding: 64px 0 28px;
  background: #0b1433;
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 50%;
  background: var(--white);
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 1rem;
}

.site-footer li + li {
  margin-top: 0.45rem;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.site-footer .social-row {
  margin-top: 1.25rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.quick-bar {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--amber-500);
}

.not-found p {
  margin: 0.5rem 0 1.5rem;
  color: var(--muted);
}

.type-assessment {
  --tone: #dc2626;
  --tone-soft: #fee2e2;
}

.type-openhouse {
  --tone: var(--teal-600);
  --tone-soft: var(--teal-100);
}

.type-competition {
  --tone: var(--purple-600);
  --tone-soft: var(--purple-100);
}

.type-festival {
  --tone: #d97706;
  --tone-soft: var(--amber-100);
}

.type-talk {
  --tone: #0284c7;
  --tone-soft: var(--sky-100);
}

.type-school {
  --tone: var(--lime-600);
  --tone-soft: var(--lime-100);
}

.upcoming-section {
  padding: 56px 0 0;
}

.upcoming-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.upcoming-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

.upcoming-head .link-arrow {
  color: var(--navy-900);
}

.upcoming-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.upcoming-link {
  display: block;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.upcoming-link .cal-event {
  height: 100%;
}

.upcoming-empty {
  color: var(--muted);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.view-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.view-btn[aria-pressed='true'] {
  background: var(--navy-950);
  color: var(--white);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.cal-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tone);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cal-title {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  text-align: center;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  touch-action: pan-y;
}

.cal-weekday {
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 96px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  text-align: left;
}

.cal-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.cal-day.is-weekend {
  background: var(--bg);
}

button.cal-day {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

button.cal-day:hover {
  border-color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.cal-day-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--navy-950);
  font-size: 0.875rem;
  font-weight: 700;
}

.cal-day.is-today .cal-day-number {
  background: var(--amber-500);
}

.cal-marks {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cal-mark {
  overflow: hidden;
  padding: 2px 6px;
  border-left: 3px solid var(--tone);
  border-radius: 4px;
  background: var(--tone-soft);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cal-month-events,
.cal-group {
  display: grid;
  gap: 0.85rem;
}

.cal-month-events {
  margin-top: 1.5rem;
}

.cal-group + .cal-group {
  margin-top: 2rem;
}

.cal-group-title {
  font-size: 1.2rem;
}

.cal-empty {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-left: 5px solid var(--tone);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease, box-shadow 0.3s ease;
}

.cal-event.is-past {
  opacity: 0.6;
}

.cal-event.is-highlighted {
  animation: cal-flash 1.6s ease;
}

@keyframes cal-flash {
  0%,
  60% {
    box-shadow: 0 0 0 4px var(--amber-400);
  }

  100% {
    box-shadow: var(--shadow-sm);
  }
}

.cal-date {
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--tone-soft);
  color: var(--tone);
  line-height: 1.1;
  text-align: center;
}

.cal-date strong {
  font-size: 1.5rem;
  font-weight: 800;
}

.cal-date span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cal-event-body {
  flex: 1;
  min-width: 0;
}

.cal-event-body h3 {
  font-size: 1.05rem;
}

.cal-when {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.cal-event-note {
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.cal-flag,
.cal-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.cal-flag {
  margin-bottom: 0.35rem;
  background: var(--amber-500);
  color: var(--navy-950);
}

.cal-chip {
  margin-top: 0.5rem;
  background: var(--tone-soft);
  color: var(--tone);
}

.cal-add {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.5rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-950);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cal-add:hover {
  border-color: var(--navy-900);
  background: var(--navy-100);
}

.cal-note {
  display: flex;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--amber-100);
  color: var(--navy-950);
  font-weight: 600;
}

.cal-note .icon {
  flex: none;
  margin-top: 0.2rem;
  color: #b45309;
}

@media (max-width: 1200px) {
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 1rem 20px 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
}

@media (max-width: 1080px) {
  .parent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .hero-shapes span:nth-child(3) {
    display: none;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .card-grid,
  .level-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .enrich-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cal-day {
    min-height: 80px;
  }

  .level-grid > :last-child:nth-child(odd),
  .steps > :last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .visit-band {
    grid-template-columns: 1fr;
    padding: 2.25rem;
  }

  .visit-band .btn-row {
    justify-content: flex-start;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 3.25rem) / 2);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .container {
    padding-inline: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-text strong {
    font-size: 0.9rem;
    white-space: normal;
  }

  .brand-text small {
    display: none;
  }

  .lang-toggle .icon {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .lang-toggle {
    padding: 0.4rem 0.65rem;
  }

  .hero {
    min-height: 600px;
    align-items: flex-end;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(23, 37, 84, 0.96) 0%, rgba(23, 37, 84, 0.78) 55%, rgba(23, 37, 84, 0.35) 100%);
  }

  .hero-content {
    padding-bottom: 110px;
  }

  .hero .btn-row .btn {
    flex: 1 1 100%;
  }

  .hero-dots {
    bottom: 76px;
  }

  .stats {
    margin-top: -44px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .card-grid,
  .level-grid,
  .steps,
  .team-grid,
  .contact-grid,
  .parent-grid,
  .footer-grid,
  .field-row,
  .quiz-options {
    grid-template-columns: 1fr;
  }

  .level-grid > :last-child:nth-child(odd),
  .steps > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .enrich-grid {
    grid-template-columns: 1fr 1fr;
  }

  .enrich-grid > :last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .team-card h3 {
    font-size: 0.95rem;
  }

  .team-card p {
    font-size: 0.8rem;
  }

  .parent-card.is-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .carousel-track {
    grid-auto-columns: 80%;
  }

  .quiz {
    padding: 1.5rem 1.1rem;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 140px 160px;
  }

  .mosaic a:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .mosaic a:last-child {
    grid-column: span 2;
  }

  .photo-frame::before {
    inset: auto auto -12px -12px;
  }

  .split.reverse .photo-frame::before {
    inset: -12px -12px auto auto;
  }

  .visit-band {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius);
  }

  .visit-band .btn {
    flex: 1 1 100%;
  }

  .badge-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .gallery-item span {
    display: none;
  }

  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: none;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 1 auto;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }

  .photo-frame.tall img {
    aspect-ratio: 1 / 1;
  }

  .year-table {
    font-size: 0.875rem;
  }

  .year-table th,
  .year-table td {
    padding: 0.7rem 0.75rem;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 320px;
  }

  .form-card {
    padding: 1.5rem 1.25rem;
  }

  .lightbox .round-btn {
    width: 44px;
    height: 44px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: none;
  }

  .lightbox img {
    max-height: 70vh;
  }

  .upcoming-section {
    padding-top: 40px;
  }

  .cal-grid {
    gap: 3px;
    padding: 6px;
  }

  .cal-weekday {
    font-size: 0.7rem;
  }

  .cal-day {
    align-items: center;
    min-height: 52px;
    padding: 4px 2px;
  }

  .cal-marks {
    flex-direction: row;
    justify-content: center;
    gap: 3px;
  }

  .cal-mark {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--tone);
    font-size: 0;
  }

  .cal-event {
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
  }

  .cal-add {
    width: 100%;
    justify-content: center;
  }

  .cal-toolbar .btn {
    width: 100%;
  }

  .view-switch {
    width: 100%;
  }

  .view-btn {
    flex: 1;
    justify-content: center;
  }

  .page-hero {
    min-height: 0;
    padding: 48px 0 56px;
  }

  .hero-shapes span:nth-child(1) {
    top: 8%;
    right: -24px;
    width: 96px;
    height: 96px;
  }

  .hero-shapes span:nth-child(2) {
    display: none;
  }

  .page-lead {
    font-size: 1rem;
  }

  .quick-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(23, 37, 84, 0.25);
  }

  .quick-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--navy-950);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
  }

  .quick-bar a.is-primary {
    background: var(--amber-500);
  }

  .quick-bar .icon {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
