/* ===================================================================
   SACRED HEART SCHOOL — "Roots & Stars" Theme v2
   Where the garden meets the cosmos.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Palette ── */
  --forest: #183D2E;
  /* deep authority green */
  --forest-700: #122F23;
  --forest-900: #0C1F17;
  --canopy: #2D7A52;
  /* vibrant mid-green */
  --leaf: #5AB87A;
  /* highlight green */
  --leaf-tint: #EBF5EE;
  --leaf-dim: rgba(90, 184, 122, .18);

  --amber: #D4872B;
  /* afternoon-sun warmth */
  --amber-light: #F2C47C;
  --amber-dim: rgba(212, 135, 43, .15);
  --amber-pale: #FDF6EA;

  --sky: #3A8FBF;
  /* astronomy blue */
  --sky-light: #84C5E0;
  --sky-dim: rgba(58, 143, 191, .15);

  --cream: #F4F7F0;
  /* main bg — very light green-cream */
  --parchment: #E6EFE0;
  /* warm section bg */
  --white: #FFFFFF;

  --ink: #141F19;
  /* forest-dark text */
  --ink-soft: #4A6055;
  /* muted body text */
  --border: #C8DBCE;
  --glass-bg: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .5);

  /* ── Type ── */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Geometry ── */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1280px;

  /* ── Shadow ── */
  --shadow-sm: 0 2px 10px rgba(20, 50, 30, .05);
  --shadow-md: 0 10px 32px rgba(20, 50, 30, .09);
  --shadow-lg: 0 24px 64px rgba(20, 50, 30, .15);
  --shadow-amber: 0 8px 24px rgba(212, 135, 43, .28);

  /* ── Motion ── */
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  font-weight: 400;
  /* DM Serif Display is best at regular weight */
  color: var(--forest-900);
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 36px;
}

@media (max-width:640px) {
  .container {
    padding: 0 20px;
  }
}

/* ── Section spacing ── */
section {
  padding: 96px 0;
}

@media (max-width:768px) {
  section {
    padding: 64px 0;
  }
}

/* ── Background utilities ── */
.bg-parchment {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 255, 255, .5) 0, transparent 40%),
    radial-gradient(circle at 92% 88%, rgba(45, 122, 82, .07) 0, transparent 45%),
    var(--parchment);
}

.bg-forest {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, var(--forest-900) 0%, var(--forest) 55%, var(--forest-700) 100%);
  color: #fff;
}

/* Botanical corner illustrations — matched top-left/bottom-right pair, carried into every
   tinted section so it reads sitewide instead of just on the hero banner. */
.bg-parchment::after,
.bg-forest::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    url('../imagesb/decorative/silhouette-topleft.webp'),
    url('../imagesb/decorative/silhouette-bottomright.webp');
  background-position: left -30px top -20px, right -30px bottom -20px;
  background-size: 320px auto, 300px auto;
}

.bg-parchment::after {
  opacity: .18;
}

.bg-forest::after {
  opacity: .24;
}

.bg-forest h1,
.bg-forest h2,
.bg-forest h3 {
  color: #fff;
}

.bg-forest .eyebrow {
  color: var(--amber-light);
}

.bg-forest .eyebrow::before {
  background: var(--amber-light);
}

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--canopy);
  font-weight: 700;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: var(--amber);
}

.eyebrow.center {
  justify-content: center;
}

/* ── Section head ── */
.section-head {
  max-width: 660px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.2vw, 40px);
}

.section-head h2 em {
  font-style: italic;
  color: var(--canopy);
}

.section-head .lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ── Decorative divider ── */
.divider-amber {
  width: 52px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 16px 0;
}

.pill-tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--leaf-tint);
  color: var(--canopy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.muted {
  color: var(--ink-soft);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
    background .3s, color .3s, border-color .3s;
  white-space: nowrap;
  cursor: pointer;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: saturate(.6);
}

.btn-primary,
.btn-amber {
  position: relative;
  overflow: visible;
}

.btn-primary::before,
.btn-amber::before {
  content: '';
  position: absolute;
  top: -13px;
  right: 22px;
  width: 20px;
  height: 27px;
  background: url('../imagesb/decorative/btn-sprig.svg') no-repeat center/contain;
  transition: transform .35s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-amber:hover::before {
  transform: translateY(-3px) rotate(-6deg);
}

.btn-sm::before {
  display: none;
}

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--forest-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  color: var(--forest-900);
  box-shadow: var(--shadow-amber);
}

.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(212, 135, 43, .4);
}

.btn-ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .2);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: #fff;
}

.btn-outline-amber {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}

.btn-outline-amber:hover {
  background: var(--amber);
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13.5px;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--leaf-dim);
}

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Program / feature card */
.prog-card {
  padding: 32px 28px;
}

.prog-card .ico {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--leaf-tint);
  color: var(--canopy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex: none;
}

