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

/* ==========================================================================
   AUTHENTIC CREST COLOR TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
/* Crest Royal Blue Spectrum */
  --royal-blue: #0B3FB8;
  --royal-blue-hover: #083296;
  --royal-blue-deep: #061F5E;
  --royal-blue-light: #2563EB;
  --royal-blue-surface: #EBF1FA;  /* Slightly deeper tint for alternating sections */
  --royal-blue-border: #D8E2F2;

  /* Crest Leaf Green */
  --crest-green: #38A616;
  --crest-green-hover: #2D8512;
  --crest-green-glow: #48C01B;
  --crest-green-subtle: #EBF8E7;

  /* Surface & Canvas (Off-White Canvas vs Pure White Cards) */
  --bg-page: #F5F7FC;            /* Soft, cool off-white background */
  --white: #FFFFFF;              /* Pure crisp white for cards and boards */
  --text-heading: #061A48;
  --text-body: #334466;
  --text-muted: #5B6E94;

  /* Elevated Shadows (Clear Definition Against the Off-White Canvas) */
  --shadow-subtle: 0 2px 8px rgba(6, 31, 94, 0.06);
  --shadow-card: 0 10px 25px -5px rgba(6, 31, 94, 0.10), 0 4px 10px -2px rgba(6, 31, 94, 0.04);
  --shadow-hover: 0 18px 35px -8px rgba(6, 31, 94, 0.18), 0 6px 15px -3px rgba(6, 31, 94, 0.08);
  --shadow-badge: 0 4px 14px rgba(11, 63, 184, 0.18);

  /* High Legibility Neutrals */
  --text-heading: #061A48;
  --text-body: #334466;
  --text-muted: #5B6E94;
  --white: #FFFFFF;
  --border-light: #E2E8F0;

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

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Elevation & Shadows */
  --shadow-subtle: 0 1px 3px rgba(11, 63, 184, 0.05);
  --shadow-card: 0 6px 18px -4px rgba(11, 63, 184, 0.08);
  --shadow-hover: 0 12px 24px -6px rgba(11, 63, 184, 0.16);
  --shadow-badge: 0 3px 10px rgba(11, 63, 184, 0.15);

  /* Animation */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-spring);
  --transition-normal: 0.28s var(--ease-spring);
}

/* ==========================================================================
   RESET & CORE FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-page); /* Changed from var(--white) to soft off-white */
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  color: var(--text-heading);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.serif-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

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

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

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 55px 0;
}

.bg-light {
  background-color: var(--royal-blue-surface);
}

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

.section-tag {
  display: inline-block;
  color: var(--crest-green);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 8px;
}

.section-tag.text-white {
  color: #74E24A;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 35px auto;
  line-height: 1.6;
}

.paragraph {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-normal);
  line-height: 1;
}

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(11, 63, 184, 0.22);
}

.btn-primary:hover {
  background: var(--royal-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 63, 184, 0.32);
}

.btn-green {
  background: var(--crest-green);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(56, 166, 22, 0.24);
}

.btn-green:hover {
  background: var(--crest-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(56, 166, 22, 0.32);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--royal-blue);
  border-color: var(--white);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-ghost-white:hover {
  background: var(--white);
  color: var(--royal-blue);
}

.btn-large {
  padding: 13px 26px;
  font-size: 0.95rem;
}

/* ==========================================================================
   NAVIGATION & UTILITY BAR
   ========================================================================== */
.top-bar {
  background: var(--royal-blue-deep);
  color: #B4C6EE;
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-item svg {
  width: 14px;
  height: 14px;
  stroke: #74E24A;
}

.top-badge-pulse, .badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 166, 22, 0.2);
  border: 1px solid rgba(72, 192, 27, 0.4);
  color: #74E24A;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.7rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #74E24A;
  border-radius: 50%;
  box-shadow: 0 0 8px #74E24A;
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1010;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--royal-blue-border);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(6, 31, 94, 0.04);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hide mobile drawer header on desktop screens */
.drawer-brand-header {
  display: none;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-badge);
}

