/* ==========================================
   BRIGHT PUBLIC SCHOOL — GREEN & WHITE THEME
   ========================================== */

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

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #1a7a4a;
  --primary-light: #22a360;
  --primary-bright: #2ecc71;
  --primary-pale: #e8f7ef;
  --primary-ultra: #f0fbf5;
  --accent: #f4a829;
  --accent2: #e63946;
  --bg: #ffffff;
  --bg2: #f7fdf9;
  --bg3: #edf8f2;
  --surface: rgba(26,122,74,0.05);
  --surface2: rgba(26,122,74,0.09);
  --border: rgba(26,122,74,0.15);
  --border-bright: rgba(26,122,74,0.4);
  --text: #1c2b22;
  --text-dim: #4a6557;
  --text-bright: #0d1f15;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Plus Jakarta Sans', sans-serif;
  --mono-font: 'DM Mono', monospace;
  --glow: 0 0 20px rgba(26,122,74,0.18);
  --glow-strong: 0 0 40px rgba(26,122,74,0.32);
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 16px rgba(26,122,74,0.10);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ========== PROGRESS BAR ========== */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright), var(--accent));
  z-index: 9999; width: 0%; transition: width 0.1s;
  box-shadow: var(--glow);
}

/* ========== LOADER ========== */
#loader {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #0d3d22 0%, #1a7a4a 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.6s, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--heading-font);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #ffffff;
  letter-spacing: 0.12em;
  animation: pulse 1s ease-in-out infinite;
  margin-bottom: 4px;
}
.loader-sub {
  font-family: var(--mono-font);
  font-size: 0.65rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 20px; display: block;
}
.loader-bar {
  width: 220px; height: 3px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto; border-radius: 2px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, var(--accent));
  animation: load 1.8s ease-in-out forwards;
}
@keyframes load { 0%{width:0} 100%{width:100%} }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* leaf decorations in loader */
.loader-inner::before, .loader-inner::after {
  content: '🌿';
  position: absolute;
  font-size: 2rem;
  opacity: 0.2;
  animation: floatLeaf 3s ease-in-out infinite;
}
.loader-inner::before { left: 20%; top: 35%; animation-delay: 0s; }
.loader-inner::after  { right: 20%; top: 55%; animation-delay: 1.5s; }
@keyframes floatLeaf {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(8deg); }
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary);
  padding: 7px 0;
  font-family: var(--mono-font);
  font-size: 0.71rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}
.top-bar .container {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
}
.top-bar span::before { content: '📌 '; font-style: normal; opacity: 0.7; }
.top-bar span:nth-child(2)::before { content: '📞 '; }
.top-bar span:nth-child(3)::before { content: '📍 '; }

/* ========== HEADER / NAVBAR ========== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 2px solid var(--primary-pale);
  transition: all 0.3s;
}
header.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border-bright);
  box-shadow: 0 4px 30px rgba(26,122,74,0.12);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo {
  font-family: var(--heading-font);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.logo::before {
  content: '🏫';
  font-size: 1.4rem;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links a {
  font-family: var(--body-font);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.22s;
  position: relative;
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-pale);
}
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-pale);
  font-weight: 700;
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--primary); border-radius: 2px;
}
.hamburger {
  display: none; font-size: 1.5rem; cursor: pointer;
  color: var(--primary); padding: 4px;
}

/* ========== CONTAINER ========== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--primary);
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,50,25,0.88) 0%,
    rgba(15,70,35,0.72) 55%,
    rgba(26,122,74,0.50) 100%);
  z-index: 1;
}
/* subtle dot grid */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* big circle decoration */
.hero::after {
  content: '';
  position: absolute; z-index: 1;
  width: 600px; height: 600px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  bottom: -200px; right: -150px;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 24px;
  max-width: 860px;
}
.hero-eyebrow {
  font-family: var(--mono-font);
  font-size: 0.72rem; letter-spacing: 0.28em;
  color: var(--primary-bright); text-transform: uppercase;
  margin-bottom: 16px; opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 5px 16px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.14);
}
.hero-title {
  font-family: var(--heading-font);
  font-size: clamp(2.2rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 18px; opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}
.hero-title .highlight {
  color: var(--primary-bright);
  position: relative;
}
.hero-title .highlight::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-bright), var(--accent));
  border-radius: 2px;
}
.hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.12rem);
  color: rgba(255,255,255,0.72); font-weight: 400;
  letter-spacing: 0.03em; margin-bottom: 42px;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s 0.9s forwards;
}
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 8px;
}
.hero-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer; transition: all 0.3s;
}
.hero-dots span.active {
  background: var(--primary-bright);
  box-shadow: 0 0 10px var(--primary-bright);
  width: 22px; border-radius: 4px;
}
/* short hero for inner pages */
.hero-short {
  height: 42vh; min-height: 280px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body-font); font-size: 0.83rem;
  font-weight: 700; letter-spacing: 0.06em;
  padding: 13px 30px; border-radius: 8px; cursor: pointer;
  transition: all 0.25s; border: none;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(26,122,74,0.35);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 6px 30px rgba(26,122,74,0.5);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-pale);
  box-shadow: var(--glow); transform: translateY(-2px);
}
/* hero variant outline (white border on dark bg) */
.hero .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  box-shadow: none;
}