.prog-card .ico.amber {
  background: var(--amber-pale);
  color: var(--amber);
}

.prog-card .ico.sky {
  background: var(--sky-dim);
  color: var(--sky);
}

.prog-card .ico svg {
  width: 26px;
  height: 26px;
}

.prog-card h3 {
  font-size: 20px;
  margin-top: 0;
}

.prog-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-top: 10px;
  line-height: 1.6;
}

/* ── Photo frame shapes (overview teasers & detail-page galleries) ── */
.frame-shape {
  display: block;
  width: 100%;
  object-fit: cover;
}

.frame-circle {
  aspect-ratio: 1;
  border-radius: 50%;
}

.frame-arch {
  aspect-ratio: 3 / 4;
  border-radius: 50% 50% 14px 14px / 38% 38% 14px 14px;
}

.frame-blob {
  aspect-ratio: 4 / 5;
  border-radius: 62% 38% 34% 66% / 62% 38% 62% 38%;
}

.frame-rounded {
  aspect-ratio: 4 / 3;
  border-radius: 22px;
}

/* ── Section overview teaser (text + CTA centered, framed by images on
   both sides — image-forward glimpse with an "Explore More" CTA) ── */
.teaser-surround {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px) 1fr;
  gap: 32px;
  align-items: center;
}

.teaser-surround .teaser-copy {
  text-align: center;
}

.teaser-surround .teaser-copy p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  margin: 14px auto 24px;
}

.teaser-side-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teaser-side-photos img {
  display: block;
  width: 100%;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--white);
}

@media (max-width: 900px) {
  .teaser-surround {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .teaser-surround .teaser-copy {
    order: -1;
  }

  .teaser-side-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .teaser-side-photos {
    gap: 10px;
  }
}

/* ── Stage section head + dual-direction auto-scrolling photo carousels
   (Academics: Pre-Primary / Primary / Secondary / Senior Secondary) ── */
.stage-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.stage-head p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 12px;
}

.stage-cta {
  text-align: center;
  margin: 28px 0;
}

.stage-carousel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.stage-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.stage-carousel-track img {
  flex: none;
  width: 230px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--white);
}

.stage-carousel.scroll-left .stage-carousel-track {
  animation: stageScrollLeft 34s linear infinite;
}

.stage-carousel.scroll-right .stage-carousel-track {
  animation: stageScrollRight 34s linear infinite;
}

.stage-carousel:hover .stage-carousel-track {
  animation-play-state: paused;
}

@keyframes stageScrollLeft {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes stageScrollRight {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .stage-carousel.scroll-left .stage-carousel-track,
  .stage-carousel.scroll-right .stage-carousel-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .stage-carousel-track img {
    width: 160px;
  }
}

/* ── Detail-page photo gallery strip ── */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}

.detail-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.detail-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 760px) {
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* News card */
.news-card {
  overflow: hidden;
}

.news-card .thumb {
  height: 210px;
  overflow: hidden;
  position: relative;
}

.news-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.news-card:hover .thumb img {
  transform: scale(1.07);
}

.news-card .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--amber);
  color: var(--forest-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

.news-card .tag.sky {
  background: var(--sky);
  color: #fff;
}

.news-card .tag.green {
  background: var(--canopy);
  color: #fff;
}

.news-card .body {
  padding: 22px 22px 26px;
}

.news-card .date {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.news-card h3 {
  font-size: 18px;
  margin-top: 8px;
}

.news-card .excerpt {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.news-card .link {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--canopy);
}

.news-card .link svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.news-card .link:hover svg {
  transform: translateX(3px);
}

/* Testimonial card */
.testi {
  padding: 34px 30px;
}

.testi .stars {
  color: var(--amber);
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  font-size: 14px;
}

.testi p.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17.5px;
  color: var(--ink);
  line-height: 1.6;
}

.testi .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.testi .who .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  flex: none;
}

.testi .who .name {
  font-weight: 700;
  font-size: 14px;
}

