/* =============================================
   Rose of Sharon Kids Montessori - Main Stylesheet
   ============================================= */

:root {
  --primary: #0B1F3A;         /* Deep Navy */
  --primary-dark: #071324;    /* Dark Navy */
  --primary-light: #1769E0;   /* Royal Blue (Secondary) */
  --secondary: #1769E0;       /* Royal Blue */
  --accent: #F5B700;          /* Golden Yellow */
  --accent-dark: #D49E00;     /* Deep Gold */
  --accent-light: #FFE082;    /* Soft Gold */
  --green: #20A464;           /* Success Indicator */
  --cta: #0B1F3A;             /* CTA Navy Blue */
  --cta-hover: #1769E0;       /* CTA Royal Blue Hover */
  --red: #DC2626;
  --white: #FFFFFF;           /* Cards & Crisp White */
  --off-white: #F7F9FC;       /* Page Background */
  --light-gray: #EEF2F6;
  --mid-gray: #64748B;
  --dark: #0B1F3A;
  --text: #172033;            /* Charcoal */
  --border: #E2E8F0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 4px 20px rgba(11,31,58,0.06);
  --shadow-lg: 0 12px 36px rgba(11,31,58,0.12);
  --shadow-gold: 0 4px 14px rgba(11,31,58,0.08);
  --shadow-cta: 0 4px 14px rgba(11,31,58,0.1);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section.bg-light { background: var(--off-white); }
.section.bg-white { background: var(--white); }

/* ===================== TYPOGRAPHY ===================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,183,0,0.15);
  color: #B47800;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,183,0,0.35);
}
.section-label.light {
  background: rgba(255,255,255,0.18);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.section-header.center { text-align: center; margin-bottom: 52px; }
.section-desc { color: var(--mid-gray); max-width: 650px; margin: 0 auto; font-size: 1.05rem; line-height: 1.75; }

/* ===================== BUTTONS ===================== */
.btn-primary, .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: 1.5px solid var(--cta);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11,31,58,0.18);
}
.btn-primary:hover, .btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23,105,224,0.28);
  color: var(--white);
}
.btn-primary.btn-lg, .btn-cta.btn-lg { padding: 16px 36px; font-size: 1.02rem; }

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
}
.btn-secondary:hover {
  background: #1153B8;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-outline.btn-lg { padding: 16px 36px; }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 800; font-size: 0.98rem; transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.btn-white:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-2px); }
.btn-white.btn-lg { padding: 16px 36px; }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); color: var(--white);
  padding: 14px 30px; border-radius: 50px;
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.7); transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.18); border-color: var(--white); }
.btn-outline-white.btn-lg { padding: 16px 36px; }

.full-width { width: 100%; justify-content: center; }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }

/* ===================== TOPBAR ===================== */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar i { color: var(--accent); margin-right: 5px; }
.topbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.topbar a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 75px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-img {
  height: 54px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.04);
}
.logo-circle {
  width: 46px; height: 46px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 12px rgba(11,31,58,0.15);
}
.logo-circle.large { width: 70px; height: 70px; font-size: 1.3rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 800; color: var(--primary); font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.2px; }
.logo-tagline { font-size: 0.74rem; color: var(--secondary); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li a {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-links li a:hover, .nav-links li a.active { color: var(--secondary); background: rgba(23,105,224,0.08); }

.nav-links .btn-apply {
  background: var(--cta);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  margin-left: 8px;
  border: 1.5px solid var(--cta);
  box-shadow: 0 4px 14px rgba(11,31,58,0.18);
  transition: var(--transition);
}
.nav-links .btn-apply:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(23,105,224,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================== HERO ===================== */
/* ===================== HERO (TWO-LAYER LAYOUT) ===================== */
.hero {
  position: relative;
  background-image: url('/images/montessori_classroom.jpg');
  background-size: cover;
  background-position: right 30%;
  background-repeat: no-repeat;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 85px 0 65px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Layer 1: Dark/blue gradient overlay protecting readability on the left while keeping classroom image visible on the right */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(11, 31, 58, 0.96) 0%,
    rgba(11, 31, 58, 0.88) 42%,
    rgba(11, 31, 58, 0.65) 68%,
    rgba(11, 31, 58, 0.32) 86%,
    rgba(11, 31, 58, 0.18) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Layer 2: Foreground content container */
.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 630px;
  text-align: left;
}

/* ===================== HERO MOTION GRAPHICS & KINETIC TIMELINE ===================== */
/* 24fps motion timeline: 6 frames (250ms) per step, 18 frames (750ms) duration, 40px slide-up */
.hero,
.kinetic-title {
  --kt-fps: 24;
  --kt-frame: 41.67ms;
  --kt-stagger: 250ms;
  --kt-duration: 750ms;
  --kt-distance: 40px;
  --kt-start: 150ms;
  --kt-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kinetic Mask: hides overflow cleanly so words slide up from behind a clipping plane */
.kinetic-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.05em 0.04em 0.12em;
  margin: -0.05em -0.04em -0.12em;
}

.kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, var(--kt-distance), 0);
  animation: kineticSlideUp var(--kt-duration) var(--kt-ease) forwards;
  animation-delay: calc(var(--kt-start) + var(--i, 0) * var(--kt-stagger));
  will-change: transform, opacity;
}

/* Stagger wrapper for badge, subtitle, CTA buttons, and feature cards */
.hero-stagger {
  opacity: 0;
  transform: translate3d(0, var(--kt-distance), 0);
  animation: kineticSlideUp var(--kt-duration) var(--kt-ease) forwards;
  animation-delay: calc(var(--kt-start) + var(--s, 0) * var(--kt-stagger));
  will-change: transform, opacity;
}

.hero-actions .hero-stagger {
  display: inline-flex;
}

.hero-actions .btn-primary {
  background: #0B2545;
  border: 1.5px solid rgba(245, 183, 0, 0.55);
  box-shadow: 0 8px 24px rgba(7, 19, 36, 0.45);
}
.hero-actions .btn-primary:hover {
  background: #1769E0;
  border-color: #1769E0;
  box-shadow: 0 10px 28px rgba(23, 105, 224, 0.35);
}

@keyframes kineticSlideUp {
  0% {
    opacity: 0;
    transform: translate3d(0, var(--kt-distance), 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 183, 0, 0.16);
  border: 1px solid rgba(245, 183, 0, 0.45);
  color: #FCD34D;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge i {
  color: #F5B700;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.3vw, 3.6rem);
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-title span {
  color: var(--accent);
  display: inline-block;
}

.hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.90);
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Statistics card lower and separated from the main text */
.hero-stats-wrapper {
  margin-top: 56px;
  max-width: 860px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 18px 26px;
  background: rgba(11, 31, 58, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 183, 0, 0.6), transparent);
  opacity: 0.8;
}

.stat {
  text-align: center;
  padding: 0 18px;
  flex: 1;
  position: relative;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.28s ease;
  border-radius: 8px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
}

.stat-number {
  display: block;
  font-size: 1.32rem;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-display);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.16);
}

.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }

@media (prefers-reduced-motion: reduce) {
  .kinetic-word,
  .hero-stagger,
  .stat {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ===================== WELCOME SECTION ===================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.welcome-images {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-single-image {
  position: relative;
  width: 100%;
  max-width: 415px;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.12);
  border: 4px solid var(--white);
  background: var(--light-gray, #f8fafc);
}

.welcome-single-image img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.welcome-single-image:hover img {
  transform: scale(1.02);
}

.welcome-single-image .img-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 86px;
  height: 86px;
  font-size: 0.68rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.18);
}

.welcome-single-image .img-badge i {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.welcome-single-image .headmistress-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 16px;
  background: linear-gradient(to top, rgba(11, 31, 58, 0.9) 0%, rgba(11, 31, 58, 0.5) 60%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 2;
}

.welcome-single-image .headmistress-caption strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

.welcome-single-image .headmistress-caption span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.img-main {
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.img-main img { width: 100%; height: 100%; object-fit: cover; }

.img-secondary {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.img-secondary img { width: 100%; height: 100%; object-fit: cover; }

.img-badge {
  position: absolute;
  top: 20px; right: 0;
  background: var(--accent);
  color: var(--primary-dark);
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(11,31,58,0.12);
}
.img-badge i { font-size: 1.4rem; margin-bottom: 4px; }

.welcome-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.feature-item i { color: var(--green); }

/* ===================== WHY CHOOSE US ===================== */
.why-section { background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  border-bottom: 4px solid transparent;
}
.why-card:hover { transform: translateY(-5px); border-bottom-color: var(--accent); box-shadow: var(--shadow-lg); }
.why-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(11,31,58,0.15);
}
.why-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.why-card p { font-size: 0.94rem; color: var(--text); line-height: 1.7; }

/* ===================== CAMPUS LIFE & MONTESSORI GALLERY ===================== */
.gallery-section { background: var(--white); padding: 80px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
.gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.gallery-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}
.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 1px solid rgba(245,183,0,0.4);
}
.gallery-body {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.gallery-body h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.gallery-body p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}

/* ===================== CTA SECTION ===================== */
.cta-section {
  position: relative;
  padding: 110px 0;
  background: url('/images/graduation_ceremony.jpg') center 30%/cover no-repeat;
  text-align: center;
}
.cta-section.mini { padding: 75px 0; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,31,58,0.80) 0%, rgba(7,19,36,0.76) 100%); }
.cta-content { position: relative; z-index: 2; color: var(--white); max-width: 720px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 18px; font-weight: 800; }
.cta-content p { opacity: 0.9; margin-bottom: 36px; font-size: 1.1rem; line-height: 1.8; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================== PROGRAMS ===================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.program-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.program-card:hover { border-color: var(--secondary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.program-card.featured { border-color: var(--accent); background: linear-gradient(180deg, #FFFDF5 0%, var(--white) 100%); box-shadow: var(--shadow); }
.prog-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: var(--primary);
  font-size: 0.75rem; font-weight: 800;
  padding: 4px 14px; border-radius: 50px;
  letter-spacing: 0.5px;
}
.prog-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(23,105,224,0.1);
  color: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.program-card.featured .prog-icon {
  background: rgba(245,183,0,0.15);
  color: #B47800;
}
.program-card h3 { font-weight: 800; margin-bottom: 12px; color: var(--primary); font-size: 1.2rem; }
.program-card p { font-size: 0.92rem; color: var(--text); margin-bottom: 20px; line-height: 1.7; }
.prog-detail { font-size: 0.88rem; font-weight: 700; color: var(--secondary); }
.prog-detail i { margin-right: 6px; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--off-white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); padding: 36px 30px; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: var(--transition); position: relative; border: 1px solid var(--border);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.quote-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 16px; }
.testimonial-card p { font-size: 0.95rem; color: var(--text); font-style: italic; margin-bottom: 24px; line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
  border: 2px solid var(--accent);
}
.author-name { font-weight: 800; font-size: 0.95rem; color: var(--primary); }
.author-role { font-size: 0.82rem; color: var(--mid-gray); font-weight: 600; }

/* ===================== PAGE BANNER ===================== */
.page-banner {
  position: relative;
  padding: 85px 0 70px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 70%, #163660 100%);
  text-align: center;
  border-bottom: 3px solid var(--accent);
}
.page-banner.short { padding: 65px 0 50px; }
.banner-overlay { display: none; }
.banner-content { position: relative; z-index: 2; color: var(--white); }
.banner-content h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 12px; font-weight: 800; color: var(--white); }
.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.92rem; opacity: 0.95;
}
.breadcrumb a { color: var(--accent); font-weight: 700; transition: var(--transition); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.75rem; opacity: 0.6; }

/* ===================== ABOUT PAGE ===================== */
.mv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mv-card {
  background: var(--white); padding: 36px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; border-top: 4px solid transparent;
  transition: var(--transition); border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.mv-card:hover, .mv-card.featured { border-top-color: var(--accent); transform: translateY(-4px); }
.mv-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 20px;
  box-shadow: 0 6px 16px rgba(11,31,58,0.15);
}
.mv-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.mv-card p { font-size: 0.93rem; color: var(--text); line-height: 1.8; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.story-highlights { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.highlight { display: flex; align-items: center; gap: 14px; }
.highlight i { width: 40px; height: 40px; background: var(--primary); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.highlight div { display: flex; flex-direction: column; }
.highlight strong { font-size: 0.88rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 1px; }
.highlight span { font-weight: 700; color: var(--primary-dark); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--white); padding: 36px 24px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center; transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px;
}
.team-card h4 { font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--primary-light); font-weight: 600; margin-bottom: 10px; }
.team-card span { font-size: 0.88rem; color: var(--text); }

.facilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.facility-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.facility-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fac-img { height: 200px; overflow: hidden; }
.fac-img img { width: 100%; height: 100%; object-fit: cover; }
.fac-info { padding: 24px; }
.fac-info h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.fac-info i { color: var(--accent); margin-right: 6px; }
.fac-info p { font-size: 0.9rem; color: var(--text); }

/* ===================== ADMISSIONS PAGE ===================== */
.steps-container { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; margin: 48px 0; }
.step { flex: 1; min-width: 180px; text-align: center; padding: 0 12px; }
.step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step-content h4 { font-weight: 700; margin-bottom: 8px; color: var(--primary-dark); }
.step-content p { font-size: 0.88rem; color: var(--text); }
.step-arrow { font-size: 1.5rem; color: var(--mid-gray); padding: 0 8px; padding-top: 18px; }

.table-wrapper { overflow-x: auto; }
.admission-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admission-table th { background: var(--primary); color: var(--white); padding: 14px 18px; text-align: left; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; }
.admission-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.admission-table tr:last-child td { border-bottom: none; }
.admission-table tr:hover td { background: var(--off-white); }

.badge { padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; }
.badge.open { background: rgba(22,163,74,0.12); color: var(--green); }
.badge.limited { background: rgba(245,158,11,0.12); color: var(--accent-dark); }

.req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.req-card {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--accent);
}
.req-icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.req-card h4 { font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; }
.req-card li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.req-card li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.req-card li i.fa-circle { color: var(--primary-light); font-size: 0.5rem; margin-top: 8px; }

/* ===================== APPLY FORM ===================== */
.apply-section { background: var(--off-white); }
.apply-layout { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: flex-start; }

.apply-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: var(--white); padding: 24px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar-card h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 14px; font-size: 0.95rem; }
.sidebar-card h4 i { color: var(--accent); margin-right: 6px; }
.sidebar-card ul li { font-size: 0.88rem; margin-bottom: 10px; padding-left: 14px; position: relative; color: var(--text); }
.sidebar-card ul li::before { content: '•'; position: absolute; left: 0; color: var(--accent); }
.sidebar-card.contact-card p { font-size: 0.85rem; color: var(--mid-gray); margin-bottom: 4px; }
.contact-link { display: block; font-weight: 700; color: var(--primary); font-size: 1rem; }
.contact-link.small { font-size: 0.85rem; }
.contact-link:hover { color: var(--accent-dark); }

