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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

:root {
  --primary: #0D47A1;
  --accent: #F9A825;
  --bg: #FAFAFA;
  --text: #263238;
  --card: #FFFFFF;
  --muted: #607D8B;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --font: 'Poppins','Segoe UI', sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  /* font-family: var(--font); */
  font-family: 'Poppins', sans-serif;
  color: var(--text);
}
h1, h2, h3,h4 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.3px;
}
/* GLOBAL SECTION SYSTEM */
section {
  padding: 56px 24px;   /* desktop */
}

@media (max-width: 768px) {
  section {
    padding: 40px 16px;
  }
}
.login-card {
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2rem;
}

.topbar {
  background: var(--primary);
  color: white;
}

.sidebar a:hover {
  background: var(--accent);
}
header {
  /* background: var(--primary); */
  background: linear-gradient(90deg, var(--navy), var(--royal-blue));
  color: white;
  padding: 1.5rem 2rem;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}
h1, h2, h3, h4 {
  margin-top: 0;
}

section h2 {
  margin-bottom: 24px; /* controlled, not default */
}

.section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.section {
  background: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 768px) {
  .brand-logo {
    height: 72px;
  }
}
section h2 {
  font-size: 36px;
}
h2 {
  margin-bottom: 1rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}

/* .school-logo {
  height: 60px;
  margin-bottom: 1rem;
  filter: grayscale(100%) contrast(1.1);
} */

.org-chart {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.org-level {
  display: flex;
  gap: 2rem;
}

.org-box {
  background: var(--card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.gallery div {
  background: linear-gradient(135deg, #E3F2FD, #F8FAFC);
  font-weight: 500;
  letter-spacing: 0.3px;
  height: 120px;
  background: #E0E0E0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.gallery img:hover {
  transform: scale(1.03);
}
.fee-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* .footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
} */

/* .footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: auto;
} */
 .footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.5fr 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: auto;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  /* color: #0D2C6C; */
  color: #0D47A1;
  text-transform: uppercase;
}

.footer-about p,.footer-col ul li,
.footer-contact li {
  font-size: 14.5px;
  line-height: 1.7;
  /* color: #607d8b; */
  color: #546e7a;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  /* font-size: 14px; */
}

.footer-col a {
  text-decoration: none;
  color: #455a64;
  transition: all 0.25s ease;
  
}

.footer-col a:hover {
  /* color: var(--accent); */
  color: #0D47A1;
  padding-left: 6px;
  transform: translateY(-4px);
}

/* .footer-contact li {
  line-height: 1.6;
} */

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0D47A1;
  transition: all 0.3s ease;
  /* gap: 14px;
  font-size: 18px; */
}

.footer-social a {
  text-decoration: none;
  color: #0D2C6C;
}

.footer-social a:hover {
  /* color: var(--accent); */
  background: #f9a825;
  color: #000;
  transform: translateY(-3px);
}

/* BOTTOM BAR */
.footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid #dde3e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #607d8b;
}
/* RESPONSIVE */
@media (max-width: 900px) {
  .site-footer {
    padding: 40px 20px 24px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    
  } */
  .footer-bottom {
  border-top: 1px solid rgba(249,168,37,0.2);
  padding-top: 1rem;
}
}
/* .tech-partner {
  display: flex;
  align-items: center;
  gap: 12px;  
  white-space: nowrap; */ /* prevents ugly wrapping */
  
/* } */
/* .tech-partner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #FFF8E1;
  border: 1.5px solid #F9A825;
  border-radius: 6px;
  padding: .35rem .9rem .35rem .45rem; */
  /* font-size: 11px;
  font-family: 'Poppins', monospace;
  letter-spacing: 0.08em;
  color: rgba(249,168,37,0.75);   /* soft gold, not harsh white */
  /* text-transform: uppercase;  */
/* }
.tech-logo-box {
  width: 28px; height: 28px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f0e0b0;
}
.tech-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.tech-powered-by { */
  /* display: block; */
  /* display: flex;
  align-items: center;     */     /* vertically centre icon + text */
 /*  gap: 10px;
  padding: 12px 16px;
  overflow: visible;    */        /* ← stop clipping the icon */
 /*  font-size: 9px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #c8860a;
}
.powered-by-block img,
.powered-by-block .brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;           */    /* ← stop the icon from being squished */
 /*  overflow: visible;
}
.tech-company-name {
  display: block;
  font-size: 12px; font-weight: 600;
  color: #854F0B; letter-spacing: .03em;
}

.tech-partner img {
  height: 42px;
  width:auto;
  object-fit: contain;
  opacity: 0.95;
  filter: contrast(1.03) brightness(1.02);
}
@media (max-width: 768px) {
  .tech-partner img {
    height: 34px;
  }
} */
 /* ── Tech Partner / Powered By ──────────────────────────── */
.tech-partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFF8E1;
  border: 1.5px solid #F9A825;
  border-radius: 6px;
  padding: 6px 14px 6px 8px;   /* generous vertical padding */
}

/* The logo wrapper — must NOT clip */
.tech-logo-box {
  width: 42px;                  /* match the img height */
  height: 42px;
  border-radius: 5px;
  overflow: visible;            /* ← was hidden — that was the bug */
  background: #fff;
  border: 1px solid #f0e0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-logo-box img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

/* "Powered by" label */
.tech-powered-by {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8860a;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* Company name */
.tech-company-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #854F0B;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

/* Remove the old conflicting rule */
/* .powered-by-block img,
.powered-by-block .brand-icon { */
  /* intentionally cleared — handled by .tech-logo-box img now */
/* } */

@media (max-width: 768px) {
  .tech-logo-box {
    width: 34px;
    height: 34px;
  }
  .tech-logo-box img {
    width: 30px;
    height: 30px;
  }
  .tech-company-name {
    font-size: 11px;
  }
}
.brand-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  /* justify-content: space-between; */
  align-items: center;
  padding: 20px 64px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position:sticky;
  top:0;
  z-index: 1000;
  backdrop-filter: blur(8px);
    /* 🔑 ADD THESE */
  flex-wrap: nowrap;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  height: 100px;
  width:auto;
  object-fit: contain;
  padding:8px;
  border-radius:10px;
  background:#ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  filter: contrast(1.05) brightness(1.03);
}

.brand-text h1 {
  font-size: 26px;
  margin: 0;
  color: #0D2C6C;
  font-weight: 600;
}

.brand-text span {
  margin-top: 4px;
  display: block;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.4px;
}

/* .brand-nav a {
  display: flex;
  justify-content: center;
  margin-left: 26px;
  text-decoration: none;
  font-weight: 500;
  color: #0D2C6C;
  position:relative;
  padding-bottom: 6px;
  letter-spacing: 0.3px;
    /* 🔑 ADD THESE */
  /*flex-wrap: nowrap;
  white-space: nowrap;
  gap: 28px;*/ /* instead of larger gaps */
/*} */
.brand-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* .brand-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
} */
 .brand-nav > a,
.brand-nav .dropdown-toggle {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: #0D2C6C;
  padding-bottom: 6px;
  white-space: nowrap;
}
/* underline animation */
.brand-nav > a::after,
.brand-nav .dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  transform: translateX(-50%);
}
.brand-nav > a:hover::after,
.brand-nav > a.active::after,.nav-dropdown:hover .dropdown-toggle::after  {
  width: 100%;
}

.brand-nav a:hover,
.brand-nav a.active,.footer-col a.active,.nav-dropdown:hover .dropdown-toggle {
  color: var(--accent);
  font-weight: 600;
}
/* Close dropdown when hovering other nav items */
/* Show dropdown ONLY when hovering Who We Are or its menu */
.nav-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Default hidden */
/* .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
} */
/* .school-logo {
  filter: grayscale(100%) contrast(1.1);
} */
/* .hero { */
  /* min-height: 85vh; */
 /*  min-height: 360px;          /* flexible */
  /* background: */ */
    /* linear-gradient(rgba(8,20,45,0.65), rgba(8,20,45,0.65)), */
/*     linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/school-hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 48px 0;    */     /* dynamic height */
  /* position: relative;
  height: 320px;
  justify-content: center;
  text-align: center;
  color: #fff;
} */
.hero {
  position: relative;
  min-height: 480px;                 /* IMPORTANT */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/school-hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 48px 16px;
  overflow: hidden;                  /* prevents spill */
}

.hero-events {
  background:
    linear-gradient(rgba(6,40,90,0.75), rgba(6,40,90,0.75)),
    url("images/events-banner.jpg") center/cover no-repeat;
}

.hero-content {
  padding: 0;
  /* padding-left: 80px; */
  margin: 0 auto;
  max-width: 1000px;
}
.hero-content h1 {
  font-size: 40px;
  font-weight: 700;
}

.hero-tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  color: #ffffff;
  line-height: 1.15;
  /* margin-bottom: 20px; */
  margin: 0 0 16px;
  font-weight: 600;
}

.hero-desc {
  margin-top: 18px;
  font-size: 18px;
  color: #E0E0E0;
}
/* .hero {
  min-height: 80vh;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("../images/school-hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
} 
  */

/* .hero-content {
  padding-left: 80px;
  max-width: 820px;
} */

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subtitle {
  /*color: var(--accent);*/
  font-family: 'Cinzel', serif;
  font-size:26px;
  font-weight: 700;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 18px;
  color: #F9A825;
  text-transform: uppercase;
  /* position: relative; */
  white-space: normal;      /* 🔑 VERY IMPORTANT */
}
.hero-subtitle::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #F9A825;
  margin: 12px auto 0;
}


