@font-face {
  font-family: Poppins;
  src: url("poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("poppins-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #061f50;
  --blue: #0067bb;
  --blue-hover: #005496;
  --pale: #eff5ff;
  --white: #fff;
  --ink: #172c49;
  --muted: #4f6075;
  --line: #d7e4f3;
  --page: 1192px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.65 Poppins, Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid #2b87df; outline-offset: 5px; }
[id] { scroll-margin-top: 24px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; text-wrap: balance; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--page)); margin-inline: auto; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.skip-link {
  position: absolute;
  z-index: 3;
  inset: 8px auto auto 8px;
  transform: translateY(-150%);
  background: white;
  padding: 10px 18px;
}
.skip-link:focus { transform: none; }

.masthead { background: var(--navy); color: var(--white); }
.masthead-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-block; flex: none; }
.brand img { width: 220px; height: auto; aspect-ratio: 1080 / 404; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 34px); }
.nav a { color: var(--white); font-size: .85rem; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .portal-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid #8aa4cd;
  border-radius: 8px;
}
.portal-link .icon { width: .95rem; height: .95rem; }

.hero {
  padding-block: clamp(34px, 4vw, 58px) clamp(40px, 4.8vw, 66px);
  background: #f9fbff;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 4.2vw, 62px);
}
.cycle { margin-bottom: 10px; color: var(--blue); font-size: .93rem; font-weight: 700; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.05vw, 3.45rem);
  letter-spacing: -.043em;
  line-height: 1.13;
  text-wrap: wrap;
}
.hero h1 span { display: block; }
.hero p:not(.cycle) {
  margin-top: 16px;
  max-width: 42ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
.btn-outline { color: var(--navy); border-color: var(--line); }
.btn-outline:hover { background: var(--pale); }
.hero-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: var(--pale);
  box-shadow: 0 0 0 1px #061f5014;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }

.section { padding-block: clamp(45px, 7vw, 82px); }
.section-heading { color: var(--navy); font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.035em; }
.section-subtitle { margin-top: 10px; color: var(--muted); }
.catalog { border-top: 1px solid var(--line); }
.programs { display: grid; gap: 12px; margin-top: 29px; }

.program {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--pale);
}
.program > summary {
  min-height: 90px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 21px;
  align-items: center;
  gap: 17px;
  cursor: pointer;
  padding: 16px 22px;
  list-style: none;
  border-radius: inherit;
}
.program > summary::-webkit-details-marker { display: none; }
.program > summary:hover { background: #e7f1ff; }
.program-icon { width: 34px; height: 34px; color: var(--blue); justify-self: center; }
.program-title { color: var(--navy); font-weight: 700; font-size: clamp(1rem, 2vw, 1.24rem); line-height: 1.35; }
.program-toggle {
  color: var(--blue);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.close-label, .program[open] .open-label { display: none; }
.program[open] .close-label { display: inline; }
.chevron { color: var(--blue); transition: transform 160ms ease; }
.program[open] .chevron { transform: rotate(180deg); }
.plan {
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
  background: var(--white);
  padding: 25px clamp(14px, 3vw, 30px) 29px;
}
.plan-note { margin-bottom: 18px; color: var(--muted); font-size: .88rem; }
.cycle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.term { min-width: 0; border-top: 2px solid var(--line); padding-top: 11px; }
.term-title { color: var(--blue); font-size: .98rem; }
.term-meta { display: block; margin-top: 3px; color: var(--muted); font-size: .81rem; }
.modules { padding: 0; margin: 12px 0 0; list-style: none; }
.modules li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.46;
  overflow-wrap: anywhere;
}
.modules li:last-child { border-bottom: 0; }
.module-code {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .015em;
}

.admission { background: var(--pale); }
.admission-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(32px, 7vw, 96px);
}
.info-list { padding: 0; margin: 23px 0 0; list-style: none; }
.info-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { width: 23px; height: 23px; color: var(--blue); }
.info-list strong { display: block; color: var(--navy); line-height: 1.35; }
.info-list p { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.contact { padding-block: clamp(35px, 6vw, 66px); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact-inner p { color: var(--muted); margin-top: 8px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn { white-space: nowrap; }
.footer { background: var(--navy); color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: .83rem; }
.footer a { color: var(--white); }

@media (max-width: 900px) {
  .contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 740px) {
  .masthead-inner { min-height: 90px; gap: 12px; }
  .brand img { width: clamp(145px, 46vw, 198px); }
  .nav .portal-link { padding: 8px 10px; font-size: .78rem; }
  .nav .nav-section { display: none; }
  .hero-inner, .admission-inner { grid-template-columns: 1fr; }
  .hero-inner { gap: 23px; }
  .hero-photo { aspect-ratio: 1.47; }
  .cycle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 470px) {
  .nav .portal-link { font-size: .74rem; gap: 5px; padding-inline: 8px; }
  .hero h1 { font-size: clamp(1.75rem, 8.25vw, 2.35rem); }
  .hero { padding-top: 30px; }
  .hero-actions .btn { min-height: 44px; padding-inline: 13px; font-size: .82rem; }
  .cycle-grid { grid-template-columns: 1fr; }
  .program > summary {
    grid-template-columns: 31px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 14px 12px;
  }
  .program-icon { width: 27px; height: 27px; }
  .program-toggle { display: none; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chevron { transition: none; }
}

.application + .contact { border-top: 1px solid var(--line); }
.application .section-subtitle { max-width: 64ch; }
.apply-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.apply-card { padding: clamp(16px, 2.6vw, 24px); background: var(--pale); border: 1px solid var(--line); border-radius: 15px; }
.apply-card h3 { color: var(--navy); font-size: 1.13rem; text-wrap: wrap; }
.apply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 19px; margin-top: 15px; }
.apply-actions > a:not(.btn) { font-size: .86rem; font-weight: 700; }
.track { max-width: 620px; }
.track form { display: grid; gap: 8px; margin-top: 28px; }
.track label { color: var(--navy); font-weight: 700; }
.track input:not([type=hidden]) { margin-bottom: 10px; padding: 12px 14px; width: 100%; min-height: 49px; border: 1px solid #a8b9ce; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; }
.track button { justify-self: start; cursor: pointer; }
.track button:disabled { opacity: .65; cursor: progress; }
#med2027-track-feedback:not(:empty) { margin-block: 19px; background: var(--pale); color: var(--navy); border-radius: 8px; padding: 12px 16px; }
.track > p:last-child { margin-top: 20px; }

@media (max-width: 740px) {
  .apply-grid { grid-template-columns: 1fr; }
}
