/* ==========================================================================
   Wonderkidz Preschool - Inner pages + shared navigation additions
   Loaded after style.css on every page.
   ========================================================================== */

/* ---------- Active page + "Our Program" dropdown ---------- */
.nav a.is-active { color: var(--blue); }
.nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.nav__menu {
  position: absolute;
  top: 78px;
  left: -20px;
  z-index: 60;
  min-width: 230px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(31, 31, 31, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: block;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 20px;
}
.nav__menu a:hover,
.nav__menu a.is-active { background: var(--cream); color: var(--blue); }
.nav__menu hr { margin: 8px 4px; border: 0; border-top: 1px solid var(--placeholder); }

.footer__legal { display: flex; gap: 32px; }
.footer__legal a:hover { color: var(--yellow); }

/* ---------- Layout helpers ---------- */
.section { padding: 96px 0; }
.section--cream { background: #EEF3FC; }
.section--white { background: #fff; }
.section--butter { background: #EEF3FC; }
.section--blue { background: linear-gradient(45deg, var(--blue), var(--blue-dark)); color: #fff; }
.section--tight { padding: 72px 0; }

.eyebrow {
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.lead { color: var(--text); font-size: var(--fs-md); line-height: 28px; }
.title-lg {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 48px;
  color: var(--blue);
}
.title-sm {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 28px;
  color: var(--ink);
}
.section-title--left { text-align: left; }
.section-title + .lead { margin-top: 12px; }
.btn-row { display: flex; gap: 16px; }
.btn--outline-white { background: transparent; color: #fff; border: 2px solid #fff; }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.page-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 316px;
  padding: 48px 0;
}
.page-banner__text { max-width: 640px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text);
  font-size: var(--fs-sm);
  line-height: 20px;
}
.breadcrumb a { transition: color .15s ease; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current] { color: var(--blue); font-weight: 700; }
.breadcrumb .sep { color: var(--text); }
.page-banner h1 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 76px;
  color: var(--blue);
}
.page-banner__sub { margin-top: 12px; color: var(--text); font-size: var(--fs-lg); line-height: 28px; }
.page-banner__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 16px; }
.page-banner__meta .chip { background: #fff; }
.page-banner__photo {
  flex: 0 0 480px;
  width: 480px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(52, 73, 128, .16);
}
.page-banner--program .page-banner__photo { height: 260px; }

/* ---------- CTA box ---------- */
.cta-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  padding: 40px 64px;
  border-radius: 24px;
  background: var(--blue-dark) url("../assets/img/sky.webp") center 40% / 1440px auto no-repeat;
  color: #fff;
}
.cta-box h2 {
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 48px;
}
.cta-box h2 span { color: var(--yellow); }
.cta-box p { margin-top: 8px; font-size: var(--fs-lg); line-height: 24px; color: rgba(255, 255, 255, .88); }
.cta-box .btn--yellow { width: 152px; }
.cta-box .btn--outline-white { width: 146px; }

/* ---------- Shared cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.icon-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue);
}
.icon-badge svg { width: 28px; height: 28px; fill: var(--yellow-soft); }
.icon-badge--sm { width: 40px; height: 40px; }
.icon-badge--sm svg { width: 20px; height: 20px; }

/* ---------- About ---------- */
.vm-grid { display: grid; grid-template-columns: 548px 628px; gap: 24px; }
.vm-card { padding: 40px; }
.vm-card h2 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 48px;
  color: var(--blue);
}
.vm-card .lead { margin-top: 16px; }
.vm-card--vision { background: var(--butter); border-color: var(--butter); }

.founder-detail { display: flex; align-items: center; gap: 64px; }
.founder-detail .founder-detail__photo { object-fit: cover; object-position: top; border-radius: 16px; background: #fff; }
.founder-detail .placeholder, .founder-detail .founder-detail__photo { flex: 0 0 400px; height: 440px; }
.founder-detail .founder__name { margin-top: 12px; }
.credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.credentials .chip { background: #fff; }
.founder-detail .lead { margin-top: 20px; }

/* ---------- Curriculum ---------- */
.intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: var(--fs-lg);
  line-height: 32px;
  text-align: center;
  color: var(--ink);
}
.approach { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.approach__media img { width: 100%; height: 400px; object-fit: cover; border-radius: 20px; }
.approach__media--mi { display: flex; justify-content: center; }
.approach__media--mi img { width: 434px; height: 434px; object-fit: contain; border-radius: 0; }
.approach__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--fs-md);
  font-weight: 800;
}
.approach h2 { margin-top: 16px; }
.approach h3 { margin-top: 20px; }
.approach h3 + p { margin-top: 8px; }
.closing-statement {
  max-width: 940px;
  margin: 0 auto;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 40px;
  text-align: center;
  color: var(--blue);
}
.closing-statement--lg { font-size: var(--fs-2xl); line-height: 40px; }
.closing-statement + .btn-row { justify-content: center; margin-top: 32px; }
.closing-statement + .btn-row .btn--yellow { width: 152px; }
.closing-statement + .btn-row .btn--outline { width: 146px; }

/* ---------- Programs listing ---------- */
.programs__grid--listing { margin-top: 0; }
.program-card--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: var(--butter);
  border-color: var(--butter);
}
.program-card--text h3 { margin-top: 0; }
.program-card--text p { margin-top: 8px; }
.program-card__img-link { display: block; }

/* ---------- Program detail ---------- */
.program-about { display: grid; grid-template-columns: 720px 416px; justify-content: space-between; }
.program-about .intro { font-size: var(--fs-lg); line-height: 32px; color: var(--ink); }
.program-about h2 {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--blue);
}
.focus-grid { display: grid; grid-template-columns: repeat(2, 354px); gap: 12px; margin-top: 16px; }
.focus-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 95px;
  padding: 12px 24px;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 24px;
}
.focus-summary {
  margin-top: 20px;
  padding: 16px 24px;
  background: var(--butter);
  border-radius: 16px;
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 24px;
}
.focus-todo { margin-top: 16px; height: 120px; }
.program-about__photos { display: grid; gap: 20px; align-content: start; }
.program-about__photos img { width: 416px; height: 260px; object-fit: cover; border-radius: 20px; }
.program-about__photos img + img { height: 200px; }

