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

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --primary-dark: #071a30;       /* Navy Blue from logo arch */
  --primary-pine: #0a2240;       /* Royal Blue from logo elements */
  --accent-gold: #f39c12;        /* Golden Yellow from logo diya/sun */
  --accent-gold-rgb: 243, 156, 18;
  --accent-orange: #d32f2f;      /* Red from logo arch */
  --accent-blue: #3f51b5;        /* Indigo from logo book */
  --bg-light: #f4f6f9;           /* Soft Slate Background */
  --bg-card: #ffffff;            /* White Card Background */
  --text-dark: #1e293b;          /* Dark Text */
  --text-light: #f8fafc;         /* Light Text */
  --text-muted: #64748b;         /* Muted Subtext */
  --border-color: #e2e8f0;       /* Divider Color */
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-pine { color: var(--primary-pine); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(var(--accent-gold-rgb), 0.15);
  color: var(--primary-pine);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  gap: 0.5rem;
  white-space: nowrap;
  width: max-content;
  height: auto;
}

.btn-primary {
  background-color: #d32f2f; /* Vibrant Red from logo */
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: #b71c1c; /* Darker Red on hover */
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.btn-gold:hover {
  background-color: #bd8c42;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-pine);
  color: var(--primary-pine);
}

.btn-outline:hover {
  background-color: var(--primary-pine);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* --- HEADER & NAVIGATION --- */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-contacts span {
  margin-right: 1.5rem;
}

.top-links a {
  margin-left: 1.25rem;
  opacity: 0.85;
}

.top-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

/* News Ticker Bar */
.news-ticker-bar {
  background-color: #061224;
  color: var(--text-light);
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--accent-gold);
  overflow: hidden;
}

.news-ticker-container {
  display: flex;
  align-items: center;
}

.ticker-label {
  background-color: var(--accent-orange);
  color: var(--text-light);
  padding: 0.2rem 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-radius: 3px;
  margin-right: 1rem;
  white-space: nowrap;
  letter-spacing: 0.05em;
  box-shadow: 0 0 5px rgba(242, 100, 25, 0.5);
}

.ticker-wrap {
  flex-grow: 1;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
  color: var(--text-light);
}

.ticker-item span {
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Main Navigation */
.main-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.school-name-text {
  display: flex;
  flex-direction: column;
}

.school-name-text .title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary-pine);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.school-name-text .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  height: 100%;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  padding: 0 1.25rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--primary-dark);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  background-color: var(--accent-gold);
  transform: scaleX(0);
  transition: var(--transition-fast);
}

.nav-item:hover .nav-link {
  color: var(--primary-pine);
}

.nav-item:hover .nav-link::after {
  transform: scaleX(1);
}

/* Mega/Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
  list-style: none;
  padding: 0.75rem 0;
  border-top: 3px solid var(--accent-gold);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-pine);
  padding-left: 1.75rem;
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
}

/* --- HERO BANNER --- */
.hero-slider-section {
  position: relative;
  height: 600px;
  background-color: var(--primary-dark);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(9, 26, 47, 0.9) 30%, rgba(9, 26, 47, 0.3) 100%);
  z-index: 2;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  z-index: 10;
  color: var(--text-light);
  max-width: 650px;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s ease 0.4s;
}

.slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-content h2 {
  color: var(--text-light);
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.15);
  backdrop-filter: blur(5px);
  color: var(--text-light);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.slider-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.slider-prev { left: 2rem; }
.slider-next { right: 2rem; }

/* Quick Inquiry Overlay Form */
.quick-inquiry-box {
  position: absolute;
  right: 10%;
  top: 10%;
  bottom: 10%;
  width: 380px;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  z-index: 25;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary-pine);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quick-inquiry-box h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.quick-inquiry-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: #f8fafc;
  outline: none;
  transition: var(--transition-fast);
  font-family: inherit;
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-pine);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(10, 64, 45, 0.1);
}