.sidebar-steps { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-step {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 0.88rem; font-weight: 600;
  color: var(--mid-gray); border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar-step span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--light-gray); color: var(--mid-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.sidebar-step.active { color: var(--primary-dark); border-left-color: var(--accent); background: var(--off-white); }
.sidebar-step.active span { background: var(--primary); color: var(--white); }
.sidebar-step.done { color: var(--green); }
.sidebar-step.done span { background: var(--green); color: var(--white); }

.apply-form-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.form-step-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--border); }
.step-num-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; flex-shrink: 0;
}
.form-step-header h3 { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.form-step-header p { font-size: 0.9rem; color: var(--mid-gray); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label { font-weight: 700; font-size: 0.88rem; color: var(--primary-dark); margin-bottom: 8px; }
.form-group .required { color: var(--red); }
.form-group .field-hint { font-size: 0.78rem; color: var(--mid-gray); margin-top: 5px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--dark);
  transition: var(--transition);
  background: var(--white);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* Drag and Drop Upload Zone & Previews */
.upload-group .upload-area,
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  background: var(--off-white);
  transition: all 0.25s ease;
  cursor: pointer;
}

.upload-area:hover,
.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(23, 105, 224, 0.04);
}

.upload-dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(245, 183, 0, 0.09);
  transform: scale(1.01);
}

.upload-area input[type="file"],
.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.upload-content i {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
  opacity: 0.85;
}

.upload-content span {
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  font-size: 0.94rem;
}

.upload-content small {
  color: var(--mid-gray);
  font-size: 0.82rem;
  display: block;
  margin-top: 4px;
}

.file-chosen {
  font-size: 0.85rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
}

/* File Preview Card */
.file-preview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  text-align: left;
  position: relative;
}

.file-preview-thumb {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.file-preview-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: rgba(23, 105, 224, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.file-preview-info {
  flex-grow: 1;
  min-width: 0;
}

.file-preview-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 4px;
  flex-wrap: wrap;
}

.file-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.8rem;
}

.btn-file-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  z-index: 3;
  position: relative;
  font-size: 1rem;
}

.btn-file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.declaration { margin: 24px 0; }
.checkbox-label { display: flex; gap: 12px; cursor: pointer; font-size: 0.9rem; align-items: flex-start; }
.checkbox-label input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); }

