/* ============ DESIGN SYSTEM & CUSTOM PROPERTIES ============ */
:root {
  /* Colors — Maroon + Gold + Cream brand palette */
  --maroon: #7B1A2C;
  --maroon-deep: #5A0E1E;
  --crimson: #9B2335;
  --gold: #D4A017;
  --gold-light: #E7CD8A;
  --ink: #2C2C2C;
  --ink-soft: #6B7280;
  --paper: #FFF8E7;
  --ivory: #FFFDF5;
  --line: #E8DCC8;
  --white: #ffffff;
  --success: #25D366;
  
  /* Layout & Shadows */
  --radius: 16px;
  --shadow-sm: 0 4px 12px rgba(90, 14, 30, 0.04);
  --shadow-md: 0 10px 24px rgba(90, 14, 30, 0.08);
  --shadow-lg: 0 20px 48px rgba(90, 14, 30, 0.12);
  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Accessibility Support */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--gold);
  color: var(--maroon-deep);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--maroon);
}

:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 4px;
}

/* Layout Utility Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--crimson);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
}

/* Global Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--maroon);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--ink-soft);
  max-width: 650px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--maroon-deep);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 160, 23, 0.3);
}

.btn-ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--maroon);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--maroon-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(90, 14, 30, 0.2);
}

/* Scroll Animation Reveal Class */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============ HEADER COMPONENT (Shared Page Header navigation) ============ */
.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.page-header.scrolled {
  background-color: rgba(90, 14, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.header-logo {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.header-logo span {
  color: var(--gold-light);
}

.header-logo-img {
  height: 45px;
  width: auto;
  margin-right: 10px;
}

.header-nav {
  display: none;
  gap: 8px;
}

.header-nav-item {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.header-nav-item:hover,
.header-nav-item.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Burger / Mobile Nav Trigger */
.burger-btn {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
}

.burger-btn span {
  width: 18px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.open span:nth-child(2) {
  opacity: 0;
}
.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #5A0E1E;
  background-color: var(--maroon-deep);
  z-index: 999;
  padding: 100px 32px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  color: var(--gold-light);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(90, 14, 30, 0.6);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============ Subpage Hero Header (Alternative pages banner) ============ */
.subpage-hero {
  background-color: #5A0E1E;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #3D1020 100%);
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.subpage-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 12px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.subpage-hero .breadcrumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.subpage-hero .breadcrumbs a {
  color: var(--gold-light);
}

/* ============ 1. HOME LANDING HERO ============ */
#hero {
  position: relative;
  min-height: 100vh;
  background-color: #5A0E1E;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, #3D1020 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  text-align: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-particles span {
  position: absolute;
  background-color: var(--gold-light);
  border-radius: 50%;
  opacity: 0.15;
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  50% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.hero-container {
  max-width: 1000px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-img {
  width: clamp(80px, 12vw, 140px);
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 24px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(212, 160, 23, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(11px, 2.5vw, 14px);
  color: var(--gold-light);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-weight: 600;
}

.hero-nav-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
  width: 100%;
  max-width: 800px;
}

.hero-nav-row a {
  padding: 10px 22px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.hero-nav-row a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-light);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-lead-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 780px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 900px;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.hero-feat-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.15em;
  opacity: 0.6;
}

.scroll-cue .line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollCueLine 2s infinite;
}

/* ============ 2. MARQUEE STRIP ============ */
.marquee-container {
  background-color: #5A0E1E;
  background-color: var(--maroon-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.08em;
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}

.marquee-track span b {
  color: var(--gold-light);
  font-weight: 600;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============ 3. STATS SECTION ============ */
#stats {
  background-color: var(--paper);
  position: relative;
}

.stats-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  border: 1px solid rgba(90, 14, 30, 0.06);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stats-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(180deg, transparent, transparent 41px, rgba(90, 14, 30, 0.03) 42px);
  pointer-events: none;
}

.stats-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.stats-seal {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
  transform: rotate(-10deg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.stat-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--maroon);
  display: flex;
  align-items: baseline;
}

.stat-suffix {
  font-size: 0.6em;
  color: var(--crimson);
  margin-left: 2px;
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ============ 4. ABOUT CONTENT & VALUES ============ */
#about {
  background-color: var(--ivory);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--maroon), var(--crimson));
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: 10px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 250px;
}

.about-badge .number {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--crimson);
}

.about-badge .text {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.about-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--maroon);
  margin-top: 12px;
  margin-bottom: 20px;
}

.about-lead {
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.about-lead b {
  color: var(--maroon);
}

.values-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

.value-card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.value-card h4 {
  font-size: 16px;
  color: var(--maroon);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ============ 5. WHY CHOOSE US ============ */
#why {
  background-color: var(--maroon);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

#why::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 35, 53, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  background-color: rgba(90, 14, 30, 0.4);
  padding: 36px 28px;
  transition: var(--transition);
}

.feature-card:hover {
  background-color: rgba(90, 14, 30, 0.6);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background-color: rgba(231, 205, 138, 0.1);
  border-radius: 12px;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--white);
}

.feature-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* ============ 6. GRADE SECTIONS (SEPARATE ON SEPARATE PAGE) ============ */
.grade-section {
  position: relative;
}

.grade-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

.grade-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.grade-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* Featured Dark Card Style */
.grade-card.card-dark {
  background-color: var(--maroon);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.grade-card.card-dark:hover {
  background-color: var(--maroon-deep);
}

.grade-card.card-dark h3 {
  color: var(--white);
}

.grade-card.card-dark .grade-tag {
  color: var(--gold-light);
}

.grade-card.card-dark p {
  color: rgba(255, 255, 255, 0.75);
}

.grade-card.card-dark .grade-action {
  color: var(--gold-light);
  border-color: rgba(255, 255, 255, 0.15);
}


.grade-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 16px;
}

.grade-card h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 3vw, 24px);
  color: var(--maroon);
  margin-bottom: 12px;
}

