/* =============================================
   KTC – KURUMAN TUITION CENTRE
   Dark-Gold Theme | Fun, Friendly & Premium
   Apple-inspired refinement layered on top of
   the school's warm gold identity.
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  /* Gold palette */
  --gold:           #FFB830;
  --gold-light:     #FFD166;
  --gold-dark:      #C98A00;
  --gold-glow:      rgba(255, 184, 48, 0.30);
  --gold-glow-sm:   rgba(255, 184, 48, 0.15);

  /* Dark backgrounds — Apple-depth scale (no pure black) */
  --bg-base:        #111113;
  --bg-raised:      #1C1C1F;
  --bg-elevated:    #242428;
  --bg-overlay:     #2C2C31;
  --bg-glass:       rgba(28, 28, 31, 0.72);

  /* Legacy aliases kept for backward compat */
  --dark-charcoal:  #111113;
  --mid-charcoal:   #1C1C1F;
  --light-charcoal: #2C2C31;
  --card-bg:        #242428;

  /* Text */
  --white:          #F5F5F7;
  --off-white:      #E8E8ED;
  --text-secondary: #9898A4;
  --text-muted:     #6E6E7A;

  /* Shape / layout */
  --radius:         18px;
  --radius-sm:      10px;
  --radius-pill:    100px;

  /* Transitions */
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:         0.2s;
  --t-base:         0.35s;
  --t-slow:         0.6s;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--gold); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--gold-light); }

/* ===== BASE ===== */
body {
  /* Apple system font stack for body text */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-base);
  color: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — Poppins: geometric, clean, Apple-adjacent with school personality */
h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* ===== SITE HEADER ===== */
.site-header {
  /* Glass header — Apple nav bar feel */
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 184, 48, 0.18);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,184,48,.08), 0 8px 32px rgba(0,0,0,.45);
  transition: background-color var(--t-slow) var(--ease);
}

/* Push page content below the fixed header */
body {
  padding-top: 76px;
}

/* When WP admin bar is visible, drop the header below it */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  /* On phones/tablets the WP admin bar moves to the bottom — keep header at top:0 */
  .admin-bar .site-header {
    top: 0;
  }
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-text-wrap .school-name {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.logo-text-wrap .school-tag {
  font-size: .65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* Nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  align-items: center;
}

.main-nav ul li a {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  position: relative;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

.main-nav ul li a:hover {
  color: var(--gold);
}

/* Active page — yellow text + yellow underline */
.main-nav ul li.current-menu-item a,
.main-nav ul li.current_page_item a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,184,48,.08);
  border: 1px solid rgba(255,184,48,.25);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}

.menu-toggle:hover { background: rgba(255,184,48,.16); }

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}

/* ===== ANIMATED BACKGROUND SHAPES ===== */

/* Keyframe animations — each gives a different gentle movement */
@keyframes bgFloatA {
  0%,100% { transform: translateY(0)   rotate(0deg);   }
  50%      { transform: translateY(-14px) rotate(6deg); }
}
@keyframes bgFloatB {
  0%,100% { transform: translateY(0)  rotate(0deg);    }
  50%      { transform: translateY(14px) rotate(-6deg); }
}
@keyframes bgDriftA {
  0%,100% { transform: translate(0, 0)      rotate(0deg);   }
  33%     { transform: translate(10px,-10px) rotate(8deg);  }
  66%     { transform: translate(-8px, 8px) rotate(-5deg);  }
}
@keyframes bgDriftB {
  0%,100% { transform: translate(0, 0)      rotate(0deg);   }
  33%     { transform: translate(-10px,10px) rotate(-8deg); }
  66%     { transform: translate(8px,-8px)  rotate(5deg);   }
}
@keyframes bgSway {
  0%,100% { transform: rotate(-8deg) scale(1);    }
  50%      { transform: rotate(8deg)  scale(1.08); }
}
@keyframes bgPulse {
  0%,100% { transform: scale(1)    rotate(0deg); opacity: var(--shape-op, .08); }
  50%      { transform: scale(1.15) rotate(10deg); opacity: calc(var(--shape-op, .08) * 1.4); }
}

/* Base shape styles */
.bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  font-style: normal;
  line-height: 1;
  color: var(--gold);
  opacity: .18;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: transform;
}

/* Animation assignment classes */
.bfa  { animation-name: bgFloatA; }
.bfb  { animation-name: bgFloatB; }
.bda  { animation-name: bgDriftA; }
.bdb  { animation-name: bgDriftB; }
.bsw  { animation-name: bgSway;   }
.bpu  { animation-name: bgPulse;  }

/* Ensure all section content sits above shapes */
.hero-section .hero-inner,
.gallery-section .section-header,
.gallery-section .gallery-grid,
.home-filmstrip-section .section-header,
.about-section .about-inner,
.values-section .section-header,
.values-section .values-grid {
  position: relative;
  z-index: 1;
}

/* Reduce / pause on small screens — keep only the most subtle ones */
@media (max-width: 480px) {
  .bg-shape { opacity: .11; }
  .bg-shape.hide-mobile { display: none; }
}

/* Respect user accessibility preference */
@media (prefers-reduced-motion: reduce) {
  .bg-shape { animation: none !important; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Home page — show all elements immediately, no fade-in delay */
body.home .reveal,
body.front-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
body.home .reveal-delay-1,
body.home .reveal-delay-2,
body.home .reveal-delay-3,
body.home .reveal-delay-4,
body.front-page .reveal-delay-1,
body.front-page .reveal-delay-2,
body.front-page .reveal-delay-3,
body.front-page .reveal-delay-4 {
  transition-delay: 0s;
}

/* ===== HERO ===== */
.hero-section {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,184,48,.08) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%);
  padding: 100px 32px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,184,48,.12);
  border: 1px solid rgba(255,184,48,.30);
  color: var(--gold-light);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: .78rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  letter-spacing: .8px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: #0B0B0C;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 42px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 0 var(--gold-glow), 0 4px 20px rgba(255,184,48,.3);
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
  letter-spacing: .3px;
}