.review-box {
  background: var(--off-white); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 24px; border: 1px solid var(--border);
}
.review-note { color: var(--primary-dark); font-size: 0.92rem; display: flex; align-items: center; gap: 10px; }
.review-note i { color: var(--primary-light); font-size: 1.1rem; }

.step-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); gap: 12px; }

/* ===================== SUCCESS PAGE & PRINTABLE ADMISSION SLIP ===================== */
.success-section { background: var(--off-white); padding: 50px 0; }
.success-card {
  max-width: 760px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 48px 40px; text-align: center;
}
.success-icon { font-size: 4rem; color: var(--green); margin-bottom: 16px; }
.success-card h2 { font-family: var(--font-display); font-size: 2.1rem; color: var(--primary-dark); margin-bottom: 8px; font-weight: 800; }
.success-name { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.success-card > p { color: var(--text); margin-bottom: 28px; }

/* Official Admission Slip Card */
.admission-slip {
  background: #ffffff;
  border: 2px solid #0b1f3a;
  border-radius: 12px;
  padding: 30px 28px;
  text-align: left;
  margin: 28px 0 32px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
  position: relative;
}

.slip-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid #e2e8f0;
}

.slip-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}

.slip-school-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 3px;
  font-weight: 800;
}

.slip-school-info p {
  font-size: 0.85rem;
  color: var(--mid-gray);
  margin: 0;
  font-weight: 600;
}

.slip-school-info small {
  font-size: 0.76rem;
  color: var(--mid-gray);
  display: block;
}

.slip-badge-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f5f9;
  padding: 10px 14px;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 0.85rem;
  font-weight: 700;
}

.slip-title {
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slip-date {
  color: var(--mid-gray);
}

.slip-ref-box {
  background: linear-gradient(135deg, #0b1f3a 0%, #1769e0 100%);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.slip-ref-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

.slip-ref-code {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
}

.slip-status-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

.slip-details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.slip-details-table th,
.slip-details-table td {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
}

.slip-details-table th {
  background: #f8fafc;
  color: var(--primary-dark);
  text-align: left;
  width: 25%;
  font-weight: 700;
}

.slip-details-table td {
  color: var(--text);
}

.slip-instructions {
  background: #fffdf5;
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.84rem;
  margin-bottom: 20px;
}

.slip-instructions h5 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-weight: 800;
}

.slip-instructions ol {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.slip-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
  font-size: 0.8rem;
  color: var(--mid-gray);
}

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

.sig-line {
  width: 170px;
  border-bottom: 1px solid #000000;
  margin-bottom: 4px;
}

.slip-watermark {
  font-weight: 700;
  color: #64748b;
}

.next-steps { text-align: left; margin-bottom: 32px; }
.next-steps h4 { font-weight: 800; color: var(--primary-dark); margin-bottom: 16px; text-align: center; }
.next-step-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.next-step { display: flex; gap: 14px; background: var(--off-white); padding: 16px; border-radius: var(--radius-sm); }
.ns-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.next-step p { font-size: 0.86rem; color: var(--text); line-height: 1.5; margin: 0; }
.next-step strong { color: var(--primary-dark); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Print Rules for Admission Slip */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .topbar, header, footer, .floating-whatsapp, .success-actions, .next-steps, .success-icon, .success-card > p, .success-card > h2, .success-name, .no-print {
    display: none !important;
  }
  .success-section {
    background: #ffffff !important;
    padding: 0 !important;
  }
  .success-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .admission-slip {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 20px !important;
    page-break-inside: avoid;
  }
  .slip-ref-box {
    background: #f1f5f9 !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
  }
  .slip-ref-code {
    color: #0b1f3a !important;
  }
  .slip-status-pill {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }
}

/* ===================== CONTACT ===================== */
.contact-section { }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }
.contact-info .section-title { font-size: 1.8rem; }
.contact-info > p { margin-bottom: 32px; color: var(--text); }

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h5 { font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; font-size: 0.9rem; }
.contact-item p { font-size: 0.88rem; color: var(--text); line-height: 1.7; }

.form-card {
  background: var(--white); padding: 36px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-weight: 800; color: var(--primary-dark); margin-bottom: 24px; font-size: 1.2rem; }

.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--primary-dark); }

