/* ===========================
   MSMHS - Main Stylesheet
   =========================== */

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

:root {
  --navy: #0a1f44;
  --royal: #1a3a6b;
  --gold: #c9a227;
  --gold-light: #e8c158;
  --teal: #0e7c86;
  --teal-light: #1ab3c0;
  --cream: #faf7f0;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --gray: #888;
  --text: #2c2c2c;
  --text-light: #555;
  --shadow: 0 10px 40px rgba(10,31,68,0.12);
  --shadow-hover: 0 20px 60px rgba(10,31,68,0.2);
  --radius: 12px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.top-bar a:hover { color: var(--gold); }
.top-bar i { margin-right: 5px; color: var(--gold); }
.top-bar .social-links a { font-size: 0.9rem; }
.top-bar .cbse-badge {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}
.header.scrolled {
  box-shadow: 0 4px 30px rgba(10,31,68,0.15);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(10,31,68,0.3);
}
.logo-icon::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.logo-icon span {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}
.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.logo-text p {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== NAVIGATION ===== */
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav ul li { position: relative; }
.nav ul li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  display: block;
  transition: var(--transition);
  white-space: nowrap;
}
.nav ul li a:hover, .nav ul li a.active {
  color: var(--royal);
  background: rgba(26,58,107,0.07);
}
.nav ul li a i { margin-left: 4px; font-size: 0.7rem; }

/* Dropdown */
.nav ul li .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
}
.nav ul li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav ul li .dropdown a {
  padding: 10px 18px;
  border-radius: 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav ul li .dropdown a:last-child { border-bottom: none; }
.nav ul li .dropdown a:hover { color: var(--gold); background: var(--cream); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--navy);
    padding: 80px 20px 40px;
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
  }
  .nav.open { right: 0; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li a { color: var(--white); padding: 12px 16px; border-radius: 8px; }
  .nav ul li a:hover { background: rgba(255,255,255,0.1); color: var(--gold-light); }
  .nav ul li .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    border-top: none;
    border-left: 3px solid var(--gold);
    margin: 4px 0 4px 16px;
    border-radius: 0 8px 8px 0;
  }
  .nav ul li .dropdown a { color: rgba(255,255,255,0.8); font-size: 0.82rem; }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
  }
  .nav-overlay.show { display: block; }
}

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

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(0 0 0 / 39%) 0%, rgb(0 0 0 / 57%) 100%);
}
.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 60px;
}
.slide-text {
  max-width: 620px;
  color: var(--white);
}
.slide-text .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease forwards;
}
.slide-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.1s ease forwards;
  opacity: 0;
}
.slide-text p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.6;
  animation: fadeInUp 0.8s 0.2s ease forwards;
  opacity: 0;
}
.slide.active .slide-text h2,
.slide.active .slide-text p {
  animation: fadeInUp 0.8s ease forwards;
}
.slide.active .slide-text p { animation-delay: 0.15s; }
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  animation: fadeInUp 0.8s 0.3s ease forwards;
  opacity: 0;
}
.slide.active .slide-btn { animation: fadeInUp 0.8s 0.3s ease forwards; }
.slide-btn:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  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(--gold); width: 30px; border-radius: 5px; }

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}
.slider-arrow {
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION STYLES ===== */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 55px; }
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 0;
}
.section-divider span { width: 60px; height: 2px; background: var(--gold); border-radius: 2px; }
.section-divider i { color: var(--gold); font-size: 0.9rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 36px 20px;
  text-align: center;
  color: white;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-item .stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item p { font-size: 0.85rem; opacity: 0.8; }
.stat-item i { font-size: 1.6rem; color: var(--gold-light); margin-bottom: 10px; display: block; }

/* ===== WELCOME SECTION ===== */
.welcome-section { background: var(--cream); }
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.welcome-img-wrap {
  position: relative;
}
.welcome-img-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.welcome-img-wrap .img-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--navy);
  padding: 20px 24px;
  border-radius: 12px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  box-shadow: var(--shadow);
}
.welcome-img-wrap .img-badge strong { display: block; font-size: 2rem; font-weight: 900; }
.welcome-img-wrap .img-badge span { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.welcome-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.25;
}
.welcome-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.welcome-features { margin: 28px 0; }
.welcome-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text);
}
.welcome-features li i { color: var(--gold); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: white;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(10,31,68,0.3); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid var(--navy);
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover { background: var(--navy); color: white; transform: translateY(-3px); }
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(201,162,39,0.4); }