/* ========== SECTION ========== */
.section { padding: 88px 0; }
.section-sm { padding: 52px 0; }
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-tag {
  font-family: var(--mono-font); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary-light); margin-bottom: 10px;
  display: block;
}
.section-title h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  font-weight: 700; color: var(--text-bright);
}
.section-title h2 span { color: var(--primary); }
.section-title .divider {
  width: 70px; height: 3px; margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-bright), transparent);
  border-radius: 2px;
}

/* ========== GRADIENT BG ========== */
.gradient-bg {
  background: linear-gradient(160deg, var(--bg3) 0%, var(--bg2) 50%, var(--bg3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.gradient-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(26,122,74,0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 80% 50%, rgba(46,204,113,0.05) 0%, transparent 55%);
}

/* ========== CARDS ========== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px; padding: 30px 26px;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26,122,74,0.14);
}
.card:hover::after { transform: scaleX(1); }
.card-icon {
  font-size: 2.2rem; margin-bottom: 16px;
}
.card h3 {
  font-family: var(--heading-font); font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright); margin-bottom: 10px;
}
.card p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.65; }
.card-number {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--mono-font); font-size: 1.6rem;
  color: rgba(26,122,74,0.08); font-weight: 500;
}

/* ========== STATS ========== */
.stats {
  padding: 64px 0;
  background: var(--primary);
  position: relative; overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px; text-align: center; position: relative; z-index: 1;
}
.stat { padding: 16px; }
.stat-value {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 900; color: #ffffff;
  line-height: 1;
}
.stat p {
  font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  margin-top: 8px; font-family: var(--mono-font);
}
/* divider between stats */
.stats-grid .stat:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.12);
}

/* ========== PRINCIPAL SECTION ========== */
.principal-section { background: var(--bg2); }
.principal {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px; align-items: center;
}
.principal-image-wrap {
  position: relative;
}
.principal-image-wrap::before {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-pale), transparent);
  border: 1px solid var(--border);
}
.principal-image-wrap::after {
  content: ''; position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  background: var(--primary); border-radius: 12px;
  z-index: 0; opacity: 0.15;
}
.principal-image {
  border-radius: 10px; overflow: hidden;
  position: relative; z-index: 1;
  aspect-ratio: 3/4;
  box-shadow: 0 16px 48px rgba(26,122,74,0.2);
}
.principal-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.principal-content .tag {
  font-family: var(--mono-font); font-size: 0.65rem;
  letter-spacing: 0.25em; color: var(--primary-light);
  text-transform: uppercase; display: inline-block;
  margin-bottom: 12px;
  background: var(--primary-pale);
  padding: 4px 14px; border-radius: 30px;
  border: 1px solid var(--border);
}
.principal-content h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-bright); margin-bottom: 20px;
}
.principal-content p {
  color: var(--text-dim); line-height: 1.85;
  margin-bottom: 14px; font-size: 0.96rem;
}
.principal-name {
  font-family: var(--heading-font); font-size: 1rem;
  color: var(--primary); margin-top: 24px;
}
.principal-designation {
  font-size: 0.8rem; color: var(--text-dim); margin-top: 4px;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}