.hero-btn:hover {
  background: var(--gold-light);
  color: #0B0B0C;
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 0 0 6px rgba(255,184,48,.12), 0 12px 36px rgba(255,184,48,.45);
}

/* ===== SECTION COMMON ===== */
section { padding: 88px 32px; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin-bottom: 14px;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  margin: 0 auto 18px;
  opacity: .85;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== PHOTO PLACEHOLDER GRID ===== */
.gallery-section { background: var(--bg-base); position: relative; overflow: hidden; }

/* ═══════════════════════════════════════════
   HOME PAGE — HORIZONTAL FILMSTRIP
   ═══════════════════════════════════════════ */
.home-filmstrip-section {
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
}

.home-filmstrip {
  width: 100%;        /* bleeds edge-to-edge */
  background: #0A0A0B;
  border-top: 1px solid rgba(255,184,48,.15);
  border-bottom: 1px solid rgba(255,184,48,.15);
  overflow: hidden;
  position: relative;
}

/* Sprocket hole rows */
.hstrip-holes {
  width: 100%;
  height: 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #0A0A0B;
  overflow: hidden;
  flex-shrink: 0;
}

.hstrip-holes span {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  margin: 0 7px;
  background: #1a1a1d;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.07);
  display: block;
}

/* Overflow wrapper keeps photos from showing outside the strip */
.hstrip-track-wrap {
  overflow: hidden;
  width: 100%;
  background: #0A0A0B;
}

/* The track is wider than the viewport — JS drives the animation */
.hstrip-track {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 12px 0;
  width: max-content;
  will-change: transform;
}

.hstrip-photo {
  flex-shrink: 0;
  width: 250px;
  height: 188px;      /* ≈ 4:3 */
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid rgba(255,184,48,.10);
  background: #1C1C1F;
  pointer-events: none;
  user-select: none;
}

.hstrip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Empty slot — dark square, no border highlight */
.hstrip-photo--empty {
  border-color: rgba(255,184,48,.04);
}

@media (max-width: 768px) {
  .hstrip-photo { width: 180px; height: 135px; }
}

@media (max-width: 480px) {
  .hstrip-photo { width: 130px; height: 98px; }
  .hstrip-holes span { width: 9px; height: 6px; margin: 0 5px; }
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.photo-placeholder {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.18);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .3px;
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  cursor: default;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.photo-placeholder:hover {
  border-color: rgba(255,184,48,.5);
  background: var(--bg-overlay);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,184,48,.12);
  color: var(--off-white);
}

.ph-icon { font-size: 2.6rem; }

/* ===== ABOUT SECTION ===== */
.about-section { background: var(--bg-raised); position: relative; overflow: hidden; }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: center;
}

.about-img-placeholder {
  background: var(--bg-overlay);
  border: 1px solid rgba(255,184,48,.2);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .95rem;
  transition: all var(--t-base) var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.about-img-placeholder:hover {
  border-color: rgba(255,184,48,.45);
  color: var(--off-white);
}

.about-img-placeholder .ph-icon { font-size: 3.6rem; }

.about-content h2 { font-size: 2.2rem; margin-bottom: 22px; }

.about-content p {
  color: var(--off-white);
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-highlight {
  background: rgba(255,184,48,.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 26px 0;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.75;
  backdrop-filter: blur(4px);
}

/* ===== VALUES / PILLARS ===== */
.values-section { background: var(--bg-base); position: relative; overflow: hidden; }

.values-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.value-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 40px 22px 32px;
  text-align: center;
  border: 1px solid rgba(255,184,48,.10);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  transition: transform var(--t-base) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.value-card:hover {
  border-color: rgba(255,184,48,.35);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,.4), 0 0 0 1px rgba(255,184,48,.1);
}

.value-icon { font-size: 2.8rem; margin-bottom: 16px; }

.value-card h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.value-card p { color: var(--text-secondary); font-size: .88rem; line-height: 1.65; }

/* ===== SITE FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 10;           /* above fixed strips (z-index: 1) */
  background: var(--bg-raised);
  border-top: 1px solid rgba(255,184,48,.14);
  padding: 52px 32px 28px;
  text-align: center;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-logo {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.footer-tagline { color: var(--text-muted); font-size: .85rem; margin-bottom: 32px; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: color var(--t-fast) var(--ease);
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  color: var(--text-muted);
  font-size: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 22px;
  margin-top: 22px;
}

/* ===== LOGOS ===== */

/* Header logo image */
.header-logo-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(255,184,48,.45));
  transition: filter .3s, transform .3s;
}

.site-logo a:hover .header-logo-img {
  filter: drop-shadow(0 6px 20px rgba(255,184,48,.75));
  transform: scale(1.06);
}

/* Hero section logo emblem */
.hero-logo {
  width: 175px;
  margin: 0 auto 28px;
}

.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 10px 36px rgba(255,184,48,.6));
  animation: heroFloat 3.6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-9px); }
}

/* About section - black logo (inverted to white on dark bg) */
.about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: var(--light-charcoal);
  border-radius: var(--radius);
  border: 2px solid rgba(255,184,48,.25);
  transition: border-color .3s;
}

.about-logo-wrap:hover {
  border-color: var(--gold);
}

.about-logo-img {
  width: 100%;
  max-width: 300px;
  filter: invert(1);
  opacity: .88;
  transition: opacity .3s, transform .3s;
}

.about-logo-wrap:hover .about-logo-img {
  opacity: 1;
  transform: scale(1.04);
}

/* Footer logo image */
.footer-logo-img {
  margin: 0 auto 10px;
  width: 90px;
}

.footer-logo-img img {
  width: 100%;
  filter: drop-shadow(0 4px 14px rgba(255,184,48,.45));
  transition: filter .3s, transform .3s;
}

.footer-logo-img img:hover {
  filter: drop-shadow(0 6px 20px rgba(255,184,48,.7));
  transform: scale(1.05);
}

/* Coming Soon logo */
.cs-logo {
  width: 110px;
  margin: 0 auto 18px;
}

.cs-logo img {
  width: 100%;
  filter: drop-shadow(0 6px 20px rgba(255,184,48,.5));
}

/* ===== COMING SOON PAGE ===== */
.coming-soon-wrap {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
  background: var(--bg-base);
}

