/* ============================================================
   Prakriti Public School — Main Stylesheet
   Colors: Navy #1A2F6E | Orange #E07422 | Green #2E8B57
   Fonts: Poppins (headings) | Inter (body) | Noto Sans Kannada
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --navy:        #1A2F6E;
  --navy-dark:   #112050;
  --navy-light:  #243d8a;
  --orange:      #E07422;
  --orange-dark: #c05e10;
  --orange-light:#f08c3a;
  --green:       #2E8B57;
  --green-dark:  #1f6b40;
  --green-light: #3daa6d;
  --white:       #ffffff;
  --light:       #F5F7FC;
  --cream:       #FDF9F0;
  --border:      #E0E6F0;
  --text:        #1C1C2E;
  --text-muted:  #5A6478;
  --shadow-sm:   0 2px 8px rgba(26,47,110,0.08);
  --shadow-md:   0 4px 20px rgba(26,47,110,0.12);
  --shadow-lg:   0 8px 40px rgba(26,47,110,0.18);
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  all 0.3s ease;
  --font-head:   'Poppins', 'Noto Sans Kannada', sans-serif;
  --font-body:   'Inter', 'Noto Sans Kannada', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
body.popup-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Kannada Font ──────────────────────────────────────────────────────── */
.lang-kn, .lang-kn * { font-family: 'Noto Sans Kannada', 'Poppins', sans-serif; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.mt-2 { margin-top: 0.75rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem;
  transition: var(--transition); cursor: pointer; border: 2px solid transparent;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(224,116,34,0.35); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* Section Headings */
.section-title {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 12px; line-height: 1.2;
}
.section-subtitle {
  font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 16px;
}
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px; color: var(--orange);
  background: rgba(224,116,34,0.1); padding: 4px 14px; border-radius: 30px;
  margin-bottom: 14px;
}
.title-underline {
  width: 60px; height: 4px; background: var(--orange);
  border-radius: 2px; margin: 0 auto 30px;
}
.title-underline-left { margin-left: 0; }

/* ── Parallax Hero ──────────────────────────────────────────────────────── */
.parallax-bg { will-change: transform; }

/* ── Ripple on buttons ──────────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.3); transform: scale(0);
  animation: rippleAnim 0.6s linear; pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ── Section entrance animations ────────────────────────────────────────── */
[data-aos] { transition-property: opacity, transform !important; }

/* ── Hover lift on cards ─────────────────────────────────────────────────── */
.why-card, .news-card, .class-card, .staff-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ── Floating badge animation ────────────────────────────────────────────── */
.welcome-badge { animation: floatBadge 4s ease-in-out infinite; }
@keyframes floatBadge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* ── Stats bar count animation ───────────────────────────────────────────── */
.stat-number { transition: color 0.3s; }
.stat-item:hover .stat-number { color: var(--white); }
.stat-item { transition: background 0.3s, transform 0.3s; }
.stat-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── Preloader ─────────────────────────────────────────────────────────── */
#preloader {
  position: fixed; inset: 0; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999; transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { width: 100px; margin: 0 auto 20px; animation: preloaderPulse 1.5s ease-in-out infinite; }
@keyframes preloaderPulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.05);opacity:0.8} }
.preloader-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; overflow: hidden; }
.preloader-fill { height: 100%; background: var(--orange); border-radius: 2px; animation: preloaderLoad 2s ease-in-out; }
@keyframes preloaderLoad { 0%{width:0} 100%{width:100%} }