.grade-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.grade-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grade-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.grade-list li {
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.grade-list li svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.grade-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--crimson);
  margin-top: auto;
}

#grade-primary { background-color: var(--ivory); }
#grade-upper-primary { background-color: var(--paper); }
#grade-middle { background-color: var(--ivory); }

#grade-secondary {
  background-color: #7B1A2C;
  background-color: var(--maroon);
  color: var(--white);
}

#grade-secondary .section-title {
  color: var(--white);
}

#grade-secondary .grade-card {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

#grade-secondary .grade-card h3 {
  color: var(--white);
}

#grade-secondary .grade-meta {
  color: rgba(255, 255, 255, 0.6);
}

#grade-secondary .grade-list li {
  color: rgba(255, 255, 255, 0.7);
}

#grade-secondary .grade-action {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

#grade-secondary .grade-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

#grade-intermediate {
  background-color: #5A0E1E;
  background: linear-gradient(135deg, var(--maroon-deep) 0%, var(--maroon) 100%);
  color: var(--white);
}

#grade-intermediate .section-title {
  color: var(--white);
}

#grade-intermediate .grade-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

#grade-intermediate .grade-card h3 {
  color: var(--white);
}

#grade-intermediate .grade-meta {
  color: rgba(255, 255, 255, 0.6);
}

#grade-intermediate .grade-list li {
  color: rgba(255, 255, 255, 0.7);
}

#grade-intermediate .grade-action {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

#grade-intermediate .grade-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

/* ============ 7. RESULTS SECTION ============ */
#results,
.results-dashboard {
  background-color: #5A0E1E;
  background-color: var(--maroon-deep);
  color: var(--white);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.results-left h2 {
  color: var(--white);
}

.bar-chart {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.bar-container {
  height: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 5px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rankers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ranker-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: var(--transition);
}

.ranker-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateX(6px);
}

.ranker-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  background-color: var(--maroon);
}

.ranker-details h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.ranker-details span {
  font-size: 13px;
  color: var(--gold-light);
}

/* ============ 8. GALLERY SECTION ============ */
#gallery {
  background-color: var(--ivory);
}

.masonry-grid {
  column-count: 1;
  column-gap: 20px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  background-color: var(--line);
}

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

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

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(90, 14, 30, 0.8) 0%, transparent 70%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: var(--transition);
}

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

.masonry-caption {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* ============ 9. ADMISSIONS SECTION ============ */
#admission {
  background-color: #7B1A2C;
  background-color: var(--maroon);
  color: var(--white);
}

#admission .section-title {
  color: var(--white);
}

.timeline-container {
  position: relative;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.1);
}

.timeline-step {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.timeline-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--maroon-deep);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 10. FAQ SECTION ============ */
#faq {
  background-color: var(--ivory);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--maroon);
  cursor: pointer;
}

.faq-icon-box {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon-box::before,
.faq-icon-box::after {
  content: '';
  position: absolute;
  background-color: var(--crimson);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition);
}

.faq-icon-box::before {
  width: 12px;
  height: 2px;
}

.faq-icon-box::after {
  width: 2px;
  height: 12px;
}

.faq-item.open .faq-icon-box::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-content p {
  padding: 0 24px 24px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ 11. CONTACT SECTION ============ */
#contact {
  background-color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(155, 35, 53, 0.08);
  border-radius: 12px;
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-details h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 4px;
}

.contact-info-details p,
.contact-info-details a {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.contact-info-details a:hover {
  color: var(--crimson);
}

.form-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.form-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--maroon);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  background-color: var(--paper);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--crimson);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(155, 35, 53, 0.1);
}

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

/* ============ 12. FOOTER ============ */
footer {
  background-color: #5A0E1E;
  background-color: var(--maroon-deep);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand .logo {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.social-links a:hover {
  background-color: var(--crimson);
  transform: translateY(-2px);
}

.footer-nav h5 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 13.5px;
}

.footer-nav a:hover {
  color: var(--gold-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  font-size: 12.5px;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ============ 13. FLOATING ELEMENTS ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  z-index: 90;
  animation: floatBob 3s ease-in-out infinite;
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.mobile-cta-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--maroon-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 24px;
  z-index: 89;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
}

.mobile-cta-bar .btn {
  width: 100%;
}

/* ============ MEDIA QUERIES (Responsive) ============ */
@media (max-width: 480px) {
  .stats-card { padding: 40px 24px; }
  .form-card { padding: 24px; }
}

@media (min-width: 768px) {
  .burger-btn { display: none; }
  .header-nav { display: flex; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 60px; }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .grade-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .masonry-grid { column-count: 2; }
  
  .timeline-container { flex-direction: row; justify-content: space-between; gap: 16px; }
  .timeline-container::before { left: 5%; right: 5%; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline-step { flex-direction: column; align-items: center; text-align: center; flex: 1; gap: 12px; }
  .timeline-number { margin: 0 auto; }
  
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .mobile-cta-bar { display: none; }
}

@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .grade-grid { grid-template-columns: repeat(3, 1fr); }
  .grade-grid.grid-two { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto; }
  .masonry-grid { column-count: 4; }
  .contact-map { height: 400px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-particles { display: none; }
}