.coming-soon-box {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,184,48,.22);
  border-radius: 28px;
  padding: 68px 52px;
  text-align: center;
  max-width: 540px;
  box-shadow: 0 2px 0 rgba(255,255,255,.04) inset,
              0 32px 64px rgba(0,0,0,.55),
              0 0 0 1px rgba(0,0,0,.2);
}

.cs-icon { font-size: 4.2rem; margin-bottom: 20px; }

.coming-soon-box h1 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.coming-soon-box p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 38px;
}

.btn-home {
  display: inline-block;
  background: var(--gold);
  color: #0B0B0C;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 36px;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
}

.btn-home:hover {
  background: var(--gold-light);
  color: #0B0B0C;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,184,48,.4);
}

/* About logo wrap update */
.about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-overlay);
  border-radius: var(--radius);
  border: 1px solid rgba(255,184,48,.18);
  box-shadow: 0 4px 28px rgba(0,0,0,.35);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.about-logo-wrap:hover {
  border-color: rgba(255,184,48,.4);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,184,48,.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-placeholder { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .header-inner { height: 68px; }
  body { padding-top: 68px; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(17, 17, 19, 0.82);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255,184,48,.22);
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
    padding: 16px 0;
    z-index: 199;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 22px;
  }

  .main-nav ul li { width: 100%; }

  .main-nav ul li a {
    display: block;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    width: 100%;
    color: var(--off-white);
  }

  .main-nav ul li a:hover {
    color: var(--gold);
  }

  /* Active page on mobile — gold left border instead of underline */
  .main-nav ul li.current-menu-item a,
  .main-nav ul li.current_page_item a {
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left: 15px;
  }

  .coming-soon-box { padding: 44px 28px; }

  section { padding: 68px 20px; }
}

@media (max-width: 540px) {
  .gallery-grid  { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .hero-section  { padding: 72px 20px 64px; }
}

/* ===== CONTACT PAGE ===== */

.contact-section {
  background: radial-gradient(ellipse 75% 50% at 50% 0%, rgba(255,184,48,.06) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%);
  padding: 88px 32px;
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: start;
}

/* ── Info Card ── */
.contact-info-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.30);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.contact-info-card:hover {
  border-color: rgba(255,184,48,.25);
  box-shadow: 0 8px 36px rgba(0,0,0,.38), 0 0 0 1px rgba(255,184,48,.08);
}

.contact-info-card h3,
.contact-form-card h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-icon {
  font-size: 1.85rem;
  flex-shrink: 0;
  line-height: 1;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.contact-detail-text a {
  color: var(--off-white);
  font-size: 1.05rem;
  font-weight: 600;
  transition: color var(--t-fast) var(--ease);
}

.contact-detail-text a:hover { color: var(--gold-light); }

/* Social buttons row */
.contact-social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

/* Facebook button */
.btn-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1877F2;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(24,119,242,.35);
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
}

.btn-facebook:hover {
  background: #1467d6;
  color: #fff;
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(24,119,242,.52);
}

.btn-facebook svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Instagram button */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(214,36,159,.35);
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              filter var(--t-fast) var(--ease);
}

.btn-instagram:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 8px 32px rgba(214,36,159,.52);
}

.btn-instagram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Google Maps embed */
.contact-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,184,48,.15);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  transition: border-color var(--t-fast) var(--ease);
}

.contact-map:hover { border-color: rgba(255,184,48,.35); }

.contact-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(30%) brightness(0.88);
  transition: filter var(--t-base) var(--ease);
}

.contact-map:hover iframe {
  filter: grayscale(0%) brightness(1);
}

/* ── Form Card ── */
.contact-form-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.30);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.contact-form-card:hover {
  border-color: rgba(255,184,48,.25);
  box-shadow: 0 8px 36px rgba(0,0,0,.38), 0 0 0 1px rgba(255,184,48,.08);
}

.contact-form-card h3 { margin-bottom: 28px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg-overlay);
  border: 1px solid rgba(255,184,48,.18);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: .97rem;
  line-height: 1.5;
  width: 100%;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255,184,48,.32);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(255,184,48,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 148px;
}

.btn-submit {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold);
  color: #0B0B0C;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 42px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--gold-glow), 0 4px 20px rgba(255,184,48,.30);
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
  letter-spacing: .3px;
}

.btn-submit:hover {
  background: var(--gold-light);
  color: #0B0B0C;
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 0 0 6px rgba(255,184,48,.12), 0 12px 36px rgba(255,184,48,.45);
}

/* ── Contact responsive ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contact-section { padding: 68px 20px; }
  .contact-info-card,
  .contact-form-card { padding: 32px 22px; }
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; text-align: center; }
}

/* ===== NEWS FEED PAGE ===== */

.newsfeed-section {
  background: radial-gradient(ellipse 75% 50% at 50% 0%, rgba(255,184,48,.06) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%);
  padding: 88px 32px;
  position: relative;
  overflow: hidden;
}

.newsfeed-inner {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsfeed-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Facebook iframe wrapper ── */
/* Outer card — gold border, glow, radius. position:relative allows header to float over the feed */
.newsfeed-fb-wrap {
  position: relative;
  border: 1px solid rgba(255,184,48,.30);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.40), 0 0 0 4px rgba(255,184,48,.06);
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

/* Header bar floats OVER the feed — solid box with gold border */
.newsfeed-fb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(255,184,48,.30);
  pointer-events: none;
}

/* Re-enable clicks on the buttons themselves */
.newsfeed-fb-header .btn-visit-fb,
.newsfeed-fb-header .btn-visit-ig,
.newsfeed-fb-header .newsfeed-social-btns {
  pointer-events: auto;
}

.newsfeed-fb-wrap:hover {
  border-color: rgba(255,184,48,.60);
  box-shadow: 0 12px 48px rgba(0,0,0,.50), 0 0 0 4px rgba(255,184,48,.12);
}

/* Feed entrance animation — plays automatically, no scroll required */
@keyframes newsfeed-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.newsfeed-fb-enter {
  animation: newsfeed-rise 0.7s cubic-bezier(.22,.68,0,1.2) 0.25s both;
}
@media (prefers-reduced-motion: reduce) {
  .newsfeed-fb-enter { animation: none; }
}