.testi .who .role {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════ */
.grid {
  display: grid;
  gap: 26px;
}

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

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

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

@media (max-width:980px) {

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

@media (max-width:640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Same responsive column layout as .grid.grid-3 / .grid.grid-4, but
   centers a trailing incomplete row instead of leaving it stuck to the
   left. */
.grid-3.grid-center-last,
.grid-4.grid-center-last {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.grid-3.grid-center-last>* {
  flex: 0 1 calc(33.333% - 26px * 2 / 3);
}

.grid-4.grid-center-last>* {
  flex: 0 1 calc(25% - 26px * 3 / 4);
}

@media (max-width:980px) {

  .grid-3.grid-center-last>*,
  .grid-4.grid-center-last>* {
    flex-basis: calc(50% - 13px);
  }
}

@media (max-width:640px) {

  .grid-3.grid-center-last>*,
  .grid-4.grid-center-last>* {
    flex-basis: 100%;
  }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width:900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.flex {
  display: flex;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .1s;
}

.reveal-delay-2 {
  transition-delay: .2s;
}

.reveal-delay-3 {
  transition-delay: .3s;
}

.reveal-delay-4 {
  transition-delay: .4s;
}

/* ═══════════════════════════════════════
   WAVE DIVIDERS (organic section transitions)
═══════════════════════════════════════ */
.wave-top,
.wave-bottom {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top svg,
.wave-bottom svg {
  display: block;
  width: 100%;
}

/* ═══════════════════════════════════════
   STAT COUNTERS
═══════════════════════════════════════ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius);
}

.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--forest);
}

.stat-card.on-dark b {
  color: var(--amber-light);
}

.stat-card span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.stat-card.on-dark span {
  color: rgba(255, 255, 255, .7);
}

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

/* ═══════════════════════════════════════
   IMAGE GRID (campus life / highlights)
═══════════════════════════════════════ */
.imgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}

.imgrid .tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.imgrid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.imgrid .tile:hover img {
  transform: scale(1.1);
}

.imgrid .tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 14px;
  background: linear-gradient(to top, rgba(12, 31, 23, .72), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  opacity: 0;
  transition: opacity .35s;
}

.imgrid .tile:hover .cap {
  opacity: 1;
}

.imgrid .big {
  grid-column: span 2;
  grid-row: span 2;
}

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

  .imgrid .big {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ═══════════════════════════════════════
   MASONRY GALLERY
═══════════════════════════════════════ */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.masonry .item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry .item img {
  width: 100%;
  display: block;
  transition: transform .5s var(--ease);
}

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

.masonry .item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 47, 35, .6), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.masonry .item:hover .overlay {
  opacity: 1;
}

.masonry .item[hidden] {
  display: none;
}

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

/* ═══════════════════════════════════════
   FILTER PILLS
═══════════════════════════════════════ */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  transition: .25s;
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* ═══════════════════════════════════════
   ACCORDION
═══════════════════════════════════════ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.accordion-q .plus {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--leaf-tint);
  color: var(--canopy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease), background .25s;
  font-size: 18px;
  line-height: 1;
}

.accordion-item.open .accordion-q .plus {
  transform: rotate(135deg);
  background: var(--amber-dim);
  color: var(--amber);
}

.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.accordion-a-inner {
  padding: 0 4px 24px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 760px;
}

/* ═══════════════════════════════════════
   TIMELINE
═══════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--amber), var(--canopy) 90%);
}

.t-item {
  position: relative;
  padding-bottom: 44px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--amber);
}

.t-item .year {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--canopy);
  font-size: 20px;
}

.t-item h4 {
  font-size: 16px;
  margin-top: 4px;
}

.t-item p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 6px;
  max-width: 580px;
}

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width:640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--canopy);
  box-shadow: 0 0 0 4px var(--leaf-dim);
  outline: none;
}

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

.form-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: #ECF6EE;
  border: 1px solid #B8DBC3;
  color: #1E5C35;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.form-success.show {
  display: flex;
}

/* ═══════════════════════════════════════
   TOP UTILITY BAR
═══════════════════════════════════════ */
.topbar {
  background: var(--forest-900);
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  padding: 7px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.topbar-links {
  display: flex;
  gap: 22px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .9;
  transition: opacity .25s, color .25s;
}

.topbar-links a:hover {
  opacity: 1;
  color: var(--amber-light);
}

.topbar-links svg {
  width: 13px;
  height: 13px;
}

.topbar-social {
  display: flex;
  gap: 14px;
}

.topbar-social a {
  opacity: .85;
  transition: opacity .25s, color .25s;
}

.topbar-social a:hover {
  opacity: 1;
  color: var(--amber-light);
}

.topbar-social svg {
  width: 14px;
  height: 14px;
}

@media (max-width:560px) {
  .topbar {
    display: none;
  }
}

/* ═══════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  transition: background .45s var(--ease), box-shadow .45s var(--ease), padding .35s var(--ease);
  background: transparent;
}

.site-header .container.nav-inner {
  max-width: 1390px;
}

.site-header .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  transition: padding .35s var(--ease);
}

.site-header.solid {
  background: rgba(244, 247, 240, .9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 12px 30px rgba(20, 50, 30, .06);
}

.site-header.solid .nav-inner {
  padding: 13px 0;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.school-logo {
  width: 180px;
  height: auto;
  display: block;
}

.site-header .school-logo {
  width: 185px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .01em;
}

.brand-text .sub {
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.site-header:not(.solid) .brand-text .name {
  color: #fff;
}

.site-header:not(.solid) .brand-text .sub {
  color: var(--amber-light);
}

.site-header.solid .brand-text .name {
  color: var(--forest-900);
}

/* Main nav links */
.nav-main {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-main>li {
  position: relative;
  flex-shrink: 0;
}

.nav-main>li>a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .3s, color .3s;
}

.site-header:not(.solid) .nav-main>li>a {
  color: rgba(255, 255, 255, .92);
}

.site-header.solid .nav-main>li>a {
  color: var(--ink);
}

.nav-main>li>a:hover,
.nav-main>li>a.active {
  background: var(--leaf-dim);
  color: var(--canopy);
}

.site-header:not(.solid) .nav-main>li>a:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.nav-main>li>a svg {
  width: 11px;
  height: 11px;
  opacity: .65;
  transition: transform .3s;
}

.nav-main>li:hover>a svg {
  transform: rotate(180deg);
}

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  z-index: 50;
}

.nav-main>li:hover .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega a {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  transition: background .25s;
  align-items: flex-start;
}

.mega a:hover {
  background: var(--cream);
}

.mega .ico {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--leaf-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--canopy);
}

.mega .ico svg {
  width: 17px;
  height: 17px;
}

.mega .label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: block;
}

.mega .desc {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1);
  transition: background .3s, border-color .3s;
}

.site-header.solid .nav-icon-btn {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
}

.site-header:not(.solid) .nav-icon-btn {
  color: #fff;
}

.nav-icon-btn:hover {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber);
}

