/* ====================================================
   IRHSS Pookattiri – Main Stylesheet
   Color palette:
     Primary Blue  : #2159a4
     Secondary Yellow: #f7d102
     Dark Blue     : #1a4a8a
     Background    : #ffffff / #f5f5f5
     Text          : #222222
==================================================== */

/* ---- BASE RESET & TOKENS ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #2159a4;
  --yellow:  #f7d102;
  --dark-blue: #163d73;
  --bg-light: #f3f7fd;
  --bg-soft: #edf3fb;
  --white:   #ffffff;
  --text:    #162033;
  --text-muted: #5d6b82;
  --border: rgba(21, 61, 121, 0.1);
  --surface: rgba(255,255,255,0.96);
  --surface-soft: rgba(255,255,255,0.82);
  --surface-strong: rgba(255,255,255,0.92);
  --nav-bg: rgba(22,61,115,0.86);
  --nav-border: rgba(255,255,255,0.08);
  --nav-link-bg: rgba(255,255,255,0.08);
  --theme-switch-bg: rgba(255,255,255,0.08);
  --theme-switch-border: rgba(255,255,255,0.14);
  --footer-bg: #163d73;
  --body-bg:
    radial-gradient(circle at top left, rgba(247,209,2,0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 24%, #f8fbff 100%);
  --radius:  16px;
  --radius-lg: 26px;
  --shadow:  0 16px 40px rgba(17, 44, 86, 0.08);
  --shadow-hover: 0 24px 54px rgba(33,89,164,0.18);
  --transition: 0.3s ease;
  --max-w:   1200px;
  --section-pad: 92px 0;
}

body[data-theme='dark'] {
  --blue: #7ab4ff;
  --yellow: #ffd84f;
  --dark-blue: #0d1730;
  --bg-light: #0c1526;
  --bg-soft: #111b31;
  --white: #0f1a2f;
  --text: #ecf3ff;
  --text-muted: #a7b7d1;
  --border: rgba(133, 174, 255, 0.16);
  --surface: rgba(15,26,47,0.9);
  --surface-soft: rgba(17,27,49,0.84);
  --surface-strong: rgba(20,33,58,0.92);
  --nav-bg: rgba(9,16,30,0.88);
  --nav-border: rgba(255,255,255,0.06);
  --nav-link-bg: rgba(122,180,255,0.12);
  --theme-switch-bg: rgba(255,255,255,0.05);
  --theme-switch-border: rgba(255,255,255,0.09);
  --footer-bg: #09111f;
  --body-bg:
    radial-gradient(circle at top left, rgba(122,180,255,0.12), transparent 26%),
    linear-gradient(180deg, #07111f 0%, #0a1528 32%, #081220 100%);
  --shadow: 0 18px 44px rgba(0,0,0,0.34);
  --shadow-hover: 0 28px 60px rgba(0,0,0,0.46);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- SECTION LABELS & TITLES ---- */
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(33,89,164,0.12);
  backdrop-filter: blur(10px);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(33,89,164,0.08);
}
.section-label.center { display: block; text-align: center; }

.section-title {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title.center { text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-yellow {
  background: linear-gradient(135deg, #ffe15a 0%, var(--yellow) 100%);
  color: #111;
  box-shadow: 0 14px 32px rgba(247,209,2,0.28);
}
.btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(247,209,2,0.34);
}
.btn-outline {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.34);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 18px 34px rgba(0,0,0,0.16);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue) 0%, var(--dark-blue) 100%);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(33,89,164,0.22);
}
.btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px rgba(33,89,164,0.28);
}
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }

.btn-text {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-text:hover { color: var(--yellow); gap: 10px; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================
   SECTION 1: ANNOUNCEMENT BAR
========================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #ffe45f 0%, #ffd63b 100%);
  color: #111;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1000;
  gap: 8px;
}
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
  flex-wrap: wrap;
  justify-content: center;
}
.announcement-inner i { color: #111; }
.ann-link {
  font-weight: 700;
  text-decoration: underline;
  color: var(--blue);
}
.ann-link:hover { color: var(--dark-blue); }
.ann-close {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #111;
  line-height: 1;
  padding: 0 4px;
  transition: opacity 0.2s;
}
.ann-close:hover { opacity: 0.6; }


/* ==========================================================
   SECTION 2: NAVBAR
========================================================== */
.navbar {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(10, 27, 55, 0.16);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.3s, background 0.3s;
}
.navbar.scrolled { box-shadow: 0 18px 34px rgba(10, 27, 55, 0.18); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.logo-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe884 0%, var(--yellow) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(247,209,2,0.26);
}
.logo-circle img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}
.logo-circle-sm { width: 38px; height: 38px; }
.logo-initial {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.logo-sub  { font-size: 0.7rem; font-weight: 400; color: rgba(255,255,255,0.75); letter-spacing: 1px; }

/* Nav links */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.25s, background 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px;
  width: 0; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transition: width 0.25s;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--nav-link-bg);
}
.nav-link:hover::after, .nav-link.active::after {
  width: calc(100% - 28px);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--theme-switch-bg);
  border: 1px solid var(--theme-switch-border);
  backdrop-filter: blur(10px);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.84);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle.active {
  background: rgba(255,255,255,0.92);
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
body[data-theme='dark'] .theme-toggle { color: rgba(236,243,255,0.86); }
body[data-theme='dark'] .theme-toggle.active {
  background: rgba(122,180,255,0.16);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================
   SECTION 3: HERO
========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  background: url('images/hero-campus.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-decor,
.hero-ring {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: auto auto -120px -100px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,209,2,0.28) 0%, rgba(247,209,2,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08) 0%, transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(247,209,2,0.22), transparent 18%);
  pointer-events: none;
}
.hero-decor-left {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,209,2,0.22) 0%, rgba(247,209,2,0.04) 38%, transparent 72%);
  filter: blur(8px);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero-decor-right {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: 2%;
  border-radius: 42% 58% 51% 49% / 53% 38% 62% 47%;
  background: radial-gradient(circle, rgba(33,89,164,0.32) 0%, rgba(33,89,164,0.08) 44%, transparent 72%);
  filter: blur(10px);
  animation: heroFloat 10s ease-in-out infinite reverse;
}
.hero-ring {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  opacity: 0.6;
}
.hero-ring-one {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -80px;
}
.hero-ring-two {
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: 8%;
  border-color: rgba(247,209,2,0.2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(14,44,88,0.9) 0%,
    rgba(26,74,138,0.74) 54%,
    rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 34px 30px;
  max-width: 820px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 80px rgba(0,0,0,0.2);
  overflow: hidden;
}
.hero-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(247,209,2,0.12), transparent 24%);
  pointer-events: none;
}
.hero-content::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(247,209,2,0.16);
  border: 1px solid rgba(247,209,2,0.8);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-logo-mark {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
}
.hero-logo-mark::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f7d102 0 50%, #2159a4 50% 100%);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.9);
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
}
.hero-logo-mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(247,209,2,0.95) 0 50%, rgba(33,89,164,0.95) 50% 100%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.hero-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}
.hero-content:hover .hero-logo-mark::before,
.hero-logo-mark:hover::before {
  opacity: 1;
  transform: scale(1.12);
  filter: blur(26px);
}
.hero-content:hover .hero-logo-mark::after,
.hero-logo-mark:hover::after {
  opacity: 1;
  transform: scale(1.04);
}
.hero-content:hover .hero-logo-mark img,
.hero-logo-mark:hover img {
  transform: translateY(-2px) scale(1.03);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 0.98;
  margin-bottom: 14px;
  text-shadow: 0 8px 34px rgba(0,0,0,0.26);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(255,255,255,0.84);
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.hero-trust-item i {
  color: var(--yellow);
}

/* Fade-in animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.9s ease forwards; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-18px) translateX(10px); }
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  animation: bounce 1.6s infinite;
  z-index: 1;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ==========================================================
   SECTION 4: HIGHLIGHTS
========================================================== */
.highlights {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 0 0 92px;
  margin-top: -42px;
}
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.quick-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.quick-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid rgba(33,89,164,0.1);
  box-shadow: 0 12px 28px rgba(17, 44, 86, 0.08);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.quick-action-pill:hover {
  transform: translateY(-3px);
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(17, 44, 86, 0.12);
}
.quick-action-pill i {
  color: var(--yellow);
}
.quick-action-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.44) 48%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.quick-action-pill:hover::after {
  transform: translateX(120%);
}
.highlight-card {
  background: var(--surface-strong);
  border-radius: 22px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--blue));
  opacity: 0.9;
}
.highlight-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 70%);
}
.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,89,164,0.14);
}
.highlight-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(247,209,2,0.18), rgba(247,209,2,0.08));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.highlight-icon i {
  font-size: 1.6rem;
  color: var(--yellow);
  filter: drop-shadow(0 2px 4px rgba(247,209,2,0.4));
}
.highlight-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}
.highlight-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}


