/* Learn refinements after first MVP */
.brand-logo {
  display: inline-flex;
  align-items: center;
}

.product-name {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 800;
}

.product-name:hover {
  color: var(--brand);
}

.main-nav a.is-active {
  border-color: var(--line);
  background: var(--soft);
  color: var(--brand);
}

.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  z-index: 60;
}

.language-picker::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.language-picker .language-select {
  display: block;
  min-width: 174px;
  max-width: 240px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .06)),
    #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  color: #172033;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  padding: 0 36px 0 13px;
  appearance: none;
  -webkit-appearance: none;
  text-align: left;
}

.language-picker button.language-select {
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.language-picker .language-select span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  width: min(260px, calc(100vw - 22px));
  max-height: min(430px, calc(100vh - 96px));
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(15, 23, 42, .18);
  padding: 6px;
}

.language-menu[hidden] {
  display: none;
}

.language-menu a {
  display: block;
  border-radius: 8px;
  padding: 9px 10px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.language-menu a:hover,
.language-menu a.is-active {
  background: var(--soft);
  color: var(--brand);
}

.language-picker .language-select:hover,
.language-picker .language-select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .14);
  outline: none;
}



.mobile-nav {
  width: min(100% - 22px, 1180px);
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .10);
  padding: 8px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #263449;
  font-size: 15px;
  font-weight: 900;
}

.mobile-nav a + a {
  margin-top: 4px;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  background: var(--soft);
  color: var(--brand);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, .08);
  color: #1e293b;
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
}

.theme-toggle:hover {
  background: rgba(37, 99, 235, .14);
  color: var(--brand);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle-icon,
.theme-toggle-icon svg {
  display: block;
  width: 19px;
  height: 19px;
}

.theme-toggle-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.learn-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(37, 99, 235, .08);
  padding: 0;
  cursor: pointer;
}

.learn-burger:hover {
  background: rgba(37, 99, 235, .14);
}

.learn-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #1e293b;
}

.page-hero {
  background: linear-gradient(120deg, rgba(23, 105, 224, .12), rgba(20, 165, 121, .08)), #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  padding: 64px 0 46px;
}

.page-hero .hero-lead,
h1 {
  max-width: 820px;
}



.learn-search {
  display: grid;
  gap: 8px;
  min-width: min(100%, 520px);
}

.learn-search-wide {
  max-width: 720px;
  margin: -8px 0 24px;
}

.learn-search-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.learn-search-controls {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
}

.learn-search-controls .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.learn-search-input {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 12px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
}

.learn-search-input:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .14);
  outline: none;
}

.learn-search-input::placeholder {
  color: #7b8798;
  font-weight: 700;
}

.course-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: -8px 0 22px;
}

.currency-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.currency-switch-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.currency-switch-select {
  min-width: 108px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 12px;
  background: #fff;
  color: #172033;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 0 12px;
}

.currency-switch-select:hover,
.currency-switch-select:focus {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 12px 28px rgba(37, 99, 235, .14);
  outline: none;
}


.course-price-line {
  margin: 12px 0 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.course-price-line strong {
  font-weight: 900;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .06)),
    #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  padding: 34px;
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.empty-state p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

.skill-catalog {
  display: grid;
  gap: 10px;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.skill-row h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.skill-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.source-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--soft);
  color: #253247;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.source-list a:hover {
  border-color: rgba(23, 105, 224, .36);
  background: #fff;
  color: var(--brand);
}

.skill-course-group .skills-title {
  margin-top: 0;
}

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

.workflow-section {
  background: linear-gradient(180deg, rgba(244, 247, 251, .7), rgba(255, 255, 255, 0));
}

.workflow-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(6, minmax(72px, auto));
  gap: 16px;
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(23, 105, 224, .12), transparent 28%),
    radial-gradient(circle at 72% 20%, rgba(20, 165, 121, .10), transparent 20%),
    #fff;
  overflow: hidden;
}