.nav-icon-btn svg {
  width: 17px;
  height: 17px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1);
  align-items: center;
  justify-content: center;
}

.site-header.solid .burger {
  border-color: var(--border);
  background: var(--white);
  color: var(--ink);
}

.site-header:not(.solid) .burger {
  color: #fff;
}

.burger svg {
  width: 19px;
  height: 19px;
}

@media (max-width:1400px) {
  .nav-main {
    display: none;
  }

  .burger {
    display: flex;
  }
}

@media (max-width:640px) {
  .hide-narrow {
    display: none;
  }
}

/* ═══════════════════════════════════════
   HOMEPAGE HEADER — floats over the hero, logo-only until scroll
═══════════════════════════════════════ */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.home-header .nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-header .school-logo {
  width: 150px;
}

@media (max-width:760px) {
  .home-header .nav-actions>.btn {
    display: none;
  }
}

.home-header .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.home-header .home-menu,
.home-header .nav-actions>.btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  pointer-events: none;
}

.home-header.solid .home-menu,
.home-header.solid .nav-actions>.btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: auto;
}

body:has(.home-header) .topbar {
  display: none;
}

/* Menu dropdown trigger (replaces the full inline link list) */
.home-menu {
  position: relative;
}

.home-menu-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}

.home-menu-btn svg {
  width: 17px;
  height: 17px;
}

.home-header.solid .home-menu-btn {
  border-color: var(--border);
  color: var(--ink);
}

.home-menu-btn:hover,
.home-menu.open .home-menu-btn {
  background: var(--leaf-dim);
  border-color: var(--canopy);
  color: var(--canopy);
}

.home-menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}

.home-menu:hover .home-menu-panel,
.home-menu.open .home-menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.home-menu-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, color .2s;
}

.home-menu-panel a:hover {
  background: var(--leaf-dim);
  color: var(--canopy);
}

/* Home menu — secondary (nested) dropdown, for items with real in-page
   sections (About, Academics, Co-Curriculars). Flies out to the right of
   the main panel on wider screens; becomes an inline accordion on narrow
   ones, since a right-flyout has nowhere to go on a phone-width viewport. */
.home-menu-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.home-menu-item>a {
  flex: 1;
}

.home-menu-sub-toggle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 10px;
  transition: background .2s, color .2s, transform .25s var(--ease);
}

.home-menu-sub-toggle svg {
  width: 15px;
  height: 15px;
}

.home-menu-sub-toggle:hover {
  background: var(--leaf-dim);
  color: var(--canopy);
}

.home-menu-item.open .home-menu-sub-toggle {
  color: var(--canopy);
  transform: rotate(90deg);
}

.home-menu-sub {
  position: absolute;
  left: calc(100% + 10px);
  top: -10px;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 60;
}

.home-menu-item:hover .home-menu-sub,
.home-menu-item.open .home-menu-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.home-menu-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s, color .2s;
}

.home-menu-sub a:hover {
  background: var(--leaf-dim);
  color: var(--canopy);
}

@media (max-width:640px) {
  .home-menu-sub {
    position: static;
    flex-basis: 100%;
    width: auto;
    box-shadow: none;
    border: none;
    margin: 2px 0 4px 12px;
    padding: 0 0 0 12px;
    border-left: 2px solid var(--border);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }

  .home-menu-item.open .home-menu-sub {
    max-height: 400px;
    padding: 4px 0 4px 12px;
  }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}

.mobile-drawer.open {
  visibility: visible;
}

.mobile-drawer .scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 20, .55);
  opacity: 0;
  transition: opacity .35s;
}