/* ── Language Popup ─────────────────────────────────────────────────────── */
.lang-popup {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; align-items: center; justify-content: center;
}
.lang-popup-overlay {
  position: absolute; inset: 0; background: rgba(26,47,110,0.85);
  backdrop-filter: blur(4px);
}
.lang-popup-box {
  position: relative; background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center; max-width: 420px; width: 90%;
  box-shadow: var(--shadow-lg); animation: popupIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes popupIn { from{transform:scale(0.85);opacity:0} to{transform:scale(1);opacity:1} }
.lang-popup-logo img { width: 80px; margin: 0 auto 20px; }
.lang-popup-box h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.lang-popup-box p { color: var(--text-muted); margin-bottom: 28px; }
.lang-popup-btns { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
.lang-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 20px; border: 2px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); font-weight: 600; color: var(--navy);
}
.lang-btn:hover { border-color: var(--orange); background: rgba(224,116,34,0.06); transform: translateY(-2px); }
.lang-flag { font-size: 2rem; }
.lang-popup-skip { color: var(--text-muted); font-size: 0.85rem; text-decoration: underline; background: none; border: none; cursor: pointer; }
.lang-popup-skip:hover { color: var(--navy); }

/* ── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  background: linear-gradient(90deg, var(--navy-dark) 0%, #0e1a45 100%);
  color: rgba(255,255,255,0.85); font-size: 0.8rem; padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-left a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.topbar-left a:hover { color: var(--orange-light); }
.topbar-left i { margin-right: 5px; color: var(--orange-light); width: 14px; text-align: center; }
.topbar-sep { opacity: 0.25; font-size: 1rem; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-admission { color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 8px; }
.topbar-admission i { color: var(--orange-light); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.topbar-apply-btn {
  background: var(--orange); color: var(--white); padding: 4px 14px;
  border-radius: 4px; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.3px;
  transition: var(--transition); text-transform: uppercase;
}
.topbar-apply-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* Language Toggle (topbar) */
.lang-toggle { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; background: rgba(255,255,255,0.06); border-radius: 20px; padding: 3px 10px; }
.lang-toggle span { opacity: 0.3; }
.lang-opt { color: rgba(255,255,255,0.65); transition: color 0.2s; padding: 2px 5px; border-radius: 10px; }
.lang-opt:hover { color: var(--white); }
.lang-opt.active { color: var(--orange-light); font-weight: 700; }

/* ── Site Header / Navbar ───────────────────────────────────────────────── */
.site-header {
  background: var(--white); box-shadow: 0 1px 0 var(--border);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
}
.navbar { padding: 0; }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px; gap: 12px;
}

/* Brand */
.navbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-logo { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(26,47,110,0.12)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head); font-weight: 800; font-size: 1rem;
  color: var(--navy); line-height: 1.25; letter-spacing: -0.2px;
}
.brand-sub {
  font-size: 0.65rem; color: var(--orange); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
}

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 9px 11px; font-size: 0.82rem; font-weight: 600;
  color: var(--text); border-radius: 6px; transition: var(--transition);
  white-space: nowrap; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--orange); border-radius: 1px;
  transition: left 0.3s, right 0.3s;
}
.nav-link:hover::after, .nav-item.active .nav-link::after { left: 11px; right: 11px; }
.nav-link:hover, .nav-item.active .nav-link { color: var(--navy); background: rgba(26,47,110,0.05); }
.nav-arrow { font-size: 0.6rem; transition: transform 0.3s; margin-left: 1px; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border-radius: var(--radius); min-width: 200px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: var(--transition); z-index: 200;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; font-size: 0.84rem; color: var(--text);
  transition: var(--transition); border-bottom: 1px solid var(--border);
}
.dropdown-link::before { content: '›'; color: var(--orange); font-size: 1.1rem; font-weight: 700; }
.dropdown-link:last-child { border-bottom: none; }
.dropdown-link:hover { color: var(--navy); background: var(--light); padding-left: 22px; }

/* Navbar Actions */
.navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* CTA hidden in navbar on all sizes — topbar already has the Apply button */
.nav-cta { display: none; }

/* Language toggle inside nav-menu (mobile slide-in only) */
.nav-lang-item { display: none; }
.nav-lang-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-top: 2px solid var(--border);
  width: 100%;
}
.nav-lang-label { color: var(--text-muted); font-size: 1rem; }
.nav-lang-sep { color: var(--border); }
.nav-lang-toggle .lang-opt {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; transition: var(--transition);
  border: 1.5px solid var(--border);
}
.nav-lang-toggle .lang-opt:hover,
.nav-lang-toggle .lang-opt.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}