/* ==========================================================
   SECTION 5: ABOUT
========================================================== */
.about {
  background: linear-gradient(180deg, rgba(237,243,251,0.72) 0%, rgba(255,255,255,0) 100%);
  padding: var(--section-pad);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  height: 440px;
  box-shadow: 0 24px 60px rgba(33,89,164,0.18);
}
.about-image img { border-radius: 30px; }
.about-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  background: var(--surface-strong);
  color: #111;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.85);
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}
.ab-number { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.ab-text   { display: block; font-size: 0.75rem; font-weight: 600; color: var(--blue); }

.about-content .section-label { margin-bottom: 12px; }
.about-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.about-features {
  margin: 20px 0 28px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}
.about-features li i { color: var(--yellow); font-size: 1rem; }
.section-actions {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ==========================================================
   SECTION 5B: STAFF
========================================================== */
.staff-section {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, rgba(237,243,251,0.88) 100%);
}
.staff-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}
.staff-intro {
  color: var(--text-muted);
  font-size: 1rem;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.staff-card {
  background: var(--surface);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.staff-card::before,
.principal-card::before,
.news-card::before,
.student-life-card::before,
.facility-card::before,
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(247,209,2,0.72), rgba(33,89,164,0.42), transparent);
}
.staff-card-media {
  height: 260px;
  overflow: hidden;
}
.staff-photo-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(33,89,164,0.16), rgba(247,209,2,0.12));
  color: var(--blue);
}
.staff-photo-placeholder i {
  font-size: 4rem;
  opacity: 0.8;
}
.staff-card-media img {
  height: 100%;
  transition: transform 0.45s ease;
}
.staff-card:hover .staff-card-media img {
  transform: scale(1.04);
}
.staff-card-media-alt img {
  object-position: center 30%;
}
.staff-card-body {
  padding: 26px;
}
.staff-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33,89,164,0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.staff-card-body h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.staff-card-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.staff-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.staff-points i {
  color: var(--yellow);
}
.staff-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.staff-mini-grid div {
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  border-radius: 18px;
  padding: 18px 14px;
  text-align: center;
  border: 1px solid rgba(33,89,164,0.08);
}
.staff-mini-grid strong {
  display: block;
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 6px;
}
.staff-mini-grid span {
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ==========================================================
   SECTION 6: PRINCIPAL
========================================================== */
.principal {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(243,247,253,0.82) 100%);
  padding: var(--section-pad);
}
.principal .section-title { margin-bottom: 40px; }

/* Two-column grid for leadership cards */
.principal-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.principal-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-top: 5px solid var(--yellow);
  overflow: hidden;
  position: relative;
}
.principal-img-wrap {
  flex-shrink: 0;
  width: 160px;
  min-height: 240px;
  overflow: hidden;
  background: #eef1f8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.principal-img-wrap img { border-radius: 0; height: 100%; width: 100%; object-fit: cover; }

/* "Add Photo" placeholder */
.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef1f8 0%, #dce4f0 100%);
  color: var(--blue);
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s;
}
.photo-placeholder:hover { background: linear-gradient(135deg, #dce4f0 0%, #c8d5eb 100%); }
.photo-placeholder i {
  font-size: 2rem;
  opacity: 0.6;
}
.photo-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
}

.principal-body { padding: 28px 28px 28px 20px; }
.principal-quote {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
  position: relative;
}
.principal-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--yellow);
  line-height: 0;
  position: absolute;
  top: 18px; left: -10px;
  opacity: 0.4;
}
.principal-info strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
}
.principal-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive: stack cards on tablet */
@media (max-width: 900px) {
  .principal-cards-grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   SECTION 7: NEWS / EVENTS
========================================================== */
.news {
  background: linear-gradient(180deg, rgba(237,243,251,0.72) 0%, rgba(255,255,255,0.35) 100%);
  padding: var(--section-pad);
}
.news .section-title { margin-bottom: 40px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,89,164,0.18);
}
.news-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-img-wrap img {
  transition: transform 0.5s ease;
  height: 100%;
}
.news-card:hover .news-img-wrap img { transform: scale(1.06); }
.news-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--yellow);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}
.news-body { padding: 22px; }
.news-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}


