:root {
  --navy: #000b4d;
  --school-blue: #283583;
  --sky: #00b3e8;
  --sky-soft: #e5f9ff;
  --orange: #ed6b17;
  --orange-soft: #fff0e6;
  --ink: #101828;
  --muted: #526071;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --shadow: 0 16px 40px rgba(0, 11, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: var(--school-blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 168px;
  height: auto;
  display: block;
}

.brand span {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--school-blue);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--school-blue);
  border-bottom-color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--navy);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(110deg, var(--navy) 0%, var(--school-blue) 58%, #1c507a 100%);
  color: #fff;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  display: block;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
  background: var(--navy);
  color: #fff;
}

.page-hero a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

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

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section.soft {
  background: var(--soft);
}

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

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

h2 {
  margin: 0 0 1.2rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 1.65rem 0 0.65rem;
  color: var(--school-blue);
  font-size: 1.12rem;
  line-height: 1.25;
}

p + h2,
ul + h2,
ol + h2,
.grid + h2,
.timeline + h2,
.requirements-table + h2,
.callout + h2,
.download-list + h2 {
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

p + h3,
ul + h3,
ol + h3,
.callout + h3 {
  margin-top: 1.9rem;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

li {
  margin: 0.35rem 0;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--school-blue);
  border-radius: 6px;
  background: var(--school-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.button.secondary {
  background: #fff;
  color: var(--school-blue);
}

.button.secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.button.light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

.card {
  padding: clamp(1.35rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 11, 77, 0.06);
}

.card h3:first-child {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child,
.step p:last-child,
.download-item p:last-child {
  margin-bottom: 0;
}

.callout {
  margin: 1.75rem 0;
  padding: clamp(1.25rem, 2vw, 1.55rem);
  border-left: 6px solid var(--orange);
  border-radius: 6px;
  background: var(--orange-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout.blue {
  border-left-color: var(--sky);
  background: var(--sky-soft);
}

.callout strong {
  color: var(--navy);
}

.timeline {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.3rem, 2vw, 1.65rem) clamp(1.3rem, 2vw, 1.65rem) clamp(1.3rem, 2vw, 1.65rem) 4.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.15rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--school-blue);
  color: #fff;
  font-weight: 700;
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: #fff;
  border: 1px solid var(--line);
}

.requirements-table th,
.requirements-table td {
  padding: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.requirements-table th {
  background: var(--navy);
  color: #fff;
}

.requirements-table tr:last-child td {
  border-bottom: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.faq-list summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}

.download-list {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.download-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.35rem, 2.2vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  background: var(--navy);
  color: #fff;
}

.site-footer img {
  width: 170px;
  margin-bottom: 1rem;
}

.site-footer .footer-logo {
  padding: 0.6rem;
  border-radius: 6px;
  background: #fff;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1500px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.5rem 1rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.1rem 0.75rem;
  }
}

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

@media (max-width: 780px) {
  .hero,
  .two-col,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-media img {
    min-height: 260px;
  }

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

  .download-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav.open {
    grid-template-columns: 1fr;
  }

  .requirements-table,
  .requirements-table thead,
  .requirements-table tbody,
  .requirements-table tr,
  .requirements-table th,
  .requirements-table td {
    display: block;
  }

  .requirements-table {
    border: 0;
    background: transparent;
  }

  .requirements-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .requirements-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .requirements-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }

  .requirements-table td {
    padding: 0.75rem 0.95rem 0.85rem;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  .requirements-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    color: var(--school-blue);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .requirements-table td:last-child {
    border-bottom: 0;
  }
}
