:root {
  --teal: #0d2c5c;
  --teal-dark: #081c3a;
  --teal-soft: #eef2f8;
  --navy: #0d2c5c;
  --navy-deep: #081c3a;
  --gold: #f15a22;
  --text: #2c3338;
  --muted: #5a6570;
  --white: #ffffff;
  --bg: #f6f8f8;
  --border: #d7e2e2;
  --header-h: 76px;
  --shadow: 0 10px 30px rgba(13, 44, 92, 0.08);
  --radius: 12px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--teal);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

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

.btn-primary:hover {
  background: #d94e16;
  color: var(--white);
}

.btn-outline {
  border-color: var(--teal);
  color: var(--teal);
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
}

.brand-emblem {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-wordmark {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.site-nav ul {
  display: flex;
  gap: 0.2rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--teal);
  margin: 6px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid;
  place-items: end stretch;
  color: var(--white);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 28, 58, 0.2) 0%, rgba(8, 28, 58, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  background: rgba(241, 90, 34, 0.92);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}

.hero-quote {
  max-width: 42rem;
  font-size: 1.15rem;
  color: #eef5f5;
}

/* About */

.about {
  padding: 4.5rem 0 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-photo img {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border-top: 4px solid var(--teal);
  padding: 1.4rem 1.2rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  color: var(--teal);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* Admission */

.admission {
  padding: 4rem 0;
  background: var(--teal-soft);
}

.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admission-grid article {
  background: var(--white);
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admission-span {
  grid-column: 1 / -1;
}

/* Fees */

.fees {
  padding: 4rem 0;
}

.fees-note {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1rem;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

caption {
  caption-side: bottom;
  text-align: left;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: var(--bg);
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* Principal */

.principal {
  padding: 4rem 0 4.5rem;
  background: var(--bg);
}

.principal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.principal-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: top;
}

blockquote {
  margin: 1.2rem 0 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--gold);
  color: var(--navy);
  font-family: var(--serif);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

.principal-copy h4 {
  color: var(--teal);
  margin-top: 1.2rem;
}

.principal-copy p,
.principal-copy ul {
  max-width: 62ch;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: #d5e0e4;
  padding: 3rem 0 1.25rem;
}

.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.site-footer a {
  color: #d5e0e4;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 0.8rem;
  filter: brightness(0) invert(1);
}

.admin-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.group-link {
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid ul,
.socials {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  padding-top: 1.1rem;
  font-size: 0.9rem;
  color: #9aadb6;
}

.footer-bottom p {
  margin: 0;
}

.fees-notes {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.fees-notes h3 {
  margin-top: 0;
}

.fees-notes ol {
  padding-left: 1.2em;
}

.classes,
.infrastructure,
.timings,
.staff {
  padding: 3.5rem 0;
}

.infrastructure,
.staff {
  background: var(--bg);
}

.subhead {
  margin-top: 2rem;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}

.class-grid article {
  background: var(--navy);
  color: var(--white);
  padding: 1.2rem 1rem;
  border-radius: var(--radius);
}

.class-grid h3 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.class-grid p {
  margin: 0;
  color: #d7e2f0;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.photo-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.infra-points {
  margin: 1.5rem 0 1.75rem;
}

.site-nav ul {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Responsive */

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
    padding: 0.75rem 0 1rem;
    gap: 0;
    justify-content: flex-start;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0.2rem;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .principal-grid,
  .admission-grid,
  .feature-grid,
  .class-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }
}

@media (max-width: 600px) {
  .brand-wordmark {
    display: none;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .photo-row img,
  .about-photo img {
    height: 200px;
  }
}
