:root {
  /* Colors */
  --navy: #0f172a;
  --navy-light: #1e293b;
  --red: #dc2626;
  --red-light: rgba(220,38,38,0.1);
  --white: #ffffff;
  --off-white: #f8fafc;
  --grey-light: #f1f5f9;
  --grey-mid: #cbd5e1;
  --text-dark: #0f172a;
  --text-mid: #334155;
  --text-light: #64748b;
  
  /* Accents */
  --accent-blue: #2563eb;
  --gradient-red: linear-gradient(90deg, #dc2626, #f87171);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  
  /* Borders and Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(15,23,42,0.04);
  --shadow-md: 0 10px 25px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 40px rgba(15,23,42,0.12);
  --shadow-xl: 0 30px 60px rgba(15,23,42,0.18);
  
  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text-mid);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================================
   SCHOOL WEBSITE PAGES — STYLES
   (Navbar, Hero, Sections, Footer, Campus Pages,
    Gallery, Transport Map, Helpdesk Modal)
   ============================================================ */

/* ============================================================
   SHARED NAVBAR (school-website pages)
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  box-shadow: 0 2px 20px rgba(15,23,42,0.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}
.nav-logo span { color: var(--red); }
.nav-logo-img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links > li > a,
.nav-links > li > button {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-links > li > a:hover,
.nav-links > li > button:hover { color: var(--navy); background: var(--grey-light); }
.nav-links > li > a.active,
.nav-links > li > button.active { color: var(--navy); font-weight: 700; }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-dropdown-item:hover { background: #eff6ff; color: var(--navy-light); }
.nav-dropdown-item.active { color: var(--navy); font-weight: 700; background: #f0f9ff; }
.nav-dropdown-item .dd-icon {
  width: 28px; height: 28px;
  background: var(--grey-light);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-dropdown-item:hover .dd-icon { background: var(--accent-blue); color: #fff; }
.nav-chevron { font-size: 0.6rem; transition: transform 0.3s ease; }
.nav-dropdown.open .nav-chevron,
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(15,23,42,0.25);
}
.nav-cta:hover { background: var(--red) !important; box-shadow: 0 6px 20px rgba(220,38,38,0.35) !important; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION (school pages)
   ============================================================ */
.page-hero {
  background: var(--off-white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--accent-blue); }
.hero-heading {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-underline { display: flex; gap: 4px; margin-bottom: 20px; }
.hero-underline span:first-child { width: 40px; height: 4px; background: var(--navy); border-radius: 2px; }
.hero-underline span:last-child  { width: 20px; height: 4px; background: var(--red);  border-radius: 2px; }
.hero-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(15,23,42,0.25);
  margin-bottom: 24px;
}
.hero-cta:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(220,38,38,0.35); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light); margin-top: 10px;
}
.breadcrumb a { color: var(--text-light); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--grey-mid); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }
.hero-right { position: relative; display: flex; justify-content: center; }
.hero-img-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  max-width: 480px; width: 100%;
}
.hero-img-card img { width: 100%; height: 380px; object-fit: cover; display: block; }
.achievement-badge {
  position: absolute; bottom: -20px; left: 30px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--grey-mid);
}
.achievement-badge .badge-icon {
  width: 44px; height: 44px;
  background: var(--grey-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--navy);
}
.achievement-badge .badge-text strong { display: block; font-size: 1rem; font-weight: 800; color: var(--navy); }
.achievement-badge .badge-text span { font-size: 0.72rem; color: var(--text-light); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grey-light); border: 1px solid var(--grey-mid);
  border-radius: 30px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 700; color: var(--text-light);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-badge i { color: var(--accent-blue); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: var(--navy); line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-subtitle { font-size: 1rem; color: var(--text-light); max-width: 560px; line-height: 1.7; }
.section-underline { width: 50px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 20px; }
.bg-off { background: var(--off-white); }

/* ============================================================
   WHO WE ARE / TWO-COLUMN GRID
   ============================================================ */
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.who-right { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.who-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.who-img-main img { width: 100%; height: 280px; object-fit: cover; }
.who-img-side { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 40px; }
.who-img-side img { width: 100%; height: 280px; object-fit: cover; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.feature-card {
  background: var(--white); border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md); padding: 18px 16px;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); }
.feature-card .fc-icon { font-size: 1.4rem; color: var(--accent-blue); margin-bottom: 10px; }
.feature-card h4 { font-size: 0.85rem; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ============================================================
   EXCELLENCE + STATS
   ============================================================ */
.excellence-section { background: var(--off-white); }
.excellence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 50px; }
.excellence-label { font-size: 0.8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.excellence-label::before { content: ''; width: 30px; height: 2px; background: var(--text-light); border-radius: 1px; }
.excellence-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--navy); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.excellence-desc { font-size: 0.97rem; color: var(--text-light); line-height: 1.8; margin-bottom: 8px; }
.excellence-desc strong { color: var(--navy); }
.ex-feature-cards { display: flex; flex-direction: column; gap: 14px; }
.ex-card {
  background: var(--white); border: 1px solid var(--grey-mid);
  border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.ex-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); }
