:root {
  --orange: #ff4002;
  --orange-light: #ff914d;
  --green: #63974a;
  --green-light: #9bb961;
  --sun: #ffcc02;
  --sun-light: #fffced;
  --card-radius: 20px;
  --pill-radius: 50px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  background-color: white;
  color: black;
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 18px;
}

p {
  margin-bottom: 18px;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Work Sans', sans-serif; font-weight: 600; }

h1 { 
  font-size: clamp(3.6rem, 7.7vw, 72px);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 2rem;
}

h2 { 
  font-size: clamp(2.1rem, 4.2vw, 42px);
  line-height: 1;
  color: var(--green);
  margin-bottom: 1rem;
}

h3 { 
  font-size: clamp(1.2rem, 2vw, 30px);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.eyebrow {
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.25rem;
  margin-bottom: 14px;
}
/* ---- LAYOUT ---- */
.container { max-width: 75rem; margin: 0 auto; padding: 0 2rem; }

/* ---- TEXTURE BACKGROUND UTILITY ---- */
.texture-bg {
  position: relative;
  background-color: var(--sun-light);
}
.texture-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
.texture-bg > * { position: relative; z-index: 1; }

.btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--pill-radius);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-green {
  background: var(--green);
  color: white;
}
.btn-green:hover { background: var(--green-light); transform: translateY(-2px); }

.tuition-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.btn-orange {
  background: var(--orange);
  color: white;
}
.btn-orange:hover { background: var(--orange); transform: translateY(-2px); }

.btn-white {
  background: white;
  color: var(--green);
}
.btn-white:hover { background:  var(--sun-light); color: var(--green); transform: translateY(-2px);}

.btn-ghost {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-ghost:hover  { background: transparent; border-color: var(--sun-light); color: var(--sun-light); transform: translateY(-2px);}

.link {
  text-decoration: underline;
  transition: gap var(--transition), color var(--transition);
}
.link:hover { color: var(--orange); gap: 0.6rem; }

/* =======================================
   HEADER / NAV
   ======================================= */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  z-index: 99;
  border-bottom: 0.0625rem solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: 75rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-mark {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo .logo-mark { background: none; }
.footer-logo .logo-mark {
  width: 270px; height: auto;
  object-fit: contain;
  object-position: top;
}

.logo-text {
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav a {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  color: black;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 0.125rem;
  background: var(--orange);
  border-radius: 2px;
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--orange); }
.main-nav a:hover::after { width: 100%; }
.hamburger {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}
.hamburger span {
  display: block;
  width: 1.5rem; height: 0.125rem;
  background: black;
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 24rem;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  background: white;
  padding: 6rem 8% 2rem;
  box-shadow: -0.5rem 0 2rem rgba(0,0,0,0.12);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  z-index: 1;
}
.mobile-menu a {
  padding: 0.7rem 0;
  font-size: 16px;
  font-weight: 500;
  color: black;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }

/* =======================================
   HERO
   ======================================= */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(20, 30, 15, 0.8), rgba(20, 30, 15, 0.8)), var(--sun-light) url("/images/hero.webp") center center / cover no-repeat;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
/* Linen texture on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}

/* Guidepost-style playful circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.1;
}
.circle-1 {
  width: 30rem; height: 30rem;
  background: var(--orange);
  top: -180px; right: -100px;
  border-radius: 50%;
  animation: circleFloat1 10s ease-in-out infinite alternate;
}
.circle-3 {
  width: 12.5rem; height: 12.5rem;
  background: var(--green);
  top: 30%; left: 30%;
  border-radius: 50%;
  animation: circleFloat1 9s ease-in-out infinite alternate-reverse;
  opacity: 0.08;
}
@keyframes circleFloat1 {
  from { transform: translate(0,0) scale(1) rotate(0deg); }
  to   { transform: translate(20px, -30px) scale(1.06) rotate(8deg); }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-eyebrow {
  font-weight: 600;
  letter-spacing: 0.25rem;
  font-size: 18px;
  color: white;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 28px;
  max-width: 40rem;
  margin-bottom: 3rem;
  line-height: 1.5;
  color: white;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* =======================================
   SECONDARY HERO
   ======================================= */
.secondary-hero {
  min-height: 18rem;
  display: flex;
  align-items: center;
  padding: 4rem 0%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(255, 204, 2, 0.92), rgba(255, 204, 2, 0.92)), var(--sun-light) url("/images/hero.webp") center center / cover no-repeat;
}
.secondary-hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
/* Linen texture on secondary hero */
.secondary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}
.secondary-hero-content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.secondary-hero-sub {
  font-size: 28px;
  max-width: 40rem;
  line-height: 1.5;
  color: white;
}

