/* Age-specific program page. This layer extends Marso's shared site.css only. */

.program-age-hero .page-hero__copy {
  position: relative;
  z-index: 2;
}

.program-age-hero .page-hero__copy h1 {
  max-width: 720px;
}

.program-age-hero .page-hero__copy > p {
  margin-bottom: 24px;
}

.program-age-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-width: 520px;
  margin: 0 0 26px;
  padding: 0;
}

.program-age-facts > div {
  min-width: 0;
  min-height: 98px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.72);
}

.program-age-facts .program-age-facts__price {
  border-color: var(--saffron);
  background: var(--saffron);
}

.program-age-facts dt {
  color: var(--ink-soft);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.program-age-facts dd {
  margin: 4px 0 0;
  color: var(--berry);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.program-age-facts dd span {
  margin-right: 2px;
  font-size: 0.72em;
}

.program-age-facts dd small {
  font-size: 0.42em;
  font-weight: 600;
}

.program-age-hero__media {
  max-width: 560px;
  margin-top: 22px;
}

.program-age-hero__media img {
  aspect-ratio: 4 / 3;
  object-position: center;
  border-radius: 44% 56% 28% 32% / 35% 42% 28% 34%;
}

.program-age-hero__media .photo-note {
  right: -4px;
  bottom: -18px;
  background: var(--coral);
}

.program-foundation {
  background: var(--white);
}

.program-foundation__grid {
  display: grid;
  gap: 24px;
  align-items: end;
}

.program-foundation__grid h2 {
  max-width: 800px;
  margin-bottom: 0;
}

.program-foundation__lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.trust-markers {
  display: grid;
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-markers article {
  min-height: 230px;
  padding: 30px 26px;
  background: var(--paper);
}

.trust-markers article > span {
  color: var(--aqua-text);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.trust-markers article:nth-child(2) > span {
  color: var(--coral-text);
}

.trust-markers article:nth-child(3) > span {
  color: var(--berry);
}

.trust-markers h3 {
  margin: 44px 0 10px;
}

.trust-markers p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.team-band {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: var(--berry);
}

.team-band::before {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  top: -330px;
  right: -180px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 46% 54% 61% 39% / 53% 39% 61% 47%;
  transform: rotate(18deg);
}

.team-band__heading {
  position: relative;
  max-width: 880px;
  margin-bottom: 52px;
}

.team-band__heading h2 {
  margin-bottom: 22px;
}

.team-band__heading > p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.76);
  font-size: 1.08rem;
}

.team-support-grid {
  position: relative;
  display: grid;
  gap: 14px;
}

.teacher-card,
.psychology-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 253, 250, 0.07);
}

.teacher-card__initial,
.psychology-card__mark {
  width: 76px;
  aspect-ratio: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 48% 52% 57% 43% / 61% 42% 58% 39%;
  color: var(--berry);
  background: var(--saffron);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 2rem;
  transform: rotate(-5deg);
}

.teacher-card:nth-child(2) .teacher-card__initial {
  color: var(--cream);
  background: var(--coral);
  transform: rotate(5deg);
}