.ex-card .ex-icon { width: 38px; height: 38px; background: var(--grey-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--accent-blue); flex-shrink: 0; transition: var(--transition); }
.ex-card:hover .ex-icon { background: var(--accent-blue); color: #fff; }
.ex-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ex-card p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.5; }
.stats-bar {
  background: var(--gradient-dark); border-radius: var(--radius-xl);
  padding: 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-number { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--white); line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 1.5px; text-transform: uppercase; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); cursor: pointer; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; min-height: 200px; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.life-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.life-gallery .life-item-big { grid-row: span 2; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.life-gallery .life-item-big img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; transition: transform 0.5s; }
.life-gallery .life-item-big:hover img { transform: scale(1.04); }
.life-gallery .life-col { display: flex; flex-direction: column; gap: 16px; }
.life-item { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.life-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.life-item:hover img { transform: scale(1.04); }

/* ============================================================
   CAMPUS SECTIONS
   ============================================================ */
.campus-section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.campus-section-inner.reverse { direction: rtl; }
.campus-section-inner.reverse > * { direction: ltr; }
.campus-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.campus-img img { width: 100%; height: 340px; object-fit: cover; }
.campus-content h3 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.campus-content p { font-size: 0.97rem; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.campus-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.92rem; color: var(--text-mid); border-bottom: 1px solid var(--grey-light); }
.campus-list li i { color: var(--accent-blue); font-size: 0.85rem; }
.campus-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.campus-gallery-item { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; cursor: pointer; }
.campus-gallery-item img { width: 100%; height: 180px; object-fit: cover; transition: transform 0.4s; }
.campus-gallery-item:hover img { transform: scale(1.07); }
.campus-gallery-item .cg-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(15,23,42,0.8), transparent); padding: 20px 14px 12px; color: #fff; font-size: 0.82rem; font-weight: 600; }

/* ============================================================
   LEADER CARD (Director / Principal)
   ============================================================ */