.map-section { height: 350px; background: var(--light-gray); display: flex; align-items: center; justify-content: center; }
.map-placeholder { text-align: center; }
.map-placeholder i { font-size: 3rem; color: var(--primary); margin-bottom: 12px; display: block; }
.map-placeholder h4 { font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.map-placeholder p { color: var(--mid-gray); margin-bottom: 16px; }

/* ===================== ALERT ===================== */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin-bottom: 24px; font-size: 0.9rem;
}
.alert-error { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); color: var(--red); }
.alert-success { background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); color: var(--green); }
.alert ul { margin-top: 6px; padding-left: 16px; list-style: disc; }
.alert ul li { margin-bottom: 4px; }
.alert i { margin-top: 2px; flex-shrink: 0; }
.hidden { display: none; }

/* ===================== ERROR PAGE ===================== */
.error-page { text-align: center; padding: 120px 0; }
.error-num { font-family: var(--font-display); font-size: 8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.error-page h2 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 10px; }
.error-page p { color: var(--mid-gray); margin-bottom: 28px; }

/* ===================== FOOTER ===================== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-top { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 48px; }

.footer-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo .logo-circle { background: rgba(255,255,255,0.1); }
.footer-logo-badge {
  background: #ffffff;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.footer-logo-badge:hover {
  transform: scale(1.04);
}
.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.footer-logo .logo-name { color: var(--white); }
.footer-brand > p { font-size: 0.88rem; line-height: 1.8; margin-bottom: 20px; color: rgba(255,255,255,0.6); }

.footer-links h4, .footer-contact h4, .footer-cta h4 {
  font-weight: 700; color: var(--white); margin-bottom: 20px; font-size: 1rem;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--accent); }

.footer-contact ul li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.88rem; color: rgba(255,255,255,0.65);
}
.footer-contact i { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; transition: var(--transition); cursor: pointer; }
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }

.email-contact-link {
  color: var(--secondary) !important;
  font-weight: 700;
  text-decoration: underline !important;
  transition: var(--transition);
  cursor: pointer;
}
.email-contact-link:hover {
  color: var(--primary) !important;
}

.footer-cta p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .welcome-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .welcome-images { height: auto; }
  .welcome-single-image { max-width: 365px; }
  .welcome-single-image img { height: 440px; }
  .why-grid, .programs-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .apply-layout { grid-template-columns: 1fr; }
  .apply-sidebar { position: static; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 75px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 20px; gap: 8px; box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); }
  .nav-links .btn-apply { text-align: center; padding: 12px 16px; }

  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-text-col { padding-right: 0; }
  .hero-img-showcase img { height: 320px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 12px; justify-content: center; }
  .stat-divider { display: none; }

  .why-grid, .programs-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .mv-grid, .team-grid, .req-grid, .facilities-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .next-step-grid { grid-template-columns: 1fr; }
  .apply-form-wrapper { padding: 24px; }
  .steps-container { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }

  .success-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .section { padding: 52px 0; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .cta-section { padding: 64px 0; }
}

/* ===================== FLOATING WHATSAPP BUTTON ===================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0B1F3A;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.35);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.floating-whatsapp:hover {
  background: #1769E0;
  border-color: #1769E0;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(23, 105, 224, 0.35);
  color: #FFFFFF !important;
}
.floating-whatsapp i {
  color: #25D366;
  font-size: 1.35rem;
}
@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 74px;
    right: 16px;
    padding: 10px 16px;
    font-size: 0.82rem;
  }
}

/* ===================== MAP SECTION ===================== */
.map-section {
  padding: 0 0 40px;
  background: var(--bg-light, #f8fafc);
}
.map-card-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(11, 31, 58, 0.06);
  border: 1px solid rgba(11, 31, 58, 0.08);
}
.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid rgba(11, 31, 58, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}
.map-header-info h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}
.map-header-info p {
  color: var(--secondary, #4a5568);
  font-size: 0.78rem;
  margin: 2px 0 0;
}
.map-iframe-container {
  width: 100%;
  height: 180px;
  position: relative;
  background: #e2e8f0;
}
.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.map-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #f8fafc;
  border-top: 1px solid rgba(11, 31, 58, 0.06);
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 600;
}
.map-footer-meta span i {
  color: var(--accent);
  margin-right: 4px;
}