/* ===== FEATURES ===== */
.features-section { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: center;
  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(--teal));
  transform: scaleX(0);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.feature-icon.navy { background: rgba(10,31,68,0.08); color: var(--navy); }
.feature-icon.teal { background: rgba(14,124,134,0.1); color: var(--teal); }
.feature-icon.gold { background: rgba(201,162,39,0.1); color: var(--gold); }
.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.feature-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* ===== NOTICE / EVENTS ===== */
.notice-events { background: var(--cream); }
.notice-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.notice-board, .events-panel {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.panel-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-header h3 { color: white; font-size: 1.05rem; font-weight: 600; }
.panel-header i { color: var(--gold); }
.panel-body { padding: 16px; }
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--cream); border-radius: 8px; }
.notice-date {
  background: var(--navy);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  min-width: 48px;
  flex-shrink: 0;
}
.notice-date .day { font-size: 1.2rem; font-weight: 700; line-height: 1; }
.notice-date .month { font-size: 0.65rem; text-transform: uppercase; opacity: 0.8; }
.notice-text h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.notice-text p { font-size: 0.8rem; color: var(--gray); }
.new-badge {
  background: #e74c3c;
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}

.event-item {
  display: flex;
  gap: 14px;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  align-items: flex-start;
  transition: var(--transition);
}
.event-item:last-child { border-bottom: none; }
.event-item:hover { background: var(--cream); border-radius: 8px; }
.event-img {
  width: 80px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.event-info h4 { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.event-info span { font-size: 0.78rem; color: var(--teal); font-weight: 500; }
.event-info p { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ===== GALLERY ===== */
.gallery-section { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,31,68,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.gallery-overlay span { color: white; font-size: 0.9rem; font-weight: 500; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .play-btn { opacity: 1; }

/* ===== PRINCIPAL ===== */
.principal-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.principal-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.principal-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.principal-img-wrap {
  position: relative;
}
.principal-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid rgba(255,255,255,0.2);
}
.principal-frame {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  opacity: 0.4;
}
.principal-content .section-tag { color: var(--gold-light); }
.principal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  margin-bottom: 8px;
}
.principal-content .designation {
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.principal-content blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  opacity: 0.9;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 20px;
}
.principal-content p { opacity: 0.8; line-height: 1.8; margin-bottom: 12px; }
.principal-content .signature {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-light);
  margin-top: 16px;
}

/* ===== FACILITIES ===== */
.facilities-section { background: var(--cream); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.facility-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.facility-card:hover { transform: translateY(-6px); border-bottom-color: var(--gold); box-shadow: var(--shadow); }
.facility-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}
.facility-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.facility-card p { font-size: 0.83rem; color: var(--gray); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--white); }
.testimonial-slider {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-card {
  min-width: calc(33.333% - 20px);
  margin-right: 30px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}
.testimonial-card .stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--text-light); line-height: 1.7; font-size: 0.93rem; margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.author-info strong { display: block; font-size: 0.9rem; color: var(--navy); }
.author-info span { font-size: 0.78rem; color: var(--gray); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::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%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");
}
.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: white;
  margin-bottom: 14px;
  position: relative;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--navy);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-white:hover { background: var(--gold); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo-text h1 { color: white; font-size: 1.1rem; }
.footer-brand .logo-text p { color: var(--gold-light); }
.footer-brand > p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.75;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer-widget h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--gold); }

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.87rem;
}
.footer-contact li i { color: var(--gold); margin-top: 3px; flex-shrink: 0; font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.83rem; opacity: 0.65; }
.footer-bottom a { color: var(--gold-light); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); color: var(--gold); transform: translateY(-3px); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 60%, var(--teal) 100%);
  padding: 80px 0;
  text-align: center;
  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' 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");
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: white;
  position: relative;
  margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 1.05rem; position: relative; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
}
.breadcrumb a { color: var(--gold-light); font-size: 0.87rem; }
.breadcrumb span { color: rgba(255,255,255,0.5); font-size: 0.87rem; }