/* ==========================================================
   SECTION 8: NOTICE BOARD
========================================================== */
.noticeboard {
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(243,247,253,0.78) 100%);
  padding: var(--section-pad);
}
.notice-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-strong);
  border: 1px solid rgba(33,89,164,0.14);
  border-left: 6px solid var(--blue);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.notice-header {
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: var(--white);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice-header i { font-size: 1.3rem; color: var(--yellow); }
.notice-header h2 { font-size: 1.15rem; font-weight: 600; margin: 0; }

.notice-list { padding: 8px 0; }
.notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid rgba(33,89,164,0.08);
  transition: background 0.2s;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li:hover { background: rgba(247,209,2,0.06); }

.notice-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  margin-top: 7px;
  box-shadow: 0 0 0 3px rgba(247,209,2,0.25);
}
.notice-list li > div { flex: 1; }
.notice-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 3px;
}
.notice-list p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.notice-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(33,89,164,0.1);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
}


/* ==========================================================
   SECTION 9: GALLERY
========================================================== */
.gallery {
  background: linear-gradient(180deg, rgba(243,247,253,0.92) 0%, rgba(255,255,255,0.48) 100%);
  padding: var(--section-pad);
}
.gallery .section-title { margin-bottom: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.gallery-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 220px;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.8);
}
.gallery-item img {
  transition: transform 0.5s ease;
  height: 100%;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(33,89,164,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i {
  font-size: 1.8rem;
  color: var(--yellow);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  transform: scale(0.8);
  transition: transform 0.35s;
}
.gallery-item:hover .gallery-overlay i { transform: scale(1); }
.gallery-btn-wrap { text-align: center; }


/* ==========================================================
   SECTION 10: CALL TO ACTION
========================================================== */
.cta {
  position: relative;
  background: linear-gradient(135deg, #173e78 0%, #2159a4 50%, #2d6ac0 100%);
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(247,209,2,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cta::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  pointer-events: none;
}
.cta-overlay { display: none; }
.cta-content { position: relative; z-index: 1; }
.cta-content::before {
  content: '';
  position: absolute;
  inset: -20px 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(247,209,2,0.16) 0%, transparent 65%);
  filter: blur(18px);
  z-index: -1;
}
.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================
   SECTION 8: STUDENT LIFE
========================================================== */
.student-life {
  padding: var(--section-pad);
  background:
    linear-gradient(180deg, rgba(33,89,164,0.04) 0%, rgba(255,255,255,0) 18%),
    linear-gradient(135deg, #f9fbff 0%, #eef4ff 100%);
}
.student-life-head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.student-life-intro {
  color: var(--text-muted);
  font-size: 1rem;
}
.student-life-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 28px;
}
.student-life-card {
  background: var(--surface);
  border: 1px solid rgba(33,89,164,0.08);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.student-life-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,89,164,0.22);
}
.student-life-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(33,89,164,0.2);
}
.student-life-card h3 {
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.student-life-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}
.student-life-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.student-life-stat {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(33,89,164,0.08);
  border: 1px solid rgba(33,89,164,0.08);
}
.student-life-stat strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--blue);
  margin-bottom: 8px;
}
.student-life-stat span {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.student-life-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.student-life-shot {
  height: 230px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.student-life-shot img {
  transition: transform 0.45s ease;
}
.student-life-shot:hover img {
  transform: scale(1.06);
}
.student-life-cta {
  text-align: center;
  margin-top: 30px;
}


/* ==========================================================
   SECTION 9: FACILITIES
========================================================== */
.facilities {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(243,247,253,0.92) 0%, rgba(255,255,255,0.44) 100%);
}
.facilities-head {
  margin-bottom: 40px;
}
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.facility-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}
.facility-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(33,89,164,0.18);
}
.facility-card i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.facility-card h3 {
  font-size: 1.08rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.facility-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}


