:root {
  --primary: #0a58ca;
  --primary-dark: #0a3d91;
  --secondary: #eaf2ff;
  --text: #1e2b42;
  --white: #ffffff;
  --border: #d4e3ff;
  --shadow: 0 10px 25px rgba(10, 61, 145, 0.12);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans Devanagari', sans-serif;
  color: var(--text);
  background: #f7fbff;
  line-height: 1.7;
}

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

a {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9fc2ff;
  outline-offset: 2px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: var(--secondary);
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-head p {
  margin-top: 8px;
  color: #4f5f79;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1rem;
  max-width: 350px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--primary);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: center;
  position: relative;
  background: linear-gradient(120deg, rgba(10, 88, 202, 0.55), rgba(10, 61, 145, 0.45)),
    url('../images/1.jpeg') center/cover;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 12px;
  border-radius: 99px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.2;
}

.tagline {
  max-width: 760px;
  margin: 16px 0 28px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  padding: 12px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-outline {
  background: var(--primary);
  color: var(--white);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.soft-card {
  height: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  position: relative;
}

.slide {
  display: none;
  position: relative;
}

.slide-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 61, 145, 0.2), rgba(10, 61, 145, 0.5));
  pointer-events: none;
}

.slide.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.slide img {
  width: 100%;
  height: min(68vw, 520px);
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(10, 61, 145, 0.85);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 2;
}

.carousel-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

.slide-cta .slide-caption {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: transparent;
  padding: 0;
  z-index: 3;
}

.slide-cta .carousel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.slide-cta .carousel-link:hover {
  transform: translateY(-2px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.carousel-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: var(--white);
}

.page-banner {
  padding: 82px 0 54px;
  background: linear-gradient(120deg, #eaf2ff, #f5f9ff);
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  margin: 0;
  color: var(--primary-dark);
}

.page-banner p {
  margin: 8px 0 0;
  color: #4f5f79;
}

.mt-lg {
  margin-top: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.feature-item h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.schools-grid {
  display: grid;
  gap: 24px;
}

.school-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.school-card:hover {
  transform: translateY(-6px);
}

.school-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.school-content {
  padding: 22px;
}

.school-content h2 {
  margin-top: 0;
  color: var(--primary-dark);
}

.school-content ul {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.detail-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.check-list {
  padding-left: 0;
  list-style: none;
  margin: 0 0 20px;
}

.check-list li {
  margin-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
  color: inherit;
}

.gallery-item:hover {
  transform: translateY(-6px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-item figcaption,
.gallery-caption {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.gallery-caption {
  display: none;
}

.lightbox-viewer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 23, 52, 0.82);
  z-index: 1200;
}

.lightbox-viewer.show {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  width: 100%;
  background: #0a3d91;
  border-radius: 12px;
  padding: 8px;
}

.lightbox-image {
  width: 100%;
  max-height: calc(92vh - 16px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #0a3d91;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

.lightbox-nav:hover {
  background: #ffffff;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #0a3d91;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-counter {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(10, 61, 145, 0.8);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.no-scroll {
  overflow: hidden;
}

.contact-layout a {
  color: var(--primary-dark);
  font-weight: 600;
}

.contact-layout a:hover {
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.map-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-wrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #b5d0ff;
  border-color: var(--primary);
}

.site-footer {
  background: #0a3d91;
  color: #dfeaff;
  margin-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
  padding: 42px 0;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  color: #ffffff;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.quick-links a {
  color: #dfeaff;
}

.quick-links a:hover {
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.32);
}

.socials i {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 14px;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: 76px;
    right: 4%;
    width: min(280px, 92vw);
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.25s ease;
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .two-col,
  .feature-grid,
  .detail-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .school-card {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }

  .brand {
    font-size: 0.92rem;
    max-width: 250px;
  }

  .hero {
    min-height: 72vh;
  }

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

  .carousel-btn {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}