/* Inner clip — reliably clips iframe at rounded corners and hides the FB page header */
.newsfeed-fb-clip {
  display: flex;
  justify-content: center;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round calc(var(--radius) - 1px));
  -webkit-clip-path: inset(0 round calc(var(--radius) - 1px));
  /* Ensure the clip box always matches the actual iframe width */
  width: 100%;
}

.newsfeed-iframe {
  display: block;
  width: 500px;
  max-width: 100%;
  height: 2000px; /* tall enough for ~15 posts; page scrolls, no internal loop */
  border: none;
  margin-top: -58px; /* shifts FB page header above the clip edge, hiding it */
}

/* Newsfeed social buttons row */
.newsfeed-social-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  pointer-events: auto;
}

/* Visit Page button (Facebook) */
.btn-visit-fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1877F2;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease);
  flex-shrink: 0;
}
.btn-visit-fb svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn-visit-fb:hover {
  background: #1467d6;
  color: #fff;
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 6px 20px rgba(24,119,242,.45);
}

/* Visit Instagram button */
.btn-visit-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .82rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: filter var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease);
  flex-shrink: 0;
}
.btn-visit-ig svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.btn-visit-ig:hover {
  color: #fff;
  filter: brightness(1.12);
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 6px 20px rgba(214,36,159,.45);
}

/* CTA button below the card */
.newsfeed-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .newsfeed-section { padding: 68px 20px; }
  .newsfeed-card-header { flex-wrap: wrap; gap: 10px; }
}

/* ===== ADMISSIONS PAGE ===== */

.admissions-section {
  background: radial-gradient(ellipse 75% 50% at 50% 0%, rgba(255,184,48,.06) 0%, transparent 70%),
              linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%);
  padding: 88px 32px;
  position: relative;
  overflow: hidden;
}

.admissions-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.admissions-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Info banner row ── */
.admissions-info-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.18);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 56px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.28);
}

.admissions-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  padding: 28px 28px;
  transition: background var(--t-fast) var(--ease);
}

.admissions-info-item:hover {
  background: var(--bg-overlay);
}

.aii-icon {
  font-size: 1.9rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.aii-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aii-text strong {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.aii-text span {
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.65;
}

.aii-text a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,184,48,.35);
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}

.aii-text a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.aii-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-left: 4px;
  border-left: 2px solid rgba(255,184,48,.20);
  padding-left: 14px;
}

.aii-options li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text-secondary);
  font-size: .88rem;
  line-height: 1.5;
}

.aii-option-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.aii-options li a {
  overflow-wrap: break-word;
  word-break: break-all;
}

.admissions-info-divider {
  width: 1px;
  background: rgba(255,184,48,.14);
  align-self: stretch;
  flex-shrink: 0;
}

/* ── Download forms grid ── */
.admissions-forms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}

.admissions-form-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.12);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.30);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease-spring);
}

.admissions-form-card:hover {
  border-color: rgba(255,184,48,.30);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.38), 0 0 0 1px rgba(255,184,48,.08);
}

.afc-icon {
  font-size: 2.6rem;
  line-height: 1;
}

.afc-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.afc-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

.afc-details h3 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .98rem;
  color: var(--gold);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--gold);
  color: #0B0B0C;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: .88rem;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-align: center;
  white-space: normal;    /* allow wrapping */
  word-break: break-word;
  line-height: 1.3;
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-base) var(--ease),
              background var(--t-fast) var(--ease);
}

.btn-download svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-download:hover {
  background: var(--gold-light);
  color: #0B0B0C;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,184,48,.40);
}

/* Coming-soon state — greyed out, not interactive */
.btn-download--soon {
  background: var(--bg-overlay);
  color: var(--text-muted);
  border: 1px dashed rgba(255,184,48,.25);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* ── Submission card wrap ── */
.admissions-form-card-wrap {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.12);
  border-radius: var(--radius);
  padding: 56px 52px;
  box-shadow: 0 2px 16px rgba(0,0,0,.30);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-base) var(--ease);
}

.admissions-form-card-wrap:hover {
  border-color: rgba(255,184,48,.25);
  box-shadow: 0 8px 36px rgba(0,0,0,.38), 0 0 0 1px rgba(255,184,48,.08);
}

/* Reuse shared form classes: .admissions-submit-form, .form-row, .form-group,
   .btn-submit — all already defined in the contact CSS block above.
   Only additional/override rules below. */

/* More generous spacing for the admissions form */
.admissions-submit-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.admissions-submit-form .form-row {
  gap: 24px;
}

.admissions-submit-form .form-group {
  gap: 12px;
}

.admissions-submit-form .form-group label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--off-white);
}

.admissions-submit-form .form-group input,
.admissions-submit-form .form-group textarea {
  padding: 16px 18px;
  font-size: 1rem;
}

.admissions-submit-form .form-group select {
  background: var(--bg-overlay);
  border: 1px solid rgba(255,184,48,.18);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--off-white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-size: .97rem;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239898A4'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background-color var(--t-fast) var(--ease);
}

.admissions-submit-form .form-group select:hover {
  border-color: rgba(255,184,48,.32);
}

.admissions-submit-form .form-group select:focus {
  border-color: var(--gold);
  background-color: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(255,184,48,.12);
}

.admissions-submit-form .form-group select option {
  background: var(--bg-raised);
  color: var(--off-white);
}

/* Custom file upload */
.file-upload-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hide native file input, drive UI through label */
.file-upload-wrap input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-overlay);
  border: 1px solid rgba(255,184,48,.25);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  color: var(--off-white);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}

.file-upload-label svg {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
}

.file-upload-label:hover {
  border-color: var(--gold);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 3px rgba(255,184,48,.10);
}

/* Show focus ring when the hidden input is focused */
.file-upload-wrap input[type="file"]:focus + .file-upload-label {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,48,.12);
}

