/* Landing Page Specific Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* This will prevent horizontal scrolling */
    font-family: 'Poppins', sans-serif; /* Applied font to the entire body for a cohesive look */
}

/* Add box-sizing to all elements to prevent overflow */
* {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════
   HERO SECTION — SPLIT PANEL
═══════════════════════════════════════════ */
.hero-section {
  position: relative;
  margin-top: 0;
  font-family: 'DM Sans', 'Poppins', sans-serif;
}

.hero-split {
  display: flex;
  min-height: 88vh;
  background: #001a4d;
  position: relative;
}

/* Gold top-edge stripe */
.hero-split::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f9a826, transparent);
  z-index: 10;
}

/* ── LEFT PANEL ── */
.hero-left-panel {
  flex: 0 0 52%;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #001a4d 0%, #0d2d78 100%);
  padding: 80px 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.hero-panel-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f9a826;
  flex-shrink: 0;
}
.eyebrow-line {
  width: 22px;
  height: 1.5px;
  background: #f9a826;
  flex-shrink: 0;
}

/* Title */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 18px;
  text-shadow: none;
}
.hero-gold-text {
  color: #f9a826;
}

/* Subtitle */
.hero-subtitle {
  font-size: 15px;
  color: rgba(200, 220, 255, 0.78);
  line-height: 1.75;
  margin-bottom: 34px;
  font-weight: 400;
  max-width: 400px;
  opacity: 1;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #f9a826;
  color: #001a4d;
  border: 2px solid #f9a826;
  border-radius: 50px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-hero-primary:hover {
  background: transparent;
  color: #f9a826;
  border-color: #f9a826;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(249,168,38,0.3);
}

.btn-hero-secondary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  transform: translateY(-2px);
}

/* ── RIGHT PANEL ── */
.hero-right-panel {
  flex: 1;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #001a4d 0%, rgba(0,26,77,0.3) 40%, transparent 100%);
}

/* Est. badge */
.hero-est-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  background: rgba(249,168,38,0.15);
  border: 1px solid rgba(249,168,38,0.4);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 4;
  font-family: 'DM Sans', sans-serif;
}

/* ── STAT BAR ── */
.hero-stat-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(0, 8, 35, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(249,168,38,0.2);
  padding: 16px 60px;
}

.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hstat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #f9a826;
  line-height: 1;
}
.hstat-lbl {
  font-size: 10px;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
}
.hstat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Slide dots */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-dot {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active,
.hero-dot:hover {
  background: #f9a826;
  width: 34px;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    min-height: 100vh;
  }
  .hero-left-panel {
    flex: none;
    padding: 80px 28px 40px;
    order: 2;
  }
  .hero-right-panel {
    flex: none;
    height: 240px;      /* slightly shorter so buttons+text aren't cramped */
    min-height: 200px;
    order: 1;
  }
  .hero-right-overlay {
    background: linear-gradient(180deg, transparent 40%, #001a4d 100%);
  }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 14px; }
  .hero-buttons { flex-direction: column; }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    display: flex;          /* change from inline-flex */
    justify-content: center;
  }
  .hero-stat-bar {
    gap: 16px;
    padding: 14px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-est-badge { top: 14px; right: 14px; }
}

@media (max-width: 360px) {
  .hero-left-panel { padding: 60px 20px 32px; }
  .hero-title { font-size: 26px; }
}

.headmistress-section {
  background: #f4f6fb;
  padding: 80px 0;
}

.hm-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.hm-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hm-frame {
  position: relative;
  width: 280px;
}

.hm-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px 4px 140px 140px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 61, 130, 0.15);
}

.hm-gold-bar {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 4px;
  background: #f9a826;
  border-radius: 2px;
}

.hm-name-plate {
  text-align: center;
  margin-top: 18px;
}

.hm-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #003d82;
  font-weight: 700;
  display: block;
}

.hm-role {
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  display: block;
  margin-top: 5px;
}

.hm-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hm-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #f9a826;
  border-radius: 2px;
  flex-shrink: 0;
}

.hm-heading {
  font-family: 'Playfair Display', serif;
  color: #003d82;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
}

.hm-divider {
  width: 48px;
  height: 3px;
  background: #003d82;
  border-radius: 2px;
  margin-bottom: 22px;
  opacity: 0.2;
}

.hm-blockquote {
  padding-left: 20px;
  border-left: 3px solid #f9a826;
  margin: 0 0 20px;
}

