/* ==========================================================================
   PMSHRI SBM GGSSS PIPAR CITY - PREMIUM DESIGN SYSTEM & STYLESHEET
   Colors: Saffron (#FF6B00), Royal Deep Blue (#0F2B5C), Gold (#D4A017), White (#FFFFFF)
   ========================================================================== */

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

:root {
  --primary-saffron: #FF6B00;
  --saffron-light: #FF8533;
  --saffron-glow: rgba(255, 107, 0, 0.25);
  
  --deep-blue: #0A1E3F;
  --royal-blue: #12346B;
  --navy-blue: #1A4480;
  --blue-gradient: linear-gradient(135deg, #0A1E3F 0%, #12346B 50%, #1A4480 100%);
  
  --accent-gold: #D4A017;
  --gold-glow: rgba(212, 160, 23, 0.3);
  --gold-gradient: linear-gradient(135deg, #F39C12 0%, #D4A017 50%, #F1C40F 100%);
  
  --bg-light: #F4F7FC;
  --surface-white: #FFFFFF;
  --card-bg: #FFFFFF;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-on-dark: #F8FAFC;
  
  --border-light: #E2E8F0;
  --border-glow: rgba(255, 107, 0, 0.3);
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.15);
  --shadow-gold: 0 10px 30px rgba(212, 160, 23, 0.2);
  --shadow-saffron: 0 10px 30px rgba(255, 107, 0, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--deep-blue);
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

/* CONTAINER - 10% INCREASED WIDTH */
.container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* FULL WIDTH HEADER & NAV CONTAINERS */
.top-bar .container,
.main-header .container,
.nav-container,
.footer-grid,
.footer-bottom {
  width: 100%;
  max-width: 100%; /* FULL WIDTH LAYOUT */
  padding-left: 50px;
  padding-right: 50px;
}

/* TOP ANNOUNCEMENT BAR */
.top-bar {
  background: var(--deep-blue);
  color: #CBD5E1;
  font-size: 0.825rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-links a {
  color: var(--accent-gold);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(212, 160, 23, 0.12);
  transition: var(--transition-fast);
}

.top-bar-links a:hover {
  background: var(--accent-gold);
  color: var(--deep-blue);
}

/* MAIN HEADER */
.main-header {
  background: var(--blue-gradient);
  color: var(--text-on-dark);
  padding: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 30, 63, 0.35);
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 85% 15%, rgba(255, 107, 0, 0.2) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(212, 160, 23, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 22px;
}

.school-emblem {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, #FFFFFF 55%, #FFF3E0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.7rem;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 25px var(--gold-glow), 0 8px 20px rgba(0,0,0,0.4);
  flex-shrink: 0;
  animation: pulseEmblem 3s infinite ease-in-out;
}

@keyframes pulseEmblem {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--gold-glow); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px var(--saffron-glow); }
}

.brand-text .hindi-title {
  color: var(--accent-gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.brand-text h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.brand-text .sub-title {
  color: #CBD5E1;
  font-size: 0.88rem;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.header-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.pm-shri-badge {
  background: var(--gold-gradient);
  color: var(--deep-blue);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: var(--shadow-gold);
}

.header-meta {
  font-size: 0.82rem;
  color: #CBD5E1;
  text-align: right;
  line-height: 1.5;
}

/* NAVBAR & STICKY NAVIGATION */
.navbar {
  background: var(--primary-saffron);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 107, 0, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(10, 30, 63, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 16px 22px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 4px;
  background: var(--accent-gold);
  border-radius: 4px 4px 0 0;
  transition: var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  background: rgba(0, 0, 0, 0.18);
  color: #FFFFFF;
}

.nav-link.active::after, .nav-link:hover::after {
  width: 85%;
}

.nav-portal-btn {
  background: var(--deep-blue);
  color: var(--accent-gold);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  border: 2px solid var(--accent-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-portal-btn:hover {
  background: var(--royal-blue);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: var(--deep-blue);
  border: 2px solid var(--accent-gold);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--royal-blue);
}

/* MARQUEE NEWS TICKER */
.news-ticker {
  background: var(--accent-gold);
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.12);
  font-weight: 700;
  font-size: 0.9rem;
}

.ticker-label {
  background: var(--deep-blue);
  color: var(--accent-gold);
  padding: 12px 22px;
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  box-shadow: 4px 0 12px rgba(0,0,0,0.2);
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-track {
  display: inline-flex;
  animation: tickerScroll 32s linear infinite;
  padding-left: 100%;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
}

.ticker-dot {
  color: var(--primary-saffron);
  font-size: 1.1rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* HERO SLIDER - FULLY CENTERED CONTENT */
.hero-slider {
  position: relative;
  height: 620px; /* TALL DESKTOP HEIGHT */
  overflow: hidden;
  background: #061329;
}

.slider-container {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  width: 33.333%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
  background: #061329;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: brightness(0.92);
  transition: transform 6s ease;
}

.slide.active img {
  transform: scale(1.05);
}

/* CENTERED OVERLAY & CENTERED CONTENT AS REQUESTED */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 63, 0.35) 0%, rgba(10, 30, 63, 0.92) 100%);
  display: flex;
  align-items: center; /* VERTICAL CENTER */
  justify-content: center; /* HORIZONTAL CENTER */
  padding: 50px 24px;
  text-align: center; /* CENTER ALIGNMENT */
}

.slide-text {
  max-width: 860px;
  color: #FFFFFF;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center; /* CENTER BADGES & BUTTON */
  text-align: center;
}

.slide-tag {
  display: inline-block;
  background: var(--primary-saffron);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-saffron);
}

.slide-text h2 {
  color: #FFFFFF;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.7);
  line-height: 1.2;
}

.slide-text p {
  font-size: 1.15rem;
  color: #F1F5F9;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 720px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.slider-nav-btn:hover {
  background: var(--primary-saffron);
  border-color: var(--primary-saffron);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev { left: 28px; }
.slider-nav-btn.next { right: 28px; }

.slider-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 36px;
  border-radius: 14px;
  background: var(--primary-saffron);
}

/* SECTION TITLES */
.section {
  padding: 85px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 54px;
}

.section-title .subtitle-badge {
  display: inline-block;
  color: var(--primary-saffron);
  background: var(--saffron-glow);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 16px;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
}

.title-divider::before, .title-divider::after {
  content: '';
  width: 80px;
  height: 3px;
  border-radius: 2px;
}

.title-divider::before {
  background: linear-gradient(90deg, transparent, var(--primary-saffron));
}

.title-divider::after {
  background: linear-gradient(90deg, var(--primary-saffron), transparent);
}

.title-divider span {
  color: var(--accent-gold);
  font-size: 1.4rem;
}

/* WELCOME SECTION */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.welcome-text h3 {
  font-size: 1.95rem;
  color: var(--royal-blue);
  margin-bottom: 18px;
  font-family: 'Playfair Display', serif;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 18px;
}

.principal-quote {
  background: linear-gradient(135deg, var(--deep-blue) 0%, var(--royal-blue) 100%);
  color: white;
  padding: 26px;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--primary-saffron);
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.principal-quote p {
  color: #F1F5F9;
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 14px;
}

.principal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.welcome-image-wrapper {
  position: relative;
}

.welcome-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--surface-white);
  position: relative;
  background: var(--deep-blue);
}

.welcome-img-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.welcome-img-card:hover img {
  transform: scale(1.04);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--gold-gradient);
  color: var(--deep-blue);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-gold);
  text-align: center;
}