.mobile-drawer.open .scrim {
  opacity: 1;
}

.mobile-drawer .panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: var(--white);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  padding: 28px 26px;
  overflow-y: auto;
}

.mobile-drawer.open .panel {
  transform: translateX(0);
}

.mobile-drawer .panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.mobile-drawer .close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.mobile-drawer .close-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 2px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

.mobile-nav-list svg {
  width: 13px;
  height: 13px;
  opacity: .45;
}

.mobile-drawer .btn {
  width: 100%;
  margin-top: 22px;
}

/* ═══════════════════════════════════════
   SITE SEARCH
═══════════════════════════════════════ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
}

.search-modal.open {
  visibility: visible;
}

.search-modal .scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 20, .55);
  opacity: 0;
  transition: opacity .3s;
}

.search-modal.open .scrim {
  opacity: 1;
}

.search-modal .panel {
  position: absolute;
  top: 100px;
  left: 50%;
  width: min(92vw, 560px);
  max-height: min(70vh, 520px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 10px;
  opacity: 0;
  transform: translate(-50%, -14px);
  transition: opacity .3s, transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-modal.open .panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.search-modal .search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 8px;
  flex: none;
}

.search-modal .search-input-row svg {
  width: 19px;
  height: 19px;
  color: var(--ink-soft);
  flex: none;
}

.search-modal input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 16.5px;
  font-family: inherit;
  color: var(--ink);
  background: transparent;
}

.search-modal .search-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  cursor: pointer;
  transition: background .2s;
}

.search-modal .search-close:hover {
  background: var(--leaf-tint);
}

.search-modal .search-close svg {
  width: 14px;
  height: 14px;
  color: var(--ink);
}

.search-results {
  overflow-y: auto;
  padding-bottom: 8px;
}

.search-results a {
  display: block;
  padding: 11px 10px;
  border-radius: 10px;
  transition: background .15s;
}

.search-results a:hover,
.search-results a.active {
  background: var(--leaf-tint);
}

.search-results .r-title {
  font-weight: 700;
  color: var(--forest-900);
  font-size: 14.5px;
}

.search-results .r-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.search-empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

@media (max-width:600px) {
  .search-modal .panel {
    top: 76px;
    width: 94vw;
  }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  /* Bottom-of-stack fallback: shows through only where nothing above
     it is opaque yet (video still loading) or fails outright — the
     video's own poster attribute covers the same gap, this is the
     belt-and-suspenders backstop. */
  background: url('../imagesb/hero-poster.jpg') center/cover no-repeat var(--forest-900);
}

/* Real campus footage, autoplay/muted/loop. .hero-bg (below) sits on
   top of it as a semi-transparent tint for text contrast — same
   gradient the static image used to carry directly. If the video
   can't load or play, .hero-bg's own background (poster image tint +
   solid colour) still fills the section, so the hero never goes
   blank. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  /* Save mobile data/battery — small screens get the poster frame
     (via .hero-bg's background-image below) instead of playback. */
  .hero-video {
    display: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Gradient ONLY — no image layer here. This sits ABOVE .hero-video
     (z-index 0) purely as a translucent tint so the video shows
     through it; an image layer here would be opaque and hide the
     video entirely (that was the bug — .hero-bg was painting over
     the video every time). The actual fallback image now lives on
     .hero itself, at the very bottom of the stack.
     Stronger than the old static-image version (.36/.68) — real
     video footage swings brighter (open sky, light walls) than a
     single curated photo, so text needs a bigger contrast buffer
     across the whole loop, not just its darkest frame. */
  background: linear-gradient(180deg, rgba(8, 20, 13, .52) 0%, rgba(8, 20, 13, .8) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 108px;
  padding-bottom: 32px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .02em;
}

.hero-badge .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-900);
  font-size: 13px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4.6vw, 58px);
  max-width: 780px;
  letter-spacing: -.01em;
  font-weight: 400;
}

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

.hero .tagline {
  margin-top: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--amber-light);
  max-width: 560px;
}

.hero p.sub {
  margin-top: 18px;
  max-width: 560px;
  color: rgba(255, 255, 255, .82);
  font-size: 16.5px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 20px;
  gap: 14px;
}

.hero-stats .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  color: var(--amber-light);
}

.hero-stats .stat span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

@media (max-width:860px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }
}

/* Three icon badges bottom of hero */
.hero-features {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-feat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
}

.hero-feat svg {
  width: 15px;
  height: 15px;
  color: var(--amber-light);
}

.scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-cue .cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--amber-light), transparent);
  animation: cueAnim 2.4s infinite var(--ease);
}

@keyframes cueAnim {
  0% {
    transform: scaleY(.3);
    opacity: .3;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(.3);
    opacity: .3;
  }
}

/* On short viewports the hero-stats row already sits close to the bottom
   edge — drop the decorative scroll hint rather than let it crowd them. */