.teacher-card__role {
  display: block;
  margin-bottom: 7px;
  color: var(--saffron);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.teacher-card h3,
.psychology-card h3 {
  margin-bottom: 8px;
}

.teacher-card p,
.psychology-card p {
  margin-bottom: 0;
  color: rgba(255, 250, 240, 0.7);
  font-size: 0.94rem;
}

.psychology-card {
  color: var(--ink);
  background: var(--saffron);
  border-color: var(--saffron);
}

.psychology-card__mark {
  color: var(--cream);
  background: var(--berry);
}

.psychology-card .teacher-card__role {
  color: var(--berry);
}

.psychology-card p {
  color: rgba(52, 50, 48, 0.78);
}

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

.sensory-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sensory-list li {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}

.sensory-list li:last-child {
  border-bottom: 0;
}

.sensory-list span {
  color: var(--aqua-text);
  font-size: 0.74rem;
}

.sensory-list li:nth-child(2) span {
  color: var(--coral-text);
}

.sensory-list li:nth-child(3) span {
  color: var(--berry);
}

.sensory-list li:nth-child(4) span {
  color: var(--aqua-text);
}

.sensory-list li:nth-child(5) span {
  color: var(--coral-text);
}

.sensory-list strong {
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.sensory-note {
  max-width: 780px;
  margin: 36px 0 0 auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.steady-days {
  background: var(--paper);
}

.steady-days__grid {
  display: grid;
  gap: 34px;
}

.steady-days__grid h2 {
  max-width: 560px;
  margin-bottom: 0;
}

.steady-days__copy {
  max-width: 720px;
}

.steady-days__copy > p {
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.steady-days blockquote {
  position: relative;
  margin: 0;
  padding: 26px 28px 26px 32px;
  border-left: 5px solid var(--coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--berry);
  background: var(--coral-soft);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.5;
}

.program-closing {
  background: var(--leaf);
}

/* 4–5 program: creative learning and independent discovery. */

.program-age-hero--creative .program-age-hero__media img {
  object-position: center;
}

.program-age-hero--creative .photo-note {
  color: var(--cream);
  background: var(--aqua);
}

.creative-team-band::before {
  border-radius: 38% 62% 48% 52% / 56% 44% 56% 44%;
  transform: rotate(-12deg);
}

.creative-team-grid {
  grid-template-columns: 1fr;
}

.creative-team-grid .teacher-card,
.creative-team-grid .psychology-card {
  align-items: start;
}

.creative-method-card {
  grid-column: auto;
}

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

.enrichment-grid {
  display: grid;
  gap: 14px;
}

.enrichment-card {
  position: relative;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--aqua);
  border-radius: var(--radius);
  background: var(--paper);
}

.enrichment-card:nth-child(2) {
  border-top-color: var(--coral);
}

.enrichment-card:nth-child(3) {
  border-top-color: var(--saffron);
}

.enrichment-card:nth-child(4) {
  border-top-color: var(--berry);
}

.enrichment-card:nth-child(5) {
  border-top-color: var(--aqua);
}

.enrichment-card__icon {
  width: 54px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 48% 52% 58% 42% / 60% 44% 56% 40%;
  color: var(--cream);
  background: var(--berry);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transform: rotate(-4deg);
}

.enrichment-card:nth-child(2) .enrichment-card__icon,
.enrichment-card:nth-child(5) .enrichment-card__icon {
  color: var(--berry);
  background: var(--saffron);
  transform: rotate(4deg);
}

.enrichment-card:nth-child(3) .enrichment-card__icon {
  background: var(--coral);
}

.enrichment-card:nth-child(4) .enrichment-card__icon {
  background: var(--aqua);
}

.enrichment-card__number {
  position: absolute;
  top: 28px;
  right: 26px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.enrichment-card h3 {
  margin-bottom: 12px;
}

.enrichment-card p {
  margin: auto 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tradition-section {
  background: var(--aqua-soft);
}

.tradition-section blockquote {
  border-left-color: var(--aqua);
  background: var(--white);
}

.creative-closing {
  background: var(--berry);
}

/* 5–6 program: ten themes about the world and school readiness. */

.program-age-hero--world .program-age-hero__media img {
  object-position: center;
}

.program-age-hero--world .photo-note {
  color: var(--berry);
  background: var(--saffron);
}

.world-team-band::before {
  border-radius: 58% 42% 36% 64% / 42% 58% 42% 58%;
  transform: rotate(9deg);
}

.world-team-grid {
  grid-template-columns: 1fr;
}

.world-team-grid .teacher-card,
.world-team-grid .psychology-card {
  align-items: start;
}

.world-author-card {
  grid-column: auto;
}

.world-outcomes-section {
  background:
    radial-gradient(circle at 90% 8%, rgba(30, 171, 208, 0.1), transparent 22rem),
    var(--white);
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line);
  list-style: none;
}

.experience-strip li {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--berry);
  background: var(--aqua-soft);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.experience-strip li:nth-child(2),
.experience-strip li:nth-child(5) {
  background: var(--saffron-soft);
}

.experience-strip li:nth-child(3),
.experience-strip li:nth-child(6) {
  background: var(--coral-soft);
}

.school-readiness-section {
  background: var(--saffron-soft);
}

.school-readiness-section blockquote {
  border-left-color: var(--saffron);
  background: var(--white);
}

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

.curriculum-grid {
  display: grid;
  gap: 1px;
  padding: 1px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.curriculum-card {
  position: relative;
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--paper);
}

.curriculum-card__icon {
  width: 50px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  margin-bottom: 36px;
  border-radius: 50%;
  color: var(--cream);
  background: var(--aqua);
  font-family: "Noto Sans Georgian", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.curriculum-card:nth-child(3n + 2) .curriculum-card__icon {
  color: var(--berry);
  background: var(--saffron);
}

.curriculum-card:nth-child(3n) .curriculum-card__icon {
  background: var(--coral);
}

.curriculum-card__number {
  position: absolute;
  top: 28px;
  right: 26px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.curriculum-card h3 {
  margin-bottom: 10px;
}

.curriculum-card p {
  margin: auto 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.curriculum-card--featured {
  color: var(--cream);
  background: var(--berry);
}

.curriculum-card--featured .curriculum-card__icon {
  color: var(--berry);
  background: var(--saffron);
}

.curriculum-card--featured .curriculum-card__number {
  color: rgba(255, 250, 240, 0.62);
}

.curriculum-card--featured p {
  color: rgba(255, 250, 240, 0.75);
}

.world-closing {
  background: var(--aqua-text);
}

/* 3–4 program: discovery, play, movement, and communication. */

.program-age-hero--discovery .program-age-hero__media img {
  object-position: center;
}

.program-age-hero--discovery .photo-note {
  color: var(--cream);
  background: var(--coral);
}

.discovery-team-band::before {
  border-radius: 42% 58% 64% 36% / 52% 38% 62% 48%;
  transform: rotate(-8deg);
}

.discovery-team-grid {
  grid-template-columns: 1fr;
}

.discovery-team-grid .teacher-card,
.discovery-team-grid .psychology-card {
  align-items: start;
}

.discovery-english-card {
  grid-column: auto;
}

.discovery-activities-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(248, 41, 121, 0.07), transparent 22rem),
    var(--white);
}

.emotional-growth-section {
  background: var(--coral-soft);
}

.emotional-growth-section blockquote {
  border-left-color: var(--coral);
  background: var(--white);
}

.discovery-closing {
  background: var(--coral-text);
}

@media (min-width: 641px) {
  .program-foundation__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 60px;
  }

  .trust-markers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .psychology-card {
    grid-column: 1 / -1;
  }

  .sensory-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sensory-list li {
    min-height: 210px;
    padding: 28px 18px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .sensory-list li:last-child {
    border-right: 0;
  }

  .creative-team-grid,
  .enrichment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-team-grid,
  .discovery-team-grid,
  .curriculum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .enrichment-card--wide {
    grid-column: 1 / -1;
  }

  .curriculum-card--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 901px) {
  .program-age-hero__media {
    margin-top: 0;
  }

  .team-support-grid {
    grid-template-columns: repeat(2, minmax(0, 0.72fr)) minmax(0, 1.1fr);
  }

  .psychology-card {
    grid-column: auto;
  }

  .steady-days__grid {
    grid-template-columns: minmax(0, 0.72fr) minmax(440px, 1fr);
    align-items: start;
    gap: 90px;
  }

  .creative-team-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

  .discovery-team-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

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

  .enrichment-card--wide {
    grid-column: span 2;
  }

  .experience-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

  .curriculum-card--featured {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .program-age-hero .page-hero__copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.4rem);
  }

  .program-age-hero--creative .page-hero__copy h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.05rem, 9.7vw, 3rem);
  }

  .program-age-hero--discovery .page-hero__copy h1 {
    overflow-wrap: anywhere;
    font-size: clamp(2.05rem, 9.7vw, 3rem);
  }

  .program-age-hero__media .photo-note {
    right: 4px;
  }

  .trust-markers article {
    min-height: 200px;
  }

  .teacher-card,
  .psychology-card {
    grid-template-columns: 1fr;
  }

  .teacher-card__initial,
  .psychology-card__mark {
    width: 64px;
  }

  .enrichment-card {
    min-height: 260px;
  }

  .curriculum-card {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-band::before,
  .teacher-card__initial,
  .psychology-card__mark {
    transform: none;
  }

  .creative-team-band::before,
  .discovery-team-band::before,
  .world-team-band::before,
  .enrichment-card__icon {
    transform: none;
  }
}