.experience-badge .years {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Playfair Display', serif;
}

.experience-badge .text {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* STATS BAR */
.stats-bar {
  background: var(--blue-gradient);
  padding: 55px 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-gold);
}

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
  display: block;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
}

.stat-label {
  color: #E2E8F0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 8px;
}

/* ACADEMIC STREAMS - UPGRADED PREMIUM DESIGN */
.streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.stream-card {
  background: var(--surface-white);
  border-radius: var(--radius-lg);
  padding: 38px 28px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Gradient accent bar for each stream */
.stream-card.science-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #00F2FE 0%, #4FACFE 100%);
}

.stream-card.arts-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #FF6B00 0%, #D4A017 100%);
}

.stream-card.commerce-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #12346B 0%, #4338CA 100%);
}

.stream-card.homescience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.stream-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 0, 0.3);
}

.stream-icon-box {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.science-card .stream-icon-box { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); color: #0284C7; }
.arts-card .stream-icon-box { background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%); color: #EA580C; }
.commerce-card .stream-icon-box { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); color: #4338CA; }
.homescience-card .stream-icon-box { background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%); color: #059669; }

.stream-card:hover .stream-icon-box {
  transform: scale(1.1) rotate(6deg);
}

.stream-card h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.stream-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.stream-features {
  margin-bottom: 24px;
}

.stream-features li {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  background: var(--bg-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.stream-features li::before {
  content: '✓';
  color: var(--primary-saffron);
  font-weight: 900;
}

.badge-tag {
  align-self: flex-start;
  background: var(--saffron-glow);
  color: var(--primary-saffron);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ACHIEVEMENTS GRID */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.achievement-card {
  background: var(--surface-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--primary-saffron);
  transition: var(--transition-normal);
}

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

.achievement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.achievement-icon {
  font-size: 2.3rem;
}

.achievement-year {
  background: var(--bg-light);
  color: var(--royal-blue);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.achievement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--deep-blue);
}

.achievement-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* GALLERY GRID & FILTER */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.filter-btn {
  background: var(--surface-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-saffron);
  color: white;
  border-color: var(--primary-saffron);
  box-shadow: var(--shadow-saffron);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

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

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.9;
}

.gallery-card:hover img {
  transform: scale(1.08);
  opacity: 0.78;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(10, 30, 63, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-category {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-overlay h4 {
  color: white;
  font-size: 1.08rem;
  font-weight: 700;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 63, 0.95);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  margin: 0 auto;
}

.lightbox-caption {
  color: white;
  margin-top: 18px;
  font-size: 1.15rem;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: -45px; right: 0;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--primary-saffron);
}

/* CONTACT & LOCATION */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--blue-gradient);
  color: white;
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: var(--accent-gold);
  font-size: 1.85rem;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.contact-item-text p {
  color: #CBD5E1;
  font-size: 0.94rem;
  line-height: 1.65;
}

.form-card {
  background: var(--surface-white);
  padding: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.form-card h3 {
  font-size: 1.65rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-saffron);
  box-shadow: 0 0 0 3px var(--saffron-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-primary {
  background: var(--primary-saffron);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-saffron);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-primary:hover {
  background: var(--saffron-light);
  transform: translateY(-2px);
}

/* BUTTONS */
.btn-secondary {
  background: var(--deep-blue);
  color: white;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  background: var(--royal-blue);
  color: var(--accent-gold);
}

/* FOOTER */
footer {
  background: #061329;
  color: #94A3B8;
  padding: 75px 0 32px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-saffron), var(--accent-gold), var(--royal-blue));
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--accent-gold);
  font-size: 1.18rem;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 44px; height: 3px;
  background: var(--primary-saffron);
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #94A3B8;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--primary-saffron);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.7;
}

.footer-bottom a {
  color: var(--accent-gold);
  font-weight: 700;
  transition: var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--primary-saffron);
  text-decoration: underline;
}

/* TOAST NOTIFICATION */
.toast-notification {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--deep-blue);
  color: white;
  padding: 18px 26px;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-saffron);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-bounce);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* HIGH-PRECISION MOBILE RESPONSIVE QUERIES */