/* ==========================================================
   SECTION 11: ADMISSIONS
========================================================== */
.admissions {
  padding: var(--section-pad);
  background:
    radial-gradient(circle at top left, rgba(247,209,2,0.14), transparent 24%),
    linear-gradient(135deg, #163d73 0%, #2159a4 62%, #2e71cd 100%);
}
.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}
.admissions-copy,
.admissions-steps {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 34px;
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 60px rgba(6, 22, 48, 0.2);
}
.admissions-copy .section-label,
.admissions-copy .section-title,
.admissions-copy p,
.admissions-point span,
.admissions-steps strong,
.admissions-steps p {
  color: var(--white);
}
.admissions-copy .section-label {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.12);
}
.admissions-copy p {
  color: rgba(255,255,255,0.82);
  max-width: 520px;
}
.admissions-points {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.admissions-point {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
}
.admissions-point i {
  color: var(--yellow);
}
.admission-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admission-step:last-of-type {
  margin-bottom: 22px;
}
.admission-step-no {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,209,2,0.18);
  color: var(--yellow);
  font-weight: 800;
}
.admissions-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}
.admissions-steps p {
  color: rgba(255,255,255,0.76);
  font-size: 0.9rem;
}


/* ==========================================================
   SECTION 13: TESTIMONIALS
========================================================== */
.testimonials {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(255,255,255,0.36) 0%, rgba(243,247,253,0.9) 100%);
}
.testimonials-head {
  margin-bottom: 40px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.testimonial-stars {
  color: var(--yellow);
  margin-bottom: 16px;
  letter-spacing: 0.16em;
}
.testimonial-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}
.testimonial-card strong {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
}


/* ==========================================================
   SECTION 11: FOOTER
========================================================== */
.footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 50px;
}

.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 22px;
  color: rgba(255,255,255,0.65);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.social-links { display: flex; gap: 10px; }
.social-links a,
.social-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--yellow);
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.25s;
  border: none;
  cursor: pointer;
}
.social-links a:hover,
.social-action-btn:hover {
  background: var(--yellow);
  color: #111;
  transform: translateY(-3px);
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s, gap 0.25s;
}
.footer-col ul a i { font-size: 0.7rem; color: var(--yellow); }
.footer-col ul a:hover { color: var(--white); gap: 12px; }

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
}
.contact-list li i {
  color: var(--yellow);
  font-size: 0.95rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 8px;
  max-width: var(--max-w);
  margin: 0 auto;
}


/* ==========================================================
   SCROLL TO TOP
========================================================== */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(33,89,164,0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--dark-blue); }

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.contact-modal.open {
  opacity: 1;
  visibility: visible;
}
.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.62);
  backdrop-filter: blur(8px);
}
.contact-modal-dialog {
  position: relative;
  width: min(100%, 440px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,0.24);
  z-index: 1;
}
.contact-modal-dialog h3 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 8px;
}
.contact-modal-dialog p {
  color: var(--text-muted);
  margin-bottom: 22px;
}
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(33,89,164,0.12);
  background: rgba(33,89,164,0.06);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.contact-modal-close:hover {
  background: rgba(33,89,164,0.12);
  transform: rotate(90deg);
}
.contact-modal-list {
  display: grid;
  gap: 14px;
}
.contact-modal-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(33,89,164,0.08), rgba(247,209,2,0.08));
  border: 1px solid rgba(33,89,164,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-modal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(17,44,86,0.12);
  border-color: rgba(33,89,164,0.18);
}
.contact-modal-item i {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.contact-modal-item strong {
  display: block;
  color: var(--blue);
  margin-bottom: 2px;
}
.contact-modal-item span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-form {
  display: grid;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field {
  display: grid;
  gap: 8px;
}
.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(33,89,164,0.14);
  background: rgba(255,255,255,0.88);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(33,89,164,0.32);
  box-shadow: 0 0 0 4px rgba(33,89,164,0.08);
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-success {
  font-size: 0.92rem;
  font-weight: 600;
  color: #118155;
}

/* ==========================================================
   INNER PAGE LAYOUTS
========================================================== */
.page-hero {
  position: relative;
  padding: 120px 0 86px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12,36,74,0.92) 0%, rgba(33,89,164,0.84) 60%, rgba(10,18,36,0.88) 100%),
    url('images/hero-campus.jpg') center/cover no-repeat;
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  width: 320px;
  height: 320px;
  left: -90px;
  top: 40px;
  background: radial-gradient(circle, rgba(247,209,2,0.2), transparent 68%);
}
.page-hero::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 66%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 38px 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
  color: var(--white);
}
.page-hero-inner .section-label {
  background: rgba(247,209,2,0.16);
  color: var(--yellow);
  border-color: rgba(247,209,2,0.35);
}
.page-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.03;
  margin-bottom: 16px;
}
.page-subtitle {
  max-width: 640px;
  color: rgba(255,255,255,0.84);
  margin-bottom: 24px;
  font-size: 1.02rem;
}
.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}
.breadcrumbs a:hover {
  color: var(--yellow);
}