.brand-text .brand-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--royal-blue);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-text p {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--crest-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--royal-blue);
  transition: width 0.25s var(--ease-spring);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--royal-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Navbar CTA Button ("Apply Now") */
.nav-links .btn,
.nav-links a.btn {
  padding: 9px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  line-height: 1;
}

.nav-links .btn::after,
.nav-links a.btn::after {
  display: none !important;
}

.nav-links .btn-green,
.nav-links a.btn-green {
  background-color: var(--crest-green) !important;
  color: #FFFFFF !important;
  box-shadow: 0 3px 10px rgba(56, 166, 22, 0.3);
}

.nav-links .btn-green:hover,
.nav-links a.btn-green:hover {
  background-color: var(--crest-green-hover) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(56, 166, 22, 0.4);
}

/* ==========================================================================
   HAMBURGER BUTTON & ICON ANIMATION
   ========================================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 1002; /* Floats above backdrop and drawer */
}

.menu-toggle:hover {
  background-color: var(--royal-blue-surface);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--royal-blue);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

/* Smooth morph into an 'X' close button */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   PAGE HERO BANNER (SUB-PAGES)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--royal-blue-deep) 0%, var(--royal-blue) 100%);
  color: var(--white);
  padding: 32px 0 34px 0;
  border-bottom: 3px solid var(--crest-green);
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-bottom: 4px;
  color: var(--white);
  line-height: 1.15;
}

.breadcrumbs {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  color: #B4C6EE;
}

.breadcrumbs a {
  color: var(--white);
}

.breadcrumbs a:hover {
  color: #74E24A;
}

.breadcrumbs span {
  color: var(--crest-green);
}

/* ==========================================================================
   HOMEPAGE HERO SECTION
   ========================================================================== */

.hero {
  position: relative;

  background-image:
    linear-gradient(
    90deg,
    rgba(6, 31, 94, 0.68) 0%,
    rgba(6, 31, 94, 0.48) 50%,
    rgba(6, 31, 94, 0.38) 100%
  ),
    url("../images/school-building.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: var(--white);
  padding: 70px 0 95px;
  overflow: hidden;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 45px;
  align-items: center;
}

.hero-tag, .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #74E24A;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1.14;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-title em {
  font-style: italic;
  color: #74E24A;
}

.hero-subtitle, .hero-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: #E2E8F8;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px -8px rgba(6, 31, 94, 0.4);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-crest-preview {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  padding: 2px;
}

.hero-card-meta h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.hero-card-meta p {
  color: #74E24A;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-features-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #F0F4FC;
}

.hero-features-list li svg {
  width: 16px;
  height: 16px;
  stroke: #74E24A;
  flex-shrink: 0;
}

/* ==========================================================================
   METRICS STRIP
   ========================================================================== */
.metrics-strip {
  position: relative;
  z-index: 20;
  margin-top: -45px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--royal-blue-border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-item {
  border-right: 1px solid var(--royal-blue-border);
  padding: 0 14px;
}

.metric-item:last-child {
  border-right: none;
}

.metric-item h3 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--royal-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-item p {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ==========================================================================
   HEAD TEACHER WELCOME SECTION (RESTORED BOARD & BADGE)
   ========================================================================== */
.welcome-section {
  position: relative;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 45px;
  align-items: center;
}

.image-frame {
  position: relative;
}

.portrait-placeholder {
  width: 100%;
  height: 380px;
  background: linear-gradient(145deg, var(--royal-blue) 0%, var(--royal-blue-deep) 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-card);
  border: 4px solid var(--white);
  text-align: center;
  padding: 20px;
}

.portrait-placeholder p {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.portrait-placeholder small {
  color: #B4C6EE;
  font-size: 0.8rem;
}

.experience-badge {
  position: absolute;
  bottom: -15px;
  right: -10px;
  background-color: var(--crest-green);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.experience-badge strong {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-badge span {
  font-weight: 800;
  font-size: 0.98rem;
}

.motto-callout {
  border-left: 4px solid var(--crest-green);
  padding-left: 14px;
  margin: 14px 0 18px 0;
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 0.98rem;
}

.signature-block {
  margin: 22px 0 25px 0;
  border-top: 1px solid var(--royal-blue-border);
  padding-top: 14px;
}

.sig-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.98rem;
}

.sig-title {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ACADEMIC PILLARS, VALUES & TIMELINE
   ========================================================================== */
.cards-grid, .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.feature-card, .value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  border: 1px solid var(--royal-blue-border);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.feature-card:hover, .value-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--royal-blue);
}

.highlighted-card {
  border-top: 3px solid var(--royal-blue);
}

.value-card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--crest-green);
}

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

.value-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--royal-blue);
}

