/* =========================================================
   Hill Memorial High School hillmemorial.css
   Color Palette: Sky Blue, Navy Blue, Royal Blue, Charcoal
   Typography: Playfair Display (headings) + DM Sans (body)
   ========================================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --sky: #38BDF8;
  --sky-light: #BAE6FD;
  --sky-dark: #0EA5E9;
  --royal: #1D4ED8;
  --navy: #1E3A8A;
  --deep: #0F172A;
  --charcoal: #1E293B;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --light: #F0F9FF;
  --white: #FFFFFF;
  --accent-red: #EF4444;
  --gold: #F59E0B;

  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #0EA5E9 100%);
  --gradient-blue: linear-gradient(135deg, #1D4ED8, #38BDF8);
  --gradient-section: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);

  --shadow-sm: 0 2px 8px rgba(14,165,233,0.08);
  --shadow-md: 0 8px 30px rgba(14,165,233,0.12);
  --shadow-lg: 0 20px 60px rgba(14,165,233,0.18);
  --shadow-card: 0 4px 24px rgba(30,58,138,0.10);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
  --transition-slow: 0.5s cubic-bezier(.4,0,.2,1);

  --nav-h: 76px;
  --topbar-h: 0px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--topbar-h));
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
section { position: relative; }

/* ===== WEBSITE LOADER ===== */

#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  width: min(90%, 420px);
  text-align: center;
  padding: 2rem;
}

.loader-school-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader-inner h2 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.loader-inner p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.loader-line {
  width: 220px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 0.75rem;
}

.loader-fill {
  width: 0;
  height: 100%;
  background: var(--gradient-blue);
  border-radius: 10px;
  animation: loaderProgress 3s linear forwards;
}

.loader-text {
  color: var(--sky-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes loaderProgress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.alt-section { background: var(--light); }
.mt-2 { margin-top: 1.5rem; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sky-dark);
  background: rgba(56,189,248,0.12);
  border: 1px solid rgba(56,189,248,0.3);
  padding: 0.35rem 1rem; border-radius: 100px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--charcoal);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.section-title .highlight { color: var(--sky-dark); }
.section-desc { color: var(--gray); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.sub-section-title {
  font-family: var(--font-head);
  font-size: 1.5rem; color: var(--navy);
  margin: 2.5rem 0 1.25rem;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, #38BDF8, #60A5FA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-weight: 600; font-size: 0.95rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,78,216,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(29,78,216,0.45); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-accent { background: var(--accent-red); color: white; box-shadow: 0 4px 16px rgba(239,68,68,0.3); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.4); }
.btn-full { width: 100%; justify-content: center; }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-h);
  background: var(--deep);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  position: relative; z-index: 100;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar-left { display: flex; gap: 1.5rem; }
.topbar-left span { display: flex; align-items: center; gap: 0.4rem; }
.topbar-left i { color: var(--sky); }
.topbar-right { display: flex; gap: 0.75rem; }
.topbar-right a {
  width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.topbar-right a:hover { background: var(--sky-dark); color: white; }

/* ===== NAVBAR ===== */
#navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(15,23,42,0.12); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  min-width: 0;
}

.school-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  min-width: 0;
}

.school-name {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.school-sub {
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.3px;
  margin-top: 0.2rem;
}

.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-link {
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem; font-weight: 500; color: var(--charcoal);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--sky-dark); border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--sky-dark); background: rgba(14,165,233,0.07); }
.nav-link:hover::after, .nav-link.active::after { left: 10%; right: 10%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); 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); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 0;
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition-slow);
}
.mobile-menu.open { max-height: 600px; display: block; }
.mob-link {
  display: block; padding: 0.75rem 1.5rem;
  font-weight: 500; color: var(--charcoal);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: var(--transition);
}
.mob-link:hover { color: var(--sky-dark); background: rgba(14,165,233,0.05); padding-left: 2rem; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 95vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,58,138,0.78) 55%, rgba(14,165,233,0.45) 100%);
}
.hero-content {
  position: relative !important;
  z-index: 3 !important;
  padding-top: 3.5rem !important;
  padding-bottom: 5rem !important;
}
.hero-badge {
  display: inline-block;
  background: rgba(56,189,248,0.2);
  border: 1px solid rgba(56,189,248,0.4);
  color: var(--sky-light);
  font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
  padding: 0.4rem 1.1rem; border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.8);
  max-width: 540px; margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-trust-item strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: #ffffff;
}

.hero-trust-item span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-trust-divider {
  width: 1px;
  height: 38px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); font-size: 0.8rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  animation: bounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}
.hero-scroll-hint {
  animation: bounce 2s ease-in-out infinite !important;
}

/* ===== HIGHLIGHTS STRIP ===== */
.highlights-strip {
  background: var(--gradient-blue);
  padding: 1.5rem 0;
}
.highlights-grid {
  display: flex; gap: 1rem;
  flex-wrap: wrap; justify-content: center; align-items: center;
}
.highlight-item {
  display: flex; align-items: center; gap: 0.6rem;
  color: white; font-weight: 600; font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255,255,255,0.12); border-radius: 100px;
  transition: var(--transition);
}
.highlight-item:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.highlight-item i { font-size: 1rem; color: rgba(255,255,255,0.85); }

/* ===== WELCOME SECTION ===== */
.welcome-section { padding: 6rem 0; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.welcome-img-wrap { position: relative; }
.welcome-img-wrap img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; height: 480px; object-fit: cover; }
.welcome-badge-float {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--gradient-blue);
  color: white; border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; text-align: center;
  box-shadow: 0 8px 32px rgba(29,78,216,0.35);
}
.welcome-badge-float span { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.welcome-badge-float p { font-size: 0.8rem; margin-top: 0.25rem; opacity: 0.9; }
.welcome-text .section-label { text-align: left; }
.welcome-text .section-title { text-align: left; }
.welcome-text p { color: var(--gray); margin-bottom: 1rem; }
.welcome-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.wf-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--charcoal); font-weight: 500; }
.wf-item i { color: var(--sky-dark); font-size: 1rem; flex-shrink: 0; }

/* ===== SCHOOL STATS ===== */