.hero p {
  font-size: 18px;
  color: #e0e0e0;
  max-width: 760px;
  line-height: 1.6;
  margin: 0 auto;
}
/* #about {
  margin-top: 4rem;
} */
/* CONTACT HERO */
.contact-hero {
  height: 42vh;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/img-2.webp") center / cover no-repeat;

  display: flex;
  align-items: center;
  position:relative;
}

.contact-hero-content {
  padding-left: 80px;
  color: #ffffff;
}

.contact-hero-content span {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.9;
}

.contact-hero-content h2 {
  font-size: 48px;
  margin-top: 8px;
}

/* CONTACT SECTION */
/* .contact-section {
  padding: 5rem 4rem;
} */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-details h3 {
  font-size: 28px;
}

.contact-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,60,0.6);
}
/* SOCIAL */
.social-block h4 {
  margin-top: 2rem;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
}

/* IMAGE */
.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

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

  .contact-hero-content {
    padding-left: 24px;
  }
}
.social-icons i {
  font-size: 18px;
  margin-right: 14px;
  color: var(--primary);
  cursor: pointer;
}
.admin-footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: #6b7c93;
  border-top: 1px solid #e6edf3;
  background: #f9fbfd;
}
/* AUTH BACKGROUND */
.auth-bg {
  background: #f4f6f8;
  min-height: 100vh;
}

/* CENTER LOGIN CARD */
.auth-container {
  display: flex;
  justify-content: center;
  padding: 80px 16px;
}

/* FORM ELEMENTS */
.login-card h2 {
  margin-bottom: 1.5rem;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.login-card button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover {
  background: #0b3c91;
}

.error-text {
  margin-top: 10px;
  color: #d32f2f;
  font-size: 14px;
}
.dashboard {
  display: flex;
  min-height: calc(100vh - 90px);
}

.sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  padding: 24px;
}

.sidebar a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 6px;
  color: #0D2C6C;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar a.active,
.sidebar a:hover {
  background: #E3F2FD;
  color: var(--primary);
}

.content {
  flex: 1;
  padding: 40px;
}
/* ABOUT SECTION */
.about-section {
  background: #ffffff;
}

.about-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* LEFT */
.about-tag {
  font-family: 'Poppins', sans-serif;
  /* color: var(--accent); */
  color:#F9A825;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

.about-content h2 {
   font-family: 'Playfair Display', serif;
  font-size: 34px;
  margin-bottom: 18px;
  color: #0D47A1;
}

.about-content p {
   font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #455a64;
  line-height: 1.7;
  margin-bottom: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 1.8rem;
  padding: 13px 26px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #0b3c91;
  background: var(--accent);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(249,168,37,0.45);
}

/* RIGHT CARDS */
.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.about-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
  position: relative;
}
.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(13,71,161,0.18);
}

/* HOVER EFFECT ON ICON */
.about-card:hover .icon {
  transform: scale(1.1);
}
.about-card h4 {
  font-size: 18px;
  margin-bottom: 0.6rem;
  color: #0D2C6C;
}

.about-card p {
  font-size: 14.5px;
  color: #607d8b;
  line-height: 1.6;
}

/* ICONS */
.icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  transition: all 0.35s ease;
}
.icon i {
  font-size: 18px;          /* controlled icon size */
}

.icon-primary {
  background: #E3F2FD;
  color: var(--primary);
}

.icon-accent {
  background: #FFF3E0;
  color: var(--accent);
}

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

  .about-cards {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 4rem 1.5rem;
  }

  .about-content h2 {
    font-size: 32px;
  }
}
/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.about-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(249,168,37,0.12),
    rgba(13,71,161,0.12)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-card:hover::after {
  opacity: 1;
}
.hero {
  min-height: 240px;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0D47A1, #1E88E5);
  color: #fff;
}
/* =====================================
   COMMON PAGE HERO (ALL SCHOOLS)
===================================== */

.page-hero {
  position: relative;
  min-height: 520px;

  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("./images/school-hero.webp") center center / cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  color: #fff;
  padding: 48px 16px;
  overflow: hidden;
}
/* =========================================
   HGHS CUSTOM HERO BANNER ONLY
========================================= */

body[data-school="HGHS"] .page-hero{
  background:
    linear-gradient(
      rgba(7,25,55,0.55),
      rgba(7,25,55,0.60)
    ),
    url("./images/hghs-assembly-banner.png")
    center center / cover no-repeat;

  min-height: 420px;
}

/* Better readability */
body[data-school="HGHS"] .page-hero-content h2,
body[data-school="HGHS"] .page-hero-content p,
body[data-school="HGHS"] .page-hero-content .hero-subtitle{
  color:#fff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}

.page-hero-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.page-hero-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 14px;
}
.page-hero-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #e3ecff;
  max-width: 720px;
  margin: 0 auto;
}

body[data-school="HPHS"] .page-hero{
  background:
    linear-gradient(
      rgba(15,70,50,0.55),
      rgba(15,70,50,0.60)
    ),
    url("./images/school-hero.webp")
    center center / cover no-repeat;
}

.about-section {
  padding-top: 3rem; /* prevents jump */
   max-width: 1200px;
  margin: auto;
  padding: 80px 24px;
}
.section-events::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./images/academics-watermark.png") center/380px no-repeat;
  opacity: 0.02;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 2;
}
.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: 30px;
  color: #0d47a1;
  font-weight: 700;
}

.section-title p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #555;
  font-size: 15.5px;
  line-height: 1.7;
}
.event-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 80px;
}

.event-row.reverse {
  direction: rtl;
}
.event-row.reverse > * {
  direction: ltr;
}

.event-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 18px;
  border-left: 5px solid #f9a825;
  padding-left: 14px;
  line-height: 1.3;
}

.event-text ul {
  padding-left: 0;
  list-style: none;
  font-size: 16.5px;
  color: #2f3b45;
  line-height: 1.8;
  max-width: 520px; 
}

.event-text ul li {
  margin-bottom: 14px;
  padding-left: 26px;
  position: relative;
}

.event-image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}
.event-text ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #f9a825;
  font-size: 24px;
  line-height: 1;
}
.event-text strong {
  color: #0d47a1;
  font-weight: 600;
}
.event-image img {
  max-height: 420px;
  object-fit: cover;
}
.event-row:hover .event-image img {
  transform: scale(1.015);
  transition: transform 0.3s ease;
}
/* VISITOR STATS SECTION */
.visitor-section {
  display: flex;
  justify-content: flex-end;
  padding: 24px 24px 0;
  background: transparent;
}

.visitor-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  width: 240px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  font-family: 'Inter', sans-serif;
  animation: fadeUp 0.4s ease;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visitor-card h4 {
  font-size: 15px;
  margin-bottom: 14px;
  color: #0D2C6C;
  display: flex;
  align-items: center;
  gap: 6px;
}

.visitor-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: #455a64;
}

.visitor-row strong {
  color: var(--accent);
  font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {
  .visitor-section {
    justify-content: center;
    padding: 24px 16px;
  }

  .visitor-card {
    width: 100%;
    max-width: 320px;
  }
}
.visitor-card:hover {
  opacity: 1;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}
html {
  scroll-behavior: smooth;
}
/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-link {
  text-decoration: none;
  font-weight: 500;
  color: #0D2C6C;
  cursor: pointer;
}
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;              /* 👈 brings arrow closer */
  cursor: pointer;
}
.chevron {
  font-size: 11px;
  margin-left: 2px;
  position: relative;
  top: -1px;            /* 👈 optical alignment */
}

/* Dropdown panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);  /* small gap below text */
  left: 0;                /* aligns under Who We Are */
  min-width: 200px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 2000;
}

/* Links inside dropdown */
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 14.5px;
  color: #0D2C6C;
  text-decoration: none;
  
}

.dropdown-menu a:hover {
  background: #E3F2FD;
  color: var(--primary);
}

/* Hover show (desktop) */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (max-width: 900px) {
    .brand-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown {
    width: 100%;
  }

  /* .dropdown-menu {
    position: static;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 12px;
  } */

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

.nav-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0D2C6C;
}
@media (max-width: 900px) {
  .brand-header {
    grid-template-columns: auto auto;
  }

  .brand-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    display: none;
    border-bottom: 1px solid #eee;
  }

  .brand-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}