/* =======================================
   SECONDARY HERO GREEN
   ======================================= */
.secondary-hero-green {
  min-height: 18rem;
  display: flex;
  align-items: center;
  padding: 4rem 0%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(99, 151, 74, 0.92), rgba(99, 151, 74, 0.92)), var(--green) url("/images/hero.webp") center center / cover no-repeat;
}
.secondary-hero-green.secondary-hero-orange {
  background: linear-gradient(color-mix(in srgb, var(--orange) 92%, transparent), color-mix(in srgb, var(--orange) 92%, transparent)), var(--orange) url("/images/hero.webp") center center / cover no-repeat;
}
.secondary-hero-green-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}
/* Linen texture on secondary hero */
.secondary-hero-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  pointer-events: none;
}
.secondary-hero-green-content {
  position: relative;
  z-index: 2;
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.circle-yellow {
  position: absolute;
  width: 21.875rem; height: 21.875rem;
  background: var(--sun);
  opacity: 0.12;
  border-radius: 50%;
  bottom: -80px; left: -60px;
  pointer-events: none;
  animation: circleFloat1 12s ease-in-out infinite alternate;
}
.circle-yellow-2 {
  position: absolute;
  width: 21.875rem; height: 21.875rem;
  background: var(--sun);
  opacity: 0.12;
  border-radius: 50%;
  bottom: 20px; left: -90px;
  pointer-events: none;
  animation: circleFloat1 12s ease-in-out infinite alternate;
}
.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 56px;
}

.section-desc {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 56px;
}

/* == PROGRAMS == */
.programs-section {
  padding: 6rem 0 3rem 0;
  position: relative;
  overflow: hidden;
}

.programs-section > .container { 
  position: relative; 
  z-index: 1; 
}

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

.program-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.pc-img-wrap {
  position: relative;
  height: 13.75rem;
  overflow: hidden;
}

.pc-img-wrap img { transition: transform 0.5s ease; }

.program-card:hover .pc-img-wrap img { transform: scale(1.04); }

.pc-body {
  padding: 1.6rem 1.8rem;
}

/* == ABOUT == */
.about-section {
  padding: 7rem 0;
  background: white;
}

.about-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap {
  border-radius: 30px;
  overflow: hidden;
  height: 31rem;
  box-shadow: 0 20px 60px rgba(45,74,62,0.15);
}
.about-image { position: relative; }
.about-text-photo {
  width: 200px;
  height: auto;
  margin-top: 3rem;

}

.about-text h2 { margin-bottom: 24px; }

/* About block with no photo: single full-width text column */
.about-inner-text-full {
  grid-template-columns: 1fr;
}

/* == TEXT-CENTER (duplicated from ABOUT, photo removed - text only, centered) == */
.text-center {
  padding: 7rem 0%;
  background: white;
}