.stats-section {
  background: #123A63;
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #6FAED9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ANNOUNCEMENTS ===== */
.announcements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.announcement-card {
  display: flex; gap: 1.25rem;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.announcement-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.announcement-card.urgent { border-left: 4px solid var(--accent-red); }
.ann-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--light); border-radius: 8px;
  padding: 0.75rem 0.9rem; text-align: center; flex-shrink: 0; min-width: 60px;
}
.ann-date .day { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.ann-date .month { font-size: 0.7rem; color: var(--gray); font-weight: 600; text-transform: uppercase; }
.ann-body { flex: 1; }
.ann-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.5rem;
}
.urgent-tag { background: rgba(239,68,68,0.1); color: var(--accent-red); }
.ann-tag:not(.urgent-tag) { background: rgba(14,165,233,0.1); color: var(--sky-dark); }
.ann-body h4 { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin-bottom: 0.4rem; line-height: 1.4; }
.ann-body p { font-size: 0.85rem; color: var(--gray); line-height: 1.55; }
.ann-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--sky-dark); margin-top: 0.75rem; transition: var(--transition); }
.ann-link:hover { gap: 0.6rem; }

/* ===== ABOUT — TIMELINE ===== */
.about-history-wrap { margin: 3rem 0 4rem; }
.history-timeline { position: relative; padding-left: 2rem; }
.history-timeline::before {
  content: ''; position: absolute; left: 80px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--sky), var(--navy));
}
.timeline-item { display: flex; gap: 2rem; margin-bottom: 2.5rem; position: relative; align-items: flex-start; }
.tl-year {
  min-width: 60px; text-align: right;
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.1rem; color: var(--navy);
  padding-top: 0.1rem; flex-shrink: 0;
}
.tl-dot {
  position: absolute; left: 76px;
  width: 12px; height: 12px;
  border-radius: 50%; background: var(--sky);
  border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--sky);
  top: 6px; flex-shrink: 0;
}
.tl-dot.active { background: var(--royal); box-shadow: 0 0 0 2px var(--royal), 0 0 12px rgba(29,78,216,0.5); }
.tl-content { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05); flex: 1; }
.tl-content h4 { font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.tl-content p { color: var(--gray); font-size: 0.9rem; }

/* MVV Grid */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.mvv-card { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); border-top: 4px solid transparent; transition: var(--transition); }
.mvv-card.mission { border-top-color: var(--sky-dark); }
.mvv-card.vision { border-top-color: var(--royal); }
.mvv-card.values { border-top-color: var(--navy); }
.mvv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.mvv-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--sky-dark); margin-bottom: 1rem; }
.mvv-card h3 { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); margin-bottom: 0.75rem; }
.mvv-card p { color: var(--gray); font-size: 0.9rem; }
.values-list { display: flex; flex-direction: column; gap: 0.5rem; }
.values-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--charcoal); }
.values-list i { color: var(--gold); font-size: 0.7rem; }

/* Overview Grid */
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.overview-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}
.overview-item i { font-size: 1.4rem; color: var(--sky-dark); flex-shrink: 0; }
.overview-item div { display: flex; flex-direction: column; }
.overview-item strong { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); }
.overview-item span { font-size: 0.95rem; font-weight: 600; color: var(--charcoal); }

/* ===== PRINCIPAL ===== */
.principal-section { background: var(--deep); }
.principal-section .section-label, .principal-section .section-title { color: white; }
.principal-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 4rem; align-items: start; }
.principal-img-wrap { position: relative; }
.principal-img-wrap img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-xl); filter: grayscale(10%); }
.principal-name-badge {
  position: absolute; bottom: -1rem; left: 1rem; right: 1rem;
  background: var(--gradient-blue);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  text-align: center; color: white;
}
.principal-name-badge strong { display: block; font-size: 1rem; font-weight: 700; }
.principal-name-badge span { font-size: 0.8rem; opacity: 0.85; }
.principal-quote-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 1.5rem; margin-top: 2.5rem; position: relative;
}
.quote-icon { font-size: 1.5rem; color: var(--sky); opacity: 0.6; margin-bottom: 0.75rem; }
.principal-quote-card p { font-style: italic; color: rgba(255,255,255,0.85); font-size: 0.95rem; line-height: 1.6; }
.principal-quote-card cite { display: block; font-size: 0.8rem; color: var(--sky-light); margin-top: 0.75rem; }
.principal-message-col h3 { font-family: var(--font-head); font-size: 1.4rem; color: var(--sky-light); margin-bottom: 1.25rem; }
.principal-message-col p { color: rgba(255,255,255,0.75); margin-bottom: 1rem; font-size: 0.95rem; line-height: 1.8; }
.principal-sign { margin-top: 2rem; color: rgba(255,255,255,0.9) !important; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem; }
.principal-sign strong { color: white; }
.principal-sign em { color: var(--sky-light); font-style: normal; font-size: 0.85rem; }

/* ===== ACADEMICS ===== */
.academics-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.acad-info-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.acad-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.acad-info-card i { font-size: 1.75rem; color: var(--sky-dark); margin-bottom: 1rem; }
.acad-info-card h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem; }
.acad-info-card p { font-size: 0.88rem; color: var(--gray); }

/* Stream Tabs */
.streams-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.stream-tab {
  padding: 0.6rem 1.25rem; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem;
  background: rgba(14,165,233,0.08); color: var(--gray);
  transition: var(--transition); border: 1px solid transparent;
}
.stream-tab.active { background: var(--gradient-blue); color: white; box-shadow: 0 4px 12px rgba(29,78,216,0.25); }
.stream-content { display: none; }
.stream-content.active { display: block; }
.subjects-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.subject-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--white); border: 1px solid rgba(14,165,233,0.2);
  border-radius: 100px; padding: 0.6rem 1.1rem;
  font-size: 0.88rem; font-weight: 600; color: var(--navy);
  transition: var(--transition);
}
.subject-pill i { color: var(--sky-dark); font-size: 0.85rem; }
.subject-pill:hover { background: var(--gradient-blue); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(29,78,216,0.2); }
.subject-pill:hover i { color: rgba(255,255,255,0.85); }