.workflow-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.workflow-arrows path {
  fill: none;
  stroke: rgba(23, 105, 224, .34);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 9;
  marker-end: url(#workflowArrow);
  vector-effect: non-scaling-stroke;
}

.workflow-arrows marker path {
  fill: rgba(23, 105, 224, .56);
}

.workflow-center {
  position: relative;
  z-index: 2;
  grid-column: 5 / span 4;
  grid-row: 2 / span 3;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  gap: 10px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(23, 105, 224, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(21, 36, 58, .14);
  text-align: center;
}

.workflow-center img {
  width: 34px;
  height: 34px;
}

.workflow-center strong {
  color: var(--brand);
  font-size: 15px;
  font-weight: 900;
  /* white-space: pre-line; */
}

.workflow-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  align-items: start;
  padding: 16px 18px;
  box-shadow: 0 16px 36px rgba(21, 36, 58, .10);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.workflow-card .step-number {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
}

.workflow-card strong {
  grid-column: 2;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
}

.workflow-card p {
  grid-column: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 105, 224, .28);
  box-shadow: 0 22px 48px rgba(21, 36, 58, .15);
}

.workflow-card p a {
  color: var(--brand);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(23, 105, 224, .72);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.workflow-card p a:hover {
  color: #0f5bd0;
  text-decoration-color: currentColor;
}

.workflow-card-1 {
  grid-column: 1 / span 4;
  grid-row: 2 / span 1;
}

.workflow-card-2 {
  grid-column: 9 / span 4;
  grid-row: 2 / span 1;
}

.workflow-card-3 {
  grid-column: 8 / span 4;
  grid-row: 4 / span 1;
}

.workflow-card-4 {
  grid-column: 2 / span 4;
  grid-row: 4 / span 1;
}

.ncplayer-feature {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 30px;
}

.ncplayer-media a,
.ncplayer-media img {
  display: block;
}

.ncplayer-media {
  overflow: hidden;
  border-radius: 8px;
  background: #eef3f8;
  align-self: start;
}

.ncplayer-media img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
}

.ncplayer-actions {
  align-items: center;
  flex-wrap: wrap;
  overflow: hidden;
  max-width: 100%;
}

.ncplayer-actions-desktop {
  display: flex;
  padding: 18px;
  margin: 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.ncplayer-actions .button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ncplayer-actions-mobile {
  display: none;
}

.ncplayer-feature h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

.ncplayer-title-link {
  color: inherit;
  text-decoration: none;
}

.ncplayer-title-link:hover {
  cursor: pointer;
  text-decoration: none;
}

.ncplayer-feature p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: #243244;
  font-weight: 700;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14a579;
  box-shadow: 0 0 0 5px rgba(20, 165, 121, .12);
}

.ncplayer-online {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(37, 99, 235, .06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.ncplayer-online > span:last-child {
  min-width: 0;
}

.ncplayer-online-refresh {
  display: inline;
}

.ncplayer-online.is-visible {
  display: inline-flex;
}

.ncplayer-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
  flex: 0 0 auto;
}

.ncplayer-online-refresh {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: default;
  text-decoration: none;
}

.ncplayer-online-refresh:disabled {
  cursor: wait;
  opacity: .7;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .skill-row {
    grid-template-columns: 1fr;
  }

  .course-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-map {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .workflow-arrows,
  .workflow-center {
    display: none;
  }

  .workflow-card-1,
  .workflow-card-2,
  .workflow-card-3,
  .workflow-card-4 {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .product-name {
    display: inline-flex;
    font-size: 13px;
    min-height: 32px;
  }

  .source-list,
  .practice-grid,
  .ncplayer-feature {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .learn-burger {
    display: inline-flex;
  }

  .ncplayer-feature {
    padding: 22px;
  }

  .ncplayer-actions-desktop {
    display: none;
  }

  .ncplayer-actions-mobile {
    display: flex;
  }

  .ncplayer-feature h2 {
    font-size: 28px;
  }
}

html[data-theme="dark"] {
  --ink: #e5edf7;
  --muted: #9fb0c4;
  --line: #263548;
  --soft: #142033;
  --panel: #0f1724;
  --brand: #62a1ff;
  --brand-dark: #3b82f6;
  --shadow: 0 16px 45px rgba(0, 0, 0, .28);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #0b111d;
  color: var(--ink);
}

html[data-theme="dark"] .site-header {
  background: rgba(15, 23, 36, .94);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background: linear-gradient(120deg, rgba(59, 130, 246, .16), rgba(20, 165, 121, .10)), #0f1724;
}

html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .course-card,
html[data-theme="dark"] .signal-panel,
html[data-theme="dark"] .flow-card,
html[data-theme="dark"] .tools-panel,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .skill-row,
html[data-theme="dark"] .stat-item,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .auth-link,
html[data-theme="dark"] .product-name {
  color: var(--ink);
}

html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .course-card p,
html[data-theme="dark"] .section-head p,
html[data-theme="dark"] .tools-panel p,
html[data-theme="dark"] .profile-panel p,
html[data-theme="dark"] .skill-row p {
  color: var(--muted);
}

html[data-theme="dark"] .skill-pill,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tool-link,
html[data-theme="dark"] .source-list a {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .auth-primary {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

html[data-theme="dark"] .ncplayer-feature {
  background: var(--panel);
  border-color: var(--line);
}


html[data-theme="dark"] .language-picker .language-select {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .language-picker::after {
  border-color: #94a3b8;
}

html[data-theme="dark"] .language-menu {
  background: #111827;
  border-color: rgba(148, 163, 184, .28);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .language-menu a {
  color: #e5edf6;
}

html[data-theme="dark"] .language-menu a:hover,
html[data-theme="dark"] .language-menu a.is-active {
  background: #1f2937;
  color: #8bb8ff;
}

html[data-theme="dark"] .learn-search-input {
  background: #111827;
  color: #e5eefc;
  border-color: rgba(148, 163, 184, .28);
  box-shadow: none;
}

html[data-theme="dark"] .learn-search-input::placeholder {
  color: #94a3b8;
}


html[data-theme="dark"] .workflow-map {
  background:
    radial-gradient(circle at 50% 48%, rgba(98, 161, 255, .14), transparent 28%),
    radial-gradient(circle at 72% 20%, rgba(20, 165, 121, .10), transparent 20%),
    var(--panel);
}

html[data-theme="dark"] .workflow-center {
  background: rgba(15, 23, 36, .88);
  border-color: var(--line);
}

html[data-theme="dark"] .workflow-center img {
  filter: invert(1) hue-rotate(180deg) saturate(1.15);
}

html[data-theme="dark"] .ncplayer-media {
  background: var(--soft);
}

html[data-theme="dark"] .ncplayer-actions-desktop {
  background: var(--panel);
  border-top-color: var(--line);
}

html[data-theme="dark"] .ncplayer-online {
  background: rgba(98, 161, 255, .12);
}

html[data-theme="dark"] .feature-list li {
  color: var(--ink);
}

.hero h1 {
  font-size: clamp(38px, 5vw, 46px);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(98, 161, 255, .14);
  color: #dbeafe;
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(98, 161, 255, .22);
  color: #fff;
}

html[data-theme="dark"] .brand-logo img {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .learn-burger {
  background: rgba(98, 161, 255, .14);
}

html[data-theme="dark"] .learn-burger span {
  background: #dbeafe;
}

html[data-theme="dark"] .mobile-nav {
  background: var(--panel);
  border-color: var(--line);
}

html[data-theme="dark"] .mobile-nav a {
  color: var(--ink);
}

html[data-theme="dark"] .mobile-nav a:hover,
html[data-theme="dark"] .mobile-nav a.is-active {
  background: #1f2937;
  color: #8bb8ff;
}

.step-number.brand-mark {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.step-number.brand-mark img {
  display: block;
  width: 22px;
  height: 22px;
}

html[data-theme="dark"] .step-number.brand-mark {
  background: var(--panel);
}

html[data-theme="dark"] .step-number.brand-mark img {
  filter: invert(1) hue-rotate(180deg) saturate(1.15);
}

@media (max-width: 640px) {
  .language-picker .language-select {
    min-width: 150px;
    max-width: calc(100vw - 22px);
  }
}

[data-theme="dark"] .currency-switch-select {
  background: #111827;
  color: #e5eefc;
  border-color: rgba(148, 163, 184, .28);
  box-shadow: none;
}

@media (max-width: 640px) {
  .course-toolbar {
    justify-content: stretch;
  }

  .course-toolbar .learn-search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .course-toolbar .learn-search-input {
    flex: none;
    width: 100%;
  }

  .course-toolbar .learn-search-all {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .currency-switch-wrap,
  .currency-switch-select {
    width: 100%;
  }
}

.button.ask-button {
  border-color: #23501d;
  background: #23501d;
  color: #fff;
}

.button.ask-button:hover {
  border-color: #183914;
  background: #183914;
}

.course-detail-hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(20, 184, 166, .07)), #fff;
}

.course-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: center;
}

.course-detail-copy .hero-lead {
  max-width: 760px;
}

.course-price-card {
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .11);
  padding: 22px;
}

.course-price-card-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-price-card-value {
  margin: 6px 0 18px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
}

.course-currency-switch {
  justify-content: space-between;
  width: 100%;
}

.course-detail-section {
  padding-top: 34px;
}

.course-detail-panels {
  align-items: start;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}

.course-format-panel h2,
.course-skills-panel h2 {
  font-size: 28px;
}

.course-format-panel p:last-child {
  max-width: 760px;
}

.course-skill-links {
  margin-top: 14px;
  margin-bottom: 0;
}

.skill-link {
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.skill-link:hover,
.skill-link:focus {
  background: #fff;
  color: var(--brand);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(23, 105, 224, .28);
}

@media(max-width: 760px) {
  .course-detail-hero-grid,
  .course-detail-panels {
    grid-template-columns: 1fr;
  }

  .course-price-card-value {
    font-size: 30px;
  }
}


.course-detail-hero .course-detail-hero-grid {
  grid-template-columns: 1fr;
  gap: 22px;
  padding-top: 52px;
  padding-bottom: 42px;
}

.course-detail-hero .course-detail-copy h1 {
  max-width: 900px;
}

.course-detail-hero .course-detail-copy .hero-lead {
  max-width: 840px;
  margin-top: 16px;
}

.course-price-card {
  width: 100%;
  border-color: rgba(23, 105, 224, .18);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .94));
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  padding: 16px 18px;
}

.course-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.course-price-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}

.course-price-card-label {
  color: #44546a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: none;
}

.course-price-card-value {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.course-currency-switch {
  width: auto;
  justify-content: flex-end;
  flex-shrink: 0;
}

.course-currency-switch .currency-switch-label {
  color: #44546a;
}

.course-currency-switch .currency-switch-select {
  min-width: 116px;
  height: 40px;
  border-radius: 10px;
}

.course-detail-panels {
  gap: 18px;
}

.course-about-panel {
  margin-bottom: 30px;
  border-color: rgba(148, 163, 184, .30);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.course-about-panel p {
  max-width: 980px;
}

.course-about-panel h2 {
  margin: 22px 0 10px;
  font-size: 24px;
}

.course-about-panel .course-about-title {
  margin-top: 0;
}

.course-about-panel .course-outcomes-title {
  margin-top: 24px;
  font-size: 20px;
}

.course-outcome-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

@media(max-width: 760px) {
  .course-outcome-list {
    grid-template-columns: 1fr;
  }
}

.course-format-panel,
.course-skills-panel {
  border-color: rgba(148, 163, 184, .30);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.course-skills-panel h2 {
  margin-bottom: 20px;
}

.course-skill-links {
  gap: 10px;
  margin-top: 0;
}

.course-skill-links .skill-link {
  border: 1px solid rgba(148, 163, 184, .32);
  background: #f8fafc;
  padding: 8px 11px;
  color: #304056;
  font-size: 13px;
}

.course-skill-links .skill-link:hover,
.course-skill-links .skill-link:focus {
  border-color: rgba(23, 105, 224, .40);
  background: #fff;
  color: var(--brand);
}

@media(max-width: 640px) {
  .course-price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .course-currency-switch {
    justify-content: space-between;
    width: 100%;
  }
}


.course-lesson-plan {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  border: 1px solid rgba(148, 163, 184, .30);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  padding: 24px;
}

.course-lesson-plan-head {
  max-width: 780px;
  margin-bottom: 20px;
}

.course-lesson-plan-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.14;
}

.course-lesson-plan-head p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.course-topic-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
  color: #27364a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.course-topic-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e8f1ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
}

@media(max-width: 760px) {
  .course-lesson-plan {
    width: min(100% - 22px, 1180px);
    padding: 18px;
  }

  .course-topic-list {
    grid-template-columns: 1fr;
  }
}


.course-topic-item {
  align-items: start;
}

.course-topic-content {
  min-width: 0;
}

.course-topic-title {
  display: block;
  color: #1f2d3d;
  font-weight: 900;
}

.course-subtopic-list {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #5b687a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.course-subtopic-list li::marker {
  color: var(--brand);
}


.course-price-row .course-start-button {
  min-height: 40px;
  white-space: nowrap;
}

.course-material-access {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .24);
}

.course-material-access p {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.course-lesson-plan-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.course-lesson-plan-actions .course-start-button {
  min-width: 180px;
}

@media(max-width: 820px) {
  .course-price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .course-currency-switch {
    justify-content: space-between;
    width: 100%;
  }

  .course-price-row .course-start-button {
    width: 100%;
  }
}