/* --- STATS COUNTER --- */
.stats-section {
  background-color: var(--primary-pine);
  color: var(--text-light);
  padding: 4rem 0;
  margin-top: -30px;
  position: relative;
  z-index: 30;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  box-shadow: var(--shadow-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-card {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 5rem 0;
}

.section-bg {
  background-color: var(--bg-card);
}

.section-header {
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
  text-align: center;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
}

/* --- WHY CHOOSE US GRID --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-card {
  background-color: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-pine);
  transform: scaleY(0);
  transition: var(--transition-fast);
  transform-origin: bottom;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.why-card:hover::before {
  transform: scaleY(1);
}

.why-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(var(--accent-gold-rgb), 0.15);
  color: var(--primary-pine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- PRINCIPAL PORTRAIT SECTION --- */
.principal-section {
  background-color: #05101d;
  color: var(--text-light);
  overflow: hidden;
}

.principal-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.principal-img-box {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-gold);
}

.principal-img-box img {
  width: 100%;
  height: auto;
}

.principal-text-box h2 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.principal-title {
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.principal-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: #ccd6f6;
  border-left: 3px solid var(--accent-gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.principal-text-box p {
  font-size: 0.95rem;
  color: #8892b0;
  margin-bottom: 1.5rem;
}

/* --- ACADEMICS STREAMS GRID --- */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stream-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.stream-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stream-img {
  height: 180px;
  overflow: hidden;
}

.stream-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.stream-card:hover .stream-img img {
  transform: scale(1.08);
}

.stream-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.stream-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.stream-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stream-footer {
  padding: 1rem 1.5rem;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-pine);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- NEWS & EVENTS --- */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.featured-news-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.featured-news-img {
  height: 380px;
  overflow: hidden;
}

.featured-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-news-content {
  padding: 2.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.featured-news-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.featured-news-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.event-item {
  display: flex;
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-normal);
}

.event-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.event-date-box {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 90px;
}

.event-date-box .day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}

.event-date-box .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 0.25rem;
}

.event-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.event-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- GALLERY GRID & FILTER --- */
.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-pine);
  color: var(--text-light);
  border-color: var(--primary-pine);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 26, 47, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 5;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  box-shadow: var(--shadow-lg);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  color: white;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- FOOTER --- */
.main-footer {
  background-color: var(--primary-dark);
  color: #8892b0;
  padding: 5rem 0 2rem 0;
  border-top: 5px solid var(--accent-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  color: var(--text-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.05);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-links a:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-column h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--accent-gold);
  padding-left: 0.25rem;
}

.footer-contacts p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contacts p i {
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links a {
  margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-gold);
}

/* --- INTERACTIVE WIDGETS --- */
/* Admissions Multi-step Form */
.wizard-container {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.wizard-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  width: 40px;
  height: 40px;
  background-color: var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-muted);
  border: 3px solid var(--bg-card);
  transition: var(--transition-normal);
}

.step-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.wizard-step.active .step-num {
  background-color: var(--primary-pine);
  color: white;
  box-shadow: 0 0 0 4px rgba(10, 64, 45, 0.15);
}

.wizard-step.active .step-label {
  color: var(--primary-pine);
  font-weight: 700;
}

.wizard-step.completed .step-num {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
}

.wizard-step.completed .step-label {
  color: var(--primary-dark);
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

/* Fee Calculator */
.calc-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.calc-header {
  background-color: var(--primary-pine);
  color: white;
  padding: 1.5rem 2rem;
}

.calc-body {
  padding: 2rem;
}

.calc-result-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-fee-amt {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-pine);
  font-family: 'Outfit', sans-serif;
}

/* Daily Timetable Builder */
.timetable-builder-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

.timetable-controls {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2rem;
  height: fit-content;
}

.timetable-display {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2rem;
}

