/*
 * Site-specific adjustments to the new homepage concept, loaded after the
 * concept's own stylesheets (renderHomeNew.ts). Hand-maintained — the
 * installer (scripts/install-homenew.mjs) never overwrites this file.
 */

/*
 * Section spacing. The concept gave most sections 86–130px of padding above
 * and below (106px on many), so the gap between one section's content and the
 * next was 140–250px on desktop. Every section that was looser than this now
 * shares one rhythm: --home-section-pad above and below, i.e. ~110px between
 * sections on desktop, ~90px on tablets, ~72px on phones. Sections already
 * tighter than that (numbers strip, Back to School, online consultation, the
 * closing banner, the footer) keep their own spacing.
 *
 * Where a section's padding sits on an inner `.section` wrapper (spaces, team,
 * locations), the rule targets that wrapper.
 */
:root { --home-section-pad: 56px; }
@media (max-width: 900px) { :root { --home-section-pad: 44px; } }
@media (max-width: 650px) { :root { --home-section-pad: 36px; } }

#parent-perspective,
#care,
#approach,
#why-choose-us,
#stories.section,
#press-coverage,
#parent-reviews,
#featured,
#faq,
#spaces > .section,
#team > .section,
#locations > .section {
  padding-block: var(--home-section-pad);
}

/*
 * Departments ("Comprehensive Child Development & Therapy Services") flows
 * straight into the journey ("Your child's journey") on the same background,
 * so the gap between them is tighter than the general rhythm: ~65px desktop,
 * ~57px tablet, ~49px phone (was ~121 / ~97 / ~81).
 */
#care { padding-bottom: 28px; }
#approach { padding-top: 28px; }
@media (max-width: 900px) {
  #care { padding-bottom: 24px; }
  #approach { padding-top: 24px; }
}
@media (max-width: 650px) {
  #care { padding-bottom: 20px; }
  #approach { padding-top: 20px; }
}

/*
 * The closing banner ("Let's start with a conversation") sat flush on the
 * footer; give it a little breathing room above the footer.
 */
.closing.wrap { margin-bottom: 40px; }
@media (max-width: 900px) { .closing.wrap { margin-bottom: 32px; } }
@media (max-width: 650px) { .closing.wrap { margin-bottom: 24px; } }

/*
 * Footer "Contact Us" icons (address, phone, mail): the concept's
 * `filter: invert(.85)` turned the white icons near-black on the dark footer.
 * Render them solid white instead, whatever colour the SVG itself uses.
 */
.ft .ft-c img { filter: brightness(0) invert(1); }

/*
 * Why Choose Us > Monthly Goals photo: wide (1600×816) in a frame that is
 * ~1.2:1 on desktop (crop set inline at 61% to keep both faces) but square on
 * phones, where that crop cut off the child's face; shift it left there.
 * (!important because the desktop crop is an inline style.)
 */
@media (max-width: 650px) {
  .why-goals .why-photo img { object-position: 50% 50% !important; }
}

/*
 * Why Choose Us > Multidisciplinary Team photo: the concept letterboxed it
 * (object-fit: contain), leaving empty bands above and below. Fill the frame
 * like the other photos; the slight side crop keeps the whole team in view.
 */
.why-team .why-photo img { object-fit: cover; object-position: 54% 60%; }

/*
 * Why Choose Us: show every reason as a card instead of a selectable dropdown.
 */
.why-reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  min-height: 0;
  padding: 0;
}
.why-parent { order: 1; }
.why-sensory { order: 2; }
.why-trusted { order: 3; }
.why-team { order: 4; }
.why-goals { order: 5; }
.why-sessions { order: 6; }
.why-default-photo { display: none; }
.why-reason,
.why-reason:last-child {
  overflow: hidden;
  border: 3px solid #c5d8cd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 61, 55, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .why-reason:hover,
  .why-reason:last-child:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(15, 81, 73, .12), 0 10px 28px rgba(24, 61, 55, .12);
  }
}
.why-reason h3 {
  padding: 22px 22px 14px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.3;
}
.why-photo {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}
.why-story {
  display: block;
  padding: 0 22px 22px;
}
.why-description {
  max-width: none;
  margin: 0;
}
.why-description p { margin: 0; }
@media (max-width: 900px) {
  .why-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 600px) {
  .why-reasons { grid-template-columns: 1fr; }
  .why-reason h3 { padding: 18px 18px 12px; }
  .why-story { padding: 0 18px 18px; }
}