/* ===== DESKTOP NAV GUARANTEE ===== */
@media (min-width: 901px) {
  .brand-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 32px;
    position: static;
    padding: 0;
    background: none;
  }

  .nav-toggle {
    display: none;
  }
}
.campus-hero {
  position: relative;
  height: 360px;
  background:
    linear-gradient(90deg, rgba(13,71,161,0.85), rgba(13,71,161,0.55)),
    url("images/campus-hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
}

.campus-hero-content {
  padding-left: 80px;
  color: #fff;
  position: relative;
  z-index: 2;
}

.campus-hero-content span {
  font-size: 14px;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.campus-hero-content h1 {
  font-size: 56px;
  margin-top: 10px;
  font-family: 'Playfair Display', serif;
}
.campus-intro {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.campus-intro h2 {
  color: #0D47A1;
  margin-bottom: 12px;
}

.campus-intro p {
  color: #555;
  font-size: 16px;
  line-height: 1.7;
}
.campus-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

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

.campus-row.reverse {
  direction: rtl;
}

.campus-row.reverse > * {
  direction: ltr;
}

.campus-text h3 {
  font-size: 24px;
  color: #0D47A1;
  margin-bottom: 14px;
}

.campus-text ul {
  padding-left: 18px;
  color: #455a64;
  line-height: 1.8;
}

.campus-row img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .campus-row {
    grid-template-columns: 1fr;
  }

  .campus-hero-content {
    padding-left: 24px;
  }

  .campus-hero-content h1 {
    font-size: 40px;
  }
}
/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

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

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}
.footer-visitor {
  margin-top: 24px;
  font-size: 13px;
  color: #78909c;
}
/* ===== FOOTER WAVE (AESTHETIC ONLY) ===== */
.footer-wave {
  position: relative;
  width: 100%;
  height: 100px;
 /* margin-bottom: -100px; *//* prevents gap */
  background: transparent;/*#f6f8fb;*/ /* matches footer tone */
  line-height: 0;
  z-index: 10;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}
@media (max-width: 768px) {
  .footer-wave svg {
    height: 60px;
  }
}


.footer-wave path {
  fill: #0D47A1; /* your primary blue */
}

.site-footer {
  position: relative;
  z-index: 1;
  /* background: #ECEFF1; */
 /*  background: #f4f6f8;   */
  /*padding: 1.5rem 2rem;*/
 /* background: linear-gradient(180deg, #f8fafc, #eef2f6);*/
  padding: 56px 64px 24px;  
  /* text-align: center; */
  /* color: var(--muted); */
   color: #37474f;
   font-weight: 500;
  padding-top: 140px;      /* 🔑 space for wave */

}
.site-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, #d0d7de, transparent);
  margin-bottom: 48px;
}
/* ===========================
   FINAL HERO FIX (OVERRIDE)
=========================== */
.hero {
  min-height: 520px;
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("images/school-hero.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px;
  overflow: hidden;
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 !important;   /* 🔑 kills rogue padding-left */
}

.hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #F9A825;
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
  white-space: normal;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 600;
}
.hero h2 span {
  display: block;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #e0e0e0;
  max-width: 760px;
  margin: 0 auto;
}
/* ===========================
   FOOTER WAVE – FINAL FIX
=========================== */
.footer-wave {
  padding: 0 !important;        /* 🔑 OVERRIDES section padding */
  margin: 0;
  position: relative;
  width: 100%;
  height: 120px;
  background: transparent;
  z-index: 5;
   overflow: hidden;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

.footer-wave path {
  fill: #0D47A1;   /* blue – visible */
}

/* Footer sits under wave */
.site-footer {
  position: relative;
  z-index: 1;
  /* padding-top: 140px; */
  padding: 56px 64px 24px;
}
/* ================= STAFF PAGE REVAMP ================= */
/* Tighter vertical rhythm for staff page */
#staff-container {
  display: flex;
  flex-direction: column;
  gap: 40px; /* controls spacing BETWEEN sections */
}
/* Remove excess section padding ONLY inside staff container */
#staff-container .staff-section {
  padding: 0 24px;        /* kills inherited section padding */
  margin: 0 auto;
  max-width: 1200px;
}
/* HERO */
.staff-hero {
  position: relative;
  height: 420px;
  background:
    linear-gradient(rgba(10,40,90,0.7), rgba(10,40,90,0.7)),
    url("images/1-3.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.staff-hero-content h1 {
  font-size: 52px;
}
.staff-hero-content span {
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* SECTIONS */
.staff-section {
  text-align: center;
  margin-bottom: 56px;
}
.staff-section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 28px;
  margin-top: 0;
  /* color: var(--primary); */
  color: #0D47A1;
}

/* GRID */
.staff-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.staff-grid.grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.staff-grid.center {
  justify-content: center;
  grid-template-columns: auto;/*280px;*/
}
.staff-grid.center .staff-card {
  max-width: 320px;
  margin: 0 auto;
}
.staff-intro,
.staff-commitment {
  padding-top: 32px;
  padding-bottom: 32px;
  max-width: 980px;
  margin: 64px auto 0;
}
.staff-commitment h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #000;
  margin-bottom: 14px;
}

.staff-commitment p {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #455a64;
}

/* CARD */
.staff-card {
  background: #fff;
  border-radius: 16px;
  padding:18px 20px 16px; /* top | sides | bottom */
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
  transition: all 0.35s ease;
}
/* .staff-card:hover {
  transform: translateY(-10px);
} */
.staff-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: #f3f6f9;
  padding: 4px;
}

/* MODAL */
.staff-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.staff-modal.open {
  display: flex;
}
.staff-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  max-width: 380px;
}
.staff-modal-content img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 768px) {

  .staff-card {
    padding: 16px 18px;
    border-radius: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
   .staff-modal-content {
    width: 90%;
    max-width: none;
    border-radius: 18px;
    animation: slideUp 0.25s ease;
  }

  .staff-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 12px;
  }

  .staff-card h4 {
    margin: 4px 0 2px;
    font-size: 15px;
  }

  .staff-card .role {
    margin: 0;
    font-size: 13px;
    color: #607d8b;
  }
}
/* Desktop hover only */
@media (hover: hover) and (pointer: fine) {
   #staff-container {
    gap: 40px;
  }
  .staff-section-title {
    font-size: 22px;
    margin-bottom: 18px;
  }
  .staff-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* 🔑 STAFF PAGE SECTION RESET */
.staff-page section {
  padding: 0 !important;
}
.staff-intro {
  text-align: center;
  max-width: 980px;
  margin: 0 auto 36px;
}

.staff-intro .page-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: #0D47A1;
  margin-bottom: 16px;
}

.staff-intro .page-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #455a64;
}
/* 🔒 FORCE NAV FONT CONSISTENCY ACROSS ALL PAGES */
/* .brand-header,
.brand-nav,
.brand-nav a,
.dropdown-toggle,
.chevron {
  font-family: 'Poppins', sans-serif !important;
  letter-spacing: 0.3px;
} */
 /* ================================
   SIDE TIMELINE – OUR HISTORY
================================ */

.history-timeline {
  background: #f9fbff;
  padding: 80px 20px;
}

.timeline-container {
  max-width: 1100px;
  margin: auto;
}

.timeline-title {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  text-align: center;
  color: #0a2a66;
  margin-bottom: 10px;
}

.timeline-subtitle {
  text-align: center;
  color: #555;
  max-width: 700px;
  margin: 0 auto 60px;
  font-family: "Inter", sans-serif;
}

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(#0a4dbf, #f4b41a);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
}

.timeline-year {
  position: absolute;
  top: 20px;
  width: 80px;
  height: 80px;
  background: #f4b41a;
  color: #0a2a66;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  z-index: 2;
}

.timeline-item.left .timeline-year {
  right: -40px;
}

.timeline-item.right .timeline-year {
  left: -40px;
}

.timeline-content {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
  margin-bottom: 8px;
  font-family: "Playfair Display", serif;
  color: #0a2a66;
}

.timeline-content p {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* ================================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
    left: 0 !important;
    margin-bottom: 40px;
  }

  .timeline-year {
    left: -5px !important;
    right: auto;
  }
  .timeline-image img {
    height: 140px;
  }

  .timeline-item::before {
    left: 14px !important;
    right: auto;
  }
}
/* Timeline connection dots */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 48px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border: 3px solid #f4b41a;
  border-radius: 50%;
  z-index: 3;
  animation: pulseDot 2.5s infinite;
}

.timeline-item.left::before {
  right: -6px;
}

.timeline-item.right::before {
  left: -6px;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(244,180,26,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(244,180,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,180,26,0); }
}
.timeline-year {
  transition: all 0.35s ease;
}

.timeline-item:hover .timeline-year {
  transform: scale(1.08);
  box-shadow:
    0 0 0 6px rgba(244,180,26,0.25),
    0 18px 35px rgba(244,180,26,0.45);
}
.timeline-image {
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 10px;
}

.timeline-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.timeline-content:hover .timeline-image img {
  transform: scale(1.04);
}
/* DEBUG: force reveal visible */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}
/* ===== ACCORDION TIMELINE ===== */

.timeline-accordion {
  max-width: 900px;
  margin: auto;
  position: relative;
  border-left: 3px solid #e3eaf5;
}

.timeline-row {
  position: relative;
  padding: 18px 0 18px 40px;
  cursor: pointer;
}

.timeline-marker {
  position: absolute;
  left: -22px;
  top: 18px;
  width: 44px;
  height: 44px;
  background: #f9a825;
  color: #0d47a1;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-panel {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.timeline-panel img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin: 12px 0;
}

.timeline-row.active .timeline-panel {
  max-height: 500px;
}

.timeline-row h4 {
  color: #0d47a1;
}
/* ===== TRUST METRICS STRIP ===== */

.trust-metrics {
  background: #ffffff;
  padding: 40px 20px;
  border-bottom: 1px solid #eef2f6;
}

.metrics-container {
  max-width: 1000px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.metric {
  background: #f9fbff;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.metric:hover {
  transform: translateY(-6px);
}

.metric-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #0D47A1;
  margin-bottom: 6px;
}

.metric-label {
  font-size: 14.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #607d8b;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
  .metrics-container {
    grid-template-columns: 1fr;
  }
}
/* ==============================
   GOVERNANCE – CLEAN LAYOUT FIX
============================== */

.governance-section {
  background: #ffffff;
}

.governance-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* IMAGE slightly smaller */
  gap: 64px;
  align-items: center;
}

/* IMAGE */
.governance-image img {
  width: 100%;
  max-width: 420px;          /* 🔑 SHRINK IMAGE */
  max-height:380px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  display: block;
}

/* CONTENT */
.governance-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #0D47A1;
  margin-bottom: 18px;
}

.governance-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #455a64;
  margin-bottom: 18px;
}

.governance-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 18px;
}

.governance-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #2f3b45;
}