.file-name-display {
  color: var(--text-muted);
  font-size: .85rem;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.form-helper {
  font-size: .73rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: .2px;
}

/* ── Admissions responsive ── */
@media (max-width: 900px) {
  .admissions-forms-grid { grid-template-columns: repeat(2, 1fr); }
  .admissions-info-row { flex-direction: column; }
  .admissions-info-divider { width: auto; height: 1px; align-self: stretch; }
}

@media (max-width: 768px) {
  .admissions-section { padding: 68px 20px; }
  .admissions-form-card-wrap { padding: 36px 24px; }
  .admissions-info-item { padding: 22px 20px; }
}

@media (max-width: 540px) {
  .admissions-forms-grid { grid-template-columns: repeat(2, 1fr); }
  .file-upload-wrap { flex-direction: column; align-items: flex-start; }
  .file-name-display { max-width: 100%; }

  /* Make each download card a column with the button spanning full width */
  .admissions-form-card {
    padding: 20px 14px;
    gap: 10px;
  }

  /* Button fills the full card width so text never overflows */
  .admissions-form-card .btn-download {
    width: 100%;
    font-size: .82rem;
    padding: 9px 12px;
  }

  .admissions-form-card .btn-download--soon {
    width: 100%;
    font-size: .82rem;
    padding: 9px 12px;
  }

  .afc-icon { font-size: 2rem; }

  .afc-details h3 { font-size: .88rem; }
}

@media (max-width: 380px) {
  .admissions-forms-grid { grid-template-columns: 1fr; }

  .admissions-form-card .btn-download,
  .admissions-form-card .btn-download--soon {
    font-size: .78rem;
  }
}


/* ══════════════════════════════════════════════════════════════
   RESOURCES PAGE
   ══════════════════════════════════════════════════════════════ */

.resources-section {
  padding: 88px 32px 100px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.resources-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── Eyebrow label ── */
.resources-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── Grade grid ── */
.res-grade-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
}

/* Keeps Grade 6 + Grade 7 on the same line when wrapping */
.res-grade-nobreak {
  display: inline-flex;
  gap: 14px;
  flex-shrink: 0;
}

/* ── Grade / ECD / All buttons ── */
.res-grade-btn {
  background: var(--bg-elevated);
  border: 1.5px solid rgba(255,184,48,.25);
  border-radius: var(--radius-pill);
  color: var(--off-white);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: 14px 30px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-fast) var(--ease);
}

.res-grade-btn:hover {
  background: rgba(255,184,48,.10);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.res-grade-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0B0C;
  box-shadow: 0 0 0 5px rgba(255,184,48,.18), 0 8px 24px rgba(255,184,48,.35);
  transform: translateY(-2px);
}

/* ECD gets a slightly wider pill */
.res-grade-btn--ecd {
  padding: 14px 44px;
  border-color: rgba(255,184,48,.40);
}

/* Additional — gold outline pill */
.res-grade-btn--additional {
  padding: 14px 44px;
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Term panel ── */
.res-term-panel {
  background: var(--bg-raised);
  border: 1px solid rgba(255,184,48,.14);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.res-term-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.res-term-label {
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.res-term-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Term buttons ── */
.res-term-btn {
  background: var(--bg-overlay);
  border: 1.5px solid rgba(255,184,48,.20);
  border-radius: var(--radius-pill);
  color: var(--off-white);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 28px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease-spring);
}

.res-term-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0B0B0C;
  transform: translateY(-2px);
}

/* ── Modal overlay ── */
.res-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.res-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Modal card ── */
.res-modal {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,184,48,.18);
  border-radius: var(--radius);
  padding: 48px 44px 44px;
  width: 100%;
  max-width: 700px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(.94) translateY(16px);
  transition: transform .35s var(--ease-spring);
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
}

.res-modal-overlay.is-open .res-modal {
  transform: scale(1) translateY(0);
}

.res-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color var(--t-fast), background var(--t-fast);
}

.res-modal-close:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.res-modal-title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--gold);
  margin-bottom: 14px;
  line-height: 1.35;
  text-align: center;
}

.res-modal-subtitle {
  display: block;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.res-modal-body {
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
}

/* ── Loading spinner ── */
.res-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.res-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,184,48,.20);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: res-spin .7s linear infinite;
  margin-bottom: 14px;
}

@keyframes res-spin {
  to { transform: rotate(360deg); }
}

/* ── Download-all bar ── */
.res-download-all-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.res-download-all-btn {
  background: var(--gold);
  color: #0B0B0C;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-spring);
}

.res-download-all-btn:hover {
  opacity: .85;
  transform: translateY(-2px);
}

.res-file-count {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── File list ── */
.res-file-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.res-file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-overlay);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 12px 14px;
  transition: background var(--t-fast);
}

.res-file-item:hover {
  background: rgba(255,184,48,.06);
}

.res-file-type-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: #fff;
  border-radius: 5px;
  padding: 3px 7px;
  min-width: 42px;
  text-align: center;
}

.res-file-name {
  flex: 1;
  font-size: .88rem;
  color: var(--off-white);
  word-break: break-word;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.res-file-size {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.res-file-dl-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease-spring);
  white-space: nowrap;
}

.res-file-dl-btn:hover {
  background: var(--gold);
  color: #0B0B0C;
  transform: translateY(-1px);
}

.res-modal-empty {
  color: var(--text-muted);
  font-size: .95rem;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .resources-section { padding: 68px 20px 80px; }
  .res-modal { padding: 40px 24px 32px; max-height: 92vh; }
  .res-term-panel { padding: 28px 20px 24px; }
  .res-file-item { flex-wrap: wrap; gap: 8px; }
  .res-file-dl-btn { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .res-grade-btn { padding: 12px 20px; font-size: .88rem; }
  .res-term-btn  { padding: 11px 20px; font-size: .86rem; }
}


/* ══════════════════════════════════════════════════════════════
   GALLERY PAGE
   ══════════════════════════════════════════════════════════════ */

.gallery-pg-section {
  padding: 88px 32px 0;
  background: var(--bg-base);
}

.gallery-pg-inner {
  max-width: 980px;
  margin: 0 auto;
}

.gallery-pg-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-pg-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
}

