@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --green: #00ad82;
  --green-dark: #008f6b;
  --green-pale: #e6f6f0;
  --green-wash: #f4fbf8;
  --navy: #0d1a2e;
  --slate: #3d4f6e;
  --muted: #6b7a99;
  --border: #dfe8e5;
  --surface: #ffffff;
  --soft: #f7fafc;
  --gold: #f6a01a;
  --shadow: 0 20px 60px rgba(13, 26, 46, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--surface);
  color: var(--navy);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.course-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.course-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(13, 26, 46, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.course-nav__inner {
  display: flex;
  align-items: center;
  min-height: 86px;
  gap: 26px;
}

.course-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.course-brand img {
  width: 88px;
  height: 58px;
  object-fit: contain;
}

.course-brand span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-nav__links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 700;
}

.course-nav__links a:hover,
.course-nav__links a:focus-visible {
  background: var(--green-pale);
  color: var(--green-dark);
}

.course-nav__cta,
.enroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-nav__cta:hover,
.course-nav__cta:focus-visible,
.enroll-button:hover,
.enroll-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 173, 130, 0.24);
}

.course-hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 64px;
  background:
    radial-gradient(circle at 84% 16%, rgba(0, 173, 130, 0.18), transparent 32%),
    linear-gradient(135deg, #f8fcfb 0%, #eef9f5 100%);
  border-bottom: 1px solid rgba(0, 143, 107, 0.12);
}

.course-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: 54px;
}

.course-eyebrow {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-hero h1 {
  max-width: 820px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.course-hero__lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--slate);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.course-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.course-fact {
  padding: 8px 13px;
  border: 1px solid rgba(0, 143, 107, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.enrollment-card {
  padding: 26px;
  border: 1px solid rgba(0, 143, 107, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.enrollment-card__label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enrollment-card h2 {
  margin-top: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0 15px;
}

.price-box {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--soft);
}

.price-box span {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.35;
}

.price-box strong {
  display: block;
  margin-top: 5px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.enrollment-note {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.enroll-button {
  width: 100%;
  min-height: 52px;
}

.course-switcher {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.course-switcher__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.course-switcher__label {
  margin-right: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.course-switcher a {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.84rem;
  font-weight: 750;
}

.course-switcher a[aria-current="page"] {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green-dark);
}

.learning-modules {
  padding: 72px 0 88px;
  background: #fff;
}

.modules-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.modules-heading h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.modules-heading p {
  max-width: 540px;
  color: var(--slate);
  font-size: 0.94rem;
}

.module-list {
  display: grid;
  gap: 14px;
}

.module-card {
  overflow: hidden;
  border: 1px solid rgba(0, 143, 107, 0.13);
  border-radius: 19px;
  background: var(--green-pale);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.module-card[open] {
  border-color: rgba(0, 143, 107, 0.28);
  background: #ddf2ea;
  box-shadow: 0 12px 34px rgba(0, 98, 77, 0.08);
}

.module-card summary,
.module-static {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px 24px;
  list-style: none;
}

.module-card summary {
  cursor: pointer;
}

.module-card summary::-webkit-details-marker {
  display: none;
}

.module-card summary::marker {
  content: "";
}

.module-card summary:focus-visible {
  outline: 3px solid rgba(0, 173, 130, 0.3);
  outline-offset: -3px;
}

.module-number {
  color: rgba(13, 26, 46, 0.57);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.module-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.module-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(13, 26, 46, 0.16);
  border-radius: 50%;
  background: #fff;
  font-size: 0;
  box-shadow: 0 8px 20px rgba(13, 26, 46, 0.07);
}

.module-toggle::before {
  content: "+";
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
}

.module-card[open] .module-toggle {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.module-card[open] .module-toggle::before {
  content: "×";
  color: #fff;
  font-size: 1.7rem;
}

.module-panel {
  margin: 0 24px 26px 122px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 98, 77, 0.14);
}

.module-panel h3 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.core-topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 26px;
  list-style: none;
}

.core-topics li {
  position: relative;
  padding-left: 18px;
  color: var(--slate);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.55;
}

.core-topics li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.module-static {
  grid-template-columns: 80px minmax(0, 1fr);
}

.enrollment-banner {
  padding: 0 0 92px;
  background: #fff;
}

.enrollment-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 34px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
}

.enrollment-banner h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.enrollment-banner p {
  max-width: 700px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.enrollment-banner .enroll-button {
  min-width: 230px;
}

.course-footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: var(--soft);
}

.course-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.76rem;
}

.course-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-weight: 700;
}

.course-footer__links a:hover {
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .course-nav__links {
    display: none;
  }

  .course-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .enrollment-card {
    max-width: 600px;
  }

  .modules-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .core-topics {
    grid-template-columns: 1fr;
  }

  .enrollment-banner__inner {
    grid-template-columns: 1fr;
  }

  .enrollment-banner .enroll-button {
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .course-shell {
    width: min(100% - 28px, 1240px);
  }

  .course-nav__inner {
    min-height: 72px;
    gap: 12px;
  }

  .course-brand img {
    width: 70px;
    height: 48px;
  }

  .course-brand span {
    display: none;
  }

  .course-nav__cta {
    padding-inline: 14px;
    font-size: 0.82rem;
  }

  .course-hero {
    padding: 52px 0 46px;
  }

  .course-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }

  .price-grid {
    grid-template-columns: 1fr;
  }

  .learning-modules {
    padding: 54px 0 66px;
  }

  .module-card summary,
  .module-static {
    grid-template-columns: 46px minmax(0, 1fr) 38px;
    gap: 11px;
    min-height: 82px;
    padding: 14px;
  }

  .module-static {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .module-number {
    font-size: 1.6rem;
  }

  .module-title {
    font-size: 0.93rem;
  }

  .module-toggle {
    width: 38px;
    height: 38px;
  }

  .module-panel {
    margin: 0 14px 20px;
    padding-top: 16px;
  }

  .enrollment-banner {
    padding-bottom: 66px;
  }

  .enrollment-banner__inner {
    padding: 24px;
  }

  .enrollment-banner .enroll-button {
    width: 100%;
  }

  .course-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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