:root {
  --primary: #0c4da2;
  --primary-dark: #062a67;
  --primary-soft: #dcecff;
  --secondary: #1f77ff;
  --white: #ffffff;
  --ink: #10213b;
  --muted: #63718a;
  --surface: #f4f8ff;
  --shadow: 0 20px 50px rgba(7, 37, 84, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31, 119, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(12, 77, 162, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(12, 77, 162, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.site-nav a {
  position: relative;
  font-weight: 500;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--secondary);
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--primary-dark);
}

.hero {
  position: relative;
  min-height: 95vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-slideshow,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 5s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  padding: 7rem 0 5rem;
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow.blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.hero h1,
.section h2 {
  margin: 1rem 0;
  font-family: "Playfair Display", serif;
  line-height: 1.08;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.hero-text {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

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

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stats article,
.panel-card,
.feature-card,
.program-card,
.life-card,
.admission-card,
.contact-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-stats article {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats span {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.hero-panel {
  display: flex;
  align-items: end;
}

.panel-card {
  width: 100%;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.93);
}

.panel-card h2 {
  margin-top: 0;
  font-size: 1.7rem;
  color: var(--primary-dark);
}

.panel-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.slide-controls {
  position: absolute;
  inset: auto 0 2rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.slide-btn,
.dot {
  border: 0;
  cursor: pointer;
}

.slide-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.slide-dots {
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
}

.dot.active {
  background: var(--white);
  transform: scale(1.2);
}

.intro-band {
  margin-top: -1.5rem;
  position: relative;
  z-index: 4;
  padding-top: 0;
}

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

.intro-grid article {
  padding: 1.7rem;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-title {
  color: var(--primary);
  font-weight: 700;
  display: block;
  margin-bottom: 0.6rem;
}

.split-section,
.admissions-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.section-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.feature-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.program-card,
.text-card,
.admission-card,
.contact-card,
.info-card {
  padding: 1.6rem;
  background: var(--white);
}

.feature-card h3,
.program-card h3,
.text-card h3,
.admission-card h3,
.contact-card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.feature-card p,
.program-card p,
.text-card p,
.admission-card li,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

.accent-section {
  background:
    linear-gradient(135deg, rgba(12, 77, 162, 0.96), rgba(3, 28, 80, 0.98)),
    url("../images/img-12.png") center/cover no-repeat;
  color: var(--white);
}

.accent-section .section-heading h2,
.accent-section .program-card h3,
.accent-section .program-card p {
  color: var(--white);
}

.accent-section .program-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.section-heading.left {
  text-align: left;
  margin-left: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.life-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

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

.life-card {
  overflow: hidden;
  min-height: 290px;
}

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

.text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(220, 236, 255, 0.75));
}

.gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.admission-card ol {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-section {
  background: linear-gradient(180deg, rgba(6, 42, 103, 0.98), rgba(12, 77, 162, 0.95));
  color: var(--white);
}

.contact-section .contact-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-section .contact-card p,
.contact-section .contact-card h2,
.contact-section .contact-card h3,
.contact-section .info-list p {
  color: var(--white);
}

.site-footer {
  background: #031d4d;
  color: rgba(255, 255, 255, 0.88);
  padding: 1.25rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-content,
  .split-section,
  .admissions-grid,
  .contact-grid,
  .intro-grid,
  .life-grid,
  .gallery-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 6rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .slide-controls {
    inset: auto 0 1rem;
  }
}