.gallery-grid img:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 24px rgba(26,122,74,0.2);
  transform: scale(1.03);
  z-index: 2; position: relative;
}
.img-crop { overflow: hidden; border-radius: 8px; }
.img-crop img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.35s; }
.img-crop:hover img { transform: scale(1.05); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(5,20,10,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 0 80px rgba(26,122,74,0.3);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 1.5rem; color: #ffffff; cursor: pointer;
  background: rgba(255,255,255,0.1); width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* lightbox nav arrows */
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; transition: background 0.2s;
  z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--primary); }

/* ========== TABLE ========== */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-card);
}
table th, table td {
  padding: 15px 22px;
  border: 1px solid var(--border);
  text-align: left;
}
table th {
  background: var(--primary);
  color: #ffffff;
  font-family: var(--heading-font); font-size: 0.8rem;
  letter-spacing: 0.05em;
}
table tr:hover td { background: var(--primary-ultra); }
table td { color: var(--text-dim); background: #fff; }

/* ========== FORM ========== */
form label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-bottom: 7px; font-weight: 600; }
form input, form textarea, form select {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-family: var(--body-font); font-size: 0.92rem;
  transition: all 0.25s; outline: none;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,122,74,0.10);
  background: var(--primary-ultra);
}
form textarea { resize: vertical; min-height: 120px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== CTA SECTION ========== */
.cta-section { background: var(--bg3); }
.cta-box {
  border: 1px solid var(--border);
  border-radius: 16px; padding: 60px 44px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-ultra) 100%);
  position: relative; overflow: hidden;
  box-shadow: 0 8px 48px rgba(26,122,74,0.10);
}
.cta-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-bright), var(--accent));
}
.cta-box::after {
  content: '🌿';
  position: absolute; font-size: 6rem; opacity: 0.05;
  right: -10px; bottom: -20px;
}
.cta-box h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--text-bright); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.cta-box p { color: var(--text-dim); margin-bottom: 30px; position: relative; z-index: 1; }
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 8px;
  font-family: var(--body-font); font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.04em;
  transition: all 0.25s;
}
.cta-btn.call {
  background: var(--primary-pale);
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.cta-btn.call:hover {
  background: var(--primary); color: #fff;
  box-shadow: var(--glow-strong);
}
.cta-btn.whatsapp {
  background: rgba(37,211,102,0.1);
  border: 1.5px solid #25d366; color: #1a7a40;
}
.cta-btn.whatsapp:hover {
  background: #25d366; color: white;
  box-shadow: 0 0 30px rgba(37,211,102,0.35);
}

/* ========== FLOATING BUTTONS ========== */
.call-btn, .whatsapp-btn {
  position: fixed; right: 20px; z-index: 998;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s;
}
.call-btn {
  bottom: 92px;
  background: #ffffff;
  border: 2px solid var(--primary);
}
.call-btn:hover {
  background: var(--primary);
  box-shadow: var(--glow-strong); transform: scale(1.1);
}
.whatsapp-btn {
  bottom: 24px;
  background: #25d366;
  border: 2px solid #1aab54;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(37,211,102,0.4);
}

/* ========== PARALLAX ========== */
.parallax {
  background-attachment: fixed;
  background-image: url('../assets/images/front/front2.jpg');
  background-size: cover; background-position: center;
  min-height: 300px; display: flex;
  align-items: center; justify-content: center;
  position: relative;
}
.parallax::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(8,40,18,0.85), rgba(20,90,45,0.75));
}
.parallax .container {
  position: relative; z-index: 1; text-align: center;
}
.parallax h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: #ffffff; margin-bottom: 10px;
}
.parallax p { color: rgba(255,255,255,0.72); }

/* ========== ANNOUNCEMENT BANNER ========== */
.announce-banner {
  background: linear-gradient(90deg, var(--primary-pale), #ffffff);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px; padding: 16px 24px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}
.announce-tag {
  font-family: var(--mono-font); font-size: 0.65rem;
  letter-spacing: 0.18em; background: var(--primary);
  color: #fff; padding: 4px 12px; border-radius: 20px;
  white-space: nowrap; font-weight: 500;
  animation: flashPulse 2.4s ease-in-out infinite;
}
@keyframes flashPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.65; }
}
.announce-text { font-size: 0.88rem; color: var(--text); font-weight: 600; }