.text-center-inner {
  max-width: 45rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


/* == TUITION == */

.tuition-section {
  padding: 3rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Tuition & Fees accordion */
.tuition-fees {
  background: white;
  border-radius: var(--card-radius);
  padding: 2.2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.tuition-fees h3 {
  margin-bottom: 24px;
  font-size: 22.4px;
  color: var(--green);
}
.fees-list { display: flex; flex-direction: column; gap: 0; }
.fee-item {
  border-bottom: 0.0625rem solid rgba(0,0,0,0.07);
}
.fee-item:last-child { border-bottom: none; }
.fee-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.625rem 0;
  cursor: pointer;
  list-style: none;
}
.fee-summary::-webkit-details-marker { display: none; }
.fee-toggle {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange-light);
  color: white;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--transition);
}
.fee-item[open] .fee-toggle { transform: rotate(45deg); }
.fee-details {
  padding: 0 0 1.1rem 0;
  color: black;
}
.fee-details p { margin: 0; }
.fee-details ul {
  margin: 8px 0 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.fee-details li {
  margin-bottom: 8px;
}
.fee-details li:last-child {
  margin-bottom: 0;
}
.fee-info { flex: 1; }
.fee-info h3 { margin-bottom: 0; }

/* =======================================
   GALLERY (Amare-style)
   ======================================= */
.gallery-section { padding: 5rem 0 0; background: white; }
.gallery-heading { text-align: center; padding: 0 2rem; margin-bottom: 32px; }
.gallery-strip {
  display: flex;
  gap: 0.5rem;
  height: 23.75rem;
  overflow: hidden;
}
.gallery-strip + .gallery-strip { margin-top: 0.5rem; }
.gallery-item {
  flex: 1;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}
.gallery-item.gi-tall { flex: 1.3; }
.gallery-item.gi-wide { flex: 2; }
.gallery-item img {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img { transform: scale(1.06); }
/* Hover overlay */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45,74,62,0);
  transition: background var(--transition);
  pointer-events: none;
}
.gallery-item:hover::after { background: rgba(45,74,62,0.15); }
.gallery-item img { cursor: zoom-in; }

/* =======================================
   PHOTO LIGHTBOX
   ======================================= */