.card-icon, .value-icon {
  margin-bottom: 12px;
}

.feature-card h3, .value-card h3 {
  font-size: 1.15rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.card-list, .values-checklist {
  list-style: none;
  margin: 10px 0 18px 0;
  flex-grow: 1;
}

.card-list li, .values-checklist li {
  font-size: 0.86rem;
  padding: 4px 0;
  position: relative;
  padding-left: 18px;
}

.card-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--crest-green);
  font-weight: 700;
}

.values-checklist li span {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
}

.card-link {
  font-weight: 700;
  color: var(--royal-blue);
  font-size: 0.88rem;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--crest-green);
  padding-left: 4px;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 35px auto 0 auto;
  padding-left: 28px;
  border-left: 3px solid var(--royal-blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--crest-green);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--royal-blue);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crest-green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.timeline-title {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin: 3px 0 5px 0;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-body);
}

.anthem-box {
  background: var(--royal-blue-deep);
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--crest-green);
  margin-top: 30px;
}

.anthem-box h3 {
  font-family: var(--font-display);
  color: #74E24A;
  margin-bottom: 8px;
}

.anthem-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  color: #F0F5FF;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--royal-blue-border);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.team-thumb-placeholder {
  height: 180px;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.team-details {
  padding: 16px 12px;
}

.team-details h4 {
  font-size: 0.98rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.team-details span {
  display: block;
  font-size: 0.76rem;
  color: var(--crest-green);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-details p {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ==========================================================================
   ACADEMICS SUBJECTS & CURRICULUM TABLE
   ========================================================================== */
.subject-category {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 18px;
}

.subject-category h3 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-pill {
  background: var(--royal-blue-surface);
  border: 1px solid var(--royal-blue-border);
  color: var(--text-heading);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.subject-pill:hover {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

.curriculum-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--royal-blue-border);
}

.curriculum-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.curriculum-table th,
.curriculum-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--royal-blue-border);
}

.curriculum-table th {
  background: var(--royal-blue);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
}

.curriculum-table tr:hover td {
  background: var(--royal-blue-surface);
}

.badge-stream {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-science {
  background: #E0E7FF;
  color: var(--royal-blue);
}

.badge-arts {
  background: #FEF3C7;
  color: #B45309;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.calendar-card {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
  border-top: 3px solid var(--royal-blue);
}

.calendar-card.active-term {
  border-top-color: var(--crest-green);
}

.term-tag {
  display: inline-block;
  background: var(--royal-blue-surface);
  color: var(--royal-blue);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.calendar-card.active-term .term-tag {
  background: var(--crest-green-subtle);
  color: var(--crest-green);
}

.calendar-card h3 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.calendar-details {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calendar-details li {
  padding: 7px 0;
  border-bottom: 1px dashed var(--royal-blue-border);
  display: flex;
  justify-content: space-between;
}

.calendar-details li:last-child {
  border-bottom: none;
}

.calendar-details strong {
  color: var(--text-heading);
}

/* ==========================================================================
   FACILITIES, WELFARE & CLUBS
   ========================================================================== */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.facility-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--royal-blue-border);
  background: var(--white);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
}

.facility-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.facility-thumb.placeholder-bg {
  height: 150px;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.facility-info {
  padding: 16px;
}

.facility-info h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.facility-info p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.facility-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: center;
  margin-bottom: 50px;
}

.facility-row:last-child {
  margin-bottom: 0;
}

.facility-row.reverse {
  grid-template-columns: 1fr 1.1fr;
}

.facility-row.reverse .facility-media {
  order: 2;
}

.facility-row.reverse .facility-content {
  order: 1;
}

.facility-media-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(145deg, var(--royal-blue) 0%, var(--royal-blue-deep) 100%);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-card);
  border: 3px solid var(--white);
  text-align: center;
  padding: 18px;
}