/* ===== FACULTY ===== */
.faculty-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.faculty-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
}
.faculty-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.faculty-img-wrap { position: relative; height: 240px; overflow: hidden; }
.faculty-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.faculty-card:hover .faculty-img-wrap img { transform: scale(1.08); }
.faculty-overlay {
  position: absolute; inset: 0;
  background: rgba(29,78,216,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.faculty-card:hover .faculty-overlay { opacity: 1; }
.faculty-overlay a {
  width: 44px; height: 44px; border-radius: 50%;
  background: white; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--royal);
  transition: var(--transition);
}
.faculty-overlay a:hover { background: var(--sky-dark); color: white; }
.faculty-info { padding: 1.25rem; }
.faculty-info h4 { font-weight: 700; font-size: 0.95rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.desig { display: block; font-size: 0.78rem; color: var(--gray); margin-bottom: 0.5rem; }
.subject-tag {
  display: inline-block; background: rgba(56,189,248,0.12); color: var(--sky-dark);
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 4px;
}

/* ===== FACILITIES ===== */
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.facility-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: var(--transition); position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fac-icon-wrap {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  background: var(--gradient-blue); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: white; z-index: 1;
  box-shadow: 0 4px 12px rgba(29,78,216,0.35);
}
.fac-img { width: 100%; height: 200px; object-fit: cover; transition: transform var(--transition-slow); }
.facility-card:hover .fac-img { transform: scale(1.05); }
.fac-body { padding: 1.5rem; }
.fac-body h4 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 0.5rem; }
.fac-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem; border-radius: 100px;
  font-weight: 600; font-size: 0.85rem;
  background: rgba(14,165,233,0.08); color: var(--gray);
  border: 1px solid rgba(14,165,233,0.2); transition: var(--transition);
}
.filter-btn.active { background: var(--gradient-blue); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(29,78,216,0.25); }
.filter-btn:hover:not(.active) { background: rgba(14,165,233,0.15); color: var(--sky-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  height: 220px; transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,0.85) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 1rem; opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 1.5rem; color: white; margin-bottom: 0.4rem; }
.gallery-overlay span { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.95);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-content { max-width: 90vw; max-height: 90vh; text-align: center; }
.lb-content img { max-width: 100%; max-height: 80vh; border-radius: 8px; object-fit: contain; }
#lbCaption { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 0.75rem; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,0.1); border: none;
  color: white; font-size: 1.2rem; border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ===== ACHIEVEMENTS ===== */
.ach-tab-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ach-tab {
  padding: 0.65rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  background: rgba(14,165,233,0.08); color: var(--gray);
  transition: var(--transition);
}
.ach-tab.active { background: var(--gradient-blue); color: white; box-shadow: 0 4px 12px rgba(29,78,216,0.25); }
.ach-content { display: none; }
.ach-content.active { display: block; }
.ach-list { display: flex; flex-direction: column; gap: 1rem; }
.ach-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.ach-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.ach-year {
  min-width: 60px; font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 700; color: var(--sky-dark);
  flex-shrink: 0; padding-top: 0.1rem;
}
.ach-detail i { font-size: 1.3rem; color: var(--gold); margin-bottom: 0.5rem; }
.ach-detail h4 { font-weight: 700; color: var(--charcoal); margin-bottom: 0.3rem; }
.ach-detail p { font-size: 0.88rem; color: var(--gray); }

/* Alumni */
.alumni-stories { display: flex; flex-direction: column; gap: 1.5rem; }
.alumni-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
}
.alumni-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--sky-light); }
.alumni-info h4 { font-weight: 700; color: var(--charcoal); margin-bottom: 0.2rem; }
.alumni-info span { font-size: 0.78rem; color: var(--sky-dark); font-weight: 600; display: block; margin-bottom: 0.5rem; }
.alumni-info p { font-size: 0.88rem; color: var(--gray); font-style: italic; }

/* ===== ADMISSIONS ===== */
.admissions-section { background: var(--light); }
.admissions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.adm-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.05);
}
.adm-box h3 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 1rem; }
.adm-box h3 i { color: var(--sky-dark); }
.adm-steps { padding-left: 1.25rem; list-style: decimal; display: flex; flex-direction: column; gap: 0.75rem; }
.adm-steps li { font-size: 0.9rem; color: var(--gray); padding-left: 0.25rem; }
.adm-steps li strong { color: var(--charcoal); }
.adm-list { display: flex; flex-direction: column; gap: 0.5rem; }
.adm-list li { font-size: 0.88rem; color: var(--gray); padding: 0.4rem 0; border-bottom: 1px solid rgba(0,0,0,0.04); display: flex; align-items: center; gap: 0.5rem; }
.adm-list li::before { content: '✓'; color: var(--sky-dark); font-weight: 700; flex-shrink: 0; }

/* Enquiry Form Card */
.enquiry-form-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
}
.enquiry-form-card h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.4rem; }
.enquiry-form-card > p { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.5rem; }

/* Forms */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--charcoal); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.1); border-radius: 8px;
  font-size: 0.9rem; color: var(--charcoal);
  background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--sky-dark);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}
.form-group input.error, .form-group select.error, .form-group textarea.error {
  border-color: var(--accent-red);
}
.error-msg { font-size: 0.75rem; color: var(--accent-red); margin-top: 0.25rem; display: block; }
.form-success {
  display: none; align-items: center; gap: 0.5rem;
  background: rgba(16,185,129,0.1); color: #059669;
  border-radius: 8px; padding: 0.75rem 1rem;
  font-weight: 600; font-size: 0.9rem; margin-top: 1rem;
}
.form-success.show { display: flex; }