.hm-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  color: #f9a826;
  opacity: 0.22;
  line-height: 0.6;
  display: block;
  margin-bottom: 10px;
}

.hm-body {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.85;
  margin: 0 0 14px;
  text-align: justify;
}

.hm-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.hm-sig-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.hm-sig-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #003d82;
  white-space: nowrap;
}

.hm-badge-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hm-badge {
  background: rgba(0, 61, 130, 0.07);
  border: 1px solid rgba(0, 61, 130, 0.15);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #003d82;
  letter-spacing: 0.3px;
}

/* Mobile */
@media (max-width: 768px) {
  .hm-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hm-photo-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  .hm-frame { width: 120px; flex-shrink: 0; }
  .hm-photo { width: 120px; height: 140px; border-radius: 4px 4px 60px 60px; }
  .hm-name-plate { text-align: left; }
  .hm-heading { font-size: 24px; }
}

.features-section {
    padding: 80px 0;
    background: #e9ecef;
}

.feature-card {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 40px 20px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,123,255,0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #f9a826;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    color: #003d82;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-text {
    font-family: 'Poppins', sans-serif;
    color: #666;
    line-height: 1.6;
    font-weight: 400; /* Regular font weight */
}

.card-text {
    font-family: 'Poppins', sans-serif;
}

.contact-section {
    background: #003d82;
    color: white;
    padding: 60px 0;
}