@media (max-width: 1024px) {
  .welcome-grid, .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-slider {
    height: 540px;
  }
}@media (max-width: 768px) {
  .top-bar {
    padding: 3px 0;
  }

  .top-bar .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .top-bar-info {
    justify-content: center;
    width: 100%;
    gap: 12px;
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
  }

  .top-bar-info span:first-child {
    display: none; /* Hide address on tiny topbar to keep 1 compact line */
  }

  .top-bar-links {
    display: none;
  }

  .main-header {
    padding: 8px 0;
    text-align: left;
  }

  .main-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 8px;
  }

  .brand-wrapper {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
  }

  .school-emblem {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    border-width: 2px;
    margin: 0;
    flex-shrink: 0;
  }

  .brand-text {
    text-align: left;
  }

  .brand-text .hindi-title {
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0;
    margin-bottom: 2px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
  }

  .brand-text h1 {
    font-size: clamp(0.92rem, 4vw, 1.25rem);
    line-height: 1.15;
    margin: 0;
    font-weight: 800;
    text-align: left;
  }

  .brand-text .sub-title {
    display: none;
  }

  .header-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
  }

  .pm-shri-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    background: var(--gold-gradient);
    color: var(--deep-blue);
    font-weight: 800;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
  }

  .header-meta {
    display: block; /* Display Established: 1970s and Dist Jodhpur as in 2nd reference image */
    font-size: 0.62rem;
    color: #CBD5E1;
    text-align: right;
    line-height: 1.3;
    white-space: nowrap;
  }

  /* NAVBAR MOBILE DRAWERS & BUTTONS */
  .nav-container {
    padding: 4px 12px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-blue);
    border-top: 3px solid var(--accent-gold);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 14px 28px rgba(0,0,0,0.4);
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.25s ease;
  }

  .nav-link {
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    justify-content: center;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 1.2rem;
  }

  .nav-portal-btn {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  /* MARQUEE MOBILE */
  .news-ticker {
    font-size: 0.76rem;
  }

  .ticker-label {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  /* SLIDER MOBILE - FIT ON FIRST SCREEN ALONGSIDE HEADER */
  .hero-slider {
    height: 340px; /* COMPACT SLIDER HEIGHT TO FIT ON FIRST MOBILE SCREEN */
  }

  .slide-overlay {
    padding: 20px 14px;
  }

  .slide-text h2 {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .slide-text p {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 14px;
  }

  .slide-tag {
    font-size: 0.72rem;
    padding: 4px 10px;
    margin-bottom: 8px;
  }

  .slider-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .slider-nav-btn.prev { left: 8px; }
  .slider-nav-btn.next { right: 8px; }

  /* SECTIONS MOBILE */
  .section {
    padding: 45px 0;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .welcome-text h3 {
    font-size: 1.4rem;
  }

  .welcome-text p {
    font-size: 0.92rem;
  }

  .experience-badge {
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    padding: 12px 18px;
    width: 85%;
  }

  .experience-badge .years {
    font-size: 1.6rem;
  }

  /* GRIDS MOBILE */
  .streams-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .stat-card {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.76rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-info-card, .form-card {
    padding: 24px 18px;
  }

  footer {
    padding: 45px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 30px;
  }

  .footer-col {
    padding: 0 4px;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--accent-gold);
  }

  .footer-col p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .footer-links a {
    font-size: 0.88rem;
    padding: 2px 0;
  }

  .footer-bottom {
    padding-top: 22px;
    font-size: 0.82rem;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    height: 310px;
  }
  .slider-dots {
    bottom: 14px;
  }
  
  footer {
    padding: 35px 0 20px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-bottom {
    font-size: 0.78rem;
  }
}

/* BACK TO TOP & TOAST UTILITIES */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: var(--gold-gradient);
  color: var(--deep-blue);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(212, 160, 23, 0.6);
}

@media (max-width: 768px) {
  .back-to-top-btn {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--deep-blue);
  color: #FFFFFF;
  border-left: 4px solid var(--primary-saffron);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  z-index: 10000;
  max-width: 90%;
  text-align: center;
}

.toast-notification.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