/* ── Gallery stage: centre book only, strips are fixed ── */
.gallery-stage {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-bottom: 60px;
}

/* Mobile horizontal filmstrips — hidden on desktop, shown only on phones via media query */
.gallery-hstrip-mobile {
  display: none;
}

/* ── Outer book+controls column ── */
.gallery-book-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  max-width: 720px;
  min-width: 0;
}

/* ── The book itself ── */
.gallery-book {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0,0,0,.4),
    0 24px 64px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,184,48,.10);
  width: 100%;
  min-height: 340px;
  background: var(--bg-elevated);
  position: relative;
}

.book-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: var(--bg-elevated);
  position: relative;
  transition: opacity .4s var(--ease);
}

.book-page--left  { border-radius: var(--radius) 0 0 var(--radius); }
.book-page--right { border-radius: 0 var(--radius) var(--radius) 0; }

.book-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px);
  background: var(--bg-overlay);
  cursor: pointer;
}

.book-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease), opacity .35s var(--ease);
}

.book-img-wrap:hover img { transform: scale(1.04); }
.book-img-wrap.is-turning img { opacity: 0; transform: scale(.96); }

.book-page-num {
  margin-top: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ── Book spine ── */
.book-spine {
  width: 18px;
  flex-shrink: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.35) 0%,
    rgba(255,184,48,.22) 40%,
    rgba(255,184,48,.22) 60%,
    rgba(0,0,0,.35) 100%
  );
  position: relative;
}
.book-spine::before,
.book-spine::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,184,48,.18);
}
.book-spine::before { top: 12px; }
.book-spine::after  { bottom: 12px; }

/* ── Book controls ── */
.book-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.book-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,184,48,.30);
  background: var(--bg-elevated);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.book-btn svg {
  width: 22px; height: 22px;
  stroke: currentColor; stroke-width: 2.2;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.book-btn:hover { background: var(--gold); border-color: var(--gold); color: #0B0B0C; transform: scale(1.1); }
.book-btn:disabled { opacity: .3; cursor: default; transform: none; }

.book-counter {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 90px;
  text-align: center;
}

/* ════════════════════════════════════════════════
   VERTICAL FILMSTRIPS — fixed, full viewport height
   z-index 1 so they sit behind the fixed header (200)
   and behind the footer
════════════════════════════════════════════════ */
.gallery-vstrip {
  position: fixed;
  top: 0;
  bottom: -220px;        /* extends 220px below viewport so footer covers the tail */
  width: 110px;
  display: flex;
  flex-direction: row;   /* [holes | photos | holes] */
  background: #0A0A0B;
  border: 1px solid rgba(255,184,48,.12);
  overflow: hidden;
  z-index: 1;            /* behind header (200) and footer */
  pointer-events: auto;
}

.gallery-vstrip--left  { left: 0;  border-radius: 0; }
.gallery-vstrip--right { right: 0; border-radius: 0; }

/* Sprocket holes column */
.vstrip-holes {
  flex-shrink: 0;
  width: 12px;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  gap: 0;
  background: #0A0A0B;
}
.vstrip-holes span {
  flex-shrink: 0;
  width: 7px;
  height: 12px;
  margin: 4px auto;
  background: #1a1a1d;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.07);
  display: block;
}

/* Photo track */
.vstrip-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 5px 0;
  will-change: transform;
}

.vstrip-photo {
  flex-shrink: 0;
  width: 82px;
  height: 82px;
  border-radius: 5px;
  overflow: hidden;
  border: 1.5px solid rgba(255,184,48,.10);
  cursor: pointer;
  transition: border-color .25s;
  align-self: center;
}
.vstrip-photo:hover { border-color: var(--gold); }
.vstrip-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}

/* ── Lightbox ── */
.glb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.glb-overlay.is-open { opacity: 1; pointer-events: auto; }

.glb-img-wrap {
  max-width: min(86vw, 760px);
  max-height: 80vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
}
.glb-img-wrap img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; max-height: 80vh;
  transition: opacity .3s;
}

.glb-close {
  position: fixed; top: 18px; right: 22px;
  background: rgba(255,255,255,.08); border: none;
  color: var(--white); font-size: 1.1rem;
  width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.glb-close:hover { background: rgba(255,255,255,.18); }

.glb-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,184,48,.14); border: 1.5px solid rgba(255,184,48,.30);
  color: var(--gold); font-size: 2.2rem;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s var(--ease-spring); line-height: 1;
}
.glb-arrow:hover { background: var(--gold); color: #0B0B0C; transform: translateY(-50%) scale(1.08); }
.glb-arrow--prev { left: 16px; }
.glb-arrow--next { right: 16px; }

.glb-caption {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: .82rem; color: rgba(255,255,255,.45); white-space: nowrap;
}

/* ── Gallery Responsive ── */

/* ── Tablet (≤ 860px): shrink side strips but keep them ── */
@media (max-width: 860px) {
  .gallery-vstrip { width: 80px; }
  .vstrip-photo   { width: 58px; height: 58px; }
  .vstrip-holes   { width: 10px; }
}

/* ── Tablet (541-860px): enough room to still show side strips + book ── */
@media (max-width: 860px) and (min-width: 541px) {
  /* Keep vertical strips visible — slightly smaller book to fit */
  .gallery-book-wrap { max-width: 480px; }
}

/* ── Phone (≤ 540px): single-photo pager + horizontal filmstrips ── */
@media (max-width: 540px) {

  /* Hide the fixed vertical side strips */
  .gallery-vstrip { display: none; }

  /* Section container */
  .gallery-pg-section {
    padding: 68px 0 40px;
  }

  .gallery-pg-inner {
    padding: 0;
  }

  /* Stack stage vertically: top strip → book → bottom strip */
  .gallery-stage {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 32px;
  }

  /* ── Horizontal filmstrips ── */
  .gallery-hstrip-mobile {
    display: flex;                /* shown only on mobile */
    flex-direction: column;
    background: #0A0A0B;
    border-top: 1px solid rgba(255,184,48,.15);
    border-bottom: 1px solid rgba(255,184,48,.15);
    overflow: hidden;
    width: 100%;
  }

  .gallery-hstrip-mobile .hstrip-holes {
    width: 100%;
    height: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
  }

  .gallery-hstrip-mobile .hstrip-holes span {
    flex-shrink: 0;
    width: 9px;
    height: 6px;
    margin: 0 5px;
    background: #1a1a1d;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,.07);
    display: block;
  }

  .gallery-hstrip-mobile .hstrip-track-wrap {
    overflow: hidden;
    width: 100%;
  }

  .gallery-hstrip-mobile .hstrip-track {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px 0;
    width: max-content;
    will-change: transform;
  }

  .gallery-hstrip-mobile .hstrip-photo {
    flex-shrink: 0;
    width: 110px;
    height: 82px;
    border-radius: 3px;
    overflow: hidden;
    border: 1.5px solid rgba(255,184,48,.10);
    background: #1C1C1F;
    pointer-events: auto;
    cursor: pointer;
  }

  .gallery-hstrip-mobile .hstrip-photo img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
  }

  /* ── Book: single page (hide right page & spine) ── */
  .gallery-book-wrap {
    max-width: 100%;
    padding: 12px 16px;
  }

  .gallery-book {
    flex-direction: row;
    min-height: auto;
    border-radius: var(--radius-sm);
  }

  .book-page--right,
  .book-spine {
    display: none;
  }

  .book-page--left {
    border-radius: var(--radius-sm);
    padding: 10px;
    flex: 1;
  }

  .book-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  /* Controls */
  .book-controls {
    gap: 12px;
    padding: 0 16px;
  }

  .book-btn     { width: 44px; height: 44px; }
  .book-btn svg { width: 20px; height: 20px; }

  .book-counter {
    font-size: .82rem;
    min-width: 80px;
  }

  /* Lightbox arrows closer in on small screens */
  .glb-arrow  { width: 40px; height: 40px; font-size: 1.6rem; }
  .glb-arrow--prev { left: 8px; }
  .glb-arrow--next { right: 8px; }
}