.governance-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #F9A825;
  font-size: 22px;
  line-height: 1;
}

.governance-note {
  font-size: 15.5px;
  color: #607d8b;
  margin-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .governance-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }

  .governance-image img {
    max-width: 100%;
    margin: auto;
  }
}
/* ==============================
   COMMITTEE – MODERN CARDS
============================== */

.committee-section {
  background: #fff;
  text-align: center;
}

.committee-container {
  max-width: 1200px;
  margin: auto;
}

.committee-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #0D47A1;
  margin-bottom: 48px;
}

.committee-school h3 {
  font-size: 22px;
  color: #0D2C6C;
  margin-bottom: 24px;
  border-left: 5px solid #F9A825;
  padding-left: 14px;
}

/* GRID */
.committee-grid {
  display: flex;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 26px;
  align-items: stretch;
  justify-content: center;
  margin-top: 30px;
}

/* CARD */
.committee-card {
  background: #ffffff;
  border-radius: 18px;
  /* padding: 20px; */
  padding: 26px 28px;
  box-shadow: 0 16px 36px rgba(0,60,120,0.10);
  /* transition: all 0.3s ease; */
  border-top: 4px solid #0d47a1;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
    max-width: 650px;
    width:100%;
}

.committee-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 65px rgba(13,71,161,0.18);
  border-top-color: #ff9800;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f5f9ff 100%
  );
}

/* ROLE */
.committee-card .role {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ff9800;
  margin-bottom: 8px;
}

.committee-card h4 {
  font-size: 16px;
  color: #263238;
  margin: 0;
}

/* HIGHLIGHT ROLES */
.committee-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(13,71,161,0.06),
    rgba(249,168,37,0.08)
  );
  border-left: 4px solid #F9A825;
}
.committee-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.committee-card li {
  display: grid;
  grid-template-columns: 160px 1fr; /* role | name */
  column-gap: 14px;
  padding: 10px 0;                  /* vertical breathing */
  border-bottom: 1px dashed #e6ebf2;
  font-size: 15.5px;
  line-height: 1.6;
}

.committee-card li:last-child {
  border-bottom: none;
}
.committee-card h3 {
  font-size: 22px;
  color: #0d47a1;
  margin-bottom: 26px;   /* 👈 key spacing fix */
  line-height: 1.3;
  text-align: center;
}
/* COMMUNITY GRID */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.community-card {
  background: #fff;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: all 0.35s ease;
}

.community-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #0D2C6C;
}

.community-card p {
  font-size: 14.5px;
  color: #607d8b;
  line-height: 1.5;
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13,71,161,0.25);
}

/* IMAGE — SAME SCALE AS GOVERNANCE */
.community-image {
  width: 100%;
max-width: 420px;          /* 🔑 SHRINK IMAGE */
  max-height:380px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.14);
}

/* MOBILE */
@media (max-width: 900px) {
  .community-grid {
    grid-template-columns: 1fr;
  }
}
/* ==============================
   GOVERNANCE – CLEAN LAYOUT FIX
============================== */

.legacy-section {
  background: #ffffff;
}

.legacy-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* IMAGE slightly smaller */
  gap: 64px;
  align-items: center;
}

/* IMAGE */
.legacy-image img {
  width: 100%;
  max-width: 420px;          /* 🔑 SHRINK IMAGE */
  max-height:380px;
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
  display: block;
}

/* CONTENT */
.legacy-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #0D47A1;
  margin-bottom: 18px;
}

.legacy-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #455a64;
  margin-bottom: 18px;
}

.legacy-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 18px;
}

.legacy-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #2f3b45;
}

.legacy-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #F9A825;
  font-size: 22px;
  line-height: 1;
}

.legacy-note {
  font-size: 15.5px;
  color: #607d8b;
  margin-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .legacy-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: left;
  }

  .legacy-image img {
    max-width: 100%;
    margin: auto;
  }
}
/* PRINCIPAL'S DESK */
.principal-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.principal-desk-card {
  max-width: 880px;
  margin: auto;
  background: #ffffff;
  padding: 42px 48px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  position: relative;
}
/* CONTENT CARD */
.principal-content {
  background: #ffffff;
  padding: 42px;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}
.desk-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.principal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #0D47A1;
  margin-bottom: 18px;
}

.principal-desk-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #0D47A1;
  margin-bottom: 24px;
}

.desk-text {
  font-family: 'Poppins', sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: #455a64;
  margin-bottom: 16px;
}

.desk-signature {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed #e0e6eb;
  display:block;
}

.desk-signature strong {
  display: block;
  font-size: 17px;
  color: #0D2C6C;
}

.desk-signature span {
  font-size: 14px;
  color: #607d8b;
}

/* Subtle hover polish */
.principal-desk-card:hover {
  transform: translateY(-4px);
  transition: all 0.3s ease;
  box-shadow: 0 22px 50px rgba(13,71,161,0.15);
}
/* IMAGE CARD */
.principal-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.15);
  transition: transform 0.35s ease;
}

.principal-image img:hover {
  transform: scale(1.03);
}
/* MOBILE */
@media (max-width: 768px) {
  .principal-desk-card {
    padding: 32px 22px;
  }

  .principal-desk-card h2 {
    font-size: 28px;
  }
}
/* ===============================
   INSTITUTION NAVIGATION CARDS
=============================== */

.institution-grid {
  margin-top: 32px;
}

.institution-card {
  display: block;
  background: #ffffff;
  padding: 28px 30px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  transition: 
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* ❌ remove jump */
.institution-card:hover {
  transform: none;
}

/* ✅ highlight instead */
.institution-card:hover {
  background: linear-gradient(
    135deg,
    rgba(13,71,161,0.06),
    rgba(249,168,37,0.08)
  );
  border-color: #F9A825;
  box-shadow: 0 20px 45px rgba(13,71,161,0.18);
}

/* Title */
.institution-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #0D47A1;
  margin-bottom: 12px;
}

/* Text */
.institution-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #455a64;
  margin-bottom: 10px;
}

/* CTA hint (optional but nice) */
.institution-card::after {
  content: "View School →";
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0D47A1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.institution-card:hover::after {
  opacity: 1;
}
/* ==============================
   STAFF ORG TREE
============================== */

.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.org-row {
  max-width: 900px;
}

.org-card {
  background: #ffffff;
  padding: 18px 22px;
  min-width: 220px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.org-card.small {
  min-width: 260px;
}

.org-card:hover {
  background: linear-gradient(
    135deg,
    rgba(13,71,161,0.06),
    rgba(249,168,37,0.08)
  );
  box-shadow: 0 18px 40px rgba(13,71,161,0.22);
  transform: translateY(-4px); /* subtle, no jump */
}

.org-card.highlight {
  border-top: 4px solid #0D47A1;
  background: #f9fbff;
}

.org-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #f9a825;
  margin-bottom: 6px;
}

.org-card h4 {
  font-size: 16px;
  color: #0D2C6C;
  margin: 0;
}

/* CONNECTORS */
.org-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(#0D47A1, #F9A825);
  margin: 8px 0;
}

/* MOBILE */
@media (max-width: 768px) {
  .org-row {
    flex-direction: column;
    align-items: center;
  }

  .org-card,
  .org-card.small {
    width: 100%;
    max-width: 320px;
  }
}
.admin-body {
  background: var(--bg-light);
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

.admin-container {
  max-width: 920px;
  margin: 20px auto;
  padding: 0 20px;
}

.admin-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  margin-bottom: 6px;
}

.admin-header p {
  color: var(--text-muted);
}

.admin-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.admin-card h3 {
  margin-bottom: 20px;
  color: var(--primary-blue);
}

.admin-form .form-row {
  margin-bottom: 16px;
}

.admin-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-primary {
  background: #2b6cb0;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  opacity: 1;           /* 🔥 important */
  visibility: visible;  /* 🔥 important */
}

.btn-primary:hover {
  background: #163cb3;
}

.form-msg {
  margin-top: 12px;
  font-size: 14px;
}
.committee-list {
  list-style: none;
  padding: 0;
}

.committee-item {
  background: #f9fafb;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.committee-item strong {
  color: var(--primary-blue);
}

.committee-actions button {
  margin-left: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  top :0;
  left:0;
  width:100%;
  height:100%;
   justify-content: center;
  align-items: center;
   z-index: 9999;   /* ✅ ensures it's above everything */
}

.modal-content {
  background: #fff;
  max-width: 420px;
  margin: 10% auto;
  padding: 24px;
  border-radius: 14px;
    z-index: 10000;  /* ✅ above modal overlay */
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}
.admin-banner {
  background: linear-gradient(
      rgba(31,79,216,0.85),
      rgba(31,79,216,0.85)
    ),
    url("images/img-2.webp") center / cover no-repeat;
  padding: 64px 20px;
  color: #fff;
}

.admin-banner-content {
  max-width: 920px;
  margin: 0 auto;
}

.admin-banner h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  margin-bottom: 8px;
}

.admin-banner p {
  font-size: 16px;
  opacity: 0.95;
}

.admin-tabs {
  display: inline-flex;
  background: #eef2ff;
  padding: 6px;
  border-radius: 999px;
  gap: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  color: #374151;
}

.tab-btn.active {
  background: white;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-card {
  background: #fff;
  border-radius: 14px;
  width: 520px;
  max-width: 95%;
  padding: 20px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th,
.modern-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}
.committee-item.inactive {
  opacity: 0.5;
  background: #f3f3f3;
  pointer-events: none;
}

.inactive-label {
  font-size: 12px;
  color: #888;
  font-style: italic;
}
.admission-card {
  padding: 24px;
}

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

.admission-form label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

.admission-form input,
.admission-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d0d7e2;
  font-family: "Poppins", sans-serif;
}