/* ===================== ABOUT PAGE CAMPUS GALLERY & LIGHTBOX ===================== */
.about-gallery-section {
  background: var(--off-white);
  padding: 85px 0;
}
.about-gallery-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.gallery-filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--primary);
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-filter-btn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}
.gallery-filter-btn.active {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(11, 31, 58, 0.2);
}
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.about-gallery-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.about-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}
.about-gallery-card:hover .about-gallery-thumb img {
  transform: scale(1.06);
}
.about-gallery-card:hover .gallery-zoom-overlay {
  opacity: 1;
}
.about-gallery-thumb {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #e2e8f0;
}
.about-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 31, 58, 0.9);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  z-index: 2;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.zoom-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.about-gallery-card:hover .zoom-circle {
  transform: scale(1);
}
.about-gallery-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.about-gallery-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.about-gallery-body p {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   FULL-SCREEN CAMPUS PHOTO LIGHTBOX & ZOOM SYSTEM
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 14, 28, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-user-select: none;
  user-select: none;
  animation: lbFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lightbox Topbar */
.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(180deg, rgba(5, 14, 28, 0.9) 0%, rgba(5, 14, 28, 0) 100%);
  z-index: 50;
  gap: 16px;
}

.lightbox-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lightbox-counter-badge i {
  color: #f59e0b;
}

.lightbox-category-tag {
  background: #f59e0b;
  color: #0b1f3a;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lightbox-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-zoom-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.lightbox-zoom-val {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.lightbox-tool-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.06);
}

.lightbox-tool-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.lightbox-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lightbox-tool-btn.active {
  background: #f59e0b;
  color: #0b1f3a;
  border-color: #f59e0b;
}

.lightbox-tool-btn.reset-btn {
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 5px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
}

.lightbox-tool-btn.close-btn {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
  margin-left: 4px;
}

.lightbox-tool-btn.close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.06);
}

/* Main Viewport */
.lightbox-main-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 0;
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

.lightbox-active-img {
  max-width: 90vw;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  pointer-events: auto;
}

.lightbox-canvas.is-panning .lightbox-active-img {
  transition: none !important;
}

/* Nav arrows */
.lightbox-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 30;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox-arrow-btn:hover {
  background: #f59e0b;
  color: #0b1f3a;
  border-color: #f59e0b;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.lightbox-arrow-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.lightbox-arrow-btn.prev {
  left: 20px;
}

.lightbox-arrow-btn.next {
  right: 20px;
}

/* Bottombar & Caption */
.lightbox-bottombar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(0deg, rgba(5, 14, 28, 0.95) 0%, rgba(5, 14, 28, 0.6) 70%, rgba(5, 14, 28, 0) 100%);
  z-index: 50;
  gap: 20px;
}

.lightbox-caption {
  max-width: 680px;
}

.lightbox-caption-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.lightbox-caption-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.lightbox-cat-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.lightbox-caption p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.lightbox-hints {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #64748b;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.lightbox-hints kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Filmstrip Drawer */
.lightbox-filmstrip-drawer {
  background: rgba(3, 9, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox-filmstrip-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.lightbox-filmstrip-track::-webkit-scrollbar {
  height: 6px;
}

.lightbox-filmstrip-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.lightbox-thumb-btn {
  position: relative;
  flex: 0 0 76px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #0f172a;
  cursor: pointer;
  padding: 0;
  opacity: 0.55;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.lightbox-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb-btn .thumb-idx {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

.lightbox-thumb-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-thumb-btn.active {
  opacity: 1;
  border-color: #f59e0b;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Home & About Gallery Card Interactive Overlay */
.gallery-card.is-clickable {
  cursor: pointer;
  position: relative;
}

.gallery-card.is-clickable .gallery-img-wrap {
  position: relative;
  overflow: hidden;
}

.gallery-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.gallery-card:hover .gallery-zoom-overlay,
.about-gallery-card:hover .gallery-zoom-overlay,
.facility-card:hover .gallery-zoom-overlay {
  opacity: 1;
}

.zoom-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f59e0b;
  color: #0b1f3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0.7);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .zoom-circle,
.about-gallery-card:hover .zoom-circle,
.facility-card:hover .zoom-circle {
  transform: scale(1);
}

.gallery-open-full-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(11, 31, 58, 0.05);
  border: 1.5px solid rgba(11, 31, 58, 0.15);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  margin-top: 24px;
}

.gallery-open-full-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.2);
}

.gallery-open-full-btn i {
  color: var(--secondary);
}

.gallery-open-full-btn:hover i {
  color: #f59e0b;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .lightbox-topbar {
    padding: 10px 14px;
  }
  .lightbox-counter-badge {
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .lightbox-counter-badge span:first-of-type {
    font-size: 0.78rem;
  }
  .lightbox-category-tag {
    display: none;
  }
  .lightbox-zoom-group {
    display: none; /* Mobile uses pinch / double tap */
  }
  .lightbox-tool-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .lightbox-arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-arrow-btn.prev {
    left: 8px;
  }
  .lightbox-arrow-btn.next {
    right: 8px;
  }
  .lightbox-active-img {
    max-width: 95vw;
    max-height: 60vh;
  }
  .lightbox-bottombar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 8px;
  }
  .lightbox-caption-header h3 {
    font-size: 1.05rem;
  }
  .lightbox-caption p {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .lightbox-hints {
    display: none;
  }
  .lightbox-filmstrip-drawer {
    padding: 8px 12px;
  }
  .lightbox-thumb-btn {
    flex: 0 0 60px;
    height: 44px;
  }
}

/* ===================== SCROLL-TRIGGERED REVEALS & MICRO-INTERACTIONS ===================== */
.reveal,
.reveal-fade,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.82s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.82s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal {
  transform: translate3d(0, 36px, 0);
}

.reveal-fade {
  transform: none;
}

.reveal-left {
  transform: translate3d(-38px, 0, 0);
}

.reveal-right {
  transform: translate3d(38px, 0, 0);
}

.reveal-scale {
  transform: scale(0.95) translate3d(0, 24px, 0);
}

.reveal.is-visible,
.reveal-fade.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered Container Items */
.reveal-stagger .reveal-card,
.reveal-stagger .reveal-item {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  will-change: opacity, transform;
}

.reveal-stagger.is-visible .reveal-card,
.reveal-stagger.is-visible .reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger Delays for Grid Children */
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.65s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.75s; }

/* Micro-interaction Enhancements */
.img-badge {
  animation: floatBadge 4.5s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-7px) rotate(2deg); }
}