/* ===== NOTICES ===== */
.notices-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.notice-search-wrap {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--white); border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 10px; padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.notice-search-wrap i { color: var(--gray-light); }
.notice-search-wrap input {
  flex: 1; border: none; outline: none;
  font-size: 0.9rem; color: var(--charcoal); background: none;
}
.notice-filter-wrap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.notice-filter {
  padding: 0.45rem 1rem; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  background: rgba(14,165,233,0.08); color: var(--gray);
  border: 1px solid rgba(14,165,233,0.2); transition: var(--transition);
}
.notice-filter.active { background: var(--gradient-blue); color: white; border-color: transparent; }
.notices-list { display: flex; flex-direction: column; gap: 1rem; }
.notice-item {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.notice-item:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.notice-item.important { border-left: 4px solid var(--accent-red); }
.notice-left { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.notice-date-block {
  display: flex; flex-direction: column; align-items: center;
  background: var(--light); border-radius: 8px;
  padding: 0.5rem 0.75rem; text-align: center; min-width: 56px;
}
.notice-date-block span:first-child { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
.notice-date-block span:last-child { font-size: 0.65rem; color: var(--gray); font-weight: 600; text-transform: uppercase; }
.notice-tag {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem; border-radius: 4px;
}
.exam-tag { background: rgba(99,102,241,0.1); color: #4F46E5; }
.event-tag { background: rgba(14,165,233,0.1); color: var(--sky-dark); }
.holiday-tag { background: rgba(16,185,129,0.1); color: #059669; }
.fee-tag { background: rgba(239,68,68,0.1); color: var(--accent-red); }
.general-tag { background: rgba(100,116,139,0.1); color: var(--gray); }
.notice-body { flex: 1; }
.notice-body h4 { font-weight: 700; font-size: 0.95rem; color: var(--charcoal); margin-bottom: 0.25rem; }
.notice-body p { font-size: 0.85rem; color: var(--gray); }
.notice-download {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  background: var(--light); color: var(--sky-dark);
  padding: 0.75rem; border-radius: 8px; font-size: 0.7rem; font-weight: 700;
  transition: var(--transition);
}
.notice-download:hover { background: var(--sky-dark); color: white; }
.notice-download i { font-size: 1.1rem; }
.notice-item.hidden { display: none; }
.no-results-msg { text-align: center; color: var(--gray); padding: 2rem; font-size: 0.95rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; margin-bottom: 3rem; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.ci-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--light); border-radius: var(--radius);
  padding: 1.25rem; transition: var(--transition);
}
.ci-card:hover { background: rgba(56,189,248,0.08); }
.ci-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--gradient-blue); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: white; flex-shrink: 0; }
.ci-card h4 { font-weight: 700; font-size: 0.85rem; color: var(--navy); margin-bottom: 0.25rem; }
.ci-card p { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }
.social-links-block h4 { font-weight: 700; color: var(--charcoal); margin-bottom: 0.75rem; }
.social-row { display: flex; gap: 0.6rem; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: white; transition: var(--transition);
}
.social-btn.fb { background: #1877F2; }
.social-btn.tw { background: #000; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.yt { background: #FF0000; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.contact-form-col form h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 1.5rem; }
.map-title { font-family: var(--font-head); font-size: 1.3rem; color: var(--navy); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; }
.map-title i { color: var(--sky-dark); }
.map-container { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }

/* ===== FOOTER ===== */
.footer { background: var(--deep); color: rgba(255,255,255,0.7); }
.footer-top { padding: 4rem 0; }
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-emblem { width: 44px; height: 44px; background: var(--gradient-blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white; flex-shrink: 0; }
.footer-school-name { display: block; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: white; }
.footer-school-sub { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.footer-about { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--sky-dark); color: white; }
.footer-col h4 { font-weight: 700; color: white; font-size: 0.95rem; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.85rem; transition: var(--transition); }
.footer-col ul a:hover { color: var(--sky-light); padding-left: 0.25rem; }
.footer-contact-list { display: flex; flex-direction: column; gap: 0.75rem !important; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; }
.footer-contact-list i { color: var(--sky); font-size: 0.85rem; flex-shrink: 0; margin-top: 0.2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center; }
.footer-bottom p { font-size: 0.8rem; }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gradient-blue);
  color: white; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(29,78,216,0.4);
  opacity: 0; visibility: hidden;
  transition: var(--transition); z-index: 500;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(29,78,216,0.5); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

  /* ===== LANGUAGE SWITCHER ===== */

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.language-btn {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 700;
  transition: var(--transition);
}

.language-btn:hover {
  color: var(--sky-dark);
}

.language-btn.active {
  color: var(--navy);
  background: rgba(14, 165, 233, 0.08);
}

.language-divider {
  color: #cbd5e1;
  font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .faculty-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .welcome-grid,
  .principal-wrap,
  .admissions-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .welcome-badge-float { right: 1rem; bottom: -1rem; }
  .mvv-grid { grid-template-columns: 1fr; }
  .academics-top-grid { grid-template-columns: 1fr; }
  .announcements-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .history-timeline::before { left: 60px; }
  .topbar-left { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .stats-grid { flex-direction: column; align-items: center; }
  .stat-card { max-width: 100%; width: 100%; }
  .facilities-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr; gap: 2rem; }
  .notice-item { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .principal-img-wrap img { height: 280px; }
  .welcome-img-wrap img { height: 280px; }
  .history-timeline { padding-left: 0; }
  .history-timeline::before { display: none; }
  .timeline-item { flex-direction: column; gap: 0.75rem; }
  .tl-dot { display: none; }
  .tl-year { text-align: left; }
}

@media (max-width: 400px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* =========================================
   ACADEMICS PAGE
========================================= */

.academics-overview {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.academic-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.academic-fact {
  background: #ffffff;
  border: 1px solid rgba(18, 58, 99, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(18, 58, 99, 0.08);
}

.academic-fact strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #123A63;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.academic-fact span {
  color: #64748B;
  font-size: 0.82rem;
}

.academic-structure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.academic-structure-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: 0 8px 30px rgba(18, 58, 99, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.academic-structure-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(18, 58, 99, 0.13);
}

.academic-card-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #EEF6FC;
  color: #2E6FAF;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.academic-card-label {
  display: inline-block;
  color: #2E6FAF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.academic-structure-card h3 {
  font-family: var(--font-head);
  color: #123A63;
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.academic-structure-card p {
  color: #64748B;
  line-height: 1.8;
  font-size: 0.94rem;
}

.academic-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.academic-list div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #1E293B;
  font-size: 0.9rem;
}

.academic-list i {
  color: #2E6FAF;
  font-size: 0.75rem;
}

.academics-note-section {
  background: #EEF6FC;
}

.academic-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background: #ffffff;
  border-left: 4px solid #2E6FAF;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(18, 58, 99, 0.08);
}

.academic-note-icon {
  color: #2E6FAF;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.academic-note h3 {
  font-family: var(--font-head);
  color: #123A63;
  margin-bottom: 0.4rem;
}

.academic-note p {
  color: #64748B;
  font-size: 0.92rem;
  line-height: 1.7;
}

.academic-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.academic-value {
  text-align: center;
  padding: 1.75rem 1rem;
  border: 1px solid rgba(18, 58, 99, 0.1);
  border-radius: 16px;
  background: #ffffff;
}

.academic-value i {
  font-size: 1.5rem;
  color: #2E6FAF;
  margin-bottom: 0.7rem;
}

.academic-value h3 {
  font-family: var(--font-head);
  color: #123A63;
  font-size: 1.05rem;
}


@media (max-width: 800px) {

  .academic-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .academic-structure-grid {
    grid-template-columns: 1fr;
  }

  .academic-values {
    grid-template-columns: repeat(2, 1fr);
  }

}


@media (max-width: 480px) {

  .academic-facts {
    grid-template-columns: 1fr;
  }

  .academic-values {
    grid-template-columns: 1fr 1fr;
  }

  .academic-note {
    padding: 1.25rem;
  }

}

/* =========================================
   PRINCIPAL PAGE
========================================= */

.principal-page-section {
  background: #ffffff;
}

.principal-page-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}

.principal-profile {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 58, 99, 0.1);
  box-shadow: 0 12px 40px rgba(18, 58, 99, 0.12);
}

.principal-profile-image {
  width: 100%;
  background: #eef6fc;
}

.principal-profile-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.principal-profile-info {
  padding: 1.5rem;
  text-align: center;
}

.principal-profile-info h2 {
  font-family: var(--font-head);
  color: #123a63;
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.principal-profile-info p {
  color: #2e6faf;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.principal-profile-info span {
  color: #64748b;
  font-size: 0.85rem;
}

.principal-opening {
  padding: 2rem 0;
}

.principal-opening-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6fc;
  color: #2e6faf;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.principal-opening blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.35;
  color: #123a63;
  margin: 0;
}

.principal-message-section {
  background: #eef6fc;
}

.principal-message-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 10px 35px rgba(18, 58, 99, 0.08);
}

.principal-message-text {
  margin-top: 2rem;
}

.message-language {
  color: #4b5563;
}

.message-language p {
  font-size: 1rem;
  line-height: 1.95;
  margin-bottom: 1.2rem;
}

.message-gu {
  display: none;
}

.principal-highlight-quote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid #c9a227;
  background: #fffaf0;
  color: #123a63;
  font-family: var(--font-head);
  font-size: 1.25rem;
  line-height: 1.7;
}

.principal-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #64748b;
}