/* ══════════════════════════════════════════════════════════════
   FORM FEEDBACK PAGE  (success / error after form submission)
   ══════════════════════════════════════════════════════════════ */

.feedback-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: var(--bg-base);
}

.feedback-inner {
  max-width: 520px;
  width: 100%;
  background: var(--bg-raised);
  border-radius: var(--radius);
  padding: 52px 48px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}

.feedback-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: var(--bg-elevated);
  object-fit: cover;
  margin-bottom: 28px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.feedback-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.feedback-icon svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.feedback-icon--success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 0 30px rgba(46, 204, 113, 0.35);
}

.feedback-icon--error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 0 30px rgba(231, 76, 60, 0.35);
}

.feedback-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 14px;
  line-height: 1.2;
}

.feedback-msg {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 32px;
}

.feedback-msg a {
  color: var(--gold);
  text-decoration: none;
}

.feedback-msg a:hover {
  text-decoration: underline;
}

.btn-back-feedback {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-base);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  transition: opacity var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn-back-feedback:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .feedback-inner { padding: 36px 24px; }
}

/* ================================================================
   GLOBAL MOBILE FOUNDATION
   Prevents horizontal overflow on ALL pages — must come after
   every other rule so it cannot be overridden by specificity.
   ================================================================ */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  /* Ensure long words / URLs wrap instead of breaking layout */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Images should never stretch outside their container */
img {
  max-width: 100%;
  height: auto;
}

/* ── Hamburger → X animation ─────────────────────────────────── */
/* The JS already sets aria-expanded="true" when the menu opens.
   We use that to morph the 3 bars into an × with CSS only.      */
.menu-toggle span {
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center;
}

/* Top bar: slide down + rotate CW to 45° */
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

/* Middle bar: fade + shrink out */
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

/* Bottom bar: slide up + rotate CCW to −45° */
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav: animate with max-height instead of display:none
   so the open/close has a smooth slide-down feel              */