/* Hamburger — hidden on desktop, shown only on mobile via media query */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; padding: 6px;
  border-radius: 6px; transition: background 0.2s;
}
.hamburger:hover { background: var(--light); }
.bar {
  display: block; width: 24px; height: 2.5px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.645,0.045,0.355,1);
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,47,110,0.5); z-index: 998;
}
.mobile-overlay.active { display: block; }

/* ── Page Banner ────────────────────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 60%, var(--green-dark) 100%);
  padding: 60px 0 50px; position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/banner-pattern.png') center/400px repeat;
  opacity: 0.04;
}
.banner-content { position: relative; text-align: center; }
.banner-title {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.breadcrumb {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; font-size: 0.9rem; color: rgba(255,255,255,0.7);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.4); }
.breadcrumb-current { color: var(--orange-light); }

/* ── Hero Slider ────────────────────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden; height: 100vh;
  min-height: 550px; max-height: 850px; background: var(--navy);
}
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide-bg {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease-in-out;
}
.slide.active .slide-bg { transform: scale(1); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(26,47,110,0.82) 0%, rgba(26,47,110,0.5) 60%, rgba(26,47,110,0.3) 100%);
}
.slide-content {
  position: absolute; inset: 0; display: flex; align-items: center;
  padding: 0 20px;
}
.slide-content .container { max-width: 700px; }
.slide-label {
  display: inline-block; background: var(--orange); color: var(--white);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; padding: 5px 14px; border-radius: 30px; margin-bottom: 20px;
}
.slide-title {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 18px;
}
.slide-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem); color: rgba(255,255,255,0.88);
  margin-bottom: 36px; max-width: 560px; line-height: 1.7;
}
.slide-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Slider Controls */
.slider-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--transition); border: none;
}
.slider-dot.active { background: var(--orange); transform: scale(1.3); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; z-index: 10;
  background: rgba(255,255,255,0.15); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--orange); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-progress {
  position: absolute; bottom: 0; left: 0; height: 3px;
  background: var(--orange); z-index: 10; width: 0;
  transition: width 0.1s linear;
}

/* ── Stats Bar ──────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy); padding: 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 30px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-number {
  font-family: var(--font-head); font-size: 2.4rem;
  font-weight: 800; color: var(--orange); line-height: 1;
}
.stat-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.75);
  margin-top: 6px; font-weight: 500;
}

/* ── Welcome Section ────────────────────────────────────────────────────── */
.welcome-section { padding: 80px 0; background: var(--white); }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.welcome-images { position: relative; }
.welcome-img-main {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); object-fit: cover; height: 380px;
}
.welcome-img-float {
  position: absolute; bottom: -20px; right: -20px;
  width: 180px; height: 180px; border-radius: var(--radius-lg);
  border: 5px solid var(--white); box-shadow: var(--shadow-md);
  object-fit: cover;
}
.welcome-badge {
  position: absolute; top: -20px; left: -20px;
  background: var(--orange); color: var(--white);
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; text-align: center;
  box-shadow: var(--shadow-md);
}
.welcome-badge .badge-num { font-size: 1.8rem; line-height: 1; }
.welcome-badge .badge-text { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.welcome-text .section-label { margin-bottom: 10px; }
.welcome-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.welcome-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px;
}
.welcome-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 500; color: var(--text);
}
.welcome-feat i { color: var(--green); font-size: 1rem; flex-shrink: 0; }