.admission-form input:focus,
.admission-form select:focus {
  outline: none;
  border-color: #3b6df0;
  box-shadow: 0 0 0 2px rgba(59,109,240,.15);
}

.divider {
  margin: 24px 0;
  border-top: 1px dashed #e0e6f1;
  height: 1px;
  background: #eee;
}

.section-title {
  margin-bottom: 12px;
  color: #2f3b52;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-msg {
  font-size: 14px;
}
.school-container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.school-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0d3b66, #144c8b);
  color: white;
  border-radius: 10px;
}

.school-section {
  margin-top: 40px;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.school-section h2 {
  color: #0d3b66;
  margin-bottom: 15px;
  font-weight: 600;
}
/* ==============================
   ACADEMICS FEATURE LAYOUT (NEW)
============================== */

.feature-row {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 70px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

/* IMAGE CONTAINER */
.feature-image {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
}

/* IMAGE */
.feature-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* HOVER ZOOM EFFECT */
.feature-image:hover img {
  transform: scale(1.08);
}

/* TEXT CONTENT */
.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 24px;
  color: #0D47A1;
  margin-bottom: 12px;
}

.feature-content p {
  font-size: 15.5px;
  color: #555;
  line-height: 1.7;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .feature-row {
    flex-direction: column;
    gap: 24px;
  }

  .feature-row.reverse {
    flex-direction: column;
  }

  .feature-image img {
    height: 220px;
  }
}
/* ==============================
   ACHIEVEMENTS HIGHLIGHT CARDS
============================== */

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

.highlight-card {
  background: linear-gradient(135deg, #f9fbfd, #eef3f9);
  padding: 26px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.highlight-card h3 {
  font-size: 18px;
  color: #0d47a1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.highlight-card p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.6;
}
.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-card span {
  position: absolute;
  bottom: 10px;
  left: 12px;
  color: white;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 4px 10px;
  border-radius: 6px;
}
/* ===== VISITOR CARD ===== */
/* .visitor-section {
  display: flex;
  justify-content: flex-end;
  padding: 40px;
}

.visitor-card {
  background: linear-gradient(135deg, #0d47a1, #1976d2);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  display: flex;
  gap: 40px;
  align-items: center; */
 /*  max-width: 90%;        /* 🔥 allow expansion */
  /*flex-wrap: wrap;   */     /* 🔥 prevents cutting */
/*}*/

/* .visitor-item {
  display: flex;
  align-items: center;
  gap: 12px; */
  /* flex: 1;       */         /* 🔥 equal spacing */
  /* min-width: 140px;   */    /* 🔥 responsive */
/*}*/

/* .visitor-icon {
  font-size: 22px;
}

.visitor-item p {
  margin: 0;
  font-size: 12px;
  opacity: 0.85;
}

.visitor-item h3 {
  margin: 2px 0 0;
  font-size: 24px;
  font-weight: 600;
}

.visitor-item h4 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 500; */
 /*  white-space: normal;   */ /* 🔥 prevents breaking */
 /*  overflow: hidden;
  max-width: 140px;
} */
 /* ===== FLOATING VISITOR WIDGET ===== */
.visitor-section {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* Compact sleek card */
.visitor-card {
  background: rgba(255, 255, 255, 0.85);   /* glass feel */
  backdrop-filter: blur(10px);             /* modern effect */
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(13, 71, 161, 0.15);
  color: #0d47a1;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(13, 71, 161, 0.12);

  display: flex;
  flex-direction: column;
  gap: 10px;

  width: 200px;  /* 🔥 fixed compact size */
  transition: all 0.3s ease;
}

/* Hover expand (premium feel) */
.visitor-card:hover {
  box-shadow: 0 12px 28px rgba(13, 71, 161, 0.2);
  transform: translateY(-4px) scale(1.02);
}

/* Each row */
.visitor-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Icons */
.visitor-icon {
  font-size: 16px;
  opacity: 0.85;
}

/* Labels */
.visitor-item p {
  margin: 0;
  font-size: 11px;
  opacity: 0.8;
   color: #666;
}

/* Values */
.visitor-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0d47a1;
}

.visitor-item h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #333;


  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Header (clickable bar) */
.visitor-header {
  font-size: 13px;
  font-weight: 600;
  color: #0d47a1;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

/* Optional: smooth collapse */
#visitorContent {
  transition: all 0.3s ease;
}
.community-wrapper {
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
}

.community-wrapper ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.community-wrapper li {
  background: #f5f9ff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 500;
}
.highlight-line {
  margin: 15px auto;
  padding: 10px 16px;
  max-width: 500px;
  background: #f8fafc;
  border-left: 4px solid #f59e0b; /* gold accent */
  border-radius: 8px;
  font-weight: 500;
  color: #1e3a8a;
  text-align: center;
  font-size: 14px;
}
.academic-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.academic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.admin-login-btn {
  background: #1f4e8c;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 10px;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  font-size: 14px;
}

.form-grid textarea {
  grid-column: span 2;
}

#previewBox {
  background: #f9fbfd;
  border-left: 4px solid var(--primary);
}
/* =========================================
 PREMIUM TAMIL WISDOM STRIP
========================================= */
/* =========================================
 PREMIUM HERITAGE WISDOM STRIP
========================================= */

.wisdom-strip {

  position: relative;
  z-index: 50;

  width: 100%;
  overflow: hidden;

  padding: 18px 24px;

  background:
    linear-gradient(
      90deg,
      #071a3a 0%,
      #0d2f6e 22%,
      #17479d 50%,
      #0d2f6e 78%,
      #071a3a 100%
    );

  border-top:
    1px solid rgba(255,255,255,0.08);

  border-bottom:
    1px solid rgba(255,215,120,0.25);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

/* GOLD LIGHT SWEEP */

.wisdom-strip::before {

  content: "";

  position: absolute;
  top: 0;
  left: -20%;

  width: 20%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,215,120,0.18),
      transparent
    );

  transform: skewX(-25deg);

  animation: wisdomSweep 7s linear infinite;
}

/* SOFT GLOW */

.wisdom-strip::after {

  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(255,215,120,0.08),
      transparent 70%
    );

  pointer-events: none;
}

.wisdom-container {

  position: relative;
  z-index: 2;

  max-width: 1400px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 18px;
}

/* ICON */

.wisdom-icon {

  color: #ffd66b;

  font-size: 1.15rem;

  text-shadow:
    0 0 12px rgba(255,215,120,0.7);

  animation: glowPulse 2.5s ease infinite;
}

/* QUOTES */

.wisdom-slider {

  position: relative;

  min-height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.wisdom-quote {

  position: absolute;

  opacity: 0;

  transform:
    translateY(12px)
    scale(0.98);

  transition:
    opacity 1s ease,
    transform 1s ease;

  text-align: center;
  white-space: nowrap;
}

.wisdom-quote.active {

  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

/* MAIN TAMIL TEXT */

.quote-text {

  font-family:
    "Noto Serif Tamil",
    serif;

  font-size: 1.18rem;

  font-weight: 600;

  letter-spacing: 0.4px;

  color: #ffe7a8;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.35),
    0 0 14px rgba(255,215,120,0.15);
}

/* AUTHOR */

.quote-author {

  margin-left: 12px;

  color: rgba(255,255,255,0.88);

  font-size: 1rem;

  font-style: italic;
}

/* HERO SEPARATION */

.hero {

  margin-top: 0;

  position: relative;
}

.hero::before {

  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 120px;

  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.28),
      transparent
    );

  z-index: 1;
}

/* ANIMATIONS */

@keyframes wisdomSweep {

  0% {
    left: -25%;
  }

  100% {
    left: 125%;
  }
}

@keyframes glowPulse {

  0% {
    transform: scale(1);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.75;
  }
}

/* MOBILE */

@media (max-width: 768px) {

  .wisdom-strip {
    padding: 14px 12px;
  }

  .wisdom-slider {
    min-height: 56px;
  }

  .wisdom-quote {

    width: 100%;

    white-space: normal;
  }

  .quote-text {

    font-size: 0.9rem;

    line-height: 1.5;
  }

  .quote-author {

    display: block;

    margin-top: 6px;
    margin-left: 0;

    font-size: 0.78rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   WISDOM STRIP ADDITIONS
   Paste these rules at the very END of theme.css.
   They extend the existing .wisdom-strip rules already in theme.css
   without touching or replacing anything above.
═══════════════════════════════════════════════════════════════ */

/* ── English translation inside quote-author ── */
.quote-author em {
  font-size: 0.82em;
  opacity: 0.78;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Right-side glow icon (mirrors left .wisdom-icon) ── */
.wisdom-icon-right {
  color: #ffd66b;
  font-size: 1.15rem;
  text-shadow: 0 0 12px rgba(255, 215, 120, 0.7);
  animation: glowPulse 2.5s ease infinite;
  animation-delay: 1.25s;   /* offset from left icon for alternating feel */
  flex-shrink: 0;
}

/* ── Dot navigation row ── */
.wisdom-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  position: relative;
  z-index: 3;
}

/* ── Individual dot ── */
.wisdom-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 215, 120, 0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.4s ease, transform 0.3s ease;
}

.wisdom-dot:hover {
  background: rgba(255, 215, 120, 0.55);
}

.wisdom-dot.active {
  background: #ffd66b;
  transform: scale(1.35);
}

/* ── Mobile: stack author + translation on separate lines ── */
@media (max-width: 768px) {
  .quote-author {
    display: block;
    margin-top: 5px;
    margin-left: 0;
    font-size: 0.78rem;
  }

  .quote-author em {
    display: block;
    margin-top: 3px;
    font-size: 0.75em;
  }

  .wisdom-icon-right {
    display: none;   /* hide right icon on mobile to save space */
  }
}

/* ── Pause strip text cursor on hover (signals it's interactive) ── */
.wisdom-strip:hover .wisdom-quote {
  cursor: default;
}
/* ══ EMINENT PERSONALITIES ══ */
/* ══ EMINENT PERSONALITIES ══ */
.eminent-section {
  padding: 80px 24px;
  background: #fffdf7;
  position: relative;
}
.eminent-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #c8960c 20%, #f0c040 50%, #c8960c 80%, transparent 100%);
}
.eminent-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e0d0a0 30%, #D4A017 50%, #e0d0a0 70%, transparent 100%);
}