/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-logo {
  font-family: var(--heading-font);
  font-size: 1.1rem; color: #ffffff;
  margin-bottom: 14px; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 10px;
}
.footer-logo::before { content: '🏫'; }
.footer-desc { font-size: 0.87rem; color: rgba(255,255,255,0.68); line-height: 1.75; }
footer h4 {
  font-family: var(--heading-font); font-size: 0.85rem;
  color: #ffffff; margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 0.86rem; color: rgba(255,255,255,0.65);
  transition: color 0.2s; display: flex; align-items: center; gap: 6px;
}
.footer-links a::before { content: '→'; font-size: 0.72rem; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.footer-links a:hover { color: var(--primary-bright); }
.footer-links a:hover::before { opacity: 1; transform: translateX(2px); }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  margin-bottom: 11px;
}
.footer-contact-item span:first-child { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0; margin-top: 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  font-family: var(--mono-font);
}
.footer-bottom a { color: var(--primary-bright); }

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== ABOUT PAGE ========== */
.about-hero { background-image: url('../assets/images/front/front1.jpg'); }
.about-hero .hero-overlay {
  background: linear-gradient(135deg, rgba(8,40,18,0.88) 0%, rgba(20,90,45,0.70) 100%);
}

/* ========== ACADEMICS PAGE ========== */
.academic-hero { background-image: url('../assets/images/front/front3.jpg'); }

/* ========== ADMISSIONS PAGE ========== */
.admission-hero { background-image: url('../assets/images/front/front2.jpg'); }

/* ========== CONTACT PAGE ========== */
.contact-hero { background-image: url('../assets/images/front/front1.jpg'); }
.map-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.map-wrap iframe { display: block; }

/* ========== CONTACT LAYOUT ========== */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}

/* ========== GALLERY PAGE ========== */
.gallery-section-title {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.gallery-section-title h2 {
  font-family: var(--heading-font); font-size: 1rem;
  color: var(--primary); white-space: nowrap;
}
.gallery-section-title::before, .gallery-section-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

/* ========== MANDATORY DISCLOSURE ========== */
.disclosure-wrap { max-width: 700px; margin: 0 auto; }

/* ========== BACK TO TOP BUTTON ========== */
#back-to-top {
  position: fixed; left: 20px; bottom: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
  color: var(--primary); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 997;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ========== SEARCH BAR (new feature) ========== */
.site-search {
  display: flex; align-items: center;
  gap: 8px; margin-left: auto;
}
.site-search input {
  width: 0; opacity: 0; padding: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 0.82rem;
  font-family: var(--body-font);
  color: var(--text); background: var(--primary-ultra);
  transition: all 0.35s; outline: none;
  pointer-events: none;
}
.site-search.open input {
  width: 180px; opacity: 1; padding: 6px 12px;
  pointer-events: all;
}
.site-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.10);
}
.search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 1.1rem;
  padding: 4px; display: flex; align-items: center;
  transition: color 0.2s;
}
.search-btn:hover { color: var(--primary); }

/* ========== NOTICE TICKER (new feature) ========== */
.notice-ticker {
  background: var(--primary-pale);
  border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow: hidden;
}
.ticker-inner {
  display: flex; align-items: center; gap: 0;
}
.ticker-label {
  flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-family: var(--mono-font); font-size: 0.65rem;
  letter-spacing: 0.15em; padding: 4px 14px;
  font-weight: 500; text-transform: uppercase;
  margin-right: 16px;
}
.ticker-track {
  display: flex; gap: 60px;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
}
.ticker-track span {
  font-size: 0.82rem; color: var(--text); font-weight: 500;
}
.ticker-track span::before { content: '📢 '; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .principal { grid-template-columns: 1fr; gap: 32px; }
  .principal-image-wrap { max-width: 260px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 640px) {
  header { position: relative; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 2px solid var(--border);
    padding: 16px 24px; gap: 0;
    box-shadow: 0 8px 24px rgba(26,122,74,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--border); width: 100%; border-radius: 0; }
  .nav-links a:last-child { border-bottom: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
}

/* ========== MISC UTILITIES ========== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }

/* page accent */
.page-accent {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--primary-bright) 60%, transparent 100%);
  opacity: 0.5;
}

/* ========== SELECTION COLOR ========== */
::selection {
  background: var(--primary);
  color: #ffffff;
}
/* leadership signature layout */
.leadership-sign {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.leader {
  min-width: 200px;
}

.principal-name {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.principal-designation {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