/* ── Why Choose Us ──────────────────────────────────────────────────────── */
.why-section { background: var(--light); padding: 80px 0; }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px;
}
.why-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; transition: var(--transition);
  border: 2px solid transparent; box-shadow: var(--shadow-sm);
}
.why-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.why-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; transition: var(--transition);
}
.why-card:hover .why-icon { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%); }
.why-icon i { font-size: 1.6rem; color: var(--white); }
.why-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; }
.why-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* ── Principal Snippet ──────────────────────────────────────────────────── */
.principal-section { background: var(--navy); padding: 80px 0; }
.principal-grid { display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center; }
.principal-photo-wrap { text-align: center; }
.principal-photo {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--orange); box-shadow: var(--shadow-lg);
}
.principal-photo-placeholder {
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 6px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.principal-photo-placeholder i { font-size: 4rem; color: rgba(255,255,255,0.5); }
.principal-name-tag {
  margin-top: 14px; font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; color: var(--white);
}
.principal-desg { font-size: 0.82rem; color: var(--orange-light); }
.principal-msg blockquote {
  font-size: 1.1rem; color: rgba(255,255,255,0.9); font-style: italic;
  line-height: 1.8; padding-left: 20px;
  border-left: 4px solid var(--orange); margin-bottom: 24px;
}
.principal-msg .btn-outline-white { display: inline-flex; }

/* ── Admission CTA Banner ────────────────────────────────────────────────── */
.admission-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 70px 0; position: relative; overflow: hidden;
}
.admission-cta::before {
  content: ''; position: absolute; inset: 0;
  background: url('/img/pattern-dots.png') center/200px repeat; opacity: 0.05;
}
.admission-cta-inner {
  position: relative; display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: center;
}
.admission-cta h2 { font-family: var(--font-head); font-size: 2rem; color: var(--white); margin-bottom: 10px; }
.admission-cta p { color: rgba(255,255,255,0.85); font-size: 1.05rem; }
.admission-cta-btns { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }

/* ── Gallery Preview ─────────────────────────────────────────────────────── */
.gallery-section { padding: 80px 0; background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px; margin-top: 40px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-img {
  width: 100%; height: 100%; min-height: 160px; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:first-child .gallery-img { min-height: 320px; }
.gallery-item:hover .gallery-img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,47,110,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { font-size: 2rem; color: var(--white); }
.gallery-cta { text-align: center; margin-top: 40px; }

/* ── News Cards ─────────────────────────────────────────────────────────── */
.news-section { padding: 80px 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.news-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid var(--border);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-img { height: 200px; overflow: hidden; background: var(--light); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { padding: 24px; }
.news-card-meta { display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.news-card-meta i { color: var(--orange); }
.news-card-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  background: rgba(46,139,87,0.1); color: var(--green);
  padding: 2px 10px; border-radius: 20px;
}
.news-card h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.news-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.news-read-more { font-size: 0.85rem; font-weight: 600; color: var(--orange); display: flex; align-items: center; gap: 5px; }
.news-read-more:hover { color: var(--orange-dark); gap: 8px; }

/* ── About Page Tabs ─────────────────────────────────────────────────────── */
.about-tabs { margin-top: 40px; }
.tab-nav {
  display: flex; gap: 4px; border-bottom: 2px solid var(--border);
  margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 12px 24px; font-family: var(--font-head); font-size: 0.9rem;
  font-weight: 600; color: var(--text-muted); background: none;
  border: none; cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* Message Cards */
.message-card {
  display: grid; grid-template-columns: auto 1fr; gap: 50px;
  align-items: start; padding: 40px 0;
}
.message-card:nth-child(even) { direction: rtl; }
.message-card:nth-child(even) > * { direction: ltr; }
.message-photo { text-align: center; min-width: 180px; }
.message-photo img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 5px solid var(--orange); box-shadow: var(--shadow-md);
}
.message-photo-placeholder {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--light); border: 5px solid var(--orange);
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.message-photo-placeholder i { font-size: 3.5rem; color: var(--text-muted); }
.message-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--navy); margin-top: 12px;
}
.message-desg { font-size: 0.82rem; color: var(--orange); font-weight: 600; }
.message-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.message-content blockquote {
  padding: 16px 20px; background: var(--light);
  border-left: 4px solid var(--navy); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text); margin: 20px 0;
}

/* Vision/Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.vm-card {
  padding: 36px; border-radius: var(--radius-lg); background: var(--light);
  border-top: 4px solid var(--navy);
}
.vm-card.orange { border-top-color: var(--orange); }
.vm-card h3 { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; }
.vm-card p { color: var(--text-muted); line-height: 1.8; }

/* ── Academics Page ──────────────────────────────────────────────────────── */
.class-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.class-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 2px solid var(--border); transition: var(--transition);
  display: flex; gap: 20px; align-items: flex-start;
}
.class-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); }
.class-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.class-icon i { font-size: 1.4rem; color: var(--white); }
.class-card h3 { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.class-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* Subjects List */
.subjects-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.subject-tag {
  padding: 7px 16px; background: rgba(26,47,110,0.07); color: var(--navy);
  border-radius: 30px; font-size: 0.83rem; font-weight: 600;
  border: 1px solid rgba(26,47,110,0.15); transition: var(--transition);
}
.subject-tag:hover { background: var(--navy); color: var(--white); }

/* Assessment Table */
.assess-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.assess-table th, .assess-table td { padding: 14px 18px; border: 1px solid var(--border); font-size: 0.9rem; }
.assess-table th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }
.assess-table tr:nth-child(even) td { background: var(--light); }

