:root {
  --ink: #172033;
  --muted: #5b667a;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f3f6fa;
  --navy: #0e2a47;
  --blue: #1f6fbf;
  --teal: #16817a;
  --gold: #b8832f;
  --shadow: 0 18px 45px rgba(18, 35, 58, 0.12);
  --radius: 8px;
}

* {
  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 {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.topbar {
  background: var(--navy);
  color: #f8fbff;
  font-size: 0.88rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand-name {
  display: block;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--soft);
  color: var(--blue);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button:hover {
  background: #155c9e;
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.button.secondary:hover {
  background: var(--soft);
  color: var(--blue);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
}

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

.hero {
  min-height: clamp(440px, 58vh, 560px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 30, 52, 0.82), rgba(10, 30, 52, 0.42)),
    var(--hero-image, url("../img/hero-campus.jpg")) center / cover no-repeat;
}

.hero.compact {
  min-height: clamp(300px, 42vh, 380px);
}

.hero-content {
  max-width: 760px;
  padding: 96px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c36f;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section {
  padding: 76px 0;
}

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

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-header p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 35, 58, 0.06);
}

.card-body {
  padding: 24px;
}

.card-media {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: auto;
  max-height: 240px;
  background: var(--soft);
}

.grid.three .card-media {
  aspect-ratio: 16 / 10;
  max-height: 230px;
}

.grid.two .card-media {
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.card p {
  color: var(--muted);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat {
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.image-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 35, 58, 0.12);
}

.panel {
  padding: 28px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list,
.plain-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f2fb;
  color: #174f86;
  font-size: 0.88rem;
  font-weight: 700;
}

.faculty-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.faculty-list li {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.faculty-list strong {
  display: block;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.logo-item {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.logo-item img {
  width: 100%;
  max-width: 150px;
  max-height: 64px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
}

.logo-item span {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.logo-item:hover img {
  filter: none;
  opacity: 1;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.notice {
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #e9f7f3;
  color: #0d5b4e;
}

.notice.is-visible {
  display: block;
}

.notice.is-success {
  background: #e9f7f3;
  color: #0d5b4e;
}

.notice.is-error {
  background: #fdecec;
  color: #8f1d1d;
}

.site-footer {
  padding: 44px 0;
  color: #dce8f5;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #dce8f5;
}

@media (max-width: 900px) {
  .topbar .container {
    display: block;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

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

  .site-nav a {
    padding: 13px 12px;
  }

  .hero,
  .hero.compact {
    min-height: 430px;
  }

  .hero-content {
    padding: 72px 0 60px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header,
  .split,
  .footer-inner {
    display: block;
  }

  .section-header p,
  .split > * + *,
  .footer-links {
    margin-top: 20px;
  }

  .grid.three,
  .grid.two,
  .stat-row,
  .faculty-list,
  .logo-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .image-strip img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero-actions,
  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-body,
  .panel {
    padding: 20px;
  }
}
