:root {
  --primary: #123a6f;
  --primary-2: #1f8a5b;
  --accent: #f2b544;
  --text: #132238;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --white: #ffffff;
  --border: rgba(18, 58, 111, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.topbar.scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.brand-text strong {
  display: block;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}
.brand-text span {
  color: var(--muted);
  font-size: 0.83rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--white);
  color: var(--primary);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(18, 58, 111, 0.78),
    rgba(31, 138, 91, 0.48)
  );
  z-index: 1;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 72vh;
  display: grid;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
.hero-copy {
  color: var(--white);
  max-width: 700px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.hero h1,
.page-hero h1 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card h3,
.card h3,
.section-header h2,
.cta-card h2,
.footer-brand h3,
.page-section h2 {
  font-family: "Poppins", sans-serif;
}
.hero-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: var(--muted);
}
.hero-card li:last-child {
  border-bottom: 0;
}

.quick-stats {
  margin-top: -4rem;
  position: relative;
  z-index: 3;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 8rem;
}
.stat-card,
.card,
.contact-card,
.program-card,
.gallery-card,
.info-card,
.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat-card {
  padding: 1.4rem;
}
.stat-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.stat-card span {
  color: var(--muted);
}

.section,
.page-section {
  padding: 4rem 0;
}
.section-header {
  max-width: 700px;
  margin-bottom: 2rem;
}
.section-header h2,
.page-section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.section-header p,
.page-section p,
.card p,
.contact-card p,
.program-card p,
.timeline-card p,
.info-card p {
  color: var(--muted);
}

.about-grid,
.program-grid,
.contact-grid,
.gallery-grid,
.feature-grid,
.story-grid,
.academic-grid {
  display: grid;
  gap: 1.4rem;
}
.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.program-grid,
.feature-grid,
.academic-grid {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}
.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.story-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.card,
.program-card,
.contact-card,
.info-card,
.timeline-card {
  padding: 1.5rem;
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(
    135deg,
    rgba(18, 58, 111, 0.12),
    rgba(31, 138, 91, 0.12)
  );
  margin-bottom: 1rem;
}
.media-card {
  overflow: hidden;
  position: relative;
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card.tall {
  min-height: 420px;
}

.split-banner {
  background: linear-gradient(135deg, #123a6f, #1f8a5b);
  color: var(--white);
  border-radius: 28px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}
.split-banner img {
  border-radius: 22px;
  min-height: 260px;
  object-fit: cover;
}

.program-card h3,
.contact-card h3,
.card h3,
.timeline-card h3,
.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.program-card ul,
.info-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.gallery-card {
  overflow: hidden;
  position: relative;
}
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-card:hover img {
  transform: scale(1.04);
}
.gallery-caption {
  padding: 1rem 1rem 1.1rem;
  background: var(--white);
}
.gallery-caption strong {
  display: block;
  margin-bottom: 0.25rem;
}
.gallery-caption span {
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(
    180deg,
    rgba(18, 58, 111, 0.08),
    rgba(31, 138, 91, 0.05)
  );
}
.page-hero .hero-shell {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}
.page-hero .media-card {
  min-height: 360px;
}

.contact-form {
  display: grid;
  gap: 1rem;
}
.form-row {
  display: grid;
  gap: 0.4rem;
}
label {
  font-weight: 600;
  font-size: 0.96rem;
}
input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fbfcfe;
  font: inherit;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(18, 58, 111, 0.35);
  box-shadow: 0 0 0 4px rgba(18, 58, 111, 0.08);
}
.form-note {
  margin-top: 0.5rem;
  color: var(--primary-2);
  font-weight: 600;
}

.cta {
  padding: 1rem 0 5rem;
}
.cta-card {
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(18, 58, 111, 1),
    rgba(31, 138, 91, 1)
  );
  color: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.cta-card p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
}

.footer {
  background: #0f233f;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 1.3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.5rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.8);
}
.footer a:hover {
  color: var(--white);
}
.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 54px;
  border-radius: 14px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.93rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .page-hero .hero-shell,
  .split-banner,
  .contact-grid,
  .story-grid,
  .footer-grid,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .program-grid,
  .feature-grid,
  .academic-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: var(--white);
    padding: 1rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 680px) {
  .section,
  .page-section {
    padding: 4rem 0;
  }
  .hero {
    padding-top: 4rem;
  }
  .hero-content {
    min-height: 78vh;
  }
  .stats-grid,
  .program-grid,
  .feature-grid,
  .academic-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-card {
    align-items: flex-start;
  }
  .brand-text strong {
    font-size: 0.88rem;
  }
  .brand-text span {
    font-size: 0.78rem;
  }
}