@media (max-height: 860px) {
  .scroll-cue {
    display: none;
  }
}

/* ═══════════════════════════════════════
   PAGE HERO (sub-pages)
═══════════════════════════════════════ */
.page-hero {
  position: relative;
  padding: 196px 0 96px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(145deg, var(--forest-900) 0%, var(--forest) 55%, var(--canopy) 100%);
}

.page-hero .pattern {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    radial-gradient(circle at 15% 25%, var(--amber) 0, transparent 38%),
    radial-gradient(circle at 85% 70%, var(--sky) 0, transparent 35%);
}

/* Botanical corner illustrations — matched top-left/bottom-right pair */
.page-hero .leaves {
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    url('../imagesb/decorative/silhouette-branch.webp'),
    url('../imagesb/decorative/silhouette-willow.webp');
  background-position: left -30px top -20px, right -30px bottom -20px;
  background-size: 300px auto, 280px auto;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}

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

.breadcrumb span:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  opacity: .5;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  max-width: 780px;
}

.page-hero p {
  margin-top: 16px;
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  font-size: 16.5px;
}

/* ═══════════════════════════════════════
   FLOATING ACTIONS
═══════════════════════════════════════ */
.fab-stack {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  box-shadow: 0 8px 20px rgba(18, 47, 35, .3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.fab-icon:hover {
  transform: translateX(-4px) scale(1.08);
  box-shadow: 0 12px 26px rgba(18, 47, 35, .4);
}

.fab-icon svg {
  width: 20px;
  height: 20px;
}

.fab-icon.whatsapp {
  background: #25A244;
}

.fab-icon.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.fab-icon.youtube {
  background: #FF0000;
}

.fab-icon.linkedin {
  background: #0A66C2;
}

@media (max-width:560px) {
  .fab-stack {
    right: 10px;
    gap: 8px;
  }

  .fab-icon {
    width: 40px;
    height: 40px;
  }

  .fab-icon svg {
    width: 17px;
    height: 17px;
  }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  position: relative;
  background: var(--forest-900);
  color: rgba(255, 255, 255, .75);
  padding-top: 72px;
}

.site-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 620px;
  max-width: 55%;
  height: 260px;
  background: url('../imagesb/decorative/silhouette-palm.webp') no-repeat bottom left / contain;
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .brand-text .name {
  color: #fff;
}

.footer-brand .brand-text .sub {
  color: var(--amber-light);
}

.footer-brand p {
  margin-top: 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .58);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s;
}

.footer-social a:hover {
  background: var(--amber);
  color: var(--forest-900);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.fcol h5 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}

.fcol li {
  margin-bottom: 12px;
  font-size: 14px;
}

.fcol a:hover {
  color: var(--amber-light);
}

.fcol .contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fcol .contact-line svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--leaf);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a:hover {
  color: var(--amber-light);
}

@media (max-width:980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════
   SPECIALTY SECTIONS
═══════════════════════════════════════ */

/* Feature strip (Astronomy / Robotics / Botany / Sustainability) */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-strip .feat {
  display: block;
  padding: 40px 30px;
  border-right: 1px solid rgba(255, 255, 255, .08);
  transition: background .35s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.feature-strip .feat:last-child {
  border-right: none;
}

.feature-strip .feat:hover {
  background: rgba(255, 255, 255, .06);
}

.feature-strip .feat:hover .feat-link {
  color: var(--amber-light);
  gap: 10px;
}

.feature-strip .feat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  transition: gap .25s var(--ease), color .25s var(--ease);
}

.feature-strip .feat-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.feature-strip .feat .ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-strip .feat .ico svg {
  width: 26px;
  height: 26px;
}

.feature-strip .feat h3 {
  color: #fff;
  font-size: 19px;
}

.feature-strip .feat p {
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  margin-top: 10px;
}

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

  .feature-strip .feat:nth-child(2) {
    border-right: none;
  }

  .feature-strip .feat {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .feature-strip .feat:last-child {
    border-bottom: none;
  }
}

@media (max-width:540px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .feature-strip .feat {
    border-right: none;
  }
}

/* Principal quote block */
.principal-quote {
  border-left: 4px solid var(--amber);
  padding-left: 28px;
  margin: 28px 0;
}

.principal-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.6;
}

/* Habitat / lab card (tall image card) */
.habitat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.habitat-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.habitat-card:hover img {
  transform: scale(1.07);
}

.habitat-card .info {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(12, 31, 23, .88) 55%, transparent);
  padding: 28px 22px 22px;
}

.habitat-card .info h4 {
  color: #fff;
  font-size: 18px;
}

.habitat-card .info p {
  color: rgba(255, 255, 255, .75);
  font-size: 13.5px;
  margin-top: 6px;
}