.eminent-header { text-align: center; margin-bottom: 56px; }

.eminent-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFF8E1;
  border: 1px solid #e8c84a;
  color: #7B5800;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 18px;
}
.eminent-tag .star { color: #D4A017; font-size: 11px; }

.eminent-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  letter-spacing: -0.5px;
}
.eminent-header p { font-size: 14.5px; color: #90a4ae; }

.eminent-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.orn-line {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, #D4A017);
}
.orn-line.r { background: linear-gradient(90deg, #D4A017, transparent); }
.orn-center { display: flex; gap: 5px; align-items: center; }
.orn-dot {
  width: 4px; height: 4px;
  background: #D4A017;
  transform: rotate(45deg);
}
.orn-dot.big { width: 6px; height: 6px; }

.eminent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
}

.eminent-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #ede5c8;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.eminent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(27,58,107,0.10);
}
.eminent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8960c, #f5d060, #c8960c);
}

.eminent-card-top {
  padding: 30px 24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  background: #faf6ec;
  position: relative;
}
.eminent-card-top::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
}

.eminent-frame-wrap { position: relative; z-index: 1; }

.eminent-img-wrap {
  width: 116px;
  height: 136px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border: 2.5px solid #D4A017;
  border-bottom: none;
}
.eminent-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* gold corner brackets */
.ep-corner {
  position: absolute;
  width: 10px; height: 10px;
  border-color: #D4A017;
  border-style: solid;
}
.ep-corner.tl { top: -4px; left: -4px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.ep-corner.tr { top: -4px; right: -4px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }

.eminent-info { padding: 16px 22px 26px; }

.eminent-stars { display: flex; gap: 3px; margin-bottom: 10px; color: #D4A017; font-size: 11px; letter-spacing: 1px; }

.eminent-name {
  font-size: 19px;
  font-weight: 700;
  color: #1B3A6B;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  line-height: 1.3;
}

.eminent-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.eminent-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 30px;
  letter-spacing: 0.2px;
}
.eminent-badge.role  { color: #7B5800; background: #FFF8E1; border: 1px solid #e8c84a; }
.eminent-badge.award { color: #0F6E56; background: #E8F8F2; border: 1px solid #7dd4b8; }

.eminent-rule {
  width: 28px; height: 2.5px;
  background: linear-gradient(90deg, #D4A017, #f5d060);
  border-radius: 2px;
  margin-bottom: 14px;
}

.eminent-desc { font-size: 13.5px; color: #6b7f8a; line-height: 1.75; }

.eminent-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f2ead6;
}
.eminent-era { font-size: 10.5px; color: #b8a870; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
.eminent-medal {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #FFF8E1;
  border: 1.5px solid #e8c84a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.eminent-bottom { text-align: center; margin-top: 52px; }
.eminent-bottom-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eminent-bottom-rule-line { width: 72px; height: 1px; background: linear-gradient(90deg, transparent, #D4A017); }
.eminent-bottom-rule-line.r { background: linear-gradient(90deg, #D4A017, transparent); }
.eminent-bottom-rule-diamond { width: 6px; height: 6px; background: #D4A017; transform: rotate(45deg); border-radius: 1px; }
.eminent-bottom-text { font-size: 12px; color: #c0ab78; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   ABOUTUS ADDITIONS — paste at the end of theme.css
   (or link as a separate <link rel="stylesheet" href="aboutus.css">)
   ============================================================ */

/* ─── SCROLL REVEAL — override the debug rule in theme.css ─── */
/* Remove or comment out this rule from theme.css:
      .reveal { opacity: 1 !important; transform: none !important; }
   Then this takes effect: */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── COMMUNITY WRAPPER RESET ─── */
.community-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}
.community-wrapper ul {
  /* kept for backward compat, hidden when JS renders stat cards */
  display: none;
}
.community-header {
  margin-bottom: 48px;
}
.community-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #0D47A1;
  margin-bottom: 10px;
}
.community-header .section-intro {
  color: #607d8b;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── STATS GRID ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 8px;
}

/* ─── STAT CARD ─── */
.stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 24px 28px;
  box-shadow: 0 10px 32px rgba(13, 71, 161, 0.08);
  border-top: 4px solid #0D47A1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(13, 71, 161, 0.16);
  border-top-color: #F9A825;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #EEF4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: background 0.3s ease;
}
.stat-card:hover .stat-icon {
  background: #FFF3E0;
}
.stat-icon i {
  font-size: 22px;
  color: #0D47A1;
  transition: color 0.3s ease;
}
.stat-card:hover .stat-icon i {
  color: #F9A825;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 700;
  color: #0D47A1;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #607d8b;
}

/* ─── TIMELINE PANEL IMPROVEMENTS ─── */
.timeline-panel-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.timeline-panel h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #0D47A1;
  margin-bottom: 6px;
}

.timeline-panel p {
  font-size: 14.5px;
  color: #546e7a;
  line-height: 1.65;
  margin: 0;
}

/* Show panel content by default (remove accordion collapse for better UX) */
.timeline-panel {
  max-height: none !important;  /* override accordion hidden state */
  overflow: visible !important;
  padding: 20px 22px;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .stat-number {
    font-size: 36px;
  }
  .stat-card {
    padding: 26px 16px 20px;
  }
}
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
/* Communications save button — match site's primary button style */
#save-communication-btn,
.comm-save-btn {
  background: #1B3A6B;          /* match your site's navy primary */
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#save-communication-btn:hover,
.comm-save-btn:hover {
  background: #F9A825;           /* gold accent on hover */
  color: #1B3A6B;
}

#save-communication-btn:focus,
.comm-save-btn:focus {
  outline: 2px solid #F9A825;
  outline-offset: 2px;
  background: #142d54;
  color: #fff;
}
/* ═══════════════════════════════════════
   NOTICE BAR — Scrolling Marquee (Option 3)
   Used in: index.html, aboutus.html
═══════════════════════════════════════ */
.notice-bar-opt3 {
  display: flex;
  align-items: center;
  background: #1B3A6B;
  border-bottom: 3px solid #D4A017;
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 10;
}

.notice-bar-label {
  background: #D4A017;
  color: #1B3A6B;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 20px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
}

.notice-bar-scroll {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.notice-bar-track {
  display: flex;
  white-space: nowrap;
  animation: noticeScroll 22s linear infinite;
  will-change: transform;
  align-items: center;
}

.notice-bar-track span {
  font-size: 15px;
  color: #f5edda;
  padding: 11px 32px 11px 0;
  display: inline-flex;
  align-items: center;
}

.notice-bar-opt3:hover .notice-bar-track {
  animation-play-state: paused;
}

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

@media (max-width: 600px) {
  .notice-bar-label {
    font-size: 11px;
    padding: 9px 14px;
  }
  .notice-bar-track span {
    font-size: 13px;
  }
}
/* ── Achievements section ── */
.ach-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.ach-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #D4A017; display: block; margin-bottom: 0.3rem; }
.ach-link { font-size: 13px; color: #1a3a6b; border: 0.5px solid #1a3a6b; border-radius: 20px; padding: 6px 16px; text-decoration: none; }
.ach-link:hover { background: #1a3a6b; color: #fff; }
.ach-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 1.75rem; }
.ach-stat { background: #f4f7fc; border-radius: 12px; padding: 1rem; text-align: center; }
.ach-stat-num { font-size: 22px; font-weight: 500; color: #1a3a6b; display: block; }
.ach-stat-label { font-size: 12px; color: #666; margin-top: 4px; display: block; }
.ach-subtitle { font-size: 13px; color: #888; margin-bottom: 0.75rem; font-style: italic; }
table.ach-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ach-table thead tr { background: #1a3a6b; }
.ach-table thead th { color: #fff; padding: 10px 16px; text-align: left; font-weight: 500; font-size: 13px; }
.ach-table thead th:first-child { border-radius: 8px 0 0 0; }
.ach-table thead th:last-child { border-radius: 0 8px 0 0; }
.ach-table tbody tr { border-bottom: 0.5px solid #eee; }
.ach-table tbody tr:hover { background: #f4f7fc; }
.ach-table tbody td { padding: 10px 16px; color: #333; }
.badge-pass { background: #e6f4ea; color: #2d7a3a; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 500; }
.badge-near { background: #fff8e1; color: #b88a10; font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 500; }
.top-score { font-weight: 500; color: #1a3a6b; }

.sec-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #D4A017; display: block; margin-bottom: 0.3rem; }
.sec-title { font-size: 20px; font-weight: 500; color: #1a3a6b; margin: 0 0 0.75rem; }
.sec-divider { width: 40px; height: 3px; background: #D4A017; border-radius: 2px; margin-bottom: 2rem; }
.sec-sep { border: none; border-top: 0.5px solid #e8edf5; margin: 2.5rem 0; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.stat-box { background: #f0f4fa; border-radius: 12px; padding: 1.25rem 1rem; text-align: center; }
.stat-box .s-num { font-size: 26px; font-weight: 500; color: #1a3a6b; display: block; }
.stat-box .s-label { font-size: 12px; color: #666; margin-top: 4px; display: block; line-height: 1.4; }

.scholar-card { background: #f0f4fa; border-radius: 14px; padding: 1.75rem; display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 2rem; border: 0.5px solid #d0dbee; }
.scholar-icon { width: 48px; height: 48px; background: #1a3a6b; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scholar-icon i { color: #fff; font-size: 20px; }
.scholar-card h4 { margin: 0 0 0.4rem; color: #1a3a6b; font-size: 16px; font-weight: 500; }
.scholar-card p  { margin: 0; font-size: 14px; color: #555; line-height: 1.7; }

.tbl-wrap { border-radius: 12px; overflow: hidden; border: 0.5px solid #e0e8f5; margin-bottom: 2rem; }
table.sslc { width: 100%; border-collapse: collapse; font-size: 14px; }
.sslc thead tr { background: #1a3a6b; }
.sslc thead th { color: #fff; padding: 12px 20px; text-align: left; font-weight: 500; font-size: 13px; }
.sslc tbody tr { border-bottom: 0.5px solid #eef2f8; transition: background 0.15s; }
.sslc tbody tr:last-child { border-bottom: none; }
.sslc tbody tr:hover { background: #f4f7fc; }
.sslc tbody td { padding: 12px 20px; color: #333; vertical-align: middle; }
.sslc tbody td:first-child { font-weight: 500; color: #1a3a6b; }
.pill { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 20px; font-weight: 500; }
.pill-green { background: #e6f4ea; color: #2d7a3a; }
.pill-amber { background: #fff8e1; color: #b88a10; }
.top-mark { font-weight: 500; color: #1a3a6b; }
.bar-wrap { display: flex; align-items: center; gap: 8px; }
.bar-bg { flex: 1; height: 6px; background: #e8edf5; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: #1a3a6b; }

.cocurr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.cocurr-card { background: #fff; border: 0.5px solid #e0e8f5; border-radius: 12px; padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s; }
.cocurr-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,58,107,0.1); }
.cc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.cc-icon i { font-size: 18px; }
.cc-blue { background: #e6edf7; } .cc-blue i { color: #1a3a6b; }
.cc-gold  { background: #fdf3dc; } .cc-gold  i { color: #D4A017; }
.cc-teal  { background: #e1f5ee; } .cc-teal  i { color: #0f6e56; }
.cc-rose  { background: #fdedf2; } .cc-rose  i { color: #c0395a; }
.cocurr-card h4 { margin: 0 0 0.4rem; font-size: 14px; font-weight: 500; color: #1a3a6b; }
.cocurr-card p  { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }


/* ── Featured Co-Curricular Cards ── */
.cocurr-featured {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cocurr-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15) !important;
}

/* Sports — navy/gold theme */
.cocurr-sports {
  background: linear-gradient(145deg, #0D2C6C, #1565C0) !important;
  border-top: 4px solid #F9A825 !important;
}
.cocurr-sports h4 { color: #fff !important; font-size: 17px; }
.cocurr-sports p  { color: rgba(255,255,255,0.80) !important; }

/* Teachers — forest green theme */
.cocurr-teachers {
  background: linear-gradient(145deg, #1B5E20, #2E7D32) !important;
  border-top: 4px solid #A5D6A7 !important;
}
.cocurr-teachers h4 { color: #fff !important; font-size: 17px; }
.cocurr-teachers p  { color: rgba(255,255,255,0.80) !important; }

/* Top row: icon + badge */
.cocurr-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 12px;
}

/* Override icon background for dark cards */
.cocurr-sports .cc-icon  { background: rgba(249,168,37,0.18) !important; color: #F9A825 !important; }
.cocurr-teachers .cc-icon { background: rgba(165,214,167,0.20) !important; color: #A5D6A7 !important; }
.cocurr-featured .cc-icon { width: 48px; height: 48px; border-radius: 12px; font-size: 20px; display:flex; align-items:center; justify-content:center; }

/* Badge pill */
.cocurr-feat-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(249,168,37,0.20);
  color: #F9A825;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(249,168,37,0.35);
}
.cocurr-feat-badge--green {
  background: rgba(165,214,167,0.20);
  color: #A5D6A7;
  border-color: rgba(165,214,167,0.35);
}

/* Text padding */
.cocurr-featured h4,
.cocurr-featured p {
  padding: 0 20px;
  margin-bottom: 8px;
}

/* Tag pills row */
.cocurr-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px;
}
.cocurr-highlights span {
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.20);
}

/* CTA bar */
.cocurr-cta {
  margin: 12px 20px 20px;
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: #F9A825;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.cocurr-cta--green { color: #A5D6A7; }

/* shimmer overlay */
.cocurr-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    transparent 30%,
    rgba(255,255,255,0.10) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  pointer-events: none;
}
.cocurr-featured:hover::after {
  animation: shimmer 0.65s ease forwards;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* glow ring on hover */
.cocurr-sports:hover {
  box-shadow: 0 18px 48px rgba(13,44,108,0.45),
              0 0 0 2px rgba(249,168,37,0.45) !important;
}
.cocurr-teachers:hover {
  box-shadow: 0 18px 48px rgba(27,94,32,0.45),
              0 0 0 2px rgba(165,214,167,0.45) !important;
}

/* CTA text spread on hover */
.cocurr-featured:hover .cocurr-cta {
  letter-spacing: 0.8px;
}
.cocurr-cta { transition: letter-spacing 0.2s ease; }


/* ── Shared achievement styles ── */
.sec-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #D4A017; display: block; margin-bottom: 0.3rem; }
.sec-title { font-size: 22px; font-weight: 500; color: #1a3a6b; margin: 0 0 0.75rem; }
.sec-divider { width: 40px; height: 3px; background: #D4A017; border-radius: 2px; margin-bottom: 1.75rem; }
.sec-sep { border: none; border-top: 0.5px solid #e8edf5; margin: 2.5rem 0; }

.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.stat-box { background: #f0f4fa; border-radius: 12px; padding: 1.25rem 1rem; text-align: center; }
.stat-box .s-num { font-size: 24px; font-weight: 500; color: #1a3a6b; display: block; }
.stat-box .s-label { font-size: 12px; color: #666; margin-top: 4px; display: block; line-height: 1.4; }

.scholar-card { background: #f0f4fa; border-radius: 14px; padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; border: 0.5px solid #d0dbee; }
.scholar-icon { width: 44px; height: 44px; background: #1a3a6b; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scholar-icon i { color: #fff; font-size: 18px; }
.scholar-card h4 { margin: 0 0 0.35rem; color: #1a3a6b; font-size: 15px; font-weight: 500; }
.scholar-card p  { margin: 0; font-size: 14px; color: #555; line-height: 1.7; }

.tbl-wrap { border-radius: 12px; overflow: hidden; border: 0.5px solid #e0e8f5; margin-bottom: 2rem; }
table.sslc { width: 100%; border-collapse: collapse; font-size: 14px; }
.sslc thead tr { background: #1a3a6b; }
.sslc thead th { color: #fff; padding: 12px 16px; text-align: left; font-weight: 500; font-size: 13px; }
.sslc tbody tr { border-bottom: 0.5px solid #eef2f8; transition: background 0.15s; }
.sslc tbody tr:last-child { border-bottom: none; }
.sslc tbody tr:hover { background: #f4f7fc; }
.sslc tbody td { padding: 11px 16px; color: #333; vertical-align: middle; }
.sslc tbody td:first-child { font-weight: 500; color: #1a3a6b; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.pill-green { background: #e6f4ea; color: #2d7a3a; }
.pill-amber { background: #fff8e1; color: #b88a10; }
.pill-red   { background: #fdeaea; color: #a32d2d; }
.pill-gray  { background: #f1f1f1; color: #888; }
.top-mark { font-weight: 500; color: #1a3a6b; }
.bar-wrap { display: flex; align-items: center; gap: 6px; }
.bar-bg { flex: 1; height: 5px; background: #e8edf5; border-radius: 4px; overflow: hidden; min-width: 60px; }
.bar-fill { height: 100%; border-radius: 4px; background: #1a3a6b; }

.cocurr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.cocurr-card { background: #fff; border: 0.5px solid #e0e8f5; border-radius: 12px; padding: 1.25rem; transition: transform 0.2s, box-shadow 0.2s; }
.cocurr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,58,107,0.09); }
.cc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.cc-icon i { font-size: 18px; }
.cc-blue   { background: #e6edf7; } .cc-blue i   { color: #1a3a6b; }
.cc-gold   { background: #fdf3dc; } .cc-gold i   { color: #D4A017; }
.cc-teal   { background: #e1f5ee; } .cc-teal i   { color: #0f6e56; }
.cc-rose   { background: #fdedf2; } .cc-rose i   { color: #c0395a; }
.cc-purple { background: #f0eeff; } .cc-purple i { color: #5b3db5; }
.cocurr-card h4 { margin: 0 0 0.35rem; font-size: 14px; font-weight: 500; color: #1a3a6b; }
.cocurr-card p  { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }

.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.highlight-card { background: #fff; border: 0.5px solid #e0e8f5; border-radius: 12px; padding: 1.25rem; }
.highlight-card h4 { margin: 0 0 0.4rem; font-size: 14px; font-weight: 500; color: #1a3a6b; }
.highlight-card p  { margin: 0; font-size: 13px; color: #666; line-height: 1.6; }

/* ===========================
   STAFF PAGE – TARGETED FIXES
   Add these at the bottom of theme.css
=========================== */

/* Fix: intro h2 too large (inherits section h2 { font-size: 36px }) */
.staff-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: #0D47A1;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* Fix: page-desc text size and spacing */
.staff-intro .page-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #455a64;
  max-width: 760px;
  margin: 0 auto;
}

/* Fix: staff-intro padding on staff page */
.staff-page .staff-intro {
  padding: 40px 24px 32px;
  margin: 0 auto 0;
  text-align: center;
}

/* Fix: commitment block — add gold left border treatment */
.staff-commitment {
  background: #f9fbff;
  border-left: 4px solid #F9A825;
  border-radius: 0 14px 14px 0;
  padding: 28px 32px !important;
  max-width: 900px;
  margin: 0 auto 48px !important;
}

.staff-commitment h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #0D47A1;
  margin-bottom: 10px;
}

.staff-commitment p {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #455a64;
}

/* Fix: section title gold color (matches live screenshots) */
.staff-section-title {
  color: #0D47A1;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Fix: staff card img — add teal ring border like live photos */
.staff-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #5ab4c5;
  object-fit: cover;
  margin-bottom: 12px;
  padding: 0;             /* remove old padding:4px */
  background: #f3f6f9;
}

/* Fix: card name and role spacing */
.staff-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #263238;
  margin: 4px 0 3px;
  line-height: 1.4;
}

.staff-card .role {
  font-size: 12px;
  color: #607d8b;
  margin: 0;
}

/* Fix: modal img also gets teal ring */
.staff-modal-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #5ab4c5;
  object-fit: cover;
  margin-bottom: 14px;
}

/* Fix: modal name/role/qual spacing */
.staff-modal-content h3 {
  font-size: 18px;
  color: #0D2C6C;
  margin-bottom: 6px;
}

.staff-modal-content #modal-role {
  font-size: 14px;
  color: #F9A825;
  font-weight: 600;
  margin-bottom: 4px;
}

.staff-modal-content #modal-qual {
  font-size: 13px;
  color: #607d8b;
}

/* Fix: close modal button position */
.staff-modal-content {
  position: relative;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 26px;
  color: #607d8b;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: #0D47A1;
}
/* ===========================
   STAFF PAGE – SPACING FIXES
   Paste at the very bottom of theme.css
   (replaces previous staff additions block)
=========================== */

/* More gap between each staff section */
#staff-container {
  gap: 64px !important;
  padding: 40px 24px !important;
}

/* Each section gets top breathing room */
#staff-container .staff-section {
  padding: 0 24px 24px !important;
}

/* Section title — more space below it */
.staff-section-title {
  font-size: 20px;
  font-weight: 600;
  color: #0D47A1;
  margin-bottom: 32px !important;
  margin-top: 0;
}

/* Staff intro section */
.staff-page .staff-intro {
  padding: 52px 24px 40px !important;
  margin: 0 auto !important;
  text-align: center;
}

.staff-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: #0D47A1;
  margin-bottom: 16px;
  line-height: 1.4;
}

.staff-intro .page-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #455a64;
  max-width: 760px;
  margin: 0 auto;
}

/* Commitment block — more space above and below */
.staff-commitment {
  background: #f9fbff;
  border-left: 4px solid #F9A825;
  border-radius: 0 14px 14px 0;
  padding: 32px 40px !important;
  max-width: 900px;
  margin: 16px auto 64px !important;
}

.staff-commitment h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #0D47A1;
  margin-bottom: 12px;
}

.staff-commitment p {
  font-family: 'Poppins', sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
  color: #455a64;
}

/* Staff card grid — more gap between cards */
.staff-grid {
  gap: 24px !important;
}

/* Staff card — slightly more internal padding */
.staff-card {
  padding: 22px 18px 18px !important;
}

/* Staff card img — teal ring */
.staff-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #5ab4c5;
  object-fit: cover;
  margin-bottom: 14px !important;
  padding: 0 !important;
  background: #f3f6f9;
}

/* Card name + role */
.staff-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: #263238;
  margin: 4px 0 4px;
  line-height: 1.4;
}

.staff-card .role {
  font-size: 12px;
  color: #607d8b;
  margin: 0;
}

/* Modal img teal ring */
.staff-modal-content {
  position: relative;
  padding: 40px 32px 32px !important;
}

.staff-modal-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #5ab4c5;
  object-fit: cover;
  margin-bottom: 16px;
}

.staff-modal-content h3 {
  font-size: 18px;
  color: #0D2C6C;
  margin-bottom: 6px;
}

#modal-role {
  font-size: 14px;
  color: #F9A825;
  font-weight: 600;
  margin-bottom: 4px;
}

#modal-qual {
  font-size: 13px;
  color: #607d8b;
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 26px;
  color: #607d8b;
  cursor: pointer;
  line-height: 1;
}

.close-modal:hover {
  color: #0D47A1;
}
/* test section */
/* =========================================
   GLOBAL LAYOUT
========================================= */
/* 
body {
  background: #f8fafc;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: #ffffff;
}
 */
/* =========================================
   HEADER
========================================= */

/* .brand-header {
  height: 72px;
  background: #ffffff;
  box-shadow: 0 2px 18px rgba(0,0,0,.06);
}

.brand-nav {
  gap: 28px;
}

.brand-nav a.active {
  color: #D4A017;
  position: relative;
}

.brand-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #D4A017;
}
 */
/* =========================================
   SECTION HEADINGS
========================================= */

/* .section h2,
.section-title h2 {
  font-family: 'Playfair Display', serif;
  color: #0B1F4D;
  line-height: 1.25;
} */

/* =========================================
   CARD HOVER EFFECTS
========================================= */

/* .card,
.news-card,
.about-card,
.staff-card,
.academic-card {
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.card:hover,
.news-card:hover,
.about-card:hover,
.staff-card:hover,
.academic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
} */
/* =========================================
   LATEST NEWS
========================================= */
/* .news-card {
  min-width: 360px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  position: relative;
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.school-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #0B1F4D;
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 13px;
  color: #6b7280;
}

.news-content h3 {
  margin: 12px 0;
  font-size: 1.35rem;
  color: #0B1F4D;
  line-height: 1.4;
}

.news-content p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 20px;
}

.read-more {
  text-decoration: none;
  font-weight: 600;
  color: #0B1F4D;
}

.read-more:hover {
  color: #D4A017;
}

.news-nav {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #0B1F4D;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  font-size: 20px;
  z-index: 10;
}

.news-nav:hover {
  background: #0B1F4D;
  color: #fff;
}

.prev-news {
  margin-right: 18px;
}

.next-news {
  margin-left: 18px;
} */
/* =========================================
   FOOTER
========================================= */

/* .site-footer {
  background:
    linear-gradient(
      180deg,
      #0B1F4D 0%,
      #071633 100%
    );

  color: rgba(255,255,255,.86);

  padding-top: 70px;
}

.site-footer h4 {
  color: #D4A017;
}

.site-footer a {
  color: rgba(255,255,255,.82);
}

.site-footer a:hover {
  color: #D4A017;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 24px;
} */
 /* =========================================
   HGHS CONTACT PAGE HERO ONLY
========================================= */

body[data-school="HGHS"] .contact-hero{
  background:
    linear-gradient(
      rgba(7,25,55,0.58),
      rgba(7,25,55,0.62)
    ),
    url("./images/hghs-contact-banner.jpg")
    center center / cover no-repeat !important;

  min-height: 420px;
  position: relative;
}

/* Better text visibility */
body[data-school="HGHS"] .contact-hero-content,
body[data-school="HGHS"] .contact-hero-overlay{
  position: relative;
  z-index: 2;
}

body[data-school="HGHS"] .contact-hero h2,
body[data-school="HGHS"] .contact-hero .hero-subtitle{
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}
/* //added for hghs conatct image */
.contact-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:18px;
  box-shadow:0 14px 36px rgba(0,0,0,0.12);
}
/* //why choose our school */
/* =========================================
   PREMIUM WHY CHOOSE SCHOOL SECTION
========================================= */

.section-heading-center{
  text-align:center;
  margin-bottom:54px;
}

.premium-section-title{
  font-family:'Playfair Display',serif;
  font-size:42px;
  color:#1f2d3d;
  margin:12px 0 18px;
  font-weight:700;
  line-height:1.2;
}

.premium-section-subtitle{
  max-width:760px;
  margin:0 auto;
  font-size:15.5px;
  line-height:1.9;
  color:#607d8b;
  font-family:'Poppins',sans-serif;
}

.refined-strength-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:28px;
}

.refined-card{
  background:#fff;
  border-radius:20px;
  padding:34px 28px;
  box-shadow:0 14px 34px rgba(13,71,161,.07);
  border:1px solid #edf2fa;
  transition:.28s ease;
}

.refined-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 48px rgba(13,71,161,.12);
}

.refined-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:#eef4ff;
  color:#0D47A1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:22px;
}

.refined-card h3{
  font-family:'Playfair Display',serif;
  font-size:24px;
  color:#0D47A1;
  margin-bottom:14px;
  line-height:1.3;
}

.refined-card p{
  font-family:'Poppins',sans-serif;
  font-size:14.8px;
  line-height:1.85;
  color:#546e7a;
}

/* MOBILE */
@media(max-width:768px){

  .premium-section-title{
    font-size:34px;
  }

  .refined-card{
    padding:28px 22px;
  }

}