.principal-signature strong {
  color: #123a63;
  font-family: var(--font-head);
  font-size: 1.2rem;
}

.principal-signature span {
  color: #2e6faf;
  font-weight: 700;
}

.principal-signature small {
  font-size: 0.82rem;
}

@media (max-width: 850px) {

  .principal-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
  }

  .principal-profile {
    max-width: 360px;
    margin: 0 auto;
  }

  .principal-opening {
    text-align: center;
  }

  .principal-opening-icon {
    margin-left: auto;
    margin-right: auto;
  }

}

@media (max-width: 600px) {

  .principal-message-card {
    padding: 1.5rem;
    border-radius: 18px;
  }

  .principal-profile-image img {
    height: 320px;
  }

  .principal-opening blockquote {
    font-size: 1.7rem;
  }

}
/* =========================================
   ADMISSIONS PAGE
========================================= */

.admission-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.admission-section-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(18, 58, 99, 0.09);
  box-shadow: 0 8px 30px rgba(18, 58, 99, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admission-section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(18, 58, 99, 0.13);
}

.admission-section-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6fc;
  color: #2e6faf;
  border-radius: 14px;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.admission-section-card h3 {
  font-family: var(--font-head);
  color: #123a63;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.admission-section-card p {
  color: #64748b;
  line-height: 1.8;
  font-size: 0.93rem;
}

.admission-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.admission-info-card {
  background: #ffffff;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: 0 6px 24px rgba(18, 58, 99, 0.07);
}

.admission-info-card > i {
  color: #2e6faf;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.admission-info-card h3 {
  font-family: var(--font-head);
  color: #123a63;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.admission-info-card p {
  color: #64748b;
  line-height: 1.75;
  font-size: 0.9rem;
}

.admission-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  background: #123a63;
  color: #ffffff;
}

.admission-cta-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffffff;
  font-size: 1.4rem;
}

.admission-cta-content {
  flex: 1;
}

.admission-cta-content h2 {
  font-family: var(--font-head);
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.admission-cta-content p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 850px) {

  .admission-sections-grid {
    grid-template-columns: 1fr;
  }

  .admission-info-grid {
    grid-template-columns: 1fr;
  }

  .admission-cta {
    flex-direction: column;
    align-items: flex-start;
  }

}

@media (max-width: 600px) {

  .admission-cta {
    padding: 1.5rem;
  }

}

@media (max-width: 640px) {

  .school-logo {
    width: 64px;
    height: 64px;
  }

  .nav-inner {
    min-height: 78px;
  }

  .school-name {
    font-size: 1rem;
  }

}

/* =========================================
   PUBLIC NOTICES PAGE
========================================= */

.notices-page-section {
  background: #ffffff;
}

.notices-page-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.notice-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 430px;
}

.notice-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.notice-search-wrap input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  border: 1px solid #dbe5ee;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #1e293b;
  background: #ffffff;
  outline: none;
}

.notice-search-wrap input:focus {
  border-color: #2e6faf;
  box-shadow: 0 0 0 3px rgba(46, 111, 175, 0.1);
}

.notice-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notice-category-btn {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  background: #eef6fc;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.notice-category-btn:hover {
  color: #123a63;
}

.notice-category-btn.active {
  background: #123a63;
  color: #ffffff;
}

.public-notices-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.public-notice-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(18, 58, 99, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 7px 25px rgba(18, 58, 99, 0.07);
}

