/* Shared styles for all four course pages */
:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #555;
  --line: rgba(0, 0, 0, 0.10);
  --theme: #1f3a5f;        /* overridden per page */
  --theme-deep: #0c1a2e;   /* overridden per page (used in hero) */
  --theme-soft: #2a4d7a;   /* overridden per page */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

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

a { color: inherit; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
  filter: saturate(0.85);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--theme-deep) 55%, transparent) 0%,
      color-mix(in oklab, var(--theme-deep) 78%, transparent) 55%,
      var(--theme-deep) 100%),
    radial-gradient(80% 60% at 50% 30%,
      color-mix(in oklab, var(--theme) 45%, transparent) 0%,
      transparent 70%);
}

/* ---------- TOP BAR ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw;
  position: relative;
  z-index: 2;
}

.topbar__brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

.topbar__brand span {
  opacity: 0.6;
  font-weight: 300;
}

.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__back:hover { color: #fff; }

.topbar__back::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ---------- HERO HEAD ---------- */
.hero__head {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4vh 6vw 6vh;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero__eyebrow::after {
  content: "";
  flex-shrink: 0;
  width: 90px;
  height: 1px;
  background: #fff;
  position: relative;
}

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(58px, 10.5vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 64px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

/* ---------- BADGES ---------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 80px);
  align-items: flex-start;
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 110px;
}

.badge__circle {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  border-radius: 50%;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  color: #fff;
}

.badge__circle svg {
  width: 46%;
  height: 46%;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
}

.badge__label {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.06em;
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}

.badge__label strong {
  display: block;
  font-weight: 600;
}

.badge__pill {
  margin-top: 4px;
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 300;
}

.badge__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 1px solid #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #fff;
  font-weight: 300;
}

.badge__location svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- SCROLL CUE ---------- */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), transparent);
  animation: cuePulse 2s ease-in-out infinite;
}

@keyframes cuePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ---------- BODY SECTION ---------- */
.body {
  position: relative;
  background: var(--bg);
  isolation: isolate;
  overflow: hidden;
}

.body__watermark {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.06;
  filter: saturate(0.7);
  pointer-events: none;
}

.body__watermark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 88%, var(--bg) 100%);
}

.body__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 160px) 6vw clamp(60px, 8vh, 120px);
  position: relative;
  z-index: 1;
}

.section {
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.section-label::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
}

.body h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin-bottom: 32px;
  text-wrap: balance;
}

.body p {
  color: #2e2e2e;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.7;
  margin-bottom: 22px;
  text-wrap: pretty;
  font-weight: 450;
}

.body p.lead {
  font-size: clamp(22px, 1.9vw, 28px);
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 34px;
  font-weight: 500;
}

.body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
}

.body ul li {
  position: relative;
  padding: 12px 0 12px 32px;
  color: #2e2e2e;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
  border-bottom: 1px dotted var(--line);
  font-weight: 450;
}

.body ul li:last-child { border-bottom: none; }

.body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 16px;
  height: 2px;
  background: var(--theme);
}

.body ul li strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- SUMMARY CARD ---------- */
.summary {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--theme);
  padding: 44px 48px;
  margin-top: 40px;
}

.summary h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 26px;
}

.summary dl {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px 32px;
  margin: 0;
}

.summary dt {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme);
  padding-top: 4px;
}

.summary dd {
  margin: 0;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

@media (max-width: 640px) {
  .summary { padding: 28px 24px; }
  .summary dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .summary dd { padding-bottom: 12px; border-bottom: 1px dotted var(--line); }
  .summary dd:last-child { border-bottom: none; }
}

/* ---------- LOCATIONS BLOCK ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.location {
  border: 1px solid var(--line);
  border-top: 2px solid var(--theme);
  padding: 20px 22px;
  background: rgba(255,255,255,0.7);
}

.location__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 12px;
}

.location__title {
  font-weight: 700;
  color: var(--fg);
  font-size: 17px;
  margin-bottom: 8px;
}

.location__addr {
  color: #2e2e2e;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 450;
}

/* ---------- SUBCOURSE DIVIDER ---------- */
.subcourse {
  margin-top: 88px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
  position: relative;
}

.subcourse::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--theme);
}

.subcourse__kicker {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 14px;
  font-weight: 500;
}

.subcourse h2 {
  margin-bottom: 36px;
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 36px 6vw;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .topbar { padding: 20px 5vw; }
  .topbar__back { font-size: 11px; letter-spacing: 0.14em; }
  .topbar__back::before { width: 16px; }
  .hero__head { padding: 2vh 5vw 5vh; }
  .hero__title { margin-bottom: 44px; }
  .badges { gap: 28px; justify-content: space-between; width: 100%; }
  .badge { min-width: 0; flex: 1; }
  .body__inner { padding: 64px 5vw 60px; }
}