.timetable-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.timetable-table th, .timetable-table td {
  border: 1px solid var(--border-color);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.timetable-table th {
  background-color: var(--primary-dark);
  color: white;
  font-family: 'Outfit', sans-serif;
}

.timetable-table tr:nth-child(even) td {
  background-color: #f8fafc;
}

/* Mid-day Meal Calendar */
.meal-calendar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.meal-day-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-normal);
}

.meal-day-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.meal-day-name {
  font-weight: 700;
  color: var(--primary-pine);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.meal-dish-img {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.meal-dish-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.meal-dish-calories {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- BANNER INTERACTIVE BARS --- */
.hero-inner-banner {
  height: 280px;
  background-color: var(--primary-dark);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
}

.hero-inner-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(9, 26, 47, 0.95) 40%, rgba(10, 64, 45, 0.7) 100%);
  z-index: 2;
}

.hero-inner-banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-banner-content {
  position: relative;
  z-index: 10;
}

.inner-banner-content h1 {
  color: var(--text-light);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumbs a:hover {
  color: var(--accent-gold);
}

/* --- ADMISSIONS EXPLANATION INFO --- */
.admissions-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.info-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  background-color: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.25rem;
}

.info-num {
  width: 45px;
  height: 45px;
  background-color: rgba(var(--accent-gold-rgb), 0.15);
  color: var(--primary-pine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-details h4 {
  margin-bottom: 0.25rem;
}

.info-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- CONTACT MAP & ADDRESS INFO --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(var(--accent-gold-rgb), 0.15);
  color: var(--primary-pine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-details h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-info-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-map-form-wrap {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
}

.map-container {
  height: 300px;
  background-color: #f1f5f9;
  border-radius: var(--border-radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-slider-section {
    height: 500px;
  }
  .quick-inquiry-box {
    display: none; /* Hide float inquiry on medium screens for simplicity */
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1.5rem;
  }
  .stat-card:nth-child(3), .stat-card:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 1.5rem;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principal-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .streams-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timetable-builder-wrap {
    grid-template-columns: 1fr;
  }
  .admissions-info-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .top-bar {
    display: none;
  }
  .header-container {
    height: 75px;
  }
  .school-name-text .title {
    font-size: 1.05rem;
  }
  .school-name-text .subtitle {
    font-size: 0.65rem;
  }
  .nav-menu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background-color: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    transition: var(--transition-normal);
    overflow-y: auto;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    height: auto;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    justify-content: space-between;
  }
  .nav-link::after {
    display: none;
  }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    background-color: var(--bg-light);
    display: none;
    padding: 0.5rem 0;
  }
  .nav-item.active .dropdown-menu {
    display: block;
  }
  .dropdown-menu li a {
    padding: 0.5rem 3rem;
  }
  .hamburger-btn {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }
  .slide-content h2 {
    font-size: 2.25rem;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .streams-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-filter-wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .wizard-container {
    padding: 1.5rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-full {
    grid-column: span 1;
  }
  .wizard-steps {
    display: none; /* Hide steps line on mobile, replace with text indicator in js */
  }
  .meal-calendar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom-links a {
    margin: 0 0.75rem;
  }
}

/* --- TOPPERS/ACHIEVERS DUAL SLIDER --- */
.toppers-section {
  background-color: #061121;
  color: var(--text-light);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.toppers-section .section-header h2 {
  color: var(--text-light);
}

.toppers-slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
}

.toppers-wrapper {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.topper-card {
  position: relative;
  background-color: #0b1a30;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 320px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  flex: 0 0 calc(50% - 1rem); /* Exactly 2 cards per slide minus gap */
}

.topper-card-img-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 45%;
  height: 100%;
  overflow: hidden;
}

.topper-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom overlay gradient fading to dark on the right */
.topper-card-img-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 26, 48, 0) 50%, rgba(11, 26, 48, 1) 100%);
  z-index: 2;
}

.topper-card-content {
  position: relative;
  z-index: 10;
  margin-left: 45%;
  width: 55%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.topper-card-text h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
}

.topper-card-text p {
  color: #a0aec0;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.topper-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  background-color: #e63946; /* Vibrant red CTA like screenshot */
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
}

.topper-btn:hover {
  background-color: #c72c38;
  transform: translateY(-2px);
}

.topper-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.75rem;
  margin-top: auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #718096;
  text-transform: uppercase;
}

/* Nav arrows style like screenshot */
.topper-nav-btn {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
  top: 50%;
  transform: translateY(-50%);
}

.topper-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.topper-prev {
  left: 1rem;
}

.topper-next {
  right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .toppers-wrapper {
    gap: 0;
  }
  .topper-card {
    flex: 0 0 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .topper-card-img-box {
    position: relative;
    width: 100%;
    height: 220px;
  }
  .topper-card-img-box::after {
    background: linear-gradient(to bottom, rgba(11, 26, 48, 0) 50%, rgba(11, 26, 48, 1) 100%);
  }
  .topper-card-content {
    width: 100%;
    margin-left: 0;
    padding: 1.5rem;
  }
  .topper-nav-btn {
    display: none; /* Hide arrows on mobile touch scroll */
  }
}

/* Meritorious & Vocational Toppers List Section */
.toppers-list-container {
  margin-top: 3.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
}

.toppers-list-title {
  font-size: 1.35rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  font-family: 'Outfit', sans-serif;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toppers-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.topper-list-item {
  background-color: #0b1a30;
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
  border-left: 4px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-gold);
  transition: var(--transition-fast);
}

.topper-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 255, 255, 0.12);
}