.public-notice-date {
  width: 80px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #eef6fc;
  border-radius: 14px;
  color: #123a63;
}

.public-notice-date strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 1;
}

.public-notice-date span {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.public-notice-date small {
  font-size: 0.68rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.public-notice-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  background: #eef6fc;
  color: #2e6faf;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.65rem;
}

.public-notice-content h2 {
  font-family: var(--font-head);
  color: #123a63;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.public-notice-content p {
  color: #64748b;
  line-height: 1.75;
  font-size: 0.9rem;
}

.notices-empty-state {
  margin-top: 1rem;
  padding: 2.5rem;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  background: #f8fbfe;
}

.notices-empty-state i {
  color: #2e6faf;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.notices-empty-state h3 {
  font-family: var(--font-head);
  color: #123a63;
  margin-bottom: 0.4rem;
}

.notices-empty-state p {
  max-width: 600px;
  margin: 0 auto;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}


@media (max-width: 700px) {

  .notices-page-controls {
    align-items: stretch;
  }

  .notice-search-wrap {
    max-width: none;
    min-width: 100%;
  }

  .public-notice-card {
    grid-template-columns: 1fr;
  }

}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-information-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: 0 7px 25px rgba(18, 58, 99, 0.07);
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 13px;
  background: #eef6fc;
  color: #2e6faf;
  font-size: 1.2rem;
}

.contact-detail-card h3 {
  font-family: var(--font-head);
  color: #123a63;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.contact-detail-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}

.contact-location-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-location-text {
  padding: 2rem;
  border-radius: 20px;
  background: #123a63;
  color: #ffffff;
}

.contact-location-text > i {
  font-size: 1.6rem;
  color: #6fc6ff;
  margin-bottom: 1rem;
}

.contact-location-text h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.contact-location-text p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.contact-map-placeholder {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border-radius: 20px;
  border: 1px dashed #b8c9d8;
  background: #f8fbfe;
  text-align: center;
}

.contact-map-placeholder i {
  color: #2e6faf;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.contact-map-placeholder p {
  color: #64748b;
  font-size: 0.9rem;
}

.contact-enquiry-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 20px;
  background: #eef6fc;
}

.contact-enquiry-icon {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 15px;
  background: #123a63;
  color: #ffffff;
  font-size: 1.3rem;
}

.contact-enquiry-box > div:nth-child(2) {
  flex: 1;
}

.contact-enquiry-box h2 {
  font-family: var(--font-head);
  color: #123a63;
  margin-bottom: 0.35rem;
}

.contact-enquiry-box p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 800px) {

  .contact-information-grid {
    grid-template-columns: 1fr;
  }

  .contact-location-card {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 600px) {

  .contact-enquiry-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

}

/* =========================================
   HILL MEMORIAL HOME PAGE
========================================= */

/* Topbar */
.topbar-school-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-school-info > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-school-info i {
  color: var(--sky);
}

/* Heritage */
.home-heritage {
  background: var(--white);
}

.home-heritage-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.home-heritage-content .section-label {
  text-align: left;
}

.home-heritage-content .section-title {
  text-align: left;
}

.home-heritage-content p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.home-motto {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.6;
}

.home-heritage-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--light);
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: var(--shadow-card);
}

.heritage-number {
  text-align: center;
}

.heritage-number strong {
  display: block;
  font-family: var(--font-head);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--navy);
}

.heritage-number > span {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray);
  font-weight: 600;
}

.heritage-card-line {
  height: 1px;
  background: rgba(18, 58, 99, 0.1);
  margin: 1.75rem 0;
}

.heritage-fact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.heritage-fact i {
  color: var(--sky-dark);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.heritage-fact div {
  display: flex;
  flex-direction: column;
}

.heritage-fact strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.heritage-fact span {
  color: var(--gray);
  font-size: 0.85rem;
}

/* Home school sections */
.home-school-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-school-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(18, 58, 99, 0.08);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.home-school-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.home-school-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.home-school-label {
  display: block;
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.home-school-card h3 {
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.home-school-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.home-school-card a {
  color: var(--sky-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Notices preview */
.home-notices {
  background: var(--white);
}

.home-notice-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--light);
  border: 1px solid rgba(18, 58, 99, 0.08);
  border-radius: var(--radius-lg);
}

.home-notice-preview-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--white);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.home-notice-preview h3 {
  color: var(--navy);
  font-family: var(--font-head);
  margin-bottom: 0.35rem;
}

.home-notice-preview p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Principal preview */
.home-principal-preview {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.home-principal-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.home-principal-content blockquote {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.6;
}

.home-principal-content p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* Admissions */
.home-admissions {
  background: var(--light);
}

.home-admissions-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 58, 99, 0.08);
}

.home-admissions-box h2 {
  font-family: var(--font-head);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.home-admissions-box p {
  color: var(--gray);
  max-width: 650px;
}

/* Contact preview */
.home-contact-preview {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(18, 58, 99, 0.08);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.home-contact-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--light);
  color: var(--sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.home-contact-text h3 {
  color: var(--navy);
  font-family: var(--font-head);
  margin-bottom: 0.35rem;
}

.home-contact-text p,
.home-contact-text span {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {

  .topbar-school-info {
    justify-content: center;
    gap: 0.8rem 1rem;
    text-align: center;
  }

  .home-heritage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .home-school-sections {
    grid-template-columns: 1fr;
  }

  .home-principal-preview {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .home-principal-image {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .home-admissions-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-contact-preview {
    grid-template-columns: auto 1fr;
  }

  .home-contact-preview .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {

  .home-notice-preview {
    grid-template-columns: 1fr;
  }

  .home-admissions-box {
    padding: 1.5rem;
  }

  .home-contact-preview {
    grid-template-columns: auto 1fr;
  }

  .home-principal-image img {
    height: 320px;
  }
}

/* =========================================
   FINAL NAVBAR + HERO OVERRIDES
   These rules intentionally come last so
   they take priority over older styles.
========================================= */

#navbar .nav-inner {
  min-height: 100px !important;
  height: 100px !important;
}

#navbar .logo {
  gap: 1.15rem !important;
}

#navbar .school-logo {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
}

#navbar .school-name {
  font-family: var(--font-head) !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

#navbar .school-sub {
  font-size: 0.82rem !important;
  margin-top: 0.3rem !important;
}

#navbar .nav-links {
  gap: 0.25rem !important;
}

#navbar .nav-link {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 0.8rem !important;
}

#navbar .language-switcher {
  font-size: 0.88rem !important;
}