.leader-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--grey-mid); overflow: hidden; display: grid; grid-template-columns: 380px 1fr; }
.leader-photo { position: relative; background: linear-gradient(160deg, #dbeafe 0%, #eff6ff 100%); }
.leader-photo img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: top center; }
.leader-info { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.leader-tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 14px; }
.leader-name { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 900; color: var(--navy); line-height: 1.1; margin-bottom: 8px; }
.leader-qual { font-size: 1rem; color: var(--text-light); font-weight: 500; margin-bottom: 18px; }
.leader-desc { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 28px; }
.leader-stats { display: flex; gap: 0; border: 1px solid var(--grey-mid); border-radius: var(--radius-md); overflow: hidden; }
.leader-stat { flex: 1; padding: 18px 20px; text-align: center; border-right: 1px solid var(--grey-mid); }
.leader-stat:last-child { border-right: none; }
.leader-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--navy); display: block; }
.leader-stat-label { font-size: 0.75rem; color: var(--text-light); font-weight: 500; }
.quote-section { background: var(--off-white); padding: 70px 0; }
.quote-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 50px 56px; border: 1px solid var(--grey-mid); position: relative; }
.quote-mark { font-size: 5rem; color: var(--grey-light); font-family: Georgia, serif; line-height: 0.5; display: block; margin-bottom: 20px; }
.quote-text { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--navy); line-height: 1.4; margin-bottom: 36px; letter-spacing: -0.5px; }
.quote-features { margin-bottom: 40px; }
.quote-feature { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--grey-light); }
.quote-feature:last-child { border-bottom: none; }
.qf-icon { width: 40px; height: 40px; background: var(--grey-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--navy); flex-shrink: 0; transition: var(--transition); }
.quote-feature:last-child .qf-icon { background: var(--navy); color: #fff; }
.qf-content h4 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.qf-content p  { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.quote-signature { display: flex; align-items: flex-end; justify-content: space-between; }
.sig-name { font-family: 'Dancing Script', cursive; font-size: 2.2rem; color: var(--navy); line-height: 1; margin-bottom: 4px; }
.sig-role { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); display: flex; align-items: center; gap: 8px; }
.sig-role::before { content: ''; width: 24px; height: 2px; background: var(--red); border-radius: 1px; }
.sig-monogram { font-size: 4rem; font-weight: 900; color: var(--grey-light); letter-spacing: -5px; font-style: italic; line-height: 1; }
.director-stats { background: var(--white); border: 1px solid var(--grey-mid); border-radius: var(--radius-xl); padding: 32px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; box-shadow: var(--shadow-md); }
.dir-stat { text-align: center; padding: 10px; border-right: 1px solid var(--grey-light); }
.dir-stat:last-child { border-right: none; }
.dir-stat-icon { font-size: 1.2rem; color: var(--accent-blue); margin-bottom: 8px; }
.dir-stat-num { font-size: 1.8rem; font-weight: 900; color: var(--red); display: block; }
.dir-stat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); }

/* ============================================================
   MISSION & VISION PAGE
   ============================================================ */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card { background: var(--white); border: 1px solid var(--grey-mid); border-radius: var(--radius-xl); padding: 36px 28px; box-shadow: var(--shadow-md); transition: var(--transition); position: relative; overflow: hidden; }