.habitat-card .info .tag-sm {
  display: inline-block;
  background: var(--amber);
  color: var(--forest-900);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════
   MANDATORY DISCLOSURE PAGE
═══════════════════════════════════════ */
.notice-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--amber-pale);
  border: 1.5px solid var(--amber-light);
  border-radius: var(--radius);
  padding: 18px 22px;
}

.notice-box svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--amber);
  margin-top: 2px;
}

.notice-box p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.disclosure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.disclosure-table th,
.disclosure-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.disclosure-table tbody tr:last-child th,
.disclosure-table tbody tr:last-child td {
  border-bottom: none;
}

.disclosure-table thead th {
  background: var(--leaf-tint);
  color: var(--forest-900);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}

.disclosure-table tbody th {
  width: 38%;
  color: var(--forest-900);
  font-weight: 600;
  background: var(--cream);
}

.disclosure-table td {
  color: var(--ink-soft);
}

.disclosure-table td em {
  color: var(--amber);
  font-style: normal;
  font-size: 12px;
  margin-left: 6px;
}

.disclosure-table a {
  color: var(--canopy);
  font-weight: 600;
  text-decoration: underline;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.doc-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: .25s var(--ease);
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--leaf);
}

.doc-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--leaf-tint);
  color: var(--canopy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-ico svg {
  width: 20px;
  height: 20px;
}

.doc-card h5 {
  font-size: 14.5px;
  color: var(--forest-900);
  line-height: 1.35;
}

.doc-card p {
  font-size: 12.5px;
  margin-top: 4px;
}

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

@media (max-width: 600px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .disclosure-table tbody th {
    width: 46%;
  }
}

/* ═══════════════════════════════════════
   ACADEMIC CALENDAR WIDGET
═══════════════════════════════════════ */
.cal-widget {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  overflow: hidden;
  transition: background .5s var(--ease);
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cal-month-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cal-month-label {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--forest-900);
  min-width: 190px;
  text-align: center;
}

.cal-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .4s var(--ease), color .4s var(--ease);
}

.cal-theme-badge svg {
  width: 13px;
  height: 13px;
}

.cal-theme-badge.theme-spring {
  background: var(--leaf-tint);
  color: var(--canopy);
}

.cal-theme-badge.theme-summer {
  background: var(--amber-pale);
  color: var(--amber);
}

.cal-theme-badge.theme-monsoon {
  background: var(--sky-dim);
  color: var(--sky);
}

.cal-theme-badge.theme-festive {
  background: var(--amber-dim);
  color: #a8650f;
}

.cal-theme-badge.theme-diwali {
  background: rgba(212, 135, 43, .22);
  color: #8a4f0d;
}

.cal-theme-badge.theme-winter {
  background: rgba(58, 143, 191, .14);
  color: var(--sky);
}

.cal-theme-badge.theme-holi {
  background: linear-gradient(90deg, var(--amber-pale), var(--leaf-tint));
  color: var(--forest-900);
}

/* Seasonal background wash behind the whole widget */
.cal-widget.theme-spring {
  background: linear-gradient(160deg, var(--leaf-tint) 0%, var(--white) 45%);
}

.cal-widget.theme-summer {
  background: linear-gradient(160deg, var(--amber-pale) 0%, var(--white) 45%);
}

.cal-widget.theme-monsoon {
  background: linear-gradient(160deg, var(--sky-dim) 0%, var(--white) 45%);
}

.cal-widget.theme-festive {
  background: linear-gradient(160deg, var(--amber-dim) 0%, var(--white) 45%);
}

.cal-widget.theme-diwali {
  background: linear-gradient(160deg, rgba(212, 135, 43, .16) 0%, var(--white) 45%);
}

.cal-widget.theme-winter {
  background: linear-gradient(160deg, rgba(58, 143, 191, .1) 0%, var(--white) 45%);
}

.cal-widget.theme-holi {
  background: linear-gradient(135deg, rgba(212, 135, 43, .13) 0%, rgba(45, 122, 82, .08) 55%, var(--white) 90%);
}

.cal-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--forest-900);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .25s var(--ease);
  flex: none;
}

.cal-arrow:hover:not(:disabled) {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.cal-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cal-arrow svg {
  width: 18px;
  height: 18px;
}

.cal-months {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.cal-month-pill {
  flex: none;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s var(--ease);
  white-space: nowrap;
}

.cal-month-pill:hover {
  border-color: var(--leaf);
  color: var(--forest-900);
}

.cal-month-pill.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* Section selector (Pre-Primary / Primary / Secondary / Senior Secondary) —
   deliberately styled apart from the month pills below it: this picks
   which grade band's calendar is loaded, not which month is showing. */
.cal-section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.cal-section-tab {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 11px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: .2s var(--ease);
}

.cal-section-tab:hover {
  border-color: var(--amber);
  color: var(--forest-900);
}

.cal-section-tab.active {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--forest-900);
  box-shadow: var(--shadow-amber);
}

@media (max-width: 560px) {
  .cal-section-tab {
    min-width: 0;
    flex-basis: calc(50% - 4px);
  }
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cal-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.cal-legend .sw-holiday {
  background: var(--amber-pale);
  border: 1.5px solid var(--amber);
}

.cal-legend .sw-exam {
  background: var(--sky-dim);
  border: 1.5px solid var(--sky);
}

.cal-legend .sw-event {
  background: var(--leaf-tint);
  border: 1.5px solid var(--canopy);
}

.cal-legend .sw-vacation {
  background: repeating-linear-gradient(45deg, var(--border), var(--border) 4px, var(--white) 4px, var(--white) 8px);
  border: 1.5px solid var(--border);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
}

.cal-cell {
  min-height: 76px;
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--white);
}

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

.cal-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest-900);
}