/* ===== INNER PAGE CONTENT ===== */
.content-block { padding: 80px 0; }
.content-block.bg-cream { background: var(--cream); }

/* About page specifics */
.about-story p { color: var(--text-light); line-height: 1.85; margin-bottom: 18px; font-size: 1rem; }
.about-story h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.4rem; margin: 28px 0 12px; }

/* Mission Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.mv-card {
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
}
.mv-card.mission { background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%); color: white; }
.mv-card.vision { background: linear-gradient(135deg, var(--teal) 0%, #0a5a63 100%); color: white; }
.mv-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 14px; }
.mv-card i { font-size: 2.5rem; margin-bottom: 14px; color: var(--gold-light); display: block; }
.mv-card p { opacity: 0.88; line-height: 1.75; }

/* Infrastructure */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.infra-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.infra-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.infra-card img { width: 100%; height: 220px; object-fit: cover; }
.infra-info { padding: 20px; background: white; }
.infra-info h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.infra-info p { font-size: 0.85rem; color: var(--gray); }

/* Teachers */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
  text-align: center;
  background: white;
  border-radius: var(--radius);
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.07);
  transition: var(--transition);
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.teacher-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--gold);
}
.teacher-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.teacher-card .subject { font-size: 0.8rem; color: var(--teal); font-weight: 500; }

/* Curriculum */
.curriculum-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.tab-btn {
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--navy); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.subjects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.subject-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 4px solid var(--gold);
  font-size: 0.92rem;
  font-weight: 500;
}
.subject-item i { color: var(--gold); }

/* Admission */
.admission-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
.step-card::after {
  content: '\2192';
  position: absolute;
  top: 34px;
  right: -14px;
  font-size: 1.5rem;
  color: var(--gold);
}
.step-card:last-child::after { display: none; }
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-card p { font-size: 0.82rem; color: var(--gray); }

/* Admission form */
.admission-form-wrap {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-full { grid-column: 1 / -1; }

/* Events page */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.event-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
  background: white;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.event-card img { width: 100%; height: 200px; object-fit: cover; }
.event-card-body { padding: 20px; }
.event-card-body .event-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
}
.event-card-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.event-card-body p { font-size: 0.87rem; color: var(--gray); line-height: 1.6; }

/* Mandatory Disclosure */
.disclosure-table { width: 100%; border-collapse: collapse; }
.disclosure-table th {
  background: var(--navy);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
}
.disclosure-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.9rem;
  color: var(--text-light);
}
.disclosure-table tr:nth-child(even) td { background: var(--cream); }
.disclosure-table tr:hover td { background: rgba(14,124,134,0.06); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 20px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-detail h4 { font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-detail p { font-size: 0.87rem; color: var(--gray); line-height: 1.5; }

.map-wrap { border-radius: var(--radius); overflow: hidden; height: 300px; margin-top: 24px; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.gap-16 { gap: 16px; }
.d-flex { display: flex; }
.flex-center { display: flex; justify-content: center; }
.align-center { align-items: center; }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .gallery-item:first-child { grid-column: span 1; grid-row: span 1; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .welcome-grid, .principal-grid, .notice-events-grid, .contact-grid { grid-template-columns: 1fr; }
  .welcome-img-wrap .img-badge { right: 10px; bottom: -20px; }
  .principal-grid { gap: 30px; }
  .hero-slider { height: 460px; }
  .slide-content { padding: 0 30px; }
  .features-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .admission-steps { grid-template-columns: 1fr 1fr; }
  .step-card::after { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 600px) {
  .hero-slider { height: 380px; }
  .slide-text h2 { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .top-bar-left { display: none; }
  .infra-grid, .events-grid, .teachers-grid { grid-template-columns: 1fr; }
  .admission-steps { grid-template-columns: 1fr; }
  .subjects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admission-form-wrap { padding: 24px 16px; }
  .testimonial-card { min-width: 100%; margin-right: 0; }
}