.content-section {
  padding: var(--section-pad);
}
.content-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.content-stack {
  display: grid;
  gap: 24px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.info-card h3 {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.info-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-list i {
  color: var(--yellow);
  margin-top: 6px;
}
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pill-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(237,243,251,0.98));
  border: 1px solid rgba(33,89,164,0.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.pill-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 1rem;
}
.pill-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.media-card {
  border-radius: 30px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: 0 24px 60px rgba(33,89,164,0.2);
}
.media-card img {
  height: 100%;
}
.stats-band {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stats-pill strong {
  display: block;
  color: var(--blue);
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 8px;
}
.stats-pill span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  color: var(--blue);
  margin-bottom: 18px;
}
.contact-detail-list {
  display: grid;
  gap: 16px;
}
.contact-detail-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-detail-list i {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: var(--white);
  flex-shrink: 0;
}
.contact-detail-list strong {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}

.gallery-page {
  padding: var(--section-pad);
  background: linear-gradient(180deg, rgba(243,247,253,0.86) 0%, rgba(255,255,255,0.52) 100%);
}
.gallery-page-note {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--text-muted);
}
.gallery-page-section {
  margin-bottom: 44px;
}
.gallery-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}
.gallery-row-controls {
  display: inline-flex;
  gap: 10px;
}
.gallery-scroll-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(33,89,164,0.14);
  background: var(--surface);
  color: var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.gallery-row-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, minmax(180px, 1fr));
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(33,89,164,0.34) transparent;
}
.gallery-row-track::-webkit-scrollbar {
  height: 10px;
}
.gallery-row-track::-webkit-scrollbar-thumb {
  background: rgba(33,89,164,0.34);
  border-radius: 999px;
}
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 180px;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.8);
}
.gallery-card img {
  height: 100%;
  transition: transform 0.45s ease;
}
.gallery-card:hover img {
  transform: scale(1.05);
}

body[data-theme='dark'] .form-field input,
body[data-theme='dark'] .form-field select,
body[data-theme='dark'] .form-field textarea {
  background: rgba(9,16,30,0.84);
  border-color: rgba(122,180,255,0.14);
  color: var(--text);
}
body[data-theme='dark'] .pill-card,
body[data-theme='dark'] .stats-pill,
body[data-theme='dark'] .contact-card,
body[data-theme='dark'] .info-card,
body[data-theme='dark'] .form-card,
body[data-theme='dark'] .gallery-scroll-btn {
  background: var(--surface);
  border-color: rgba(122,180,255,0.14);
}
body[data-theme='dark'] .page-hero {
  background:
    linear-gradient(135deg, rgba(5,12,24,0.94) 0%, rgba(16,42,84,0.88) 56%, rgba(5,10,20,0.92) 100%),
    url('images/hero-campus.jpg') center/cover no-repeat;
}
body[data-theme='dark'] .nav-logo,
body[data-theme='dark'] .logo-name,
body[data-theme='dark'] .hero-content,
body[data-theme='dark'] .page-hero-inner,
body[data-theme='dark'] .cta-content,
body[data-theme='dark'] .btn-blue,
body[data-theme='dark'] .btn-outline {
  color: #f4f8ff;
}
body[data-theme='dark'] .logo-sub,
body[data-theme='dark'] .hero-subtitle,
body[data-theme='dark'] .page-subtitle,
body[data-theme='dark'] .breadcrumbs,
body[data-theme='dark'] .hero-trust-item,
body[data-theme='dark'] .cta-content p {
  color: rgba(244,248,255,0.84);
}
body[data-theme='dark'] .breadcrumbs a {
  color: rgba(244,248,255,0.84);
}
body[data-theme='dark'] .hamburger span {
  background: #f4f8ff;
}
body[data-theme='dark'] .btn-outline {
  border-color: rgba(244,248,255,0.34);
}
body[data-theme='dark'] .btn-outline:hover {
  background: rgba(244,248,255,0.12);
  color: #ffffff;
}