.mini-programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.mini-program {
  display: block;
  padding: 24px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mini-program:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 31, 31, .18); }
.mini-program h3 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--blue);
}
.mini-program p { margin-top: 8px; color: var(--text); font-size: var(--fs-base); line-height: 24px; }
.mini-program .link { margin-top: 12px; }

/* ---------- Daycare ---------- */
.welcome { display: grid; grid-template-columns: 1fr 480px; align-items: center; gap: 80px; }
.welcome p {
  font-family: var(--font-head);
  font-size: var(--fs-2xl);
  font-weight: 600;
  line-height: 40px;
  color: var(--blue);
}
.welcome img { width: 480px; height: 320px; object-fit: cover; border-radius: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 384px); gap: 24px; margin-top: 40px; }
.feature-card { padding: 32px; }
.feature-card h3 {
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--ink);
}
.feature-card p { margin-top: 8px; color: var(--text); font-size: var(--fs-base); line-height: 24px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; }
.info-strip div { padding: 24px 32px; }
.info-strip dt { color: var(--text); font-size: var(--fs-xs); font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
.info-strip dd { margin: 8px 0 0; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; line-height: 28px; color: var(--blue); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 38px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 282px); gap: 24px; margin-top: 32px; }
.photo-grid button {
  position: relative;
  display: block;
  width: 282px;
  height: 220px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--placeholder);
  cursor: zoom-in;
}
.photo-grid button[hidden] { display: none; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-grid button:hover img { transform: scale(1.05); }
.photo-grid button span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 24, 40, .92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 80vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lightbox__caption { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: #fff; font-size: var(--fs-base); font-weight: 600; }
.lightbox button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: var(--fs-xl);
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.lightbox button:hover { background: var(--yellow); color: var(--blue); }
.lightbox__close { top: 28px; right: 32px; }
.lightbox__prev { left: 32px; top: calc(50% - 26px); }
.lightbox__next { right: 32px; top: calc(50% - 26px); }

/* ---------- Contact page ---------- */
.contact--page .contact__info { padding-top: 8px; }
.centers { display: grid; grid-template-columns: repeat(3, 384px); gap: 24px; margin-top: 40px; }
.center-card { overflow: hidden; }
.center-card iframe,
.center-card .placeholder { display: flex; width: 100%; height: 200px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.center-card__body { padding: 24px 32px 32px; }
.center-card h3 {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--ink);
}
.center-card p { margin-top: 8px; min-height: 44px; color: var(--text); font-size: var(--fs-base); line-height: 24px; }
.center-card .btn { width: 100%; height: 48px; margin-top: 20px; }

/* ---------- Blogs ---------- */
.blogs__grid--listing { margin-top: 0; }
.blog-card h3 a:hover { text-decoration: underline; }
.article { width: min(820px, calc(100% - 64px)); margin: 0 auto; }
.article__cover { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }
.article__lead {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 36px;
  color: var(--blue);
}
.article__body { margin-top: 16px; font-size: var(--fs-md); line-height: 32px; color: var(--text); }
.article__back { margin-top: 32px; }

/* ---------- Simple text page ---------- */
.prose { max-width: 820px; font-size: var(--fs-md); line-height: 32px; color: var(--text); }
.prose p + p { margin-top: 16px; }

/* Leave breathing room above in-page link targets, clear of the sticky header */
[id] { scroll-margin-top: 120px; }
@media (max-width: 767px) { [id] { scroll-margin-top: 96px; } }

/* ---------- Copy from the client document ---------- */
.founder-detail .lead + .lead { margin-top: 16px; }
.welcome p.welcome__more {
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 28px;
  color: var(--text);
}
.article__body h2 {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 32px;
  color: var(--ink);
}
.article__body h2 + p { margin-top: 8px; }
.article__body p + p { margin-top: 16px; }
.article__body .link { font-size: inherit; line-height: inherit; }
.article__body h3 { margin-top: 24px; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; line-height: 24px; color: var(--ink); }
.article__body h3 + p { margin-top: 8px; }
.article__body ul { margin: 12px 0 0 24px; list-style: disc; }
.article__body li { margin-top: 8px; }
.article__body p + ul, .article__body ul + p { margin-top: 16px; }
.article__figure { margin: 32px 0 0; }
.article__figure img { display: block; width: 100%; height: 400px; object-fit: cover; border-radius: 20px; }
.article__figure figcaption { margin-top: 8px; font-size: var(--fs-base); line-height: 24px; text-align: center; color: var(--text); opacity: .75; }
.article__figure + h2 { margin-top: 32px; }

/* ---------- Franchise + Teacher Training pages ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; align-items: center; gap: 64px; }
.split .lead { margin-top: 16px; }
.split .eyebrow + .title-lg { margin-top: 8px; }
.split__img { width: 480px; height: 300px; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 40px rgba(52, 73, 128, .12); }
.split__actions { margin-top: 32px; }
.cta-box .btn.cta-box__wide, .split__actions .btn, .banner-actions .btn { width: auto; min-width: 152px; padding: 0 32px; }
.banner-actions { margin-top: 24px; }
.page-banner__text { max-width: 660px; }
.page-banner .page-banner__sub { max-width: 600px; }

.features-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.features-grid--4 .feature-card h3 { font-size: var(--fs-lg); line-height: 24px; }
.focus-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.stack-title + .info-strip { margin-top: 32px; }
.courses + .courses__next { margin-top: 56px; }
.training-contact { margin-top: 16px; }
.section .title-lg + .lead { margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; text-align: center; }
.steps__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--yellow); color: var(--blue);
  font-family: var(--font-head); font-size: var(--fs-xl); font-weight: 800;
}
.steps h3 { margin-top: 16px; font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; line-height: 28px; color: var(--ink); }
.steps p { margin-top: 8px; color: var(--text); font-size: var(--fs-base); line-height: 24px; }

.centers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.centers--2 .center-card p { min-height: 66px; }

.faq { display: grid; gap: 12px; max-width: 900px; margin: 40px auto 0; }
.faq__item { padding: 0; }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 700; line-height: 24px; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: 0 0 auto; font-size: var(--fs-xl); font-weight: 600; color: var(--blue); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 24px 24px; color: var(--text); font-size: var(--fs-md); line-height: 24px; }

.enquiry-split { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 64px; align-items: start; }
.enquiry-split .lead { margin-top: 16px; max-width: 520px; }

/* ==========================================================================
   Design refresh: brings the inner pages in line with the home page
   (crayon-paper / soft-blue sections, framed photos, pastel icon tiles,
   softer cards, playful hover). The responsive rules below still apply.
   ========================================================================== */

/* Breadcrumb as a soft pill */
.breadcrumb {
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid #ECEBE4;
  border-radius: 999px;
  background: #fff;
}
/* A little star floats beside the banner photo */
.page-banner__inner::after {
  content: "";
  position: absolute;
  right: 452px;
  /* The photo is vertically centred, so hang the star off its top-left corner from the middle */
  top: 50%;
  margin-top: -128px;
  width: 40px;
  height: 40px;
  background: url("../assets/img/hero-fx/star.webp") center / contain no-repeat;
  animation: star-float 4s ease-in-out infinite;
  pointer-events: none;
}
.page-banner--program .page-banner__inner::after { margin-top: -148px; }
.page-banner__meta .chip {
  height: auto;
  padding: 8px 18px;
  border: 3px solid #fff;
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  line-height: 20px;
  box-shadow: 0 6px 14px rgba(18, 28, 64, .18);
}

/* Photos sit in the same white frame as the home gallery */
.page-banner__photo,
.program-about__photos img,
.welcome img,
.split__img,
.approach__media img,
.article__cover,
.article__figure img {
  border: 8px solid #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(91, 78, 54, .14);
}

/* Cards: white, hairline, soft shadow */
.card {
  border: 1px solid #ECEBE4;
  border-radius: 24px;
  box-shadow: 0 10px 28px rgba(91, 78, 54, .08);
}

/* Pastel colour cycle for card grids (same family as the home page) */
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > * { --tint: #FFEFB8; --edge: #FFC324; --deep: #855800; }
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > :nth-child(6n+2) { --tint: #FFE1D3; --edge: #F4936F; --deep: #B0442A; }
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > :nth-child(6n+3) { --tint: #D3F1E6; --edge: #4CBF9F; --deep: #1A7159; }
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > :nth-child(6n+4) { --tint: #D6EBFA; --edge: #5AB0EA; --deep: #1C6497; }
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > :nth-child(6n+5) { --tint: #E7DDFA; --edge: #A585E0; --deep: #6142AA; }
:is(.features-grid, .focus-grid, .info-strip, .steps, .vm-grid, .centers) > :nth-child(6n+6) { --tint: #FCDCC6; --edge: #F08A45; --deep: #A6480F; }

/* Icons in a pastel rounded tile instead of a flat blue disc */
.icon-badge { border-radius: 16px; background: var(--tint, #E7ECF8); }
.icon-badge svg { fill: none; stroke: var(--deep, var(--blue-dark)); }
.icon-badge--sm { border-radius: 12px; }

/* Cards lift with a tiny tilt on hover */
.feature-card,
.focus-card,
.center-card,
.mini-program {
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1), border-color .2s ease;
}
.feature-card:hover,
.focus-card:hover,
.center-card:hover {
  transform: translateY(-5px) rotate(-.5deg);
  border-color: var(--edge, #ECEBE4);
  box-shadow: 0 18px 36px rgba(91, 78, 54, .14);
}
.feature-card .icon-badge { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.feature-card:hover .icon-badge { transform: rotate(-10deg) scale(1.08); }

/* Vision and mission as solid pastel cards */
.vm-card, .vm-card--vision { background: var(--tint); border-color: transparent; }
.vm-grid > :nth-child(2) { --tint: #D6EBFA; --deep: #1C6497; }
.vm-card h2 { color: var(--blue-dark); }

/* Timings / facts strip: pastel tiles */
.info-strip > div { background: var(--tint); border-color: transparent; }
.info-strip dd { color: var(--deep); }

/* Steps: pastel numbered circles joined by a dashed path */
.steps li { position: relative; }
.steps li + li::before {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(50% + 40px);
  width: calc(100% - 56px);
  border-top: 3px dashed #D6D6D0;
}
.steps__num {
  background: var(--tint);
  color: var(--deep);
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--edge);
}

/* FAQ: white cards, the open one gets a yellow edge */
.faq__item { transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: var(--yellow); box-shadow: 0 14px 30px rgba(91, 78, 54, .12); }
.faq__item summary::after {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFEFB8;
  color: #855800;
  font-size: var(--fs-lg);
  line-height: 1;
}

/* Other programs (blue section): each card carries its program's colour */
.mini-program { --accent: var(--blue); border: 0; border-top: 6px solid var(--accent); }
.mini-program[href="/toddler-program"] { --accent: #F4936F; }
.mini-program[href="/playgroup"] { --accent: #FFC324; }
.mini-program[href="/nursery"] { --accent: #4CBF9F; }
.mini-program[href="/junior-kg"] { --accent: #5AB0EA; }
.mini-program[href="/senior-kg"] { --accent: #A585E0; }
.mini-program[href="/daycare"] { --accent: #F08A45; }
.mini-program:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 22px 44px rgba(18, 28, 64, .3); }

/* Curriculum page: step numbers use the same colours as the home pillars */
#multiple-intelligences .approach__num { background: #E7DDFA; color: #6142AA; }
#experiential-learning .approach__num { background: #D3F1E6; color: #1A7159; }
#project-based-learning .approach__num { background: #FFE1D3; color: #B0442A; }

/* A small floating star above closing statements */
.closing-statement::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: url("../assets/img/hero-fx/star.webp") center / contain no-repeat;
  animation: star-float 4s ease-in-out infinite;
}

/* Gallery page: scrapbook frames with a gentle tilt */
.photo-grid button {
  border: 6px solid #fff;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(91, 78, 54, .12);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s cubic-bezier(.16, 1, .3, 1);
}
.photo-grid button:hover,
.photo-grid button:focus-visible { transform: translateY(-5px) rotate(-1deg); box-shadow: 0 20px 40px rgba(91, 78, 54, .2); }
.photo-grid button:nth-child(even):hover,
.photo-grid button:nth-child(even):focus-visible { transform: translateY(-5px) rotate(1deg); }
.photo-grid img { border-radius: 14px; }
.filter.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.filter:hover { border-color: var(--yellow); color: var(--ink); }

/* Blog article: lead with a yellow rule, headings with a short underline */
.article__lead { padding-left: 20px; border-left: 4px solid var(--yellow); }
.article__body h2 { position: relative; padding-bottom: 10px; }
.article__body h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--yellow); }

/* About page founder: cut-out portrait in front of a blue circle */
#founder { overflow: hidden; padding-bottom: 0; }
.founder-detail { align-items: flex-end; }
.founder-detail > div:last-child { padding-bottom: 96px; }
.founder-detail__visual { position: relative; flex: 0 0 400px; height: 500px; }
.founder-detail__visual::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--blue-dark);
  translate: -50% 0;
}
.founder-detail .founder-detail__visual .founder-detail__photo {
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 460px;
  max-width: none;
  height: auto;
  border-radius: 0;
  background: none;
  object-fit: initial;
  translate: -50% 0;
}

@media (prefers-reduced-motion: reduce) {
  .page-banner__inner::after, .closing-statement::before { animation: none; }
  .feature-card, .focus-card, .center-card, .mini-program, .photo-grid button, .feature-card .icon-badge { transition: none; }
  .feature-card:hover, .focus-card:hover, .center-card:hover, .mini-program:hover,
  .photo-grid button:hover, .photo-grid button:nth-child(even):hover, .feature-card:hover .icon-badge { transform: none; }
}

/* Enquiry sections (Franchise, Teacher Training): brand blue like the home Contact section */
.enquiry .eyebrow { color: var(--butter); }
.enquiry .title-lg { margin-top: 4px; color: var(--yellow); }
.enquiry .lead { color: rgba(255, 255, 255, .88); }
.enquiry .contact__list { max-width: 560px; }
.enquiry .form-card { box-shadow: 0 18px 44px rgba(20, 30, 70, .28); }

/* Centre cards (Contact, Franchise): inset map, pin + area name, Call and Directions side by side */
.center-card { display: flex; flex-direction: column; padding: 10px; }
.center-card__map { overflow: hidden; border-radius: 18px; background: var(--placeholder); }
.center-card .center-card__map iframe { display: block; width: 100%; height: 220px; border: 0; border-radius: 0; }
.center-card__body { flex: 1; display: flex; flex-direction: column; padding: 20px 18px 14px; }
.centers .center-card .center-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  color: var(--orange);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.center-card__pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--tint);
  color: var(--deep);
}
.center-card h3 { margin-top: 12px; color: var(--blue); }
.centers .center-card .center-card__address { min-height: 0; margin-top: 6px; }
.center-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; }
.center-card .center-card__actions .btn { flex: 1 1 150px; width: auto; height: 50px; margin-top: 0; padding: 0 18px; gap: 8px; }
/* Maps don't tilt: just a gentle lift */
.center-card:hover { transform: translateY(-5px); }

/* ==========================================================================
   Responsive layout for the inner pages (header, footer and container are
   handled in style.css). Desktop (>= 1260px) is unchanged.
   ========================================================================== */
@media (max-width: 1259px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
  .page-banner__inner { min-height: 0; gap: 40px; padding: 40px 0; }
  .page-banner h1 { font-size: var(--fs-4xl); line-height: 60px; }
  .page-banner__photo, .page-banner--program .page-banner__photo { flex: 0 1 400px; width: 400px; max-width: 42%; height: auto; aspect-ratio: 480 / 260; }

  .vm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vm-card { padding: 32px; }
  .vm-card h2 { font-size: var(--fs-2xl); line-height: 40px; }
  .founder-detail { gap: 40px; }
  .founder-detail .placeholder, .founder-detail .founder-detail__photo { flex: 0 0 300px; height: 340px; }

  .approach { gap: 40px; }
  .approach__media--mi img { width: 100%; max-width: 434px; height: auto; }
  .approach__media img { height: auto; aspect-ratio: 568 / 400; }
  .program-about { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-about__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-about__photos img, .program-about__photos img + img { width: 100%; height: 220px; }
  .mini-programs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; }
  .welcome img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .welcome p { font-size: var(--fs-xl); line-height: 36px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .features-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .photo-grid button { width: 100%; height: auto; aspect-ratio: 282 / 220; }
  .centers, .centers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .centers .center-card p { min-height: 0; }

  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; }
  .split__img { width: 100%; height: auto; aspect-ratio: 480 / 300; }
  .enquiry-split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .cta-box { padding: 32px 40px; background-size: cover; }
  .cta-box h2 { font-size: var(--fs-2xl); line-height: 40px; }
  .contact--page .contact__info { padding-top: 0; }
  .page-banner__inner::after { right: calc(42% - 20px); }
  .founder-detail__visual { flex: 0 0 320px; height: 420px; }
  .founder-detail__visual::before { width: 300px; height: 300px; bottom: -100px; }
  .founder-detail .founder-detail__visual .founder-detail__photo { width: 370px; bottom: -100px; }
  .founder-detail > div:last-child { padding-bottom: 72px; }
  .steps li:nth-child(odd)::before { display: none; }
}

@media (max-width: 899px) {
  .page-banner__inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .page-banner__photo, .page-banner--program .page-banner__photo { flex: none; width: 100%; max-width: 560px; }
  .founder-detail { flex-direction: column; align-items: stretch; }
  .founder-detail .placeholder, .founder-detail .founder-detail__photo { flex: none; width: 100%; height: 320px; }
  .approach { grid-template-columns: minmax(0, 1fr); }
  .approach > .approach__media--mi, .approach > .approach__media { order: -1; }
  .welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome img { max-width: 480px; }
  .split, .enquiry-split { grid-template-columns: minmax(0, 1fr); }
  .split__img { max-width: 480px; }
  .enquiry-split .form-card { width: 100%; }
  .cta-box { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-banner__inner::after { display: none; }
  .founder-detail { align-items: stretch; }
  .founder-detail > div:last-child { padding-bottom: 0; }
  .founder-detail__visual { order: 2; flex: none; width: 100%; height: 380px; }
  .founder-detail__visual::before { width: 300px; height: 300px; bottom: -100px; }
  .founder-detail .founder-detail__visual .founder-detail__photo { width: 340px; bottom: -100px; }
}

@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .section--tight { padding: 40px 0; }
  .page-banner__inner { padding: 32px 0 32px; }
  .page-banner h1 { font-size: var(--fs-3xl); line-height: 48px; }
  .page-banner__sub { font-size: var(--fs-md); line-height: 24px; }
  .page-banner__meta { gap: 16px; }
  .title-lg { font-size: var(--fs-2xl); line-height: 40px; }
  .title-sm { font-size: var(--fs-lg); line-height: 24px; }
  .lead { font-size: var(--fs-md); line-height: 28px; }
  .intro-text { font-size: var(--fs-md); line-height: 28px; }
  .closing-statement, .closing-statement--lg { font-size: var(--fs-lg); line-height: 32px; }
  .welcome p { font-size: var(--fs-lg); line-height: 32px; }

  .vm-grid { grid-template-columns: minmax(0, 1fr); }
  .vm-card { padding: 24px 24px; }
  .vm-card h2 { font-size: var(--fs-xl); line-height: 36px; }
  .focus-grid, .focus-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .focus-card { min-height: 0; padding: 16px 16px; font-size: var(--fs-base); line-height: 24px; }
  .program-about .intro { font-size: var(--fs-md); line-height: 28px; }
  .program-about h2 { margin-top: 32px; font-size: var(--fs-xl); }
  .program-about__photos { grid-template-columns: minmax(0, 1fr); }
  .mini-programs { grid-template-columns: minmax(0, 1fr); }
  .features-grid, .features-grid--2, .features-grid--3, .features-grid--4 { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .info-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .filters { gap: 8px; }
  .centers, .centers--2 { grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
  .center-card__body { padding: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin-top: 32px; }
  .faq { margin-top: 32px; }
  .faq__item summary { padding: 16px 16px; font-size: var(--fs-base); line-height: 24px; }
  .faq__item p { padding: 0 16px 16px; font-size: var(--fs-base); line-height: 24px; }
  .split__actions, .banner-actions, .btn-row { flex-wrap: wrap; }
  .cta-box { padding: 32px 24px; border-radius: 20px; }
  .cta-box h2 { font-size: var(--fs-xl); line-height: 36px; }
  .cta-box p { font-size: var(--fs-md); }
  .cta-box .btn-row { width: 100%; }
  .article { width: calc(100% - 32px); }
  .article__cover { height: 220px; border-radius: 18px; }
  .article__figure img { height: 220px; border-radius: 16px; }
  .article__lead { margin-top: 24px; font-size: var(--fs-lg); line-height: 32px; }
  .article__body { font-size: var(--fs-md); line-height: 28px; }
  .prose { font-size: var(--fs-md); line-height: 28px; }
  .lightbox img { max-width: 94vw; max-height: 70vh; }
  .lightbox button { width: 44px; height: 44px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__caption { bottom: 18px; padding: 0 16px; }
}
