:root {
  --navy: #052d67;
  --blue: #0b4ea2;
  --blue-bright: #1768d1;
  --red: #ed1c2e;
  --ink: #10233e;
  --muted: #5f6f83;
  --pale: #f2f6fb;
  --line: #dce5f0;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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; }

.topbar { background: var(--navy); color: #dce9fb; font-size: 12px; letter-spacing: .02em; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: white; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(5,45,103,.1); backdrop-filter: blur(12px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-image { display: block; width: 230px; height: auto; }
.header-inner nav { display: flex; gap: 30px; font-size: 14px; font-weight: 700; color: #31455f; }
.header-inner nav a:hover { color: var(--blue); }
.header-cta { padding: 13px 20px; border-radius: 5px; background: var(--red); color: white; font-size: 13px; font-weight: 800; box-shadow: 0 8px 22px rgba(237,28,46,.18); }

.hero { position: relative; overflow: hidden; background: var(--blue); color: white; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(108deg, rgba(3,34,78,.42), transparent 63%), radial-gradient(circle at 20% 10%, rgba(255,255,255,.1), transparent 28%); }
.hero-grid { position: relative; min-height: 535px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 60px; padding-block: 72px; }
.hero-copy { max-width: 680px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12px; font-weight: 900; letter-spacing: .17em; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.eyebrow.blue { color: var(--blue); }
.hero h1 { margin: 0; max-width: 690px; font-size: clamp(46px, 6.5vw, 82px); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: #a9d1ff; font-style: normal; }
.hero-copy > p { max-width: 600px; margin: 25px 0 30px; color: #dbeaff; font-size: 18px; line-height: 1.6; }
.primary-button, .final-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 22px; background: var(--red); color: white; border-radius: 5px; font-size: 14px; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.primary-button svg, .final-cta a svg, .course-link svg { width: 20px; height: 20px; transition: transform .2s ease; }
.primary-button:hover svg, .final-cta a:hover svg, .course-link:hover svg { transform: translateX(4px); }
.hero-panel { position: relative; justify-self: end; width: min(100%, 390px); min-height: 390px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: inset 0 0 70px rgba(255,255,255,.05); }
.hero-panel > *:not(.hero-orbit) { position: relative; z-index: 2; }
.hero-panel strong { font-size: 92px; line-height: .9; letter-spacing: -.07em; }
.hero-panel > span:not(.panel-kicker) { margin-top: 8px; font-size: 18px; font-weight: 700; }
.panel-kicker { margin-bottom: 14px; color: #b9d7fb; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.panel-stats { width: 80%; display: grid; grid-template-columns: repeat(3,1fr); margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.22); }
.panel-stats div { display: flex; flex-direction: column; gap: 4px; }
.panel-stats b { font-size: 17px; }
.panel-stats small { color: #bfd9f6; font-size: 10px; text-transform: uppercase; }
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.hero-orbit-one { inset: -24px; }
.hero-orbit-two { inset: 34px; }

.benefits { position: relative; z-index: 2; margin-top: -1px; background: var(--navy); color: white; }
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.benefits article { display: flex; gap: 16px; padding: 28px 30px; border-right: 1px solid rgba(255,255,255,.14); }
.benefits article:last-child { border-right: 0; }
.benefits article > span { color: #6fa8e9; font-size: 12px; font-weight: 900; }
.benefits h2 { margin: 0 0 6px; font-size: 17px; }
.benefits p { margin: 0; color: #afc5df; font-size: 13px; line-height: 1.45; }

.catalog-section { padding: 88px 0 100px; background: var(--pale); scroll-margin-top: 110px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 0; max-width: 700px; font-size: clamp(35px, 5vw, 55px); line-height: 1.03; letter-spacing: -.045em; }
.section-heading > p { margin: 0 0 5px; color: var(--muted); line-height: 1.65; }
.search-wrap { height: 66px; display: flex; align-items: center; gap: 15px; padding: 0 22px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 35px rgba(22,58,102,.07); }
.search-wrap:focus-within { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(23,104,209,.12); }
.search-wrap svg { width: 22px; color: var(--blue); }
.search-symbol { color: var(--blue); font-size: 28px; line-height: 1; transform: rotate(-20deg); }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 16px; background: transparent; }
.search-wrap input::placeholder { color: #8a98aa; }
.category-bar { display: flex; gap: 9px; margin: 22px 0 18px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
.category-bar button { flex: 0 0 auto; border: 1px solid #ced9e7; border-radius: 5px; padding: 10px 13px; background: white; color: #475b74; font-size: 11px; font-weight: 800; letter-spacing: .025em; }
.category-bar button span { margin-left: 6px; color: #8493a6; }
.category-bar button:hover, .category-bar button.active { background: var(--blue); border-color: var(--blue); color: white; }
.category-bar button.active span { color: #c7def7; }
.results-line { min-height: 36px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.results-line p { margin: 0; }
.results-line strong { color: var(--ink); }
.results-line button { border: 0; background: transparent; color: var(--blue); font-weight: 800; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.course-card { min-height: 410px; display: flex; flex-direction: column; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(25,60,105,.045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-card:hover { transform: translateY(-4px); border-color: #b7cbe3; box-shadow: 0 16px 34px rgba(25,60,105,.1); }
.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.card-topline span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .08em; line-height: 1.35; }
.card-topline b { flex-shrink: 0; padding: 5px 8px; color: #345a82; background: #edf4fc; border-radius: 4px; font-size: 10px; }
.course-card h3 { margin: 0 0 13px; color: #0a326c; font-size: 22px; line-height: 1.15; letter-spacing: -.025em; }
.course-intro { display: -webkit-box; margin: 0 0 18px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.55; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.topics { margin-top: auto; padding-top: 16px; border-top: 1px solid #e7edf5; }
.topics small { display: block; margin-bottom: 8px; color: #61758d; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.topics ul { margin: 0; padding: 0; list-style: none; }
.topics li { position: relative; margin: 5px 0; padding-left: 14px; color: #3d5068; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topics li::before { content: ""; position: absolute; left: 0; top: .48em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.course-link { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e7edf5; color: var(--blue); font-size: 13px; font-weight: 900; }
.empty-state { padding: 55px 25px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 8px; }
.empty-state strong { font-size: 24px; color: var(--navy); }
.empty-state p { color: var(--muted); }
.empty-state button { padding: 11px 16px; border: 0; border-radius: 4px; background: var(--blue); color: white; font-weight: 800; }
.load-more { display: flex; justify-content: center; margin-top: 35px; }
.load-more button { padding: 15px 22px; border: 1px solid var(--blue); border-radius: 5px; background: transparent; color: var(--blue); font-weight: 900; }
.load-more button:hover { background: var(--blue); color: white; }
.load-more span { margin-left: 7px; font-size: 11px; opacity: .72; }

.final-cta { padding: 62px 0; background: var(--blue); color: white; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta .eyebrow { margin-bottom: 12px; }
.final-cta h2 { max-width: 750px; margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.final-cta a { flex-shrink: 0; }
footer { padding: 38px 0; background: #031f49; color: #9db5d1; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.brand-footer { padding: 6px 10px; background: white; border-radius: 5px; }
.brand-footer .logo-image { width: 205px; }
.footer-inner p { margin: 0; font-size: 12px; text-align: center; }
.footer-inner > a:last-child { color: white; font-size: 12px; font-weight: 800; }

@media (max-width: 930px) {
  .header-inner nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-panel { justify-self: center; }
  .course-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .container { width: min(100% - 26px, 1180px); }
  .topbar-inner { justify-content: center; text-align: center; padding: 8px 0; }
  .topbar a { display: none; }
  .site-header { position: relative; }
  .header-inner { min-height: 70px; }
  .header-cta { display: none; }
  .logo-image { width: 190px; }
  .hero-grid { padding: 55px 0 65px; gap: 45px; }
  .hero h1 { font-size: 48px; }
  .hero-copy > p { font-size: 16px; }
  .hero-panel { width: 300px; min-height: 300px; }
  .hero-panel strong { font-size: 72px; }
  .panel-stats { margin-top: 24px; padding-top: 17px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding-inline: 12px; }
  .catalog-section { padding: 64px 0 75px; scroll-margin-top: 20px; }
  .search-wrap { height: 60px; padding-inline: 16px; }
  .search-wrap input { font-size: 14px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 0; }
  .final-cta { padding: 48px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