.facility-content h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.facility-spec-list {
  list-style: none;
  margin: 12px 0 16px 0;
}

.facility-spec-list li {
  padding: 6px 0;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--royal-blue-border);
}

.facility-spec-list li:last-child {
  border-bottom: none;
}

.spec-bullet {
  width: 18px;
  height: 18px;
  background: var(--crest-green-subtle);
  color: var(--crest-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.welfare-banner {
  background: var(--royal-blue-surface);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

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

.welfare-icon {
  font-size: 1.5rem;
  color: var(--crest-green);
  flex-shrink: 0;
}

.welfare-item h5 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.welfare-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.club-card {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  text-align: center;
}

.club-card:hover {
  transform: translateY(-2px);
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-hover);
}

.club-icon {
  margin-bottom: 8px;
}

.club-card h4 {
  font-size: 0.98rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.club-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   ADMISSIONS, DOWNLOADS & FORMS
   ========================================================================== */
.admissions-strip {
  background: linear-gradient(135deg, var(--royal-blue-deep) 0%, var(--royal-blue) 100%);
  color: var(--white);
  padding: 55px 0;
}

.admissions-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 35px;
  align-items: center;
}


.admissions-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #EAF2FF;
}


.admissions-info p {
  color: #E2E8F8;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.step-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.step-num {
  display: inline-block;
  background: var(--crest-green);
  color: var(--white);
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-box strong {
  display: block;
  font-size: 0.84rem;
}

.step-box small {
  font-size: 0.72rem;
  color: #E2E8F8;
  line-height: 1.25;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.download-card {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-hover);
}

.download-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.download-icon {
  background: #FEE2E2;
  color: #DC2626;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.download-meta h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.download-meta span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.download-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--royal-blue);
  color: var(--white);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
}

.btn-download:hover {
  background: var(--royal-blue-hover);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 25px;
}

.process-step-card {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  box-shadow: var(--shadow-subtle);
}

.step-badge {
  width: 32px;
  height: 32px;
  background: var(--crest-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-step-card h4 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.process-step-card p {
  font-size: 0.84rem;
  line-height: 1.5;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.criteria-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--royal-blue-border);
  padding: 26px 20px;
  box-shadow: var(--shadow-subtle);
  border-left: 4px solid var(--royal-blue);
}

.criteria-card.highlight {
  border-left-color: var(--crest-green);
}

.criteria-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.criteria-list {
  list-style: none;
}

.criteria-list li {
  padding: 6px 0;
  font-size: 0.86rem;
  border-bottom: 1px dashed var(--royal-blue-border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.criteria-list li:last-child {
  border-bottom: none;
}

.fees-notice-box {
  background: var(--royal-blue-surface);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-top: 22px;
}

.bank-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bank-detail-item {
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--royal-blue-border);
}

.bank-detail-item small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.bank-detail-item strong {
  font-size: 0.88rem;
  color: var(--text-heading);
}

/* Forms */
.inquiry-form-wrapper, .contact-form-box {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

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

.form-group-full {
  grid-column: span 2;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-heading);
  background: #FAFBFD;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--royal-blue);
  background: var(--white);
  box-shadow: 0 0 0 2px rgba(11, 63, 184, 0.12);
}

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

/* ==========================================================================
   CONTACT US & MAP HUB
   ========================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-subtle);
  text-align: center;
  transition: var(--transition-normal);
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-hover);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  background: var(--royal-blue-surface);
  color: var(--royal-blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.contact-card h4 {
  font-size: 0.98rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.map-wrapper {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--royal-blue-border);
  box-shadow: var(--shadow-subtle);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.directions-card {
  background: var(--royal-blue-surface);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 14px;
}

.directions-card h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
}

.directions-card p {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-top: 6px;
}

.dept-directory-wrapper {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-subtle);
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.dept-item {
  padding: 14px;
  background: var(--royal-blue-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--royal-blue-border);
}

.dept-item h5 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.dept-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--crest-green);
  font-weight: 700;
  margin-bottom: 6px;
}

.dept-item p {
  font-size: 0.8rem;
  line-height: 1.4;
}

.map-hub-section {
  padding: 55px 0;
  background: var(--royal-blue-surface);
  border-top: 1px solid var(--royal-blue-border);
}

.map-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 25px;
}

.map-info-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--royal-blue-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.map-info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.route-steps {
  list-style: none;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.route-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.route-icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  background: rgba(11, 63, 184, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.route-icon-box svg {
  width: 15px;
  height: 15px;
  stroke: var(--royal-blue);
}

.route-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-heading);
}

.route-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.map-viewport {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--royal-blue-border);
}

.map-viewport iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.map-floating-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(6, 31, 94, 0.12);
  border: 1px solid var(--royal-blue-border);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.map-floating-badge strong {
  font-size: 0.82rem;
  color: var(--royal-blue);
}

.map-floating-badge span {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   GALLERY & VIDEO SHOWCASE
   ========================================================================== */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  color: var(--text-heading);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--royal-blue);
  color: var(--white);
  border-color: var(--royal-blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  background: var(--white);
  border: 1px solid var(--royal-blue-border);
  cursor: pointer;
  transition: var(--transition-normal);
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.gallery-thumb-placeholder {
  height: 170px;
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 14px;
  position: relative;
}

.gallery-tag-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 31, 94, 0.85);
  color: #74E24A;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.gallery-caption {
  padding: 12px 14px;
  background: var(--white);
}

.gallery-caption h4 {
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.gallery-caption p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--royal-blue-border);
  box-shadow: var(--shadow-subtle);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--royal-blue-deep) 0%, var(--royal-blue) 100%);
  text-align: center;
  padding: 18px;
}