/* ── Facilities Page ─────────────────────────────────────────────────────── */
.facility-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 50px 0;
  border-bottom: 1px solid var(--border);
}
.facility-row:last-child { border-bottom: none; }
.facility-row.reverse { direction: rtl; }
.facility-row.reverse > * { direction: ltr; }
.facility-img { border-radius: var(--radius-lg); overflow: hidden; height: 300px; }
.facility-img img { width: 100%; height: 100%; object-fit: cover; }
.facility-icon-wrap {
  width: 60px; height: 60px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.facility-icon-wrap i { font-size: 1.5rem; color: var(--white); }
.facility-text h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 14px; }
.facility-text p { color: var(--text-muted); line-height: 1.8; }

/* ── Gallery Page ────────────────────────────────────────────────────────── */
.gallery-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.filter-btn {
  padding: 8px 22px; border-radius: 30px; font-size: 0.85rem; font-weight: 600;
  border: 2px solid var(--border); color: var(--text); background: var(--white);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.gallery-full-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-full-item { border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.gallery-full-item img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s; }
.gallery-full-item:hover img { transform: scale(1.04); }
.gallery-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 1rem; }

/* ── Admission Page ──────────────────────────────────────────────────────── */
.admission-grid { display: grid; grid-template-columns: 1fr 360px; gap: 50px; margin-top: 50px; }
.admission-steps { counter-reset: steps; margin-bottom: 40px; }
.step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border); position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  counter-increment: steps;
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.step h3 { font-family: var(--font-head); font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.docs-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text);
}
.docs-list li:last-child { border-bottom: none; }
.docs-list li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.admission-sidebar .sidebar-card {
  background: var(--light); border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 24px; border: 1px solid var(--border);
}
.sidebar-card h3 { font-family: var(--font-head); color: var(--navy); margin-bottom: 14px; font-size: 1rem; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table td:first-child { font-weight: 600; color: var(--navy); }

/* Contact Form / Enquiry Form */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text); background: var(--white); transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,47,110,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; }
.form-msg.success { background: rgba(46,139,87,0.1); color: var(--green-dark); border: 1px solid rgba(46,139,87,0.3); }
.form-msg.error { background: rgba(220,50,50,0.1); color: #c00; border: 1px solid rgba(220,50,50,0.3); }

/* ── Contact Page ────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; }
.contact-info-list { margin-bottom: 36px; }
.contact-info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon i { color: var(--white); font-size: 1.1rem; }
.contact-info-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.contact-info-val { font-size: 0.95rem; color: var(--text); }
.contact-info-val a { color: var(--navy); font-weight: 500; }
.contact-info-val a:hover { color: var(--orange); }
.map-container { border-radius: var(--radius-lg); overflow: hidden; margin-top: 30px; }
.map-container iframe { width: 100%; height: 300px; border: none; display: block; }

/* ── Mandatory Disclosure Page ───────────────────────────────────────────── */
.disclosure-section { padding: 70px 0; }
.disclosure-note {
  background: rgba(26,47,110,0.06); border-left: 4px solid var(--navy);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem; color: var(--text); margin-bottom: 50px; line-height: 1.7;
}
.disclosure-block { margin-bottom: 50px; }
.disclosure-block-title {
  font-family: var(--font-head); font-size: 1.3rem; color: var(--navy);
  border-bottom: 3px solid var(--orange); padding-bottom: 10px; margin-bottom: 24px;
}
.disclosure-table { width: 100%; border-collapse: collapse; }
.disclosure-table th, .disclosure-table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 0.9rem; text-align: left; }
.disclosure-table th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; }
.disclosure-table tr:nth-child(even) td { background: var(--light); }
.disclosure-table .doc-download {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: var(--white); padding: 5px 14px;
  border-radius: 4px; font-size: 0.8rem; font-weight: 600; transition: background 0.2s;
}
.disclosure-table .doc-download:hover { background: var(--green-dark); }
.doc-pending { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ── Staff Page ──────────────────────────────────────────────────────────── */
.staff-dept { margin-bottom: 60px; }
.staff-dept-title {
  font-family: var(--font-head); font-size: 1.3rem; color: var(--navy);
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.staff-dept-title::after { content: ''; flex: 1; height: 2px; background: var(--border); }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.staff-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  border: 1px solid var(--border); text-align: center;
}
.staff-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.staff-card-img { height: 180px; overflow: hidden; background: var(--light); }
.staff-card-img img { width: 100%; height: 100%; object-fit: cover; }
.staff-placeholder {
  height: 180px; background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
}
.staff-placeholder i { font-size: 3.5rem; color: rgba(255,255,255,0.5); }
.staff-card-body { padding: 18px 14px; }
.staff-card-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-bottom: 4px; font-size: 0.95rem; }
.staff-card-desg { font-size: 0.8rem; color: var(--orange); font-weight: 600; margin-bottom: 4px; }
.staff-card-qual { font-size: 0.78rem; color: var(--text-muted); }