.topper-list-item h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.topper-list-item .stream {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.topper-list-item .achievement {
  font-size: 0.85rem;
  color: #a0aec0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .toppers-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .toppers-list-grid {
    grid-template-columns: 1fr;
  }
}

/* Topper Avatars */
.topper-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
  flex-shrink: 0;
}

.t-avatar-1 { object-position: 66% 14%; } /* Boy (topper_academics) */
.t-avatar-2 { object-position: 33% 18%; } /* Girl (topper_academics) */
.t-avatar-3 { object-position: 45% 18%; } /* Boy (topper_innovation) */
.t-avatar-4 { object-position: 21% 28%; } /* Girl 1 (topper_innovation) */
.t-avatar-5 { object-position: 66% 14%; } /* Boy (topper_academics) */
.t-avatar-6 { object-position: 78% 25%; } /* Girl 2 (topper_innovation) */

/* --- ENROLLMENT DASHBOARD STYLES --- */
.enrollment-section {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.enrollment-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.enroll-tab-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: 'Outfit', sans-serif;
  border: 2px solid #0a2240;
  background-color: transparent;
  color: #0a2240;
}

.enroll-tab-btn:hover {
  background-color: rgba(10, 34, 64, 0.05);
}

.enroll-tab-btn.active {
  background-color: #0a2240;
  color: white;
  border-color: #d32f2f; /* Red accent border like the logo! */
}

.enroll-table-container {
  display: none;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}

.enroll-table-container.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

.enroll-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.enroll-table th {
  background-color: #0a2240; /* Navy Blue header from logo */
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 1.1rem;
  text-align: center;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.enroll-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.enroll-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.enroll-table tr.total-row {
  background-color: rgba(211, 47, 47, 0.05); /* Soft red accent row */
  font-weight: 700;
  border-top: 2px solid #d32f2f; /* Red border from logo */
}

.enroll-table tr.total-row td {
  color: #0a2240;
}

.enroll-table tr.total-row td:first-child {
  color: #d32f2f; /* Red highlight for TOTAL text */
}

.enroll-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.enroll-summary-card {
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  background: white;
  border-left: 5px solid #d32f2f; /* Red border */
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.enroll-summary-card.navy {
  border-left-color: #0a2240; /* Navy border */
}

.enroll-summary-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.enroll-summary-card .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
}

@media (max-width: 1024px) {
  .enroll-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .enroll-summary-grid {
    grid-template-columns: 1fr;
  }
}