.play-btn {
  width: 46px;
  height: 46px;
  background: var(--crest-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--white);
}

.video-info {
  padding: 14px;
}

.video-info h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 3px;
}

.video-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 31, 94, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-box {
  background: var(--white);
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.lightbox-screen {
  height: 320px;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.lightbox-caption-bar {
  padding: 14px 18px;
}

.toast-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--royal-blue-deep);
  color: var(--white);
  padding: 12px 18px;
  border-left: 4px solid var(--crest-green);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(6, 31, 94, 0.25);
  z-index: 3000;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.25s ease;
  font-size: 0.85rem;
  max-width: 320px;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GLOBAL FOOTER
   ========================================================================== */
.footer {
  background-color: var(--royal-blue-deep);
  color: #CBD5E1;
  padding: 45px 0 20px 0;
  border-top: 3px solid var(--crest-green);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr;
  gap: 28px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo {
  width: 38px;
  height: 38px;
}

.footer-brand h3 {
  font-size: 1.05rem;
  color: var(--white);
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 10px;
  color: #B4C6EE;
}

.footer-motto {
  font-size: 0.78rem;
  color: #74E24A;
}

.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.footer-links, .footer-contact {
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #B4C6EE;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: #B4C6EE;
  line-height: 1.4;
}

.footer-contact strong {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #8CAAE8;
}

.developer-tag strong {
  color: #74E24A;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .admissions-card,
  .footer-grid,
  .map-hub-grid,
  .contact-main-grid,
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-item {
    border-right: none;
  }

  .facility-row,
  .facility-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .facility-row.reverse .facility-media {
    order: 1;
  }

  .facility-row.reverse .facility-content {
    order: 2;
  }

  .experience-badge {
    right: 5px;
    bottom: -10px;
  }
}

/* ==========================================================================
   OFF-CANVAS MOBILE DRAWER (SLIDE FROM LEFT)
   ========================================================================== */
@media (max-width: 868px) {
  .top-bar {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Frosted Backdrop Overlay */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 31, 94, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  /* Left-Docked Drawer */
/* Off-Canvas Drawer Container */
  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 290px;
    max-width: 84vw;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 22px 18px 30px 18px; /* Balanced top padding */
    gap: 4px;
    box-shadow: none;
    border-top: none;
    border-right: 1px solid var(--royal-blue-border);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    z-index: 1020;
    overflow-y: auto;
  }

  /* Drawer Brand Header (Badge & Title) */
  .drawer-brand-header {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 6px 10px 18px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--royal-blue-border);
  }

  .drawer-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--shadow-badge);
    flex-shrink: 0;
  }

  .drawer-brand-text h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--royal-blue);
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .drawer-brand-text p {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--crest-green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
  }

  /* Active Slide-In State */
  .nav-links.active {
    transform: translateX(0);
    box-shadow: 15px 0 35px rgba(6, 31, 94, 0.22);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
    border-radius: var(--radius-sm);
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.2s ease;
  }

  .nav-links a::after {
    display: none !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: var(--royal-blue-surface);
    color: var(--royal-blue);
    padding-left: 18px;
  }

  /* Mobile Drawer CTA Button */
  .nav-links .nav-cta,
  .nav-links li.nav-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--royal-blue-border);
  }

  .nav-links a.btn,
  .nav-links .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .steps-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }
}
/* Phase 1: clarity, accessibility and smaller mobile displays. */
.btn-download-unavailable,
.btn-download-unavailable:hover {
  background: #E6EAF2;
  color: #475569;
  cursor: not-allowed;
  box-shadow: none;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-feedback {
  display: none;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
}
.form-feedback:not(:empty) { display: block; }
.form-feedback.is-success { background: #EBF8E7; color: #205B13; }
.form-feedback.is-error { background: #FEF2F2; color: #991B1B; }
button:disabled { cursor: wait; opacity: .65; }
.menu-toggle:focus-visible,
.gallery-card:focus-visible,
.filter-btn:focus-visible,
.lightbox-close:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid #E0A316;
  outline-offset: 3px;
}
@media (max-width: 420px) {
  .metrics-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics-strip { padding: 20px 16px; }
  .metric-item { min-width: 0; padding: 6px 0; text-align: center; }
  .metric-item h3 { font-size: 1.8rem; }
  .metric-item p { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================
   MOBILE HERO — PREMIUM PHOTO BACKGROUND
   ========================================== */

@media (max-width: 767px) {

  .hero {
    position: relative;

    background: linear-gradient(
      180deg,
      #082866 0%,
      #0B3FB8 55%,
      #061F5E 100%
    );

    padding: 55px 0 90px;
    isolation: isolate;
  }

  /* School photo behind the hero text */
  .hero::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 450px;

    background-image:
      linear-gradient(
        180deg,
        rgba(6, 31, 94, 0.58) 0%,
        rgba(6, 31, 94, 0.65) 100%
      ),
      url("../images/school-building.webp");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    -webkit-mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 55%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to bottom,
      black 0%,
      black 55%,
      transparent 100%
    );

    pointer-events: none;
    z-index: 0;
  }

  /* Keep all text and buttons over the photo */
  .hero > .container {
    position: relative;
    z-index: 1;
    padding-top: 0;
  }

}
.about-campus-photo {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
  border: 4px solid #FFFFFF;
  box-shadow: var(--shadow-card);
}

@media (max-width: 600px) {
  .about-campus-photo {
    height: 260px;
  }
}

/* ==========================================
   SCHOOL DIRECTOR PORTRAIT
   ========================================== */

.director-portrait {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 24px;
}