#navbar .language-btn {
  font-size: 0.86rem !important;
  padding: 0.45rem 0.6rem !important;
}

/* =========================================
   HERO — KEEP EVERYTHING INSIDE VIEWPORT
========================================= */

.hero {
  min-height: calc(100vh - 100px) !important;
}

.hero-scroll-hint {
  bottom: 1rem !important;
  z-index: 10 !important;
}

.hero-scroll-hint span {
  font-size: 0.88rem !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.hero-scroll-hint i {
  font-size: 1rem !important;
  color: #ffffff !important;
}

/* Slightly larger hero copy */
.hero-title {
  font-size: clamp(3rem, 7vw, 5.4rem) !important;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.22rem) !important;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

  .hero {
    height: calc(100svh - 82px) !important;
    min-height: 650px !important;
  }

  .hero-scroll-hint {
    bottom: 14px !important;
  }

}

@media (max-width: 480px) {

  .hero {
    min-height: 620px !important;
  }

  .hero-scroll-hint {
    bottom: 12px !important;
  }

  .hero-scroll-hint span {
    font-size: 0.75rem !important;
  }

  .hero-scroll-hint i {
    font-size: 0.9rem !important;
  }

}

@media (max-width: 480px) {

  #navbar .school-logo {
    width: 62px !important;
    height: 62px !important;
  }

  #navbar .school-name {
    font-size: 0.98rem !important;
  }

  #navbar .school-sub {
    font-size: 0.66rem !important;
  }

  .hero-title {
    font-size: clamp(2.4rem, 10vw, 3.4rem) !important;
  }

  .hero-sub {
    font-size: 1rem !important;
  }

  .hero-scroll-hint span {
    font-size: 0.78rem !important;
  }
}

/* =========================================
   NAVBAR WIDTH BALANCE
========================================= */

@media (min-width: 901px) and (max-width: 1250px) {

  #navbar .school-logo {
    width: 76px !important;
    height: 76px !important;
  }

  #navbar .school-name {
    font-size: 1.2rem !important;
  }

  #navbar .school-sub {
    font-size: 0.72rem !important;
  }

  #navbar .nav-link {
    font-size: 0.82rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }
}

/* =========================================
   STATS BREAKDOWN
========================================= */

.stat-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

.stat-breakdown span {
  display: block;
}

/* Slightly stronger stats layout */
.stats-section {
  background: #123A63 !important;
  padding: 4rem 0 !important;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.25rem !important;
}

.stat-card {
  min-width: 0 !important;
  max-width: none !important;
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 18px !important;
  padding: 1.8rem 1.25rem !important;
}

.stat-num {
  font-size: 2.45rem !important;
  color: #ffffff !important;
}

.stat-label {
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.9rem !important;
}

.stat-icon {
  color: #6FAED9 !important;
}

@media (max-width: 900px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

}

@media (max-width: 560px) {

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

}

/* =========================================
   SUBJECTS OFFERED — ACADEMICS PAGE
========================================= */

.subjects-section {
  background: #EEF6FC;
  padding: 1rem 0 4rem;
}

.subjects-heading {
  margin-bottom: 2rem;
}

.subjects-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #123A63;
  margin: 0;
}

.streams-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.stream-tab {
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  background: #DCEEF9;
  color: #64748B;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  transition: var(--transition);
}

.stream-tab:hover {
  background: #CFE8F6;
  color: #123A63;
}

.stream-tab.active {
  background: var(--gradient-blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.22);
}

.stream-content {
  display: none;
}

.stream-content.active {
  display: block;
}

.subjects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #BFE3F7;
  color: #123A63;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 56px;
  transition: var(--transition);
}

.subject-pill i {
  color: #0EA5E9;
  font-size: 1rem;
}

.subject-pill:hover {
  transform: translateY(-2px);
  border-color: #7CC7EE;
  box-shadow: 0 6px 18px rgba(18, 58, 99, 0.08);
}

@media (max-width: 600px) {

  .subjects-heading h2 {
    font-size: 2rem;
  }

  .stream-tab {
    width: 100%;
    text-align: left;
  }

  .subject-pill {
    width: 100%;
    justify-content: flex-start;
  }

}

/* =========================================
   OFFICIAL SCHOOL INTRODUCTION
========================================= */

.about-official-section {
  background: #ffffff;
}

.official-history {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
}

