:root {
  --navy: #041f46;
  --navy-2: #082f64;
  --blue: #0b4e98;
  --gold: #efb500;
  --gold-2: #ffc928;
  --ink: #0b1d3f;
  --muted: #52617a;
  --line: #d6dfeb;
  --soft: #eef4fb;
  --white: #fff;
  --success: #16823b;
  --danger: #d52b2b;
  --shadow: 0 8px 24px rgba(6, 34, 74, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fbff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.utility-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 28px;
  background: linear-gradient(90deg, #f2b600, #ffca28);
  color: #07152f;
  font-size: 14px;
  font-weight: 700;
}
.utility-links { display: flex; gap: 24px; flex-wrap: wrap; }
.utility-links a:hover { text-decoration: underline; }

.main-header {
  background: linear-gradient(115deg, #031a3c 0%, #062956 58%, #031a3c 100%);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-inner {
  max-width: 1540px;
  min-height: 104px;
  margin: 0 auto;
  padding: 12px 28px 0;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 2fr;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
}
.brand img { width: 78px; height: 78px; flex: 0 0 auto; }
.brand-name {
  margin: 0;
  font-size: clamp(30px, 3.1vw, 54px);
  line-height: .96;
  letter-spacing: -2px;
  font-weight: 800;
}
.brand-name span { color: var(--gold); }
.brand-subtitle { margin-top: 8px; font-size: 18px; font-weight: 700; }

.top-nav {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  align-items: end;
  gap: 4px;
}
.top-nav a {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 6px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 4px solid transparent;
  transition: .18s ease;
}
.top-nav a:hover, .top-nav a.active {
  color: var(--gold-2);
  background: rgba(255,255,255,.04);
  border-bottom-color: var(--gold);
}
.nav-icon {
  width: 38px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 900;
}

.page-shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 18px 26px 0;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
}
.sidebar { min-width: 0; }
.side-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(8, 47, 100, .04);
}
.panel-title {
  margin: 0;
  padding: 9px 14px;
  color: white;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
  font-size: 14px;
  letter-spacing: .1px;
  text-transform: uppercase;
}
.side-menu { margin: 0; padding: 0; list-style: none; }
.side-menu li + li { border-top: 1px solid #e5ebf2; }
.side-menu a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: .16s ease;
}
.side-menu a:hover { background: #f1f6fc; color: #064b99; }
.side-menu a.active { background: linear-gradient(90deg, #f3b800, #ffc928); color: #06172f; }
.side-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}
.progress-body { padding: 12px 14px 8px; font-size: 12px; }
.progress-line { display: flex; justify-content: space-between; gap: 10px; margin: 7px 0; }
.progress-track {
  height: 16px;
  overflow: hidden;
  border: 1px solid #9eb1ca;
  border-radius: 4px;
  background: #f5f8fc;
}
.progress-fill { height: 100%; background: linear-gradient(90deg, #f0b500, #ffc928); }
.support-box {
  padding: 15px;
  color: white;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,.15), transparent 28%),
    linear-gradient(135deg, #092c5d, #031a3c);
}
.support-box strong { display: block; font-size: 18px; }
.support-box p { margin: 5px 0 12px; font-size: 12px; }

.main-content { min-width: 0; }
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #3168aa;
  font-size: 12px;
  margin: 4px 0 10px;
}
.breadcrumbs span { color: #66758c; }

.hero-grid {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.hero-art {
  min-height: 180px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), var(--shadow);
}
.hero-art::before,
.course-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 24%, rgba(255,255,255,.16) 25%, transparent 26%) 0 0/44px 44px,
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.26), transparent 28%),
    linear-gradient(135deg, var(--accent, #0b4e98), #021834);
}
.hero-symbol {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 4px solid rgba(255,255,255,.92);
  border-radius: 50%;
  background: rgba(2,24,52,.46);
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 0 0 10px rgba(255,255,255,.08);
}
.hero-copy { position: relative; min-width: 0; }
.back-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.back-button:hover { background: #0b3d7a; }
.page-title {
  max-width: calc(100% - 150px);
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.6px;
}
.lead { margin: 0 0 14px; color: #29364b; font-size: 14px; max-width: 950px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #d0ddea;
  border-radius: 7px;
  background: linear-gradient(#f9fcff, #eef5fb);
  overflow: hidden;
}
.stat {
  min-height: 55px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}
.stat + .stat { border-left: 1px solid #ccd8e6; }
.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy-2);
  border-radius: 50%;
  color: var(--navy-2);
  font-weight: 900;
}
.stat strong { display: block; font-size: 14px; line-height: 1.2; }
.stat small { font-size: 11px; color: #33425a; }

.content-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr);
  gap: 20px;
  margin-top: 18px;
}
.content-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(8, 47, 100, .05);
}
.card-heading {
  margin: 0;
  padding: 8px 13px;
  color: white;
  background: linear-gradient(90deg, var(--navy-2), var(--navy));
  font-size: 14px;
  text-transform: uppercase;
}
.lesson-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-bottom: 1px solid #dce4ed;
}
.lesson-art {
  height: 60px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent),
    linear-gradient(135deg, var(--accent), #041e42);
}
.lesson-art::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 2px;
  background: white;
  opacity: .85;
  box-shadow: 0 -13px 0 rgba(255,255,255,.28), 0 13px 0 rgba(255,255,255,.28);
  transform: skewY(-8deg);
}
.lesson-number {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: white;
  font-weight: 900;
}
.lesson-copy h3 { margin: 0 0 4px; font-size: 14px; }
.lesson-copy p { margin: 0; color: #26374f; font-size: 12px; }
.lesson-actions { display: flex; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: .16s ease;
  white-space: nowrap;
}
.btn-primary { color: white; background: linear-gradient(#0a4e9d, #07346d); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-gold { color: #07152f; background: linear-gradient(#ffc928, #efb000); border-color: #d69e00; }
.btn-gold:hover { filter: brightness(1.05); }
.btn-outline { color: var(--navy-2); background: white; border-color: #164c91; }
.btn-outline:hover { background: #edf5ff; }
.btn-wide { width: 100%; min-height: 42px; font-size: 13px; }
.course-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  padding: 10px 12px;
}

.overview-visual {
  min-height: 152px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f9fcff, #e7f2ff);
}
.overview-visual::before {
  content: "";
  width: 210px;
  height: 94px;
  border: 3px solid var(--accent);
  border-radius: 100px 100px 16px 16px;
  opacity: .2;
}
.overview-visual::after {
  content: "Clinical reasoning pathway";
  position: absolute;
  padding: 11px 18px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  background: white;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 42px 0 0 -18px white, 44px 0 0 -16px var(--accent), -42px 0 0 -18px white, -44px 0 0 -16px var(--accent);
}
.check-list { margin: 0; padding: 10px 16px 12px; list-style: none; }
.check-list li {
  position: relative;
  padding: 3px 0 3px 20px;
  font-size: 12px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 900;
}
.resource-list { margin: 0; padding: 4px 12px 8px; list-style: none; }
.resource-list li {
  min-height: 36px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}
.resource-list li:last-child { border-bottom: 0; }
.resource-icon { color: #d52b2b; font-weight: 900; }

.feature-strip {
  max-width: 1540px;
  margin: 16px auto 0;
  padding: 0 26px;
}
.features-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(#fdfefe, #edf5fb);
  border: 1px solid #cad9e8;
  border-radius: 9px;
  overflow: hidden;
}
.feature {
  min-height: 96px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
}
.feature + .feature { border-left: 1px solid #d4dfea; }
.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 18px;
  color: var(--navy-2);
  background: white;
  font-size: 23px;
  font-weight: 900;
}
.feature strong { display: block; margin-bottom: 4px; font-size: 13px; color: #0a3470; }
.feature span { display: block; font-size: 11px; color: #26364e; }

.site-footer {
  margin-top: 12px;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: white;
  background: linear-gradient(90deg, #031a3c, #062956, #031a3c);
  font-size: 11px;
}

/* Course catalogue */
.catalogue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 4px 0 16px;
}
.catalogue-header h1 { margin: 0 0 5px; font-size: clamp(28px, 3.4vw, 42px); }
.catalogue-header p { margin: 0; color: var(--muted); }
.catalogue-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-input, .filter-select {
  min-height: 40px;
  border: 1px solid #b8c8db;
  border-radius: 7px;
  background: white;
  padding: 8px 12px;
  color: var(--ink);
}
.search-input { min-width: 230px; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.course-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #d4deea;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(5, 38, 82, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card-art {
  height: 116px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  color: white;
  overflow: hidden;
}
.course-card-art > * { position: relative; z-index: 1; }
.course-number {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  font-size: 11px;
  font-weight: 800;
}
.course-symbol {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(0,0,0,.20);
  font-size: 27px;
  font-weight: 900;
}
.course-card-body { padding: 14px 15px 13px; }
.course-card h2 { margin: 0 0 6px; font-size: 18px; }
.course-card p { min-height: 56px; margin: 0 0 10px; color: #42516a; font-size: 12px; }
.course-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 11px;
}
.course-meta span {
  padding: 6px;
  border-radius: 6px;
  background: #f0f5fb;
  color: #23364f;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
}
.course-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 1fr; padding-top: 12px; }
  .brand { justify-content: center; }
  .top-nav { grid-template-columns: repeat(7, 1fr); }
  .page-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .content-columns { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: repeat(3, 1fr); }
  .feature:nth-child(4) { border-left: 0; border-top: 1px solid #d4dfea; }
  .feature:nth-child(5) { border-top: 1px solid #d4dfea; }
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .utility-bar { padding-inline: 16px; }
  .utility-links { display: none; }
  .header-inner { padding-inline: 16px; }
  .brand-name { font-size: 38px; }
  .top-nav { grid-template-columns: repeat(4, 1fr); }
  .top-nav a { min-height: 72px; }
  .page-shell { display: block; padding-inline: 14px; }
  .sidebar { margin-bottom: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 155px; }
  .back-button { position: static; margin-bottom: 12px; }
  .page-title { max-width: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid #ccd8e6; }
  .stat:nth-child(4) { border-top: 1px solid #ccd8e6; }
  .lesson-row { grid-template-columns: 92px minmax(0, 1fr); }
  .lesson-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3), .feature:nth-child(5) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid #d4dfea; }
  .catalogue-header { align-items: stretch; flex-direction: column; }
  .catalogue-tools { display: grid; grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .utility-bar { font-size: 12px; }
  .brand { justify-content: flex-start; }
  .brand img { width: 62px; height: 62px; }
  .brand-name { font-size: 30px; }
  .brand-subtitle { font-size: 14px; }
  .top-nav { grid-template-columns: repeat(2, 1fr); }
  .top-nav a { min-height: 62px; flex-direction: row; }
  .nav-icon { width: 30px; height: 30px; font-size: 15px; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid #ccd8e6; }
  .lesson-row { grid-template-columns: 1fr; }
  .lesson-art { height: 74px; }
  .lesson-actions { justify-content: stretch; }
  .lesson-actions .btn { flex: 1; }
  .course-actions { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid #d4dfea; }
  .feature-strip { padding-inline: 14px; }
  .site-footer { flex-direction: column; padding-inline: 18px; }
  .catalogue-tools { grid-template-columns: 1fr; }
  .search-input { min-width: 0; width: 100%; }
}