@media (max-width: 768px) {
  .main-nav {
    display: block !important;  /* always in flow */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity    0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(17, 17, 19, 0.82);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(255, 184, 48, 0.22);
    box-shadow: 0 8px 32px rgba(0,0,0,.55);
    z-index: 199;
  }

  .main-nav.is-open {
    display: block !important;
    max-height: 480px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================================================================
   TABLET  —  ≤ 900 px
   ================================================================ */
@media (max-width: 900px) {
  /* Hero: trim the large top/bottom padding a touch */
  .hero-section { padding: 80px 28px 72px; }

  /* Section general */
  section { padding: 72px 28px; }

  /* About logo wrap: less padding when stacked */
  .about-logo-wrap  { padding: 28px; }
  .about-logo-img   { max-width: 220px; }
}

/* ================================================================
   SMALL TABLET / PHONE LANDSCAPE  —  ≤ 768 px
   ================================================================ */
@media (max-width: 768px) {
  /* ── Hero ── */
  .hero-section   { padding: 68px 22px 60px; }
  .hero-logo      { width: 130px; margin-bottom: 20px; }
  .hero-badge     { font-size: .72rem; padding: 6px 14px; margin-bottom: 16px; }
  .hero-subtitle  { font-size: 1rem; margin-bottom: 30px; }
  .hero-btn       { padding: 13px 34px; font-size: .95rem; }

  /* ── Section header ── */
  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* ── About ── */
  .about-content h2  { font-size: 1.85rem; }
  .about-logo-wrap   { padding: 22px; }
  .about-logo-img    { max-width: 180px; }
  .about-highlight   { padding: 14px 18px; }

  /* ── Values ── */
  .value-card { padding: 30px 18px 24px; }

  /* ── Footer ── */
  .site-footer    { padding: 44px 20px 20px; }
  .footer-nav     { gap: 16px; }
  .footer-logo    { font-size: 1.25rem; }
  .footer-tagline { font-size: .82rem; }

  /* ── Coming soon ── */
  .coming-soon-box   { padding: 44px 26px; border-radius: 22px; }
  .coming-soon-box h1 { font-size: 2rem; }

  /* ── Admissions ── */
  .admissions-section { padding: 68px 20px; }

  /* ── Contact ── */
  .contact-section { padding: 68px 20px; }

  /* ── Newsfeed ── */
  .newsfeed-section { padding: 68px 20px; }
  .newsfeed-fb-wrap { width: 100%; }
  /* Let JS set the iframe width via the src URL rebuild;
     CSS max-width:100% ensures the element never exceeds the container */
  .newsfeed-iframe  { width: 100% !important; max-width: 100%; }

  /* ── Gallery ── */
  .gallery-pg-section { padding: 68px 16px 40px; }

  /* ── Resources ── */
  .resources-section { padding: 68px 20px 80px; }
}

/* ================================================================
   PHONE PORTRAIT  —  ≤ 540 px
   ================================================================ */
@media (max-width: 540px) {
  /* ── Hero ── */
  .hero-section  { padding: 56px 18px 52px; }
  .hero-logo     { width: 105px; }
  .hero-title    { letter-spacing: -0.03em; }
  .hero-subtitle { font-size: .95rem; max-width: 100%; }
  .hero-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ── Sections ── */
  section { padding: 56px 18px; }

  /* ── About ── */
  .about-inner    { gap: 28px; }
  .about-logo-wrap { padding: 20px; }
  .about-logo-img  { max-width: 150px; }

  /* ── Values ── */
  .value-icon    { font-size: 2.2rem; }
  .value-card h3 { font-size: .95rem; }

  /* ── Footer ── */
  .footer-nav   { gap: 12px 20px; }
  .footer-nav a { font-size: .78rem; }

  /* ── Contact ── */
  .contact-info-card,
  .contact-form-card { padding: 26px 18px; }
  .contact-icon { font-size: 1.5rem; }
  .contact-detail-text a { font-size: .93rem; }
  .contact-social-btns { flex-direction: column; align-items: stretch; }
  .btn-facebook,
  .btn-instagram { justify-content: center; font-size: .88rem; padding: 12px 22px; }

  /* ── Coming soon ── */
  .coming-soon-wrap  { padding: 48px 16px; }
  .coming-soon-box   { padding: 34px 18px; border-radius: 18px; }
  .coming-soon-box h1 { font-size: 1.75rem; }
  .cs-icon { font-size: 3.2rem; }
  .btn-home { display: block; text-align: center; }

  /* ── Admissions ── */
  .admissions-section { padding: 56px 18px; }
  .admissions-form-card-wrap { padding: 28px 18px; }
  .admissions-info-item { padding: 18px 16px; }

  /* ── Resources ── */
  .resources-section { padding: 56px 18px 80px; }

  /* ── Newsfeed ── */
  .newsfeed-section { padding: 56px 18px; }
  .newsfeed-inner   { max-width: 100%; }

  /* ── Gallery ── */
  .gallery-pg-section { padding: 56px 12px 36px; }
  .book-controls { gap: 14px; }

  /* ── Feedback ── */
  .feedback-inner { padding: 30px 18px; }
}

/* ================================================================
   SMALL PHONE  —  ≤ 400 px
   ================================================================ */
@media (max-width: 400px) {
  /* ── Header ── */
  .header-inner { padding: 0 14px; }
  .logo-text-wrap .school-name { font-size: .92rem; }
  .logo-text-wrap .school-tag  { font-size: .58rem; }
  .header-logo-img { width: 44px; height: 44px; }

  /* ── Hero ── */
  .hero-section { padding: 48px 14px 44px; }
  .hero-logo    { width: 88px; margin-bottom: 16px; }
  .hero-badge   { font-size: .66rem; padding: 5px 11px; letter-spacing: .4px; }
  .hero-btn     { max-width: 100%; }

  /* ── Sections ── */
  section { padding: 48px 14px; }

  /* ── Section header ── */
  .section-header { margin-bottom: 36px; }

  /* ── Footer ── */
  .site-footer { padding: 32px 14px 18px; }
  .footer-nav  { flex-direction: column; align-items: center; gap: 8px; }
  .footer-logo { font-size: 1.1rem; }
  .footer-logo-img { width: 70px; }

  /* ── Values ── */
  .values-grid { gap: 12px; }
  .value-card  { padding: 26px 16px 20px; }

  /* ── About ── */
  .about-logo-wrap { padding: 16px; }
  .about-logo-img  { max-width: 130px; }
  .about-content h2 { font-size: 1.6rem; }
  .about-content p  { font-size: .92rem; }

  /* ── Contact ── */
  .contact-info-card,
  .contact-form-card { padding: 22px 14px; }
  .contact-map iframe { height: 200px; }

  /* ── Admissions ── */
  .admissions-info-item { padding: 14px 12px; }
  .aii-text strong { font-size: .85rem; }

  /* ── Resources ── */
  .res-grade-grid   { gap: 10px; }
  .res-grade-nobreak { gap: 10px; }
  .res-grade-btn    { padding: 10px 16px; font-size: .82rem; }
  .res-term-btn     { padding: 10px 18px; font-size: .84rem; }
  .res-modal        { padding: 32px 14px 22px; }
  .res-modal-title  { font-size: 1.15rem; }

  /* ── Gallery book ── */
  .book-btn     { width: 40px; height: 40px; }
  .book-btn svg { width: 18px; height: 18px; }
  .book-counter { font-size: .78rem; }

  /* ── Coming soon ── */
  .coming-soon-box { padding: 28px 14px; }
  .btn-home { padding: 11px 24px; }

  /* ── Feedback ── */
  .feedback-inner { padding: 26px 14px; }
}

/* ================================================================
   VERY SMALL PHONE  —  ≤ 360 px
   ================================================================ */
@media (max-width: 360px) {
  .header-inner { padding: 0 12px; }
  .logo-text-wrap .school-name { font-size: .85rem; }
  .header-logo-img { width: 38px; height: 38px; }

  .hero-section { padding: 44px 12px 40px; }
  .hero-logo    { width: 78px; }

  section { padding: 44px 12px; }

  .admissions-forms-grid { grid-template-columns: 1fr; }

  .res-grade-btn { padding: 9px 13px; font-size: .78rem; }
  .res-term-btn  { padding: 9px 15px; font-size: .8rem; }
}