.official-history-heading {
  text-align: center;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.official-history-heading h2 {
  font-family: var(--font-head);
  color: #123A63;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.official-history-heading h3 {
  font-family: var(--font-head);
  color: #2E6FAF;
  font-size: 1.35rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.official-motto {
  display: inline-block;
  margin: 0.5rem auto;
  padding: 0.9rem 1.25rem;
  background: #fffaf0;
  border-left: 4px solid #C9A227;
  border-radius: 10px;
  color: #123A63;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.official-history h2 {
  font-family: var(--font-head);
  color: #123A63;
  font-size: 1.55rem;
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #EEF6FC;
}

.official-history p {
  color: #475569;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.25rem;
}

.official-quality-list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.official-quality-list li {
  color: #475569;
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0.25rem;
}

.official-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: #EEF6FC;
  border-left: 4px solid #2E6FAF;
  border-radius: 12px;
  color: #123A63;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.7;
  text-align: center;
}

.official-closing {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 18px;
  background: #EEF6FC;
  text-align: center;
  border: 1px solid rgba(18, 58, 99, 0.08);
}

.official-closing strong {
  display: block;
  font-family: var(--font-head);
  color: #123A63;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.official-closing span {
  color: #2E6FAF;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Language-specific long-form blocks */
.message-gu {
  display: none;
}

@media (max-width: 700px) {

  .official-history {
    width: 100%;
  }

  .official-history p {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .official-history h2 {
    font-size: 1.35rem;
  }

  .official-motto {
    font-size: 1rem;
  }

  .official-quality-list {
    padding-left: 1.25rem;
  }

  .official-closing {
    padding: 1.5rem;
  }

}

/* =========================================
   FINAL HERO + SCROLL HINT
========================================= */

.hero {
  position: relative !important;
  height: calc(100svh - 100px) !important;
  min-height: 680px !important;
  overflow: hidden !important;
}

.hero-scroll-hint {
  position: absolute !important;
  left: 50% !important;
  bottom: 18px !important;

  width: max-content !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 0.5rem !important;

  transform: translateX(-50%) !important;

  z-index: 100 !important;

  color: #ffffff !important;

  animation: none !important;
}

.hero-scroll-hint span {
  display: block !important;

  color: rgba(255,255,255,0.9) !important;

  font-size: 0.86rem !important;
  font-weight: 600 !important;

  line-height: 1.2 !important;

  white-space: nowrap !important;
}

/* CSS arrow */
.hero-scroll-hint i {
  display: block !important;

  position: relative !important;

  width: 13px !important;
  height: 13px !important;

  margin-top: 2px !important;

  border-right: 2.5px solid #ffffff !important;
  border-bottom: 2.5px solid #ffffff !important;

  font-size: 0 !important;
  line-height: 0 !important;

  transform: rotate(45deg) !important;

  animation: arrowDownUp 1.5s ease-in-out infinite !important;
}

/* Reliable bounce: moves with TOP, not transform */
@keyframes arrowDownUp {

  0% {
    top: 0;
    opacity: 0.65;
  }

  50% {
    top: 7px;
    opacity: 1;
  }

  100% {
    top: 0;
    opacity: 0.65;
  }

}

/* Mobile */
@media (max-width: 900px) {

  .hero {
    height: calc(100svh - 82px) !important;
    min-height: 630px !important;
  }

  .hero-scroll-hint {
    bottom: 15px !important;
  }

}

@media (max-width: 480px) {

  .hero {
    min-height: 610px !important;
  }

  .hero-scroll-hint {
    bottom: 12px !important;
  }

  .hero-scroll-hint span {
    font-size: 0.78rem !important;
  }

  .hero-scroll-hint i {
    width: 11px !important;
    height: 11px !important;
  }

}

/* =========================================================
   STAFF NAV DROPDOWN
   Keeps the existing Hill Memorial royal blue theme
========================================================= */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.nav-dropdown-toggle i {
  font-size: 0.62rem;
  transition: transform 0.25s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(18, 58, 99, 0.08);
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(18, 58, 99, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 500;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(18, 58, 99, 0.08);
  border-top: 1px solid rgba(18, 58, 99, 0.08);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 0.8rem;
  color: #123A63;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-dropdown-menu a i {
  width: 18px;
  color: #2E6FAF;
  font-size: 0.8rem;
}

.nav-dropdown-menu a:hover {
  background: #EEF6FC;
  color: #123A63;
  transform: translateX(2px);
}

.nav-dropdown-menu a:hover i {
  color: #C9A227;
}

/* Desktop hover */
@media (min-width: 901px) {

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown:hover .nav-dropdown-toggle i,
  .nav-dropdown:focus-within .nav-dropdown-toggle i {
    transform: rotate(180deg);
  }

}

/* =========================================================
   MOBILE STAFF MENU
========================================================= */

.mobile-staff-menu {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mobile-staff-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.5rem;
  color: #123A63;
  font-weight: 700;
}

.mobile-staff-title i {
  color: #2E6FAF;
}

.mobile-staff-child {
  padding-left: 3rem !important;
  background: #f8fbff;
}

.mobile-staff-child i {
  width: 18px;
  margin-right: 0.35rem;
  color: #2E6FAF;
}

/* =========================================================
   TEACHERS PAGE
========================================================= */

.teachers-page-hero {
  background:
    linear-gradient(
      135deg,
      #123A63 0%,
      #1d5688 55%,
      #2E6FAF 100%
    );
  color: #ffffff;
  padding: 6rem 0;
  text-align: center;
}

.teachers-page-hero .section-label {
  color: #ffffff;
  opacity: 0.82;
}

.teachers-page-hero h1 {
  margin: 0.4rem 0 0.9rem;
  color: #ffffff;
  font-family: var(--font-head);
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.teachers-page-hero p {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}


/* ===== TEACHER GROUP ===== */

.teacher-group {
  margin-bottom: 5rem;
}

.teacher-group:last-child {
  margin-bottom: 0;
}

.teacher-group-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.teacher-group-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;

  background: linear-gradient(
    145deg,
    #123A63,
    #2E6FAF
  );

  color: #ffffff;
  box-shadow: 0 10px 24px rgba(18,58,99,0.16);
}

.teacher-group-heading h2 {
  margin: 0.25rem 0 0.3rem;
  color: #123A63;
  font-family: var(--font-head);
  font-size: 1.55rem;
}

.teacher-group-heading span {
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 700;
}


/* ===== CARD GRID ===== */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}


/* ===== TEACHER CARD ===== */

.teacher-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(18,58,99,0.08);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(18,58,99,0.07);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.teacher-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 38px rgba(18,58,99,0.13);
  border-color: rgba(46,111,175,0.2);
}

.teacher-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: #EEF6FC;
}

.teacher-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(18,58,99,0.12),
      transparent 35%
    );
  pointer-events: none;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.teacher-card:hover .teacher-photo img {
  transform: scale(1.04);
}

.teacher-card-info {
  padding: 1.1rem 1.15rem 1.25rem;
}

.teacher-card-info h3 {
  margin: 0 0 0.28rem;
  color: #123A63;
  font-family: var(--font-head);
  font-size: 1rem;
}

.teacher-card-info p {
  margin: 0;
  color: #64748B;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {

  .teacher-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 800px) {

  .teacher-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 500px) {

  .teachers-page-hero {
    padding: 4.5rem 0;
  }

  .teacher-group-heading {
    align-items: flex-start;
  }

  .teacher-group-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .teacher-group-heading h2 {
    font-size: 1.25rem;
  }

  .teacher-grid {
    grid-template-columns: 1fr;
  }

}