.animated-school-name {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    animation: color-change 5s infinite alternate;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes color-change {
    0% { color: #f9a826; }
    25% { color: #007bff; }
    50% { color: #28a745; }
    75% { color: #dc3545; }
    100% { color: #6f42c1; }
}

.contact-info {
    font-size: 1.2rem;
}

.social-links a {
    color: white;
    margin: 0 20px;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #f9a826;
}

.social-facebook:hover { color: #4267B2 !important; }
.social-instagram:hover { color: #E4405F !important; }
.social-whatsapp:hover { color: #25D366 !important; }
.social-tiktok:hover { color: #ff0050 !important; }

/* Media query for mobile devices */
@media (max-width: 768px) {
    .hero-section .carousel-item {
        height: 100vh; /* Use 100vh to ensure full image on mobile */
    }
    
    .hero-section .carousel-caption {
        display: flex;
        flex-direction: column;
        justify-content: flex-end; /* Align caption to the bottom on mobile */
        text-align: center;
        padding-bottom: 20px; /* Add some padding from the bottom */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }
    
    .social-links a {
        margin: 0 10px;
        font-size: 2.5rem;
    }
}

.bg-with-image {
    background-image: url('{{ url_for('static', filename='images/your-background-image.jpg') }}');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This creates a parallax scrolling effect */
    padding: 80px 0; /* Adjust padding as needed */
    color: white; /* Make text readable on the background */
    position: relative;
}

.bg-with-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 52, 173, 0.4); /* Add a dark overlay for text readability */
}

/* Make sure the content is above the overlay */
.bg-with-image .row {
    position: relative;
    z-index: 2;
}
h2.mb-3 {
    color: #6f42c1;;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: underline;
    border-bottom: 2px solid; /* Creates a second, distinct underline */
    text-underline-offset: 5px; /* Adjusts the spacing of the first underline */
}

/* ═══════════════════════════════════════════
   GALLERY SECTION
═══════════════════════════════════════════ */
.gallery-section {
  background: #001a4d;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

.gallery-section .container { position: relative; z-index: 2; }

/* Header */
.gl-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.gl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.gl-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f9a826;
  flex-shrink: 0;
}
.gl-eyebrow-line {
  width: 22px; height: 1.5px;
  background: #f9a826;
  flex-shrink: 0;
}

.gl-title {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}
.gl-title span { color: #f9a826; }

.gl-count {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
}

/* Nav arrows */
.gl-nav { display: flex; gap: 10px; }
.gl-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(249,168,38,0.3);
  background: transparent;
  color: #f9a826;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  font-family: sans-serif;
}
.gl-nav-btn:hover {
  background: #f9a826;
  color: #001a4d;
  border-color: #f9a826;
}

/* Filter pills */
.gl-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.gl-filter {
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.5);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s ease;
}
.gl-filter.active,
.gl-filter:hover {
  background: #f9a826;
  border-color: #f9a826;
  color: #001a4d;
}

/* Slider track */
.gl-track-wrap {
  overflow: hidden;
  margin: 0 -12px;
}
.gl-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 12px 20px;
  scrollbar-width: none;
}
.gl-track::-webkit-scrollbar { display: none; }

/* Cards */
.gl-card {
  flex: 0 0 280px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: #0d2d78;
  transition: transform 0.3s ease;
}
.gl-card:hover { transform: translateY(-6px); }

.gl-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gl-card:hover .gl-card-img { transform: scale(1.08); }

.gl-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,10,40,0.9) 100%);
}

/* Zoom icon */
.gl-card-zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(249,168,38,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #001a4d;
  font-size: 14px;
}
.gl-card:hover .gl-card-zoom { opacity: 1; }

/* Card label overlay */
.gl-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
}
.gl-card-tag {
  display: inline-block;
  background: rgba(249,168,38,0.18);
  border: 1px solid rgba(249,168,38,0.4);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  font-family: 'DM Sans', sans-serif;
}
.gl-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

/* Bottom bar */
.gl-bottom-bar {
  background: rgba(0,8,35,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(249,168,38,0.15);
  margin: 8px -12px 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.gl-swipe-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.gl-progress {
  flex: 1;
  max-width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.gl-progress-fill {
  height: 100%;
  width: 30%;
  background: #f9a826;
  border-radius: 2px;
  transition: width 0.2s ease;
}
.gl-photo-count {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  margin-left: auto;
}

/* Mobile */
@media (max-width: 768px) {
  .gallery-section { padding: 52px 0 0; }
  .gl-title { font-size: 26px; }
  .gl-card { flex: 0 0 220px; }
  .gl-card-img { height: 175px; }
  .gl-nav { display: none; }
  .gl-swipe-hint { display: block; }
}


/* ═══════════════════════════════════════════════════
   WELCOME / LEVELS SECTION — redesigned
═══════════════════════════════════════════════════ */
.levels-section {
  background: linear-gradient(135deg, #001a4d 0%, #0d2d78 50%, #001a4d 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.levels-section::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,38,0.07) 0%, transparent 70%);
  top: -120px; right: -80px;
  pointer-events: none;
}
.levels-section::after {
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,38,0.05) 0%, transparent 70%);
  bottom: -80px; left: -60px;
  pointer-events: none;
}

.levels-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 12px;
}

.levels-left-head {
  padding-right: 20px;
}
.levels-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.levels-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #f9a826;
}
.levels-eyebrow-line {
  width: 22px; height: 1.5px;
  background: #f9a826;
}
.levels-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 16px;
}
.levels-heading span { color: #f9a826; }
.levels-subtext {
  font-size: 14px;
  color: rgba(200,220,255,0.65);
  line-height: 1.8;
  margin: 0;
}

/* Level cards — glassmorphism on dark */
.levels-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.level-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249,168,38,0.14);
  border-radius: 18px;
  padding: 32px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: blur(8px);
}
.level-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
  transition: opacity 0.3s;
  opacity: 0.7;
}
.level-card.lc-blue::before  { background: #003d82; }
.level-card.lc-gold::before  { background: #f9a826; }
.level-card.lc-blue2::before { background: #003d82; }

.level-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,168,38,0.3);
  border-color: rgba(249,168,38,0.35);
}

.level-card-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.lc-blue  .level-card-icon { color: #6ea8fe; }
.lc-gold  .level-card-icon { color: #f9a826; }
.lc-blue2 .level-card-icon { color: #6ea8fe; }

.level-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.level-card-text {
  font-size: 12.5px;
  color: rgba(200,220,255,0.6);
  line-height: 1.75;
  margin: 0;
}

/* Badge at top of gold card */
.level-badge {
  position: absolute;
  top: 12px; right: 14px;
  background: rgba(249,168,38,0.15);
  border: 1px solid rgba(249,168,38,0.3);
  color: #f9a826;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 50px;
}

@media (max-width: 900px) {
  .levels-inner { grid-template-columns: 1fr; gap: 36px; }
  .levels-heading { font-size: 28px; }
  .levels-cards { grid-template-columns: 1fr; gap: 14px; }
  .level-card { padding: 24px 18px; text-align: left; display: flex; align-items: flex-start; gap: 14px; }
  .level-card-icon { font-size: 1.6rem; margin-bottom: 0; flex-shrink: 0; margin-top: 2px; }
}

/* ═══════════════════════════════════════════════════
   HEADMISTRESS SECTION — redesigned (warm prestige)
═══════════════════════════════════════════════════ */
.headmistress-section {
  background: #fdf8f0;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

/* Decorative diagonal stripe */
.headmistress-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(160deg, #fff9ee 0%, #fdf0d8 100%);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* Gold corner ornament */
.headmistress-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle at 0% 100%, rgba(249,168,38,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hm-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 70px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Photo column */
.hm-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hm-frame {
  position: relative;
  width: 280px;
}

/* Decorative rings behind photo */
.hm-frame::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  width: 220px; height: 220px;
  border: 2px dashed rgba(249,168,38,0.25);
  border-radius: 50%;
  animation: slowSpin 20s linear infinite;
}
.hm-frame::after {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 244px; height: 244px;
  border: 1px solid rgba(0,61,130,0.1);
  border-radius: 50%;
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hm-photo {
  width: 280px;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px 4px 140px 140px;
  display: block;
  box-shadow: 0 24px 60px rgba(0,61,130,0.18), 0 0 0 6px #fff, 0 0 0 8px rgba(249,168,38,0.2);
}

.hm-gold-bar {
  width: 55%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #f9a826, transparent);
  border-radius: 2px;
  margin: 20px auto 0;
}

.hm-name-plate {
  text-align: center;
  margin-top: 18px;
}
.hm-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #003d82;
  font-weight: 700;
  display: block;
}
.hm-role {
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  display: block;
  margin-top: 5px;
}

/* Speech column */
.hm-speech-col {
  padding-right: 10px;
}
.hm-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hm-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: #f9a826;
  border-radius: 2px;
  flex-shrink: 0;
}
.hm-heading {
  font-family: 'Playfair Display', serif;
  color: #003d82;
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 18px;
  font-weight: 700;
}
.hm-heading em {
  font-style: italic;
  color: #f9a826;
  text-decoration-color: rgba(249,168,38,0.3);
}
.hm-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, #003d82, #f9a826);
  border-radius: 2px;
  margin-bottom: 26px;
}
.hm-blockquote {
  padding: 22px 22px 22px 24px;
  border-left: 4px solid #f9a826;
  background: rgba(249,168,38,0.04);
  border-radius: 0 12px 12px 0;
  margin: 0 0 22px;
  position: relative;
}
.hm-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: #f9a826;
  opacity: 0.15;
  line-height: 0.55;
  display: block;
  margin-bottom: 10px;
  user-select: none;
}
.hm-body {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.9;
  margin: 0 0 12px;
  text-align: justify;
}
.hm-body:last-child { margin-bottom: 0; }
.hm-sig {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.hm-sig-line { flex: 1; height: 1px; background: rgba(0,61,130,0.12); }
.hm-sig-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: #003d82;
  white-space: nowrap;
}
.hm-badge-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hm-badge {
  background: rgba(0,61,130,0.06);
  border: 1px solid rgba(0,61,130,0.15);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #003d82;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}
.hm-badge:hover {
  background: #003d82;
  color: #fff;
  border-color: #003d82;
}

@media (max-width: 900px) {
  .hm-inner { grid-template-columns: 1fr; gap: 40px; }
  .headmistress-section::before { display: none; }
  .hm-photo-col { flex-direction: row; align-items: flex-start; gap: 20px; }
  .hm-frame { width: 120px; flex-shrink: 0; }
  .hm-frame::before, .hm-frame::after { display: none; }
  .hm-photo { width: 120px; height: 140px; border-radius: 4px 4px 60px 60px; }
  .hm-name-plate { text-align: left; }
  .hm-heading { font-size: 26px; }
  .hm-speech-col { padding-right: 0; }
}

/* ═══════════════════════════════════════════════════
   CORE PILLARS — redesigned
═══════════════════════════════════════════════════ */
.pillars-section {
  background: #fff;
  padding: 90px 0;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: #f9a826;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  justify-content: center;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 20px; height: 1.5px;
  background: #f9a826;
  display: inline-block;
  border-radius: 2px;
}
.section-title-center {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #003d82;
  text-align: center;
  margin-bottom: 10px;
}
.section-title-center span { color: #f9a826; }
.section-subtitle-center {
  text-align: center;
  color: #718096;
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 52px;
  line-height: 1.75;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pillar-card {
  border: 1px solid rgba(0,61,130,0.08);
  border-radius: 20px;
  padding: 38px 22px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  background: #fff;
}
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003d82, #f9a826);
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,61,130,0.12);
  border-color: rgba(0,61,130,0.2);
}
.pillar-icon-wrap {
  width: 62px; height: 62px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.65rem;
  transition: transform 0.3s ease;
}
.pillar-card:hover .pillar-icon-wrap { transform: scale(1.12) rotate(-3deg); }
.pi-navy  { background: rgba(0,61,130,0.08);  color: #003d82; }
.pi-gold  { background: rgba(249,168,38,0.12); color: #c97c00; }
.pi-blue  { background: rgba(0,123,255,0.08);  color: #007bff; }
.pi-green { background: rgba(40,167,69,0.08);  color: #28a745; }

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: #003d82;
  margin: 0 0 8px;
}
.pillar-text {
  font-size: 12.5px;
  color: #718096;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .section-title-center { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════
   FEATURES — redesigned (horizontal ribbon style)
═══════════════════════════════════════════════════ */
.features-section {
  background: linear-gradient(135deg, #001a4d 0%, #0d2d78 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.features-section .section-title-center { color: #fff; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
  z-index: 2;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(249,168,38,0.12);
  border-radius: 20px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,168,38,0.06) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.35s ease;
  opacity: 0;
}
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249,168,38,0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  background: rgba(255,255,255,0.07);
}

.feature-icon {
  font-size: 2.6rem;
  color: #f9a826;
  margin-bottom: 20px;
  display: block;
  transition: transform 0.3s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(6deg); }

.feature-title {
  font-family: 'Playfair Display', serif;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}
.feature-text {
  color: rgba(200,220,255,0.62);
  line-height: 1.75;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   STATS — redesigned
═══════════════════════════════════════════════════ */
.stats-section {
  background: #fff;
  padding: 72px 0;
  border-top: 1px solid rgba(0,61,130,0.06);
  border-bottom: 1px solid rgba(0,61,130,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(0,61,130,0.08);
  transition: background 0.3s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(0,61,130,0.03); }

.stat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(249,168,38,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: #f9a826;
  transition: transform 0.3s ease;
}
.stat-item:hover .stat-icon-wrap { transform: scale(1.1); }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: #003d82;
  line-height: 1;
  display: block;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 12.5px;
  color: #718096;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}
.stat-sub {
  font-size: 11px;
  color: #a0aec0;
  margin-top: 3px;
  display: block;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(0,61,130,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(0,61,130,0.08); }
}

/* ═══════════════════════════════════════════════════
   FAQ — redesigned
═══════════════════════════════════════════════════ */
.faq-section {
  background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
  padding: 90px 0;
}
.faq-section .accordion-item {
  border: 1px solid rgba(0,61,130,0.1);
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,61,130,0.04);
  transition: box-shadow 0.3s ease;
}
.faq-section .accordion-item:hover {
  box-shadow: 0 4px 20px rgba(0,61,130,0.1);
}
.faq-section .accordion-button {
  font-family: 'DM Sans', 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #003d82;
  background: #fff;
  padding: 20px 24px;
  border-radius: 12px !important;
}
.faq-section .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #003d82, #0d2d78);
  color: #fff;
  box-shadow: none;
}
.faq-section .accordion-button::after {
  filter: invert(0);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23003d82'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-section .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f9a826'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq-section .accordion-body {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
  padding: 16px 24px 22px;
  background: #fafbff;
  border-top: 1px solid rgba(0,61,130,0.07);
}

/* ═══════════════════════════════════════════════════
   CTA STRIP — new section before footer
═══════════════════════════════════════════════════ */
.cta-strip {
  background: linear-gradient(135deg, #f9a826 0%, #e8900a 100%);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #001a4d;
  margin: 0 0 6px;
}
.cta-text p {
  font-size: 14px;
  color: rgba(0,26,77,0.7);
  margin: 0;
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: #001a4d;
  color: #fff;
  border: 2px solid #001a4d;
  border-radius: 50px;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.btn-cta-primary:hover {
  background: transparent;
  color: #001a4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,26,77,0.25);
}
.btn-cta-secondary {
  background: transparent;
  color: #001a4d;
  border: 2px solid rgba(0,26,77,0.4);
  border-radius: 50px;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}
.btn-cta-secondary:hover {
  background: rgba(0,26,77,0.1);
  border-color: #001a4d;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .cta-text h3 { font-size: 22px; }
}

/* ═══════════════════════════════════════════════════
   SCROLL-REVEAL UTILITY
═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.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; }