body.lightbox-locked { overflow: hidden; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 5%;
  background: rgba(20, 30, 15, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 3.75rem rgba(0,0,0,0.4);
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.lightbox-overlay.open img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 5%;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

@media (max-width: 600px) {
  .lightbox-close { top: 1.25rem; width: 2.25rem; height: 2.25rem; font-size: 1.5rem; }
  .nav-right > .btn { display: none; }
}

/* == APP INFO == */
.app-info-section {
  padding: 6rem 0;
  text-align: center;
  background: var(--green);
  position: relative;
  overflow: hidden;
}

.app-info-section .container { 
  position: relative; 
  z-index: 1; 
}

.app-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.app-info-grid .btn {
  justify-content: center;
  width: 100%;
}

/* == FOOTER == */

.site-footer {
  background: #fff4c2;
  color: black;
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--orange-light);
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-self: start;
  gap: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: flex-start;
}

.social-links { display: flex; gap: 0.8rem; padding-top: 2rem; }
.social-links a {
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.social-links a:hover { border-color: var(--orange); }
.footer-links {
  display: contents;
}
.footer-col h4 {
  font-family: 'Work Sans', sans-serif;
  margin-bottom: 1.2rem;
}
.footer-col a, .footer-col p {
  display: block;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--orange); }
.footer-col .social-links a {
  display: flex;
  margin-bottom: 0;
}
.footer-bottom .container > div {
  display: flex;
  gap: 1rem;
}
.footer-bottom .container > div a {
  transition: color var(--transition);
}
.footer-bottom .container > div a:hover { color: var(--orange); }
.footer-bottom {
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap:1rem;
  flex-wrap: wrap;
}

/* =======================================
   SCROLL ANIMATIONS
   ======================================= */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
[data-animate="fade-up"]    { transform: translateY(32px); }
[data-animate="fade-right"] { transform: translateX(-32px); }
[data-animate="fade-left"]  { transform: translateX(32px); }
[data-animate].animated {
  opacity: 1;
  transform: translate(0);
}

/* =======================================
   RESPONSIVE
   ======================================= */
@media (max-width: 1200px) {
  .programs-grid { grid-template-columns: 1fr; max-width: 40rem; margin: 0 auto; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 1024px) {
  .hero {
    padding: 4rem 2rem;
    min-height: unset;
    text-align: center;
  }
  .hero-inner {
    flex-direction: column;
  }
  .hero-content {
    max-width: 100%;
    align-items: center;
  }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 32px; }
  .secondary-hero {
    padding: 3rem 0%;
    min-height: unset;
    text-align: center;
  }
  .secondary-hero-inner {
    flex-direction: column;
  }
  .secondary-hero-content {
    max-width: 100%;
    align-items: center;
  }
  .secondary-hero-green {
    padding: 3rem 0%;
    min-height: unset;
    text-align: center;
  }
  .secondary-hero-green-inner {
    flex-direction: column;
  }
  .secondary-hero-green-content {
    max-width: 100%;
    align-items: center;
  }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .programs-grid { max-width: 40rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .gallery-strip { height: 16.25rem; }
  .app-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .app-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .gallery-strip { height: 12.5rem; }
  .gallery-item.gi-wide { flex: 1.5; }
  .footer-links { grid-template-columns: 1fr 1fr; }}

@media (max-width: 500px) {
  .nav-right .btn-orange { display: none; }
  .container, .gallery-heading { padding-left: 1.5rem; padding-right: 1.5rem; }
  .gallery-strip { flex-wrap: nowrap; gap: 0.25rem; }
  .gallery-item.gi-tall, .gallery-item.gi-wide { flex: 1; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer-bottom .container p { text-align: left; align-self: flex-start; }
  .tuition-section h3 { font-size: clamp(1.2rem, 2vw, 24px); }
  .about-img-wrap { height: auto; aspect-ratio: 1 / 1; }
  .logo-text { display: none; }
  .footer-logo .logo-mark { width: 220px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =======================================
   INFO GRID (2x2 text + photo blocks)
   ======================================= */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.info-cell {
  min-height: 20rem;
}
.info-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.info-text-1 { padding: 5rem 5rem 5rem clamp(2rem, calc(50vw - 37.5rem), 22rem); }
.info-text-2 { padding: 5rem clamp(2rem, calc(50vw - 37.5rem), 22rem) 5rem 5rem; }
.info-text h2 { margin-bottom: 24px; }
.info-list { list-style: disc; padding-left: 1.5rem; margin-top: 0rem; }
.info-list li { line-height: inherit; margin-bottom: 1.125rem; }
.info-text .btn { align-self: flex-start; margin-top: 2rem; }
.info-text .info-note {
  font-style: italic;
  margin-top: 1.5rem;
}
.info-photo {
  position: relative;
  overflow: hidden;
}
.info-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-cell { min-height: 16rem; }
  .info-text {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 7%;
    padding-right: 7%;
  }
  /* stacked: text then photo in every group of 4 (swap 3rd and 4th cell) */
  .info-grid > :nth-child(1) { order: 1; }
  .info-grid > :nth-child(2) { order: 2; }
  .info-grid > :nth-child(3) { order: 4; }
  .info-grid > :nth-child(4) { order: 3; }
  .info-grid > :nth-child(5) { order: 5; }
  .info-grid > :nth-child(6) { order: 6; }
  .info-grid > :nth-child(7) { order: 8; }
  .info-grid > :nth-child(8) { order: 7; }
  .info-grid > :nth-child(9) { order: 9; }
  .info-grid > :nth-child(10) { order: 10; }
}

/* .info-grid-4x3 (all four program pages): photo cells are never shorter than square,
   so portrait photos keep the children's work in frame. The empty ::before sets that
   minimum height; if the text cell beside it is taller, the row grows and the photo
   (object-fit: cover) fills the extra height. Per-photo focal points are set inline. */
.info-grid-4x3 .info-photo img { object-position: center; }
.info-grid-4x3 .info-photo::before {
  content: "";
  display: block;
  aspect-ratio: 1 / 1;
}
@media (max-width: 1024px) {
  /* stacked full-width: keep it square but stop it getting taller than 48rem */
  .info-grid-4x3 .info-photo { max-height: 48rem; }
}

body, button, input, textarea, select {
  -webkit-font-smoothing: antialiased;
}

.section { padding: 6rem 7%; }

/* =======================================
   CONTACT FORM
   ======================================= */
.contact-section {
  padding: 5rem 7%;
  background: white;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 75rem;
  margin: 0 auto;
}
.contact-photo {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 34rem;
  border-radius: var(--card-radius);
}
.contact-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-form-wrap {
  max-width: 40rem;
}
.contact-grid-photo-right .contact-photo {
  order: 2;
}
.contact-grid-photo-right .contact-form-wrap {
  order: 1;
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    order: -1;
  }
  .contact-grid-photo-right .contact-photo {
    order: -1;
  }
  .contact-form-wrap {
    max-width: 100%;
  }
  .contact-section-details .contact-form-wrap > br { display: none; }
  .contact-section-details .contact-form-wrap h1 { margin-bottom: 1.5rem; }
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-detail {
  font-size: 18px;
  line-height: 1.7;
}
.map-section {
  padding: 0;
  background: white;
}
.map-section + .contact-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.contact-section.contact-section-details {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.map-container {
  width: 100%;
  min-height: 35rem;
  display: flex;
}
.map-container iframe {
  flex: 1;
  width: 100%;
  min-height: 25rem;
  border: 0;
}
.form-group {
  margin-bottom: 2rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 0.6rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #2b2b2b;
  background: white;
}
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #2b2b2b;
  background: white;
}
.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.phone-field:focus-within {
  outline: none;
  border-color: var(--green);
}
.phone-field {
  display: flex;
  align-items: stretch;
  border: 0.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 0.5rem;
}
.country-select {
  position: relative;
  flex-shrink: 0;
}
.country-select-toggle {
  display: flex;
  align-items: center;
  height: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  padding: 0 2rem 0 0.75rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  background: white;
  color: #2b2b2b;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}
.country-select-toggle:focus {
  outline: none;
}
.country-select-toggle::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-35%);
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-top: 0.35rem solid #6b6b6b;
}
.country-select-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  min-width: 15rem;
  background: white;
  border: 0.0625rem solid rgba(0, 0, 0, 0.18);
  border-radius: 0.4rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
  z-index: 20;
  overflow: hidden;
}
.country-search {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.12);
  padding: 0.7rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: #2b2b2b;
  background: white;
}
.country-search:focus {
  outline: none;
  background: rgba(99, 151, 74, 0.05);
}
.country-select-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 14rem;
  overflow-y: auto;
}
.country-option {
  padding: 0.55rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  color: #2b2b2b;
  cursor: pointer;
  white-space: nowrap;
}
.country-option[hidden] {
  display: none;
}
.country-option:hover,
.country-option:focus {
  background: rgba(99, 151, 74, 0.1);
  outline: none;
}
.country-option.is-selected {
  background: rgba(99, 151, 74, 0.16);
  font-weight: 600;
}
.country-no-results {
  padding: 0.75rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.85rem;
  color: #6b6b6b;
}
.phone-field input {
  flex: 1;
  min-width: 0;
  border: none;
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  padding: 0.9rem 1rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #2b2b2b;
}
.phone-field input:focus {
  outline: none;
}
.form-submit {
  width: 100%;
  border: none;
  border-radius: 0.4rem;
  padding: 1rem;
  background: var(--green);
  color: white;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.form-submit:hover {
  background: var(--green-light);
}

/* Onespot's message when a contact form submission doesn't go through */
.form-status {
  margin-top: 0.75rem;
  color: var(--orange);
  font-size: 0.95rem;
}

/* =======================================
   TUITION PHOTOS
   ======================================= */
.tuition-photos {
  background: white;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 2rem;
}
.tuition-photos + .about-section { padding-top: 3rem; }
.tuition-photos-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.tuition-photo-link {
  margin-top: 0.75rem;
  text-align: center;
}
.tuition-photo img {
  border-radius: var(--card-radius);
  width: 68%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 1600px) {
  .tuition-photo img { width: 78%; }
}

@media (max-width: 1400px) {
  .tuition-photo img { width: 88%; }
}
@media (max-width: 1200px) {
  .tuition-photo img { width: 100%; }
}

@media (max-width: 1024px) {
  .about-inner-photo-right .about-image {
    order: -1;
  }
}

.about-inner-photo-right .about-text ul {
  padding-left: 5%;
  margin-bottom: 1.125rem;
}

.about-inner-photo-right .about-img-wrap {
  height: auto;
  aspect-ratio: 3 / 4;
}

.about-inner-portrait .about-img-wrap {
  height: auto;
  aspect-ratio: 3 / 4;
}

/* Badge section (IMC page): same as .about-section but with a tighter bottom */
.badge-section {
  padding: 7rem 0 2.5rem;
  background: white;
}
.badge-inner {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.badge-image { position: relative; }
.badge-text {
  max-width: 60rem;
  text-align: center;
}
.badge-text h2 { margin-bottom: 24px; color: #3d9b9a; }

.imc-badge {
  width: 100%;
  max-width: 16rem;
  margin: 0 auto;
}
.imc-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* About photos: 16:9 when the layout stacks */
@media (max-width: 1024px) {
  .about-img-wrap,
  .about-inner-photo-right .about-img-wrap,
  .about-inner-portrait .about-img-wrap {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}