.why-card {
  position: relative;
  overflow: hidden;
}

.why-card:hover .why-icon {
  transform: scale(1.08) rotate(3deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.program-card:hover .prog-icon {
  transform: scale(1.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.prog-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card:hover .quote-icon {
  transform: rotate(-10deg) scale(1.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-icon {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-fade,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .reveal-stagger .reveal-card,
  .reveal-stagger .reveal-item,
  .img-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =============================================
   Careers & Teacher Job Application Section
   ============================================= */
.careers-section {
  position: relative;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.careers-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.careers-info-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.careers-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.careers-info-card p {
  color: var(--mid-gray);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.careers-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.career-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.career-perk-item .perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(32, 164, 100, 0.12);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.career-perk-item strong {
  display: block;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.career-perk-item span {
  font-size: 0.85rem;
  color: var(--mid-gray);
  line-height: 1.4;
}

.careers-openings-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 24px;
}

.careers-openings-box h4 {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.openings-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opening-tag {
  background: var(--off-white);
  border: 1px solid #cbd5e1;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.opening-tag.highlight {
  background: rgba(245, 183, 0, 0.14);
  border-color: rgba(212, 158, 0, 0.4);
  color: #92400e;
}

.careers-whatsapp-note {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #166534;
  font-size: 0.88rem;
  line-height: 1.45;
}

.careers-whatsapp-note i {
  font-size: 1.6rem;
  color: #25d366;
  flex-shrink: 0;
}

.careers-whatsapp-note a {
  color: #15803d;
  font-weight: 800;
  text-decoration: underline;
}

/* Teacher Application Form Card */
.teacher-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.teacher-form-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.teacher-form-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.teacher-form-header p {
  color: var(--mid-gray);
  font-size: 0.88rem;
  margin: 0;
}

.teacher-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.teacher-form-grid .full-col {
  grid-column: 1 / -1;
}

.teacher-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.teacher-form-group label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.teacher-form-group label span.req {
  color: var(--red);
  margin-left: 3px;
}

.teacher-form-group input,
.teacher-form-group select,
.teacher-form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.teacher-form-group input:focus,
.teacher-form-group select:focus,
.teacher-form-group textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(23, 105, 224, 0.08);
}

.teacher-form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.teacher-form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.teacher-form-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.teacher-form-success {
  text-align: center;
  padding: 40px 20px;
}

.teacher-form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--cta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.teacher-form-success h4 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.teacher-form-success p {
  color: var(--mid-gray);
  font-size: 0.94rem;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.app-ref-badge {
  display: inline-block;
  background: var(--off-white);
  border: 1px dashed var(--border);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .careers-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .teacher-form-grid {
    grid-template-columns: 1fr;
  }
  .teacher-form-card {
    padding: 24px 18px;
  }
}