body[data-theme='dark'] .section-label {
  background: rgba(122,180,255,0.1);
  border-color: rgba(122,180,255,0.18);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
body[data-theme='dark'] .about,
body[data-theme='dark'] .staff-section,
body[data-theme='dark'] .principal,
body[data-theme='dark'] .news,
body[data-theme='dark'] .noticeboard,
body[data-theme='dark'] .student-life,
body[data-theme='dark'] .facilities,
body[data-theme='dark'] .gallery,
body[data-theme='dark'] .testimonials {
  background: linear-gradient(180deg, rgba(12,21,38,0.92) 0%, rgba(8,16,30,0.68) 100%);
}
body[data-theme='dark'] .hero-content,
body[data-theme='dark'] .admissions-copy,
body[data-theme='dark'] .admissions-steps {
  background: rgba(8,16,30,0.5);
  border-color: rgba(122,180,255,0.16);
}
body[data-theme='dark'] .hero-logo-mark {
  background: transparent;
  border: none;
}
body[data-theme='dark'] .about-badge,
body[data-theme='dark'] .staff-card,
body[data-theme='dark'] .principal-card,
body[data-theme='dark'] .news-card,
body[data-theme='dark'] .notice-wrapper,
body[data-theme='dark'] .student-life-card,
body[data-theme='dark'] .student-life-stat,
body[data-theme='dark'] .facility-card,
body[data-theme='dark'] .testimonial-card,
body[data-theme='dark'] .highlight-card,
body[data-theme='dark'] .quick-action-pill {
  border-color: rgba(122,180,255,0.12);
  box-shadow: var(--shadow);
}
body[data-theme='dark'] .about-badge,
body[data-theme='dark'] .highlight-card,
body[data-theme='dark'] .notice-wrapper,
body[data-theme='dark'] .quick-action-pill {
  background: var(--surface-strong);
}
body[data-theme='dark'] .principal-img-wrap,
body[data-theme='dark'] .staff-mini-grid div,
body[data-theme='dark'] .staff-photo-placeholder {
  background: rgba(17,27,49,0.92);
}
body[data-theme='dark'] .quick-action-pill:hover,
body[data-theme='dark'] .highlight-card:hover,
body[data-theme='dark'] .staff-card:hover,
body[data-theme='dark'] .news-card:hover,
body[data-theme='dark'] .facility-card:hover {
  box-shadow: var(--shadow-hover);
}
body[data-theme='dark'] .cta {
  background: linear-gradient(135deg, #081220 0%, #14315f 52%, #2159a4 100%);
}
body[data-theme='dark'] .gallery-overlay {
  background: rgba(7,17,31,0.78);
}
body[data-theme='dark'] .section-title,
body[data-theme='dark'] .highlight-number,
body[data-theme='dark'] .ab-number,
body[data-theme='dark'] .ab-text,
body[data-theme='dark'] .staff-tag,
body[data-theme='dark'] .staff-card-body h3,
body[data-theme='dark'] .staff-mini-grid strong,
body[data-theme='dark'] .principal-info strong,
body[data-theme='dark'] .news-body h3,
body[data-theme='dark'] .notice-list strong,
body[data-theme='dark'] .notice-tag,
body[data-theme='dark'] .student-life-card h3,
body[data-theme='dark'] .student-life-stat strong,
body[data-theme='dark'] .facility-card h3,
body[data-theme='dark'] .testimonial-card strong,
body[data-theme='dark'] .info-card h3,
body[data-theme='dark'] .pill-card h3,
body[data-theme='dark'] .stats-pill strong,
body[data-theme='dark'] .contact-card h3,
body[data-theme='dark'] .contact-detail-list strong,
body[data-theme='dark'] .contact-modal-dialog h3,
body[data-theme='dark'] .contact-modal-item strong {
  color: #eaf2ff;
}
body[data-theme='dark'] .about-badge {
  color: #eaf2ff;
  border-color: rgba(122,180,255,0.18);
}
body[data-theme='dark'] .highlight-label,
body[data-theme='dark'] .about-content p,
body[data-theme='dark'] .staff-intro,
body[data-theme='dark'] .staff-card-body p,
body[data-theme='dark'] .staff-points li,
body[data-theme='dark'] .staff-mini-grid span,
body[data-theme='dark'] .principal-quote,
body[data-theme='dark'] .principal-info span,
body[data-theme='dark'] .news-body p,
body[data-theme='dark'] .notice-list p,
body[data-theme='dark'] .student-life-intro,
body[data-theme='dark'] .student-life-card p,
body[data-theme='dark'] .student-life-stat span,
body[data-theme='dark'] .facility-card p,
body[data-theme='dark'] .testimonial-card p,
body[data-theme='dark'] .testimonial-card span,
body[data-theme='dark'] .info-card p,
body[data-theme='dark'] .pill-card p,
body[data-theme='dark'] .stats-pill span,
body[data-theme='dark'] .contact-detail-list li,
body[data-theme='dark'] .contact-modal-item span,
body[data-theme='dark'] .gallery-page-note {
  color: rgba(234,242,255,0.82);
}
body[data-theme='dark'] .about-features li {
  color: #eaf2ff;
}
body[data-theme='dark'] .announcement-bar {
  color: #172136;
}
body[data-theme='dark'] .contact-modal-dialog {
  background: var(--surface-strong);
}
body[data-theme='dark'] .contact-modal-close {
  background: rgba(122,180,255,0.08);
  border-color: rgba(122,180,255,0.14);
}
body[data-theme='dark'] .contact-modal-item {
  background: linear-gradient(135deg, rgba(122,180,255,0.1), rgba(247,209,2,0.08));
  border-color: rgba(122,180,255,0.12);
}
body[data-theme='dark'] .footer .logo-name,
body[data-theme='dark'] .footer-col h3 {
  color: #f4f8ff;
}
body[data-theme='dark'] .footer .logo-sub {
  color: rgba(244,248,255,0.82);
}
body[data-theme='dark'] .footer-brand p,
body[data-theme='dark'] .footer-col ul a,
body[data-theme='dark'] .contact-list li,
body[data-theme='dark'] .footer-bottom {
  color: rgba(244,248,255,0.78);
}
body[data-theme='dark'] .footer-col ul a:hover {
  color: #ffffff;
}


/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 1024px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .staff-card:last-child { grid-column: 1 / -1; }
  .student-life-grid { grid-template-columns: repeat(2, 1fr); }
  .student-life-stats { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .admissions-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .content-grid-2,
  .contact-page-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px 0; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-menu {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--nav-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
  }
  .nav-menu.open {
    max-height: 400px;
    padding: 12px 0 20px;
  }
  .nav-menu ul { flex-direction: column; gap: 0; }
  .nav-link {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
  }
  .nav-link::after { display: none; }
  .nav-link:hover { background: var(--nav-link-bg); }
  .navbar { position: sticky; }
  .theme-switcher {
    order: 3;
    margin-left: auto;
    margin-right: 10px;
  }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero-content {
    padding: 28px 22px;
    border-radius: 26px;
    margin: 0 14px;
  }
  .hero-logo-mark {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-trust { gap: 10px; }
  .hero-trust-item { width: 100%; justify-content: center; }

  /* Highlights */
  .highlights {
    margin-top: -24px;
    padding-bottom: 64px;
  }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .quick-actions { justify-content: stretch; }
  .quick-action-pill { width: 100%; justify-content: center; }

  /* Staff */
  .staff-grid { grid-template-columns: 1fr; }
  .staff-card:last-child { grid-column: auto; }

  /* Principal */
  .principal-card { flex-direction: column; }
  .principal-img-wrap { width: 100%; height: 220px; }
  .principal-body { padding: 24px; }
  .principal-quote::before { display: none; }

  /* News */
  .news-grid { grid-template-columns: 1fr; }

  /* Student Life */
  .student-life-grid,
  .student-life-stats,
  .student-life-gallery { grid-template-columns: 1fr; }
  .student-life-shot { height: 220px; }

  /* Facilities / Admissions / Testimonials */
  .facilities-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .admissions-copy,
  .admissions-steps { padding: 26px 22px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid,
  .pill-grid,
  .stats-band { grid-template-columns: 1fr; }
  .page-hero { padding: 92px 0 66px; }
  .page-hero-inner { padding: 28px 24px; }
  .gallery-page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-row-track {
    grid-auto-columns: minmax(220px, 1fr);
    grid-template-rows: repeat(3, 150px);
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .theme-toggle span { display: none; }
  .theme-toggle { padding: 9px 11px; }
  .hero-content { padding: 24px 18px; }
  .hero-logo-mark {
    width: 84px;
    height: 84px;
  }
  .hero-title { letter-spacing: 0; }
  .hero-trust-item {
    font-size: 0.8rem;
    padding: 9px 14px;
  }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .staff-mini-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item { height: 160px; }
  .principal-card { border-radius: 10px; }
  .page-title { font-size: 2rem; }
  .gallery-row-track {
    grid-auto-columns: minmax(180px, 1fr);
    grid-template-rows: repeat(3, 130px);
  }
}