.rrr-approach {
  padding-block: clamp(44px, 6vw, 80px);
  background: #edf4f0;
  border-block: 1px solid #dce7e0;
}
.rrr-approach-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.rrr-approach-heading .eyebrow { margin-bottom: 12px; }
.rrr-approach-heading h2 {
  margin-bottom: 14px;
  color: var(--green);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}
.rrr-approach-heading > p:last-child {
  color: #465752;
  font-size: 18px;
  line-height: 1.6;
}
.rrr-approach-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.rrr-approach-cards article {
  overflow: hidden;
  border: 3px solid #c5d8cd;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(24, 61, 55, .07);
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .rrr-approach-cards article:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(15, 81, 73, .12), 0 10px 28px rgba(24, 61, 55, .12);
  }
}
.rrr-approach-cards img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.rrr-approach-cards article > div { padding: 22px 24px 24px; }
.rrr-approach-cards h3 {
  margin-bottom: 10px;
  color: #183d37;
  font-size: 22px;
  line-height: 1.3;
}
.rrr-approach-cards article p {
  margin: 0;
  color: #465752;
  font-size: 16px;
  line-height: 1.65;
}
.rrr-approach-action { margin-top: 28px; text-align: center; }
@media (max-width: 850px) {
  .rrr-approach-cards { grid-template-columns: 1fr; gap: 16px; }
  .rrr-approach-cards article { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
  .rrr-approach-cards img { height: 100%; min-height: 200px; }
}
@media (max-width: 560px) {
  .rrr-approach-heading { margin-bottom: 24px; text-align: left; }
  .rrr-approach-heading > p:last-child { font-size: 16px; }
  .rrr-approach-cards article { display: block; }
  .rrr-approach-cards img { height: 190px; min-height: 0; }
  .rrr-approach-cards article > div { padding: 18px 20px 20px; }
  .rrr-approach-cards h3 { font-size: 20px; }
}

/*
 * Life at Jewel > "One step at a time": the therapists and children span the
 * photo's full width; keep the crop centred, a little high for their faces.
 */
.life-photo[href$="/one-step-at-a-time.webp"] img { object-position: 50% 40%; }

/* Keep the floating WhatsApp button in the bottom-right corner. */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 250;
  display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid rgba(18, 122, 76, .18); border-radius: 50%;
  background: #fff; box-shadow: 0 5px 18px rgba(18, 40, 32, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-fab img { width: 34px; height: 34px; display: block; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18, 40, 32, .26); }
.wa-fab:focus-visible { outline: 3px solid #127A6C; outline-offset: 4px; }
@media (max-width: 650px) {
  .wa-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 56px; height: 56px; }
  .wa-fab img { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
}

/*
 * FAQ ("Questions on your mind?"): a down-arrow instead of the concept's "+"
 * (which turned into an "×" when open). The "+" character is hidden and the
 * chevron drawn in its place; it flips to point up while a question is open.
 */
.faq-list summary span {
  font-size: 0; width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--muted); transform: none; transition: transform .25s ease;
}
.faq-list summary span::after {
  content: ''; width: 9px; height: 9px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: translateY(-5px) rotate(45deg);
}
.faq-list details[open] summary span { transform: rotate(180deg); }

/*
 * Life at Jewel > "Pegboard play" and "Group activity time": tall photos in
 * landscape cards; keep the faces in view.
 */
.life-photo[href$="/peg-board.webp"] img { object-position: 50% 32%; }
.life-photo[href$="/group-activity.webp"] img { object-position: 50% 45%; }

/* Keep the hero message and actions centred as one responsive group. */
.hero-fullbleed .hero-overlay {
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(30px, 3vw, 48px) 60px;
}
.hero-fullbleed .hero-copy {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.hero.hero-fullbleed h1 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.12;
}
.hero-fullbleed .eyebrow {
  justify-content: center;
  max-width: none;
}
.hero-fullbleed .hero-description {
  margin-inline: auto;
  max-width: 600px;
  margin-block: 16px 20px;
}
.hero-fullbleed .hero-shade {
  background: linear-gradient(0deg, rgba(8,30,34,.62), rgba(8,30,34,.42) 55%, rgba(8,30,34,.3));
}
@media (max-width: 650px) {
  .hero-fullbleed .hero-overlay { padding-block: 90px 40px; }
  .hero.hero-fullbleed h1 { font-size: clamp(32px, 8.5vw, 48px); }
  .hero-fullbleed .hero-description { max-width: 290px; }
  .hero-fullbleed .actions {
    width: min(100%, 320px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-fullbleed .actions > .button {
    min-height: 44px;
    padding: 6px 10px;
    gap: 6px;
    line-height: 1.2;
    text-align: left;
  }
  .hero-fullbleed .actions > .button > span[aria-hidden="true"] { flex: none; }
  .hero-fullbleed .hero-tour small { font-size: 10px; line-height: 1.2; }
}

/* Keep the location badge near the left edge of each hero slide. */
.hero-fullbleed .hero-place { left: 20px; }
@media (max-width: 650px) {
  .hero-fullbleed .hero-place { left: 12px; }
}

/* Present the parent testimonial as a plain video rectangle. */
.parent-perspective .parent-video-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Remove the decorative connector beneath the pathway cards. */
.jewel-journey .journey-pathways::after,
.jewel-journey .journey-flow-heading::before {
  content: none;
}

/* Make pathway descriptions and guidance comfortable to read. */
.jewel-journey .pathway-age { font-size: 13px; }
.jewel-journey .pathway-description { font-size: 18px; line-height: 1.6; }
.jewel-journey .pathway-action { font-size: 16px; line-height: 1.5; }
.jewel-journey .journey-flow-heading p,
.jewel-journey .journey-instruction { font-size: 16px; line-height: 1.5; }
.jewel-journey .journey-instruction span { font-size: 14px; line-height: 1.5; }
@media (max-width: 650px) {
  .jewel-journey .pathway-age { font-size: 12px; }
  .jewel-journey .pathway-description { font-size: 16px; }
  .jewel-journey .pathway-action { font-size: 14px; }
  .jewel-journey .journey-flow-heading { flex-wrap: wrap; }
  .jewel-journey .journey-instruction { max-width: none; text-align: left; }
}

/* Readable journey details, controls and supporting information. */
.jewel-journey .journey-detail { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.jewel-journey .journey-detail-intro,
.jewel-journey .journey-detail-points { padding: 30px; }
.jewel-journey .journey-detail-label { font-size: 13px; line-height: 1.5; }
.jewel-journey .journey-detail-intro > p { font-size: 18px; line-height: 1.7; max-width: 44ch; }
.jewel-journey .journey-team > span { font-size: 13px; line-height: 1.5; }
.jewel-journey .journey-team p { font-size: 16px; line-height: 1.65; }
.jewel-journey .journey-detail-points li { padding-bottom: 24px; padding-left: 26px; }
.jewel-journey .journey-detail-points li:last-child { padding-bottom: 0; }
.jewel-journey .journey-detail-points h4 { font-size: 20px; line-height: 1.4; margin-bottom: 8px; }
.jewel-journey .journey-detail-points p { font-size: 18px; line-height: 1.65; }
.jewel-journey .journey-detail-points li::before { top: 10px; }
.jewel-journey .journey-detail-points li:not(:last-child)::after { top: 19px; }
.jewel-journey .journey-detail-footer { padding: 20px 30px; flex-wrap: wrap; gap: 16px 24px; }
.jewel-journey .journey-detail-footer > p { font-size: 16px; line-height: 1.6; flex: 1 1 360px; max-width: 65ch; }
.jewel-journey .journey-pagination { margin-left: auto; gap: 18px; }
.jewel-journey .journey-pagination button { font-size: 16px; min-height: 44px; }
.jewel-journey .journey-pagination > span { font-size: 14px; }
.jewel-journey .journey-support { align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jewel-journey .journey-support h4 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.jewel-journey .journey-support p { font-size: 16px; line-height: 1.65; }
.jewel-journey .journey-loop { font-size: 14px; line-height: 1.5; }
@media (max-width: 900px) {
  .jewel-journey .journey-detail { grid-template-columns: 1fr; }
  .jewel-journey .journey-detail-intro > p { max-width: none; }
}
@media (max-width: 650px) {
  .jewel-journey .journey-detail-intro,
  .jewel-journey .journey-detail-points,
  .jewel-journey .journey-detail-footer { padding: 22px; }
  .jewel-journey .journey-detail-intro > p,
  .jewel-journey .journey-detail-points p { font-size: 16px; }
  .jewel-journey .journey-detail-points h4 { font-size: 18px; }
  .jewel-journey .journey-detail-footer { display: flex; }
  .jewel-journey .journey-detail-footer > p { flex-basis: 100%; }
  .jewel-journey .journey-pagination { width: 100%; gap: 10px; flex-wrap: wrap; margin: 0; }
  .jewel-journey .journey-support { grid-template-columns: 1fr; gap: 22px; }
}

/* Rounded online consultation photograph. */
.online-care .online-care-image { border-radius: 24px; }

/* Readable research and university partnership text. */
.learning { flex-wrap: wrap; gap: 24px 32px; }
.learning > div:first-child { max-width: 440px; }
.learning .eyebrow { font-size: 12px; line-height: 1.5; }
.learning h3 { font-size: 27px; line-height: 1.3; }
.learning p:not(.eyebrow) { font-size: 16px; line-height: 1.65; }
.learning-stat { gap: 14px; }
.learning-stat span { font-size: 14px; line-height: 1.6; }
.learning > .text-link { font-size: 16px; }
@media (max-width: 650px) {
  .learning h3 { font-size: 24px; }
  .learning > div:first-child { max-width: 100%; }
}

/* More readable centre addresses and contact details. */
.locations .location-grid article {
  display: flex;
  flex-direction: column;
  border: 3px solid #c5d8cd;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .locations .location-grid article:hover {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(15, 81, 73, .12), 0 10px 28px rgba(24, 61, 55, .12);
  }
}
.locations .location-body { display: flex; flex-direction: column; flex: 1; }
.locations .location-body .small-caps { font-size: 12px; line-height: 1.5; }
.locations .location-body p { font-size: 16px; line-height: 1.7; }
.locations .location-phone { font-size: 17px; line-height: 1.5; margin-top: auto; padding-top: 20px; }
.locations .location-body > .text-link { font-size: 16px; line-height: 1.5; }

/* Readable statistics and parent testimonial supporting text. */
.numbers span { font-size: 16px; line-height: 1.5; }
.parent-perspective .eyebrow { font-size: 12px; line-height: 1.5; }
.parent-perspective .parent-perspective-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; }
.parent-perspective .parent-perspective-credit strong { font-size: 19px; line-height: 1.4; }
.parent-perspective .parent-perspective-credit p { font-size: 15px; line-height: 1.6; }
.parent-perspective .parent-perspective-credit > span { align-self: stretch; height: auto; flex-shrink: 0; }
.parent-perspective .parent-perspective-copy > .text-link { font-size: 16px; line-height: 1.5; }
.parent-perspective .parent-perspective-film .small-caps { font-size: 12px; line-height: 1.5; }
.parent-perspective .parent-perspective-film figcaption { flex-wrap: wrap; gap: 12px 18px; }
.parent-perspective .parent-perspective-film figcaption p { font-size: 16px; line-height: 1.6; }
.parent-perspective .parent-video-duration { font-size: 14px; line-height: 1.5; }
@media (max-width: 650px) {
  .numbers span { font-size: 14px; }
  .parent-perspective .parent-perspective-copy > p:not(.eyebrow) { font-size: 16px; }
  .parent-perspective .parent-perspective-credit p { font-size: 14px; }
}
/* Comfortable reading sizes for the FAQ section. */
.faq .eyebrow { font-size: 12px; line-height: 1.5; }
.faq > div:first-child > p:not(.eyebrow) { font-size: 18px; line-height: 1.65; }
.faq .text-link { font-size: 16px; line-height: 1.5; }
.faq .faq-list summary { font-size: 18px; line-height: 1.5; }
.faq .faq-list details { padding-block: 24px; }
.faq .faq-list details p { font-size: 17px; line-height: 1.7; max-width: 65ch; }
@media (max-width: 650px) {
  .faq > div:first-child > p:not(.eyebrow),
  .faq .faq-list summary,
  .faq .faq-list details p { font-size: 16px; }
  .faq .faq-list details { padding-block: 20px; }
}
/* Keep the Why Choose Us heading proportionate to its section. */
#why-choose-title { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.15; }

/* Parent participation: local homepage review. */
.parent-inclusive{background:#edf4f0;border-block:1px solid #dce7e0}
.parent-inclusive-heading{max-width:800px;margin-bottom:32px}
.parent-inclusive-heading .eyebrow{margin-bottom:14px}
.parent-inclusive-heading h2{font-size:clamp(32px,3.5vw,48px);line-height:1.16;margin-bottom:16px}
.parent-inclusive-heading h2 em{color:#00877d;font-style:normal}
.parent-inclusive-heading>p:last-child{font-size:19px;line-height:1.65}
.parent-inclusive-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.parent-inclusive-cards article{display:flex;flex-direction:column;background:#fffaf6;border:3px solid #c5d8cd;border-radius:22px;padding:30px;box-shadow:0 8px 24px #183d3510;transition:border-color .2s ease,box-shadow .2s ease}
@media(hover:hover){.parent-inclusive-cards article:hover{border-color:var(--green);box-shadow:0 0 0 2px rgba(15,81,73,.12),0 10px 28px rgba(24,61,55,.12)}}
.parent-inclusive-photo{display:block;width:100%;height:auto;border-radius:14px;margin-bottom:20px}
.parent-inclusive-number{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#f5e5ea;color:#a42b50;font-size:18px;font-weight:700;margin-bottom:12px}
.parent-inclusive-cards h3{font-size:24px;line-height:1.3;color:#203d37;margin-bottom:14px}
.parent-inclusive-cards article>p{font-size:18px;line-height:1.7;margin-bottom:26px}
.parent-inclusive-note{margin-top:auto;padding-top:18px;border-top:1px solid #e4e2db;color:#087b71;font-size:16px;font-weight:600}
@media(max-width:850px){.parent-inclusive-cards{grid-template-columns:1fr;gap:16px}.parent-inclusive-cards article{padding:24px}.parent-inclusive-cards article>p{margin-bottom:20px}.parent-inclusive-heading>p:last-child{font-size:18px}}
@media (min-width: 901px) {
  #parent-inclusive.section { padding-block: 80px; }
  #why-choose-us .why-intro { margin-bottom: 30px; }
  #locations .section-heading { margin-bottom: 30px; }
}

/*
 * Numbers strip: five figures as separate cards (light grey-green, centred,
 * soft shadow). The card under the pointer lifts and turns dark green with
 * white text. `.numbers.wrap > div:nth-child(n)` outranks the concept's
 * divider/padding rules (style.css), including its phone layout.
 */
.numbers.wrap {
  grid-template-columns: repeat(5, 1fr); gap: 20px;
  border-block: 0; padding-block: 36px 12px;
}
.numbers.wrap > div:nth-child(n) {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 132px; padding: 24px 16px;
  border: 0; border-radius: 16px; background: #E4ECEA;
  box-shadow: 0 10px 24px rgba(16, 91, 82, .10), 0 2px 6px rgba(16, 91, 82, .06);
  transition: transform .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.numbers.wrap > div:nth-child(n) strong { color: #24797A; transition: color .3s ease, text-shadow .3s ease; }
.numbers.wrap > div:nth-child(n) span { color: #2F4A4C; margin-top: 6px; transition: color .3s ease; }
.numbers.wrap > div:nth-child(n):hover {
  background: #0D4F55; transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(13, 79, 85, .35), 0 4px 10px rgba(13, 79, 85, .18);
}
.numbers.wrap > div:nth-child(n):hover strong { color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .45); }
.numbers.wrap > div:nth-child(n):hover span { color: rgba(255, 255, 255, .92); }
@media (max-width: 1100px) {
  .numbers.wrap { gap: 14px; }
  .numbers.wrap > div:nth-child(n) { padding: 20px 10px; }
}
@media (max-width: 900px) {
  .numbers.wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .numbers.wrap { grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 24px 8px; }
  .numbers.wrap > div:nth-child(n) { min-height: 112px; padding: 18px 10px; }
  .numbers.wrap > div:nth-child(5) { grid-column: 1 / -1; }
}
.numbers.wrap > div.university-stat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.university-stat p { padding-inline: 4px; }
.university-stat p + p { border-inline-start: 1px solid #24797a40; }
.numbers.wrap .university-stat span { font-size: 14px; line-height: 1.35; }
.university-stat:hover p + p { border-color: #ffffff59; }
@media (max-width: 360px) {
  .numbers.wrap > div.university-stat { grid-template-columns: 1fr; row-gap: 12px; }
  .university-stat p + p { border-inline-start: 0; border-block-start: 1px solid #24797a40; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .numbers.wrap > div:nth-child(n), .numbers.wrap > div:nth-child(n):hover { transition: none; transform: none; }
}

/*
 * Student Achievement section (after Featured): laid out like the parent
 * testimonial ("A parent's experience"), whose classes it reuses. The video
 * frame has its own class because app.js drives `.parent-video-frame`.
 */
#student-achievement { padding-block: var(--home-section-pad); }
.achievement-video-frame {
  aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #183c3b;
  box-shadow: 0 16px 45px #642e4017; border: 6px solid #fff;
}
.achievement-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0E141D; }
.achievement-photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/*
 * FAQ ("Questions on your mind?"): the intro runs across the top, with the
 * heading on one line, and the questions sit beneath it in two columns, so
 * the space that used to be empty under the intro is used. Tablets and
 * phones keep a single column.
 */
.faq.wrap { grid-template-columns: 1fr; gap: 28px; }
.faq.wrap > div:first-child { max-width: none; }
.faq.wrap h2 { white-space: nowrap; }
.faq.wrap .faq-list {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  align-items: start; margin-top: 0;
}
.faq.wrap .faq-list details:nth-child(2) { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .faq.wrap .faq-list { grid-template-columns: 1fr; }
  .faq.wrap .faq-list details:nth-child(2) { border-top: 0; }
}
@media (max-width: 650px) {
  .faq.wrap h2 { white-space: normal; }
}

/* FAQ: no divider lines, questions top-aligned in rows, wider gap between columns */
.faq.wrap .faq-list { column-gap: 96px; row-gap: 0; }
.faq.wrap .faq-list details,
.faq.wrap .faq-list details:first-child,
.faq.wrap .faq-list details:nth-child(2) { border: 0; padding: 16px 0; }
.faq.wrap .faq-list summary { align-items: flex-start; }
.faq.wrap .faq-list summary > :last-child { margin-top: 2px; }
@media (max-width: 900px) { .faq.wrap .faq-list details { padding: 14px 0; } }

/*
 * FAQ reference layout: compact pink-outlined cards in two columns.
 * The chevron stays inside a soft pink control and opens in place.
 */
.faq.wrap {
  padding-block: 82px;
}
.faq.wrap > div:first-child {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 8px;
}
.faq.wrap h2 {
  margin-bottom: 8px;
  font-size: clamp(42px, 4vw, 58px);
  font-family: "Jewel Heading", "Quicksand", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.faq.wrap h2 em {
  color: #009b91;
  font-style: normal;
}
.faq.wrap > div:first-child > p:not(.eyebrow) {
  color: #5d626b;
  font-family: "Jewel Sans", Arial, sans-serif;
}
.faq.wrap .text-link,
.faq.wrap .text-link:hover {
  border-bottom: 0;
  border-bottom-color: transparent;
  text-decoration: none;
  font-family: "Jewel Sans", Arial, sans-serif;
  font-weight: 600;
}
.faq.wrap .faq-list {
  gap: 12px 24px;
  align-items: start;
}
.faq.wrap .faq-list details,
.faq.wrap .faq-list details:first-child,
.faq.wrap .faq-list details:nth-child(2) {
  min-height: 54px;
  border: 1.5px solid #df9bb1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  padding: 0 17px;
  box-shadow: 0 1px 0 rgba(168, 36, 96, 0.04);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.faq.wrap .faq-list details[open] {
  background: #fffaf7;
  border-color: #c95a7d;
}
.faq.wrap .faq-list details:hover,
.faq.wrap .faq-list details:focus-within {
  border-color: #bd2f68;
  background: #fffafc;
}
.faq.wrap .faq-list summary {
  min-height: 52px;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.35;
  font-family: "Jewel Sans", Arial, sans-serif;
  font-weight: 700;
  color: #203d37;
  transition: color .2s ease;
}
.faq.wrap .faq-list details:hover summary,
.faq.wrap .faq-list details:focus-within summary,
.faq.wrap .faq-list details[open] summary {
  color: #b52a63;
}
.faq.wrap .faq-list summary span {
  position: relative;
  width: 26px;
  height: 26px;
  margin: 0;
  border-radius: 50%;
  background: #f4d5df;
  color: #9e3d60;
  flex-shrink: 0;
}
.faq.wrap .faq-list summary span::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-width: 0 1.5px 1.5px 0;
  transform: translate(-50%, -65%) rotate(45deg);
}
.faq.wrap .faq-list details[open] summary span {
  transform: none;
}
.faq.wrap .faq-list details[open] summary span::after {
  transform: translate(-50%, -35%) rotate(225deg);
}
.faq.wrap .faq-list details p {
  margin: 0 38px 16px 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.65;
}
.faq.wrap .faq-list details:last-child summary {
  white-space: nowrap;
  font-size: 14px;
}
@media (max-width: 900px) {
  .faq.wrap { padding-block: 64px; }
  .faq.wrap .faq-list { grid-template-columns: 1fr; gap: 10px; }
  .faq.wrap .faq-list details:last-child summary {
    white-space: normal;
  }
}
@media (max-width: 650px) {
  .faq.wrap { padding-block: 52px; }
  .faq.wrap h2 { font-size: 38px; }
  .faq.wrap .faq-list summary { min-height: 58px; font-size: 15px; }
  .faq.wrap .faq-list details,
  .faq.wrap .faq-list details:first-child,
  .faq.wrap .faq-list details:nth-child(2) { padding-inline: 14px; }
}

/* FAQ: every question box is two lines tall on desktop, so the gap between all questions is equal */
@media (min-width: 901px) { .faq.wrap .faq-list summary { min-height: 3em; } }

/* Life at Jewel heading: "Space to be themselves." upright, not italic (keeps its colour) */
.life .life-heading h2 em { font-style: normal; }
