/* ===========================
   ANSHU MEMORIAL ACADEMY
   Main Stylesheet
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Nunito:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #0f2251;
  --navy-light: #1a3a7a;
  --gold: #e6a817;
  --gold-light: #f5c842;
  --red: #c0392b;
  --white: #ffffff;
  --off-white: #f8f9fc;
  --light-gray: #eef1f7;
  --text-dark: #1a1f36;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #dee3ef;
  --shadow-sm: 0 2px 8px rgba(15,34,81,0.08);
  --shadow-md: 0 8px 32px rgba(15,34,81,0.12);
  --shadow-lg: 0 20px 60px rgba(15,34,81,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy); }
.bg-off-white { background: var(--off-white); }

.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title .tag {
  display: inline-block;
  background: rgba(230,168,23,0.12);
  color: var(--gold);
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.section-title h2 { color: var(--navy); margin-bottom: 12px; }
.section-title p { max-width: 580px; margin: 0 auto; color: var(--text-mid); }

.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(230,168,23,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(230,168,23,0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.topbar a {
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); font-size: 0.85rem; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}
.brand-text .name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.brand-text .tagline {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--off-white);
}
.nav-links a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0a1a45 0%, #0f2251 50%, #1a3a7a 100%);
  position: relative; overflow: hidden;
  padding: 90px 0 80px;
  min-height: 85vh;
  display: flex; align-items: center;
}
.hero::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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(230,168,23,0.06);
}
.hero-bg-circle:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-bg-circle:nth-child(2) { width: 400px; height: 400px; bottom: -100px; left: -80px; }

.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,168,23,0.15);
  border: 1px solid rgba(230,168,23,0.3);
  color: var(--gold);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 30px;
  margin-bottom: 20px;
}
.hero-badge i { font-size: 0.75rem; }
.hero-text h1 { color: var(--white); margin-bottom: 10px; }
.hero-text h1 span { color: var(--gold); }
.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem; font-weight: 400;
  margin-bottom: 30px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-bottom: 36px;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem; font-weight: 500;
}
.hero-meta-item i { color: var(--gold); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.stat-card .number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 4px;
}
.stat-card .label { font-size: 0.8rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.hero-notice {
  margin-top: 20px;
  background: rgba(230,168,23,0.12);
  border: 1px solid rgba(230,168,23,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.hero-notice i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.hero-notice p { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin: 0; }

/* ===== MARQUEE ===== */
.marquee-bar {
  background: var(--gold);
  padding: 12px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  font-weight: 700; font-size: 0.88rem;
  color: var(--navy);
  padding: 0 30px;
}
.marquee-inner i { color: var(--navy); opacity: 0.5; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-label {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  transform: scaleX(0); transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(15,34,81,0.08), rgba(15,34,81,0.04));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--navy);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
}
.feature-card h4 { color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; }

/* ===== ABOUT STRIP ===== */
.about-strip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-img-badge .big { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.about-img-badge .small { font-size: 0.78rem; font-weight: 700; color: var(--navy); opacity: 0.75; }

.about-content .tag {
  display: inline-block;
  background: rgba(15,34,81,0.08);
  color: var(--navy);
  font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 30px;
  margin-bottom: 14px;
}
.about-content h2 { color: var(--navy); margin-bottom: 16px; }
.about-content p { margin-bottom: 16px; }
.about-points { margin: 24px 0; display: flex; flex-direction: column; gap: 12px; }
.about-point {
  display: flex; align-items: flex-start; gap: 12px;
}
.point-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(230,168,23,0.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.9rem;
}
.about-point div { font-size: 0.92rem; color: var(--text-mid); }
.about-point strong { color: var(--text-dark); display: block; margin-bottom: 2px; }

/* ===== CLASSES ===== */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.class-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.class-card:hover, .class-card.active {
  border-color: var(--navy);
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.class-card .emoji { font-size: 2rem; margin-bottom: 8px; }
.class-card .class-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}
.class-card:hover .class-name, .class-card.active .class-name { color: var(--gold); }
.class-card .age-tag {
  font-size: 0.75rem; color: var(--text-light); font-weight: 500;
}
.class-card:hover .age-tag, .class-card.active .age-tag { color: rgba(255,255,255,0.65); }

/* ===== DIRECTOR ===== */
.director-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 340px 1fr;
}
.director-img-side {
  position: relative; overflow: hidden;
}
.director-img-side::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(230,168,23,0.2) 0%, transparent 60%);
  z-index: 1;
}
.director-img-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.director-text { padding: 48px; }
.director-quote-icon { font-size: 3rem; color: var(--gold); opacity: 0.4; line-height: 1; margin-bottom: 12px; }
.director-text blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 28px;
}
.director-signature { display: flex; align-items: center; gap: 14px; }
.sig-avatar {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--navy); font-size: 1.1rem;
}
.sig-name { font-weight: 700; color: var(--white); }
.sig-role { font-size: 0.82rem; color: var(--gold); font-weight: 500; }

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(15,34,81,0.2); }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem;
}
.contact-info-card .label { font-size: 0.78rem; color: var(--text-light); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 3px; }
.contact-info-card .value { font-weight: 600; color: var(--text-dark); }
.contact-info-card a.value:hover { color: var(--navy); }

