:root {
  --ink: #17202a;
  --muted: #5c6b73;
  --paper: #fffdf8;
  --teal: #088f8f;
  --teal-dark: #066d70;
  --coral: #f25f4c;
  --yellow: #ffd166;
  --green: #68b684;
  --line: rgba(23, 32, 42, 0.12);
  --shadow: 0 24px 70px rgba(23, 32, 42, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.school-nav {
  padding: 14px 0;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.school-nav.nav-scrolled {
  padding: 8px 0;
  box-shadow: 0 12px 38px rgba(23, 32, 42, 0.11);
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 800;
}

.navbar-brand {
  color: var(--ink);
  font-weight: 800;
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.btn {
  border-radius: 8px;
  font-weight: 750;
}

.btn-coral {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 14px 30px rgba(242, 95, 76, 0.26);
}

.btn-coral:hover {
  color: #fff;
  background: #dc4d3d;
  border-color: #dc4d3d;
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #dcefed;
}

.hero-bg {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(7, 45, 49, 0.76) 0%,
            rgba(7, 45, 49, 0.52) 38%,
            rgba(7, 45, 49, 0.08) 74%
        ),
        var(--hero-bg-image);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    animation: heroDrift 14s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 78px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: var(--yellow);
}

.hero-section h1 {
  max-width: 760px;
  line-height: 0.98;
}

.lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  gap: 12px;
  margin-top: 42px;
}

.hero-stats div {
  min-height: 118px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-stats strong,
.hero-stats span {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.hero-stats p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.5s infinite;
}

.section-pad {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.campus-band h2,
.admission-band h2,
.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  font-weight: 850;
}

.program-card {
  position: relative;
  height: 100%;
  min-height: 285px;
  padding: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: auto -22px -44px auto;
  width: 150px;
  height: 150px;
  background: var(--yellow);
  border-radius: 42%;
  opacity: 0.26;
  transition: transform 0.3s ease;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.program-card:hover::before {
  transform: scale(1.25) rotate(16deg);
}

.card-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 8px;
  font-weight: 850;
}

.program-card h3,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  font-weight: 820;
}

.program-card p,
.timeline-item p,
.section-copy {
  color: var(--muted);
  line-height: 1.75;
}

.campus-band {
  padding: 104px 0;
  overflow: hidden;
  background: #e8f6f4;
}

.campus-orbit {
  position: relative;
  width: min(82vw, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit-ring {
  position: absolute;
  inset: 36px;
  border: 2px dashed rgba(8, 143, 143, 0.32);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.orbit-core {
  position: absolute;
  inset: 28%;
  display: grid;
  place-items: center;
  align-content: center;
  color: #fff;
  text-align: center;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.orbit-core span {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.orbit-core p {
  margin: 6px 0 0;
  font-weight: 700;
}

.orbit-item {
  position: absolute;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(23, 32, 42, 0.13);
  font-weight: 850;
  animation: floaty 4s ease-in-out infinite;
}

.orbit-one {
  top: 12%;
  left: 12%;
}

.orbit-two {
  top: 18%;
  right: 4%;
  animation-delay: 0.7s;
}

.orbit-three {
  left: 44%;
  bottom: 2%;
  animation-delay: 1.2s;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.feature-list span {
  width: 12px;
  height: 12px;
  background: var(--coral);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(242, 95, 76, 0.13);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-item time {
  display: grid;
  min-height: 84px;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 8px;
  font-weight: 850;
}

.admission-band {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), #263d65 54%, var(--coral));
}

.admission-band .eyebrow {
  color: var(--yellow);
}

.contact-form {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 8px;
  border-color: rgba(23, 32, 42, 0.18);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.22rem rgba(8, 143, 143, 0.15);
}

.contact-chip {
  display: inline-flex;
  margin: 12px 10px 0 0;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 750;
}

.footer {
  padding: 28px 0;
  color: #fff;
  background: var(--ink);
}

.footer p {
  margin: 0;
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 62vh;
  align-items: center;
  padding: 132px 0 72px;
  overflow: hidden;
  color: #fff;
  background: var(--teal-dark);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 45, 49, 0.84), rgba(7, 45, 49, 0.42)), url("school-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--paper), rgba(255, 253, 248, 0));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.4rem, 6vw, 5.3rem);
  line-height: 0.98;
  font-weight: 900;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.15rem;
  line-height: 1.75;
}

.mission-card,
.contact-info-card,
.value-card,
.video-card {
  height: 100%;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mission-card {
  color: var(--ink);
  animation: floaty 4.5s ease-in-out infinite;
}

.mission-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 10px 14px;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 800;
}

.mission-card h2,
.contact-info-card h2,
.video-card h2 {
  font-size: 1.55rem;
  font-weight: 850;
}

.contact-info-card p,
.value-card p,
.video-card p {
  color: var(--muted);
  line-height: 1.7;
}

.photo-panel {
  min-height: 430px;
  background-image: linear-gradient(180deg, rgba(8, 143, 143, 0.04), rgba(242, 95, 76, 0.2)), url("school-hero.png");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.value-card {
  min-height: 245px;
  transition: transform 0.3s ease;
}

.value-card:hover {
  transform: translateY(-8px);
}

.value-card h3 {
  margin-bottom: 14px;
  font-weight: 850;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: 8px;
  background-image: linear-gradient(135deg, rgba(8, 143, 143, 0.18), rgba(242, 95, 76, 0.18)), url("school-hero.png");
  background-size: cover;
  box-shadow: 0 18px 48px rgba(23, 32, 42, 0.12);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 32, 42, 0.68), rgba(23, 32, 42, 0.06));
}

.gallery-tile span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 850;
}

.gallery-tile:hover {
  filter: saturate(1.12);
  transform: translateY(-8px) scale(1.01);
}

.tile-large {
  grid-column: span 2;
  grid-row: span 2;
  background-position: 70% center;
}

.tile-art {
  background-position: 48% center;
}

.tile-sport {
  background-position: 20% center;
}

.tile-music {
  background-position: 78% center;
}

.tile-library {
  grid-column: span 2;
  background-position: 35% center;
}

.tile-campus {
  background-position: center;
}

.video-card {
  overflow: hidden;
  padding: 0;
}

.video-card h2,
.video-card p {
  margin-left: 26px;
  margin-right: 26px;
}

.video-card h2 {
  margin-top: 24px;
}

.video-card p {
  margin-bottom: 28px;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(8, 143, 143, 0.26), rgba(242, 95, 76, 0.2)), url("school-hero.png");
  background-size: cover;
}

.campus-video {
  background-position: 60% center;
}

.project-video {
  background-position: 82% center;
}

.arts-video {
  background-position: 34% center;
}

.admission-video {
  background-position: center;
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 32, 42, 0.46), rgba(23, 32, 42, 0.05));
}

.video-thumb button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.video-thumb button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--coral);
}