/* ── News Page ───────────────────────────────────────────────────────────── */
.news-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-bottom: 50px; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.news-featured-img { height: 360px; overflow: hidden; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.news-featured-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.news-featured-body .news-card-meta { margin-bottom: 14px; }
.news-featured-body h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); margin-bottom: 16px; }
.news-featured-body p { color: var(--text-muted); line-height: 1.8; }

/* ── Scroll To Top ───────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--orange); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.8); }
.footer-main { padding: 70px 0 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
  gap: 48px;
}
.footer-logo { width: 72px; margin-bottom: 16px; filter: brightness(1.1); }
.footer-col h3 {
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 20px; text-transform: uppercase;
  letter-spacing: 1px; padding-bottom: 10px;
  border-bottom: 2px solid var(--orange); display: inline-block;
}
.footer-about h3 { display: block; border-bottom: 2px solid var(--orange); padding-bottom: 10px; width: fit-content; }
.footer-about p { font-size: 0.875rem; line-height: 1.8; color: rgba(255,255,255,0.65); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); transform: translateY(-2px); }

.footer-links { display: flex; flex-direction: column; gap: 2px; }
.footer-links li a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: rgba(255,255,255,0.65);
  padding: 6px 0; transition: color 0.2s, gap 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.footer-links li a:hover { color: var(--orange-light); gap: 12px; }
.footer-links li a i { font-size: 0.65rem; color: var(--orange); flex-shrink: 0; }

.footer-contact-list { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.5;
}
.footer-contact-list li i {
  color: var(--orange); font-size: 0.95rem; margin-top: 2px;
  flex-shrink: 0; width: 16px; text-align: center;
}
.footer-contact-list li a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-contact-list li a:hover { color: var(--orange-light); }

.footer-cta-col .btn { margin-bottom: 0; }
.footer-cta-col p { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-bottom: 20px; line-height: 1.7; }
.footer-cbse-badge {
  margin-top: 18px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07); border-radius: 8px;
  padding: 10px 14px; border: 1px solid rgba(255,255,255,0.1);
}
.footer-cbse-badge span { font-size: 0.8rem; font-weight: 700; color: var(--orange-light); display: flex; align-items: center; gap: 8px; }
.footer-cbse-badge i { font-size: 1.1rem; }

.footer-bottom { padding: 18px 0; background: rgba(0,0,0,0.25); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--orange-light); }
.footer-bottom-links span { color: rgba(255,255,255,0.2); font-size: 0.7rem; }

/* ── Admin CSS (minimal public-facing) ───────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Responsive: Compact desktop nav (≤1700px) ──────────────────────────── */
@media (max-width: 1700px) {
  .nav-link { padding: 8px 10px; font-size: 0.79rem; }
}
@media (max-width: 1500px) {
  .nav-link { padding: 7px 8px; font-size: 0.74rem; }
  .nav-menu { gap: 1px; }
}