.cal-tag {
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cal-cell.holiday {
  background: var(--amber-pale);
  border-color: var(--amber);
}

.cal-cell.holiday .cal-tag {
  color: #92600f;
}

.cal-cell.exam {
  background: var(--sky-dim);
  border-color: var(--sky);
}

.cal-cell.exam .cal-tag {
  color: var(--forest-900);
}

.cal-cell.event {
  background: var(--leaf-tint);
  border-color: var(--canopy);
}

.cal-cell.event .cal-tag {
  color: var(--canopy);
}

.cal-cell.vacation {
  background: repeating-linear-gradient(45deg, var(--parchment), var(--parchment) 6px, var(--white) 6px, var(--white) 12px);
  border-color: var(--border);
}

.cal-cell.vacation .cal-tag {
  color: var(--ink-soft);
  font-weight: 700;
}

@media (max-width: 720px) {
  .cal-widget {
    padding: 18px 14px;
  }

  .cal-grid {
    gap: 4px;
  }

  .cal-cell {
    min-height: 46px;
    padding: 4px;
    border-radius: 7px;
  }

  .cal-tag {
    display: none;
  }

  .cal-dow {
    font-size: 9.5px;
  }

  .cal-month-label {
    font-size: 17px;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════
   SOCIAL FEED (Latest from Sacred Heart)
═══════════════════════════════════════ */
.social-platform-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 44px 0 24px;
}

.social-platform-head:first-of-type {
  margin-top: 8px;
}

.social-platform-head h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-platform-head .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--leaf-tint);
  color: var(--canopy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.social-platform-head .ico svg {
  width: 18px;
  height: 18px;
}

.social-card {
  display: block;
}

.yt-play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-play-badge svg {
  width: 46px;
  height: 46px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .45));
  transition: transform .3s var(--ease);
}

.news-card:hover .yt-play-badge svg {
  transform: scale(1.12);
}

.social-fallback {
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════════════════════════
   ADMISSION ENQUIRY POPUP (sitewide — see js/script.js)
   ══════════════════════════════════════════════════════════════════ */
.enq-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(12, 31, 23, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.enq-popup-overlay.show {
  opacity: 1;
}

.enq-popup {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(14px) scale(.98);
  transition: transform .3s var(--ease);
}

.enq-popup-overlay.show .enq-popup {
  transform: translateY(0) scale(1);
}

.enq-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s var(--ease);
}

.enq-popup-close:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.enq-popup-close svg {
  width: 15px;
  height: 15px;
}

.enq-popup-head {
  text-align: center;
  margin-bottom: 22px;
  padding-right: 20px;
}

.enq-popup-head h3 {
  font-size: 22px;
  margin-top: 4px;
}

.enq-popup-head p {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 8px;
}

.enq-popup-form .field {
  margin-bottom: 14px;
}

.enq-popup-msg {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .enq-popup {
    padding: 30px 22px;
  }
}

/* ── Email OTP widget (admission form + enquiry form + its popup) ── */
.otp-box {
  grid-column: 1 / -1;
  background: var(--leaf-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: -4px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.otp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.otp-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.otp-send-btn,
.otp-confirm-btn {
  padding: 9px 18px;
  font-size: 13px;
  white-space: nowrap;
}

.otp-code-input {
  width: 130px;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: ui-monospace, monospace;
  letter-spacing: .12em;
  background: var(--white);
}

.otp-resend-btn {
  background: none;
  border: none;
  color: var(--canopy);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
}

.otp-resend-btn:disabled {
  color: var(--ink-soft);
  cursor: default;
}

.otp-status {
  font-size: 12.5px;
  font-weight: 600;
}

.otp-verified {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--canopy);
  font-size: 13px;
  font-weight: 700;
}

/* Author `display` rules above otherwise beat the browser's default
   [hidden]{display:none} — same fix as .masonry .item[hidden]. */
.otp-row[hidden],
.otp-verified[hidden],
.otp-status[hidden] {
  display: none;
}

.otp-submit-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: #B91C1C;
  margin: 0 0 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .otp-code-input {
    width: 100%;
  }
}