.video-thumb button:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.08s;
}

.delay-2 {
  transition-delay: 0.16s;
}

.delay-3 {
  transition-delay: 0.24s;
}

.delay-4 {
  transition-delay: 0.32s;
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.06) translateX(-1.5%);
  }
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  35%,
  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    padding: 18px 0 6px;
  }

  .hero-section {
    min-height: auto;
  }

@media (max-width: 991px) {

    .hero-section {
        min-height: auto;
    }

    .hero-bg {
        background-image:
            linear-gradient(
                180deg,
                rgba(7, 45, 49, 0.88) 0%,
                rgba(7, 45, 49, 0.64) 48%,
                rgba(7, 45, 49, 0.25) 100%
            ),
            var(--hero-bg-image);

        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding-top: 108px;
        padding-bottom: 76px;
    }

    .hero-content .row {
        min-height: 780px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}
  .hero-content {
    padding-top: 108px;
    padding-bottom: 76px;
  }

  .hero-content .row {
    min-height: 780px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .display-3 {
    font-size: 2.55rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats div {
    min-height: auto;
  }

  .section-pad,
  .campus-band {
    padding: 70px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item time {
    min-height: 58px;
  }

  .contact-form {
    padding: 20px;
  }

  .orbit-item {
    width: 72px;
    height: 72px;
  }

  .page-hero {
    min-height: auto;
    padding: 118px 0 64px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .tile-large,
  .tile-library {
    grid-column: span 1;
    grid-row: span 1;
  }

  .photo-panel {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