/* ── Responsive: Hamburger nav (≤1440px) ────────────────────────────────── */
@media (max-width: 1440px) {
  /* Show hamburger, hide horizontal nav */
  .hamburger { display: flex; }
  .lang-toggle { display: none; }

  /* Slide-in nav menu */
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: min(300px, 82vw); height: 100vh;
    background: var(--white); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 76px 0 0; box-shadow: var(--shadow-lg);
    z-index: 999; transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto; overflow-x: hidden;
  }
  .nav-menu.open { right: 0; }
  .nav-item { width: 100%; }
  .nav-lang-item { display: block; }
  .nav-link {
    padding: 14px 22px; width: 100%; border-radius: 0; font-size: 0.93rem;
    border-bottom: 1px solid var(--border); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
  }
  .nav-link::after { display: none; }
  .has-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-radius: 0; display: none;
    background: var(--light); padding-left: 0; min-width: unset;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-link { padding: 11px 22px 11px 36px; font-size: 0.87rem; }
  .dropdown-link::before { content: ''; }
  .mobile-overlay.active { display: block; }

  /* Footer tablet */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Layout adjustments */
  .welcome-grid { gap: 36px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .principal-grid { gap: 36px; }
  .class-cards { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile (≤768px) ─────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Topbar */
  .topbar-left { display: none; }
  .topbar-right { width: 100%; justify-content: space-between; }
  .topbar-admission { font-size: 0.75rem; }

  /* Hero */
  .hero-slider { height: 80vh; max-height: 600px; }
  .slide-title { font-size: 1.8rem; }
  .slide-sub { font-size: 0.9rem; }
  .slide-btns { gap: 10px; }
  .slider-arrow { display: none; }

  /* Sections */
  .section { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-img-float, .welcome-badge { display: none; }
  .welcome-img-main { height: 250px; }
  .welcome-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item:first-child { grid-column: span 2; }
  .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .principal-grid { grid-template-columns: 1fr; text-align: center; }
  .principal-msg blockquote { text-align: left; }
  .admission-cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .admission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .message-card { grid-template-columns: 1fr; text-align: center; }
  .message-card:nth-child(even) { direction: ltr; }
  .tab-nav { gap: 0; }
  .tab-btn { font-size: 0.8rem; padding: 10px 14px; }
  .facility-row { grid-template-columns: 1fr; direction: ltr !important; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-img { height: 220px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .banner-title { font-size: 1.8rem; }
  /* Footer mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-main { padding: 48px 0 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 8px; }
}

/* ── Responsive: Small Mobile (≤480px) ──────────────────────────────────── */
@media (max-width: 480px) {
  .gallery-full-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .lang-popup-btns { flex-direction: column; }
  .slide-btns .btn:last-child { display: none; }
}