/* ===== FORM ===== */
.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; color: var(--text-dark);
  transition: var(--transition);
  background: var(--off-white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(15,34,81,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
  display: none;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
  color: #27ae60;
  padding: 12px 16px; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  margin-top: 12px;
  align-items: center; gap: 8px;
}

/* ===== MAP ===== */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }

/* ===== FOOTER ===== */
footer {
  background: #070f26;
  color: rgba(255,255,255,0.7);
}
.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.footer-brand .brand-logo {
  background: rgba(230,168,23,0.15);
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-col h5 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 7px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--gold); }
.footer-contact-item {
  display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.88rem;
}
.footer-contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem;
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0a1a45, #0f2251);
  padding: 70px 0 50px;
  position: relative; overflow: hidden;
}
.page-hero::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'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.6rem; }
.breadcrumb .current { color: var(--gold); font-weight: 600; }
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* ===== ADMISSION STEPS ===== */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 20px;
  position: relative; padding-bottom: 36px;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 20px; top: 44px;
  width: 2px; height: calc(100% - 44px);
  background: linear-gradient(180deg, var(--navy), transparent);
}
.step-num {
  width: 42px; height: 42px; flex-shrink: 0;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--gold); font-size: 0.9rem;
}
.step-content h4 { color: var(--navy); margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--light-gray);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,34,81,0.8) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: 0.9rem; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy);
  z-index: 1001;
  flex-direction: column;
  padding: 90px 30px 40px;   /* clears the navbar bar height */
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 1.4rem; font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }
.mobile-nav .btn { margin-top: 20px; width: 100%; justify-content: center; }

/* When menu is open, lift the whole navbar above the mobile nav overlay */
.navbar.nav-open {
  z-index: 1002;
  background: var(--navy);
  box-shadow: none;
}
/* Also flip hamburger bar colors to white so X is visible on dark navbar */
.navbar.nav-open .hamburger span { background: var(--white); }

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 900;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .director-card { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  /* Collapse any two-column inline grids */
  .notice-classes-grid,
  .contact-wrap,
  .adm-grid,
  .uniform-grid,
  .mvv-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .topbar-left { display: none; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .section { padding: 50px 0; }
  .hero { padding: 60px 0; min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { display: none; }

  /* About strip */
  .about-strip { grid-template-columns: 1fr; }
  .about-img-main { height: 260px; }
  .about-img-badge { bottom: -16px; right: 16px; }

  /* Director */
  .director-card { grid-template-columns: 1fr; }
  .director-img-side { height: 240px; }
  .director-text { padding: 28px 24px; }
  .director-text blockquote { font-size: 0.95rem; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 50px 0 35px; }

  /* Section title */
  .section-title { margin-bottom: 36px; }

  /* Classes grid — prevent overflow on narrow screens */
  .classes-grid { grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
  .class-card { padding: 16px 10px; }
  .class-card .emoji { font-size: 1.6rem; }

  /* Inline two-column grids that may overflow */
  [style*="grid-template-columns: 1.2fr 1fr"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns: 1fr 1.5fr"],
  [style*="grid-template-columns:1fr 1.5fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns: 380px 1fr"],
  [style*="grid-template-columns:380px 1fr"],
  [style*="grid-template-columns: 360px 1fr"],
  [style*="grid-template-columns:360px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .classes-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-meta { gap: 10px; }
  .hero-meta-item { font-size: 0.82rem; }
  .btn { padding: 11px 20px; font-size: 0.9rem; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 42px 0; }
  .page-hero { padding: 40px 0 28px; }

  /* Prevent any wide element from causing horizontal scroll */
  .marquee-bar { overflow: hidden; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 14px 10px; }
  .stat-card .number { font-size: 1.5rem; }
}