.mvv-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.mvv-card.vision::before   { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.mvv-card.mission::before  { background: linear-gradient(90deg, #10b981, #34d399); }
.mvv-card.values::before   { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.mvv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.mvv-icon { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.mvv-card.vision  .mvv-icon { background: #dbeafe; color: #1d4ed8; }
.mvv-card.mission .mvv-icon { background: #d1fae5; color: #065f46; }
.mvv-card.values  .mvv-icon { background: #ede9fe; color: #5b21b6; }
.mvv-underline { width: 40px; height: 3px; border-radius: 2px; margin: 10px 0 16px; }
.mvv-card.vision  .mvv-underline { background: #3b82f6; }
.mvv-card.mission .mvv-underline { background: #10b981; }
.mvv-card.values  .mvv-underline { background: #8b5cf6; }
.mvv-card h3 { font-size: 1.2rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.mvv-card p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }
.values-list { margin-top: 16px; }
.values-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--grey-light); font-size: 0.88rem; font-weight: 600; color: var(--text-mid); }
.values-list li:last-child { border-bottom: none; }
.values-list li i { color: #8b5cf6; font-size: 0.7rem; }
.core-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.core-card { background: var(--white); border: 1px solid var(--grey-mid); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: var(--transition); box-shadow: var(--shadow-sm); }
.core-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.core-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 16px; }
.core-card:nth-child(1) .core-icon { background: #dbeafe; color: #1d4ed8; }
.core-card:nth-child(2) .core-icon { background: #d1fae5; color: #065f46; }
.core-card:nth-child(3) .core-icon { background: #fef3c7; color: #92400e; }
.core-card:nth-child(4) .core-icon { background: #ede9fe; color: #5b21b6; }
.core-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.core-card p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ============================================================
   SHARED FOOTER (school pages)
   ============================================================ */
.site-footer { background: var(--navy); color: var(--white); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 28px; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.6); line-height: 1.8; margin-top: 14px; }
.footer-brand .brand-name { font-size: 1.2rem; font-weight: 800; }
.footer-brand .brand-name span { color: var(--red-light); }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; color: rgba(255,255,255,0.5); }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25,1,0.5,1); will-change: opacity, transform; }
.reveal.fade-up    { transform: translateY(50px); }
.reveal.fade-left  { transform: translateX(-60px); }
.reveal.fade-right { transform: translateX(60px); }
.reveal.zoom-in    { transform: scale(0.88); }
.reveal.visible    { opacity: 1 !important; transform: none !important; }
.stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25,1,0.5,1); }
.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s;    }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }
.stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.48s; }

/* ============================================================
   LAB / CAMPUS FEATURE CARDS
   ============================================================ */
.lab-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.lab-feature-card { background: var(--white); border: 1px solid var(--grey-mid); border-radius: var(--radius-md); padding: 32px 24px; box-shadow: var(--shadow-sm); transition: var(--transition); text-align: center; }
.lab-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-blue); }
.lab-feature-icon { width: 58px; height: 58px; border-radius: 12px; background: var(--grey-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--accent-blue); margin: 0 auto 20px; transition: var(--transition); }
.lab-feature-card:hover .lab-feature-icon { background: var(--accent-blue); color: var(--white); }
.lab-feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.lab-feature-card p  { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.infra-showcase { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 40px; }
.infra-showcase img { width: 100%; height: 480px; object-fit: cover; display: block; }
.float-glass-card { position: absolute; top: 30px; left: 30px; background: rgba(15,23,42,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-md); padding: 18px 24px; color: var(--white); box-shadow: var(--shadow-md); z-index: 10; }
.float-glass-card .tour-badge { font-size: 0.65rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-blue); margin-bottom: 4px; display: block; }
.float-glass-card h4 { font-size: 1.05rem; font-weight: 700; }
.gallery-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.gallery-filter-btn { background: var(--off-white); border: 1px solid var(--grey-mid); padding: 10px 22px; border-radius: 30px; font-size: 0.88rem; font-weight: 600; color: var(--text-mid); transition: var(--transition); }
.gallery-filter-btn:hover { background: var(--grey-light); color: var(--navy); transform: translateY(-1px); }
.gallery-filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 0 4px 12px rgba(15,23,42,0.15); }
.gallery-grid { columns: 3 300px; column-gap: 20px; width: 100%; }
.gallery-grid-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; cursor: pointer; transition: transform 0.3s cubic-bezier(0.25,1,0.5,1), opacity 0.3s ease; background: var(--grey-light); }
.gallery-grid-item img { width: 100%; display: block; border-radius: var(--radius-md); transition: transform 0.5s ease; }
.gallery-grid-item:hover img { transform: scale(1.05); }
.gallery-grid-item .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.gallery-grid-item:hover .overlay { opacity: 1; }
.gallery-grid-item .overlay h4 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.gallery-grid-item .overlay p  { color: rgba(255,255,255,0.7); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.gallery-grid-item.hidden { display: none !important; }

/* ============================================================
   HELPDESK MODAL
   ============================================================ */
.helpdesk-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.helpdesk-modal.active { display: flex; }
.helpdesk-modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.helpdesk-modal.active .helpdesk-modal-overlay { opacity: 1; }
.helpdesk-modal-wrapper { background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.25); border-radius: 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow-xl); position: relative; z-index: 10; padding: 36px 30px; text-align: center; transform: scale(0.9); opacity: 0; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease; }
.helpdesk-modal.active .helpdesk-modal-wrapper { transform: scale(1); opacity: 1; }
.helpdesk-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(15,23,42,0.05); color: var(--navy); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.helpdesk-modal-close:hover { background: var(--red); color: var(--white); transform: rotate(90deg); }
.helpdesk-modal-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid var(--white); box-shadow: var(--shadow-md); }
.helpdesk-modal-info h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.helpdesk-modal-info .modal-designation { font-size: 0.8rem; font-weight: 700; color: var(--accent-blue); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 20px; }
.helpdesk-modal-details { background: rgba(255,255,255,0.5); border-radius: 12px; padding: 14px 18px; border: 1px solid rgba(15,23,42,0.05); margin-bottom: 22px; text-align: left; }
.helpdesk-modal-detail-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-mid); padding: 8px 0; border-bottom: 1px solid rgba(15,23,42,0.05); }
.helpdesk-modal-detail-item span { word-break: break-all; }
.helpdesk-modal-detail-item:last-child { border-bottom: none; }
.helpdesk-modal-detail-item i { color: var(--accent-blue); font-size: 1rem; width: 18px; text-align: center; }
.helpdesk-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.helpdesk-modal-actions .btn-whatsapp,
.helpdesk-modal-actions .btn-call { width: 100%; justify-content: center; padding: 11px; border-radius: 30px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.helpdesk-modal-actions .btn-call { background: var(--navy); color: var(--white) !important; box-shadow: 0 4px 12px rgba(15,23,42,0.12); }
.helpdesk-modal-actions .btn-call:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(220,38,38,0.22); }
.btn-whatsapp { background: #25d366; color: #fff !important; padding: 10px 22px; border-radius: 30px; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(37,211,102,0.25); transition: var(--transition); }
.btn-whatsapp:hover { background: #20ba5a; transform: translateY(-2px); }
.btn-email-link { background: var(--navy); color: #fff !important; padding: 10px 22px; border-radius: 30px; font-size: 0.82rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.btn-email-link:hover { background: var(--red); transform: translateY(-2px); }

/* ============================================================
   TRANSPORT MAP
   ============================================================ */
.interactive-map-card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--grey-mid); padding: 30px; margin-top: 20px; }
.map-canvas-container { position: relative; width: 100%; background: radial-gradient(circle, rgba(239,246,255,0.4) 0%, rgba(248,250,252,0.8) 100%); border-radius: var(--radius-lg); border: 1px solid var(--grey-light); overflow: hidden; padding: 20px; }
.map-svg { width: 100%; height: auto; display: block; }
.route-line { stroke-dasharray: 8 6; animation: routeDashFlow 25s linear infinite; }
@keyframes routeDashFlow { to { stroke-dashoffset: -200; } }
.map-stop-node { cursor: pointer; pointer-events: all; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.map-stop-node .inner-dot { fill: var(--navy); stroke: var(--white); stroke-width: 2.5px; transition: var(--transition); }
.map-stop-node .outer-pulse { fill: var(--navy-light); opacity: 0.15; transition: var(--transition); }
@keyframes pulseRing { 0% { transform: scale(0.8); opacity: 0.4; } 100% { transform: scale(1.6); opacity: 0; } }
.map-stop-node:hover { transform: scale(1.25); }
.map-stop-node:hover .inner-dot,
.map-stop-node.active .inner-dot { fill: var(--red); stroke: var(--white); }
.map-stop-node:hover .outer-pulse,
.map-stop-node.active .outer-pulse { fill: var(--red-light); opacity: 0.25; animation: pulseRing 1.8s cubic-bezier(0.24,0,0.38,1) infinite; }
.map-info-panel { display: flex; align-items: center; gap: 16px; background: var(--off-white); border-radius: var(--radius-md); border: 1px solid var(--grey-mid); padding: 16px 24px; margin-top: 20px; transition: var(--transition); }
.map-info-panel .mip-icon { width: 44px; height: 44px; background: rgba(220,38,38,0.1); color: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.map-info-panel .mip-content { flex-grow: 1; }
.map-info-panel .mip-route-id { font-size: 0.72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.2px; }
.map-info-panel .mip-stop-name { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-top: 2px; transition: opacity 0.25s ease, transform 0.25s ease; }
.mip-stop-name.update-animate { opacity: 0; transform: translateY(4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid, .who-grid, .excellence-grid, .campus-section-inner, .leader-card { grid-template-columns: 1fr; }
  .leader-photo img { min-height: 300px; }
  .leader-info { padding: 30px 28px; }
  .campus-section-inner.reverse { direction: ltr; }
  .mvv-grid  { grid-template-columns: 1fr 1fr; }
  .core-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .director-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-right { margin-top: 30px; }
  .who-right { grid-template-columns: 1fr 1fr; }
  .achievement-badge { bottom: -10px; }
  .lab-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 50px 0; }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; border-bottom: 1px solid var(--grey-mid); box-shadow: var(--shadow-md); z-index: 998; }
  .nav-links.open { display: flex; }
  .nav-links > li > a, .nav-links > li > button { width: 100%; justify-content: space-between; }
  .nav-dropdown-panel { position: static; box-shadow: none; border: none; border-radius: 0; padding-left: 20px; opacity: 1; transform: none; pointer-events: auto; display: none; }
  .nav-dropdown.open .nav-dropdown-panel { display: block; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none !important; }
  .hero-grid, .who-grid, .excellence-grid, .mvv-grid { grid-template-columns: 1fr; }
  .who-right { grid-template-columns: 1fr 1fr; gap: 10px; }
  .core-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-bar { grid-template-columns: 1fr 1fr; padding: 28px 20px; }
  .director-stats { grid-template-columns: 1fr 1fr; padding: 20px 16px; }
  .feature-cards { grid-template-columns: 1fr; }
  .campus-gallery-grid { grid-template-columns: 1fr 1fr; }
  .life-gallery { grid-template-columns: 1fr; }
  .life-gallery .life-item-big img { min-height: 260px; }
  .leader-stat-num { font-size: 1.4rem; }
  .leader-stats { flex-direction: column; }
  .leader-stat { border-right: none; border-bottom: 1px solid var(--grey-mid); }
  .leader-stat:last-child { border-bottom: none; }
  .quote-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .achievement-badge { left: 10px; right: 10px; bottom: -30px; }
  .lab-features-grid { grid-template-columns: 1fr; }
  .helpdesk-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px; gap: 20px; }
  .infra-showcase img { height: 320px; }
}
@media (max-width: 480px) {
  .core-grid { grid-template-columns: 1fr; }
  .campus-gallery-grid { grid-template-columns: 1fr; }
  .hero-img-card img { height: 260px; }
  .stats-bar { grid-template-columns: 1fr; }
}

/* --- Premium Message Letter Card Styling --- */
.message-letter-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 45px 50px;
  box-shadow: var(--shadow-xl), 0 4px 30px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-letter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--navy);
  border-radius: 4px 0 0 4px;
}

.message-letter-card.director-card::before {
  background: var(--red);
}

.message-letter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
}

.message-quote-icon {
  font-size: 5rem;
  color: rgba(15, 23, 42, 0.04);
  font-family: Georgia, serif;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  user-select: none;
}

.message-text-content {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  position: relative;
  z-index: 2;
  margin-bottom: 35px;
}

.message-text-content p {
  margin-bottom: 20px;
}

.message-text-content p:last-child {
  margin-bottom: 0;
}

.message-signature-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-top: 1px solid var(--grey-light);
  padding-top: 25px;
  position: relative;
  z-index: 2;
}

.message-signature-block .sig-handwritten {
  font-family: 'Dancing Script', cursive;
  font-size: 2.6rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
  transform: rotate(-2deg);
  display: inline-block;
  padding-right: 10px;
}

.message-signature-block .sig-role-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* Responsiveness for Message Card */
@media (max-width: 768px) {
  .message-letter-card {
    padding: 35px 24px;
    margin-top: 20px;
  }
  .message-text-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
  }
  .message-signature-block .sig-handwritten {
    font-size: 2.2rem;
  }
}
