.course-map-head {
  color: #fff;
}

.course-map-head h2 {
  color: #fff;
}

.course-map-head > p {
  color: rgba(229, 243, 250, 0.72);
}

.course-map-head .eyebrow {
  color: rgba(229, 243, 250, 0.78);
}

.course-map {
  position: relative;
  display: block;
  margin: 0 0 clamp(28px, 4vw, 46px);
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid rgba(39, 215, 232, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(5, 15, 27, 0.98), rgba(9, 31, 52, 0.95)),
    radial-gradient(ellipse at 14% 0%, rgba(39, 215, 232, 0.2), transparent 44%),
    radial-gradient(ellipse at 86% 18%, rgba(246, 199, 94, 0.18), transparent 38%);
  box-shadow: 0 28px 90px rgba(3, 13, 26, 0.24);
  overflow: hidden;
}

.course-map.reveal,
.course-map.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.course-map::before,
.course-map::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.course-map::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.86), transparent 92%);
}

.course-map::after {
  right: -120px;
  top: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(39, 215, 232, 0.22);
  border-radius: 42% 58% 50% 50%;
  background: radial-gradient(circle, rgba(39, 215, 232, 0.08), transparent 64%);
  animation: slowSpin 18s linear infinite;
}

.course-map__legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(229, 243, 250, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.course-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-map__legend i,
.course-map__cell i {
  display: inline-block;
  border-radius: 999px;
}

.course-map__legend i {
  width: 10px;
  height: 10px;
}

.course-map__legend .is-core {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(246, 199, 94, 0.66);
}

.course-map__legend .is-support {
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(39, 215, 232, 0.58);
}

.course-map__table {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 1120px;
}

.course-map__head,
.course-map__row {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(5, minmax(120px, 0.72fr)) minmax(210px, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.course-map__head {
  color: rgba(229, 243, 250, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-map__head > * {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
}

.course-map__head b {
  gap: 7px;
}

.course-map__head svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.course-map__row {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  color: inherit;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    linear-gradient(90deg, rgba(39, 215, 232, 0.07), transparent 60%);
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.course-map__row:hover,
.course-map__row.is-active {
  transform: translateY(-3px);
  border-color: rgba(246, 199, 94, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    linear-gradient(90deg, rgba(246, 199, 94, 0.12), rgba(39, 215, 232, 0.1));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22), 0 0 34px rgba(39, 215, 232, 0.12);
}

.course-map__name,
.course-map__fit,
.course-map__cell {
  border-radius: 12px;
}

.course-map__name {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.course-map__name small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, var(--gold), #ffe7a7);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.course-map__name strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

.course-map__name em {
  color: rgba(229, 243, 250, 0.7);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.course-map__cell {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 10px 8px;
  color: rgba(238, 249, 252, 0.84);
  background: rgba(255, 255, 255, 0.046);
  overflow: hidden;
}

.course-map__cell::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(39, 215, 232, 0.46), transparent);
}

.course-map__cell i {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.68);
  background: rgba(5, 15, 27, 0.96);
}

.course-map__cell.is-core i {
  width: 22px;
  height: 22px;
  border-color: rgba(255, 238, 192, 0.96);
  background: var(--gold);
  box-shadow: 0 0 22px rgba(246, 199, 94, 0.72);
}

.course-map__cell.is-support i {
  border-color: rgba(193, 250, 255, 0.9);
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(39, 215, 232, 0.58);
}

.course-map__cell b {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

.course-map__fit {
  display: flex;
  align-items: center;
  padding: 12px;
  color: rgba(229, 243, 250, 0.76);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.course-map__row.is-active .course-map__name strong,
.course-map__row:hover .course-map__name strong {
  color: var(--gold);
}

@media (max-width: 1180px) {
  .course-map {
    overflow-x: auto;
    padding-bottom: 22px;
  }

  .course-map__table {
    min-width: 1080px;
  }
}

@media (max-width: 720px) {
  .course-map {
    margin-inline: calc(var(--container-pad) * -1);
    border-radius: 0;
  }

  .course-map__legend,
  .course-map__table {
    margin-left: var(--container-pad);
    margin-right: var(--container-pad);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.package-option {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 132px;
  padding: 16px;
  color: #334155;
  background: #fff;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.package-option:hover,
.package-option.is-active {
  transform: translateY(-4px) scale(1.015);
  color: #111827;
  border-color: rgba(242, 184, 75, 0.48);
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.25), rgba(40, 198, 211, 0.08));
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

.package-option span {
  color: var(--gold-2);
  font-size: 12px;
}

.package-option strong {
  line-height: 1.35;
}

.package-option small {
  color: var(--muted);
  line-height: 1.45;
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: 24px;
  align-items: stretch;
  min-height: 460px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    linear-gradient(90deg, rgba(242, 184, 75, 0.12), rgba(40, 198, 211, 0.1));
  box-shadow: var(--shadow);
  opacity: 1;
  transform: none;
}

.course-detail,
.package-option,
.support-card {
  position: relative;
  overflow: hidden;
}

.package-support {
  background: var(--soft);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.support-card svg {
  width: 32px;
  height: 32px;
  color: var(--gold-2);
}

.support-card h3 {
  margin: 18px 0 10px;
}

.support-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-main h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.16;
}

.course-main p {
  color: var(--muted);
  line-height: 1.9;
}

.course-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.course-meta div,
.course-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.course-meta div {
  padding: 16px;
}

.course-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-meta strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.course-chip-row {
  margin-top: 18px;
}

.course-chip-list,
.course-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-chip-list li {
  padding: 9px 12px;
  border: 1px solid rgba(242, 184, 75, 0.34);
  border-radius: 999px;
  color: #162235;
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.18), rgba(40, 198, 211, 0.08));
  font-size: 14px;
  font-weight: 900;
}

.course-expansion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.course-expansion-grid article,
.course-guarantee {
  border: 1px solid rgba(42, 111, 151, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.course-expansion-grid article {
  padding: 18px;
}

.course-expansion-grid h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.course-check-list {
  display: grid;
  gap: 10px;
}

.course-check-list li {
  position: relative;
  padding-left: 20px;
  color: #334155;
  line-height: 1.65;
}

.course-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.course-guarantee {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 18px;
}

.course-guarantee strong {
  color: var(--gold-2);
}

.course-guarantee span {
  color: #334155;
  line-height: 1.75;
  font-weight: 700;
}

.course-side {
  padding: 22px;
}

.course-side h3 {
  margin: 0 0 14px;
}

.outcome-list,
.timeline-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.outcome-list li,
.timeline-list li {
  display: flex;
  gap: 9px;
  color: #334155;
  line-height: 1.65;
}

.outcome-list svg,
.timeline-list svg {
  color: var(--green);
  flex: 0 0 auto;
  margin-top: 3px;
}

@media (max-width: 980px) {
  .course-detail,
  .course-meta,
  .support-grid,
  .course-expansion-grid {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.course-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.course-module-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.course-module-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.course-module-grid p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.course-module-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

.course-note {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .course-module-grid {
    grid-template-columns: 1fr;
  }
}

.section-dark .course-card {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.section-dark .course-card .course-card__img {
  margin: -28px -28px 16px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  max-height: 160px;
}

.section-dark .course-card .course-card__img img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 420ms ease;
}

.section-dark .course-card:hover .course-card__img img {
  transform: scale(1.06);
}

.section-dark .course-card h3,
.section-dark .course-card p,
.section-dark .course-card li {
  color: var(--ink);
}

.section-dark .course-card p,
.section-dark .course-card small {
  color: var(--muted);
}

.section-dark .course-card .ghost-button {
  margin-top: 4px;
  color: #121a24;
  border-color: rgba(42, 111, 151, 0.24);
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.18), rgba(42, 111, 151, 0.08));
}

.section-dark .course-card .ghost-button:hover {
  background: linear-gradient(135deg, var(--gold), #ffe3a0);
}

@media (max-width: 1180px) {
  .package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .package-grid {
    grid-template-columns: 1fr;
  }
}

/* Client review refinement */
.package-grid {
  gap: 12px;
}

.package-option {
  min-height: 118px;
  position: relative;
  color: rgba(237, 248, 255, 0.9);
  border-color: rgba(39, 215, 232, 0.2);
  background:
    linear-gradient(145deg, rgba(8, 23, 39, 0.96), rgba(15, 39, 61, 0.92)),
    radial-gradient(ellipse at 100% 0%, rgba(39, 215, 232, 0.2), transparent 44%);
  box-shadow: 0 16px 48px rgba(3, 13, 26, 0.16);
}

.package-option span {
  color: var(--gold);
}

.selected-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(246, 199, 94, 0.58);
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, #f6c75e, #ffe7a7);
  box-shadow: 0 0 18px rgba(246, 199, 94, 0.3);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.package-option strong {
  color: #fff;
  font-size: 15px;
}

.package-option small {
  color: rgba(213, 233, 244, 0.68);
}

.package-option:hover,
.package-option.is-active {
  color: #fff;
  border-color: rgba(39, 215, 232, 0.54);
  background:
    linear-gradient(145deg, rgba(9, 30, 52, 0.98), rgba(12, 50, 74, 0.94)),
    radial-gradient(ellipse at 96% 0%, rgba(246, 199, 94, 0.22), transparent 44%);
  box-shadow: 0 24px 70px rgba(3, 13, 26, 0.24), 0 0 42px rgba(39, 215, 232, 0.18);
}

.package-option.is-active {
  border-color: rgba(246, 199, 94, 0.9);
  box-shadow:
    0 26px 78px rgba(3, 13, 26, 0.3),
    0 0 0 2px rgba(246, 199, 94, 0.22),
    0 0 48px rgba(39, 215, 232, 0.22);
}

.package-option.is-active strong,
.package-option:hover strong {
  color: #fff;
}

.course-detail {
  border-color: rgba(39, 215, 232, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)),
    radial-gradient(ellipse at 100% 0%, rgba(39, 215, 232, 0.12), transparent 44%);
}

.course-side {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.course-side__panel {
  padding: 18px;
  border: 1px solid rgba(39, 215, 232, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)),
    radial-gradient(ellipse at 100% 0%, rgba(39, 215, 232, 0.1), transparent 44%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.course-side__panel--accent {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(8, 23, 39, 0.98), rgba(15, 39, 61, 0.94)),
    radial-gradient(ellipse at 96% 0%, rgba(246, 199, 94, 0.22), transparent 44%);
}

.course-side__panel--accent span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-side__panel--accent h3,
.course-side__panel--accent p {
  color: #fff;
}

.course-side__panel h3,
.course-side-module-grid h4 {
  margin: 0 0 12px;
}

.course-side-module-grid {
  display: grid;
  gap: 10px;
}

.course-side-module-grid article {
  padding: 14px;
  border: 1px solid rgba(42, 111, 151, 0.16);
  border-radius: 8px;
  background: #fff;
}

.course-side-module-grid h4 {
  font-size: 16px;
}

.course-side-module-grid p {
  margin: 0 0 8px;
  color: #475569;
  line-height: 1.65;
}

.course-side-module-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.5;
}

.course-side .primary-button {
  width: 100%;
}

.course-decision-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(39, 215, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(8, 23, 39, 0.94), rgba(15, 39, 61, 0.88)),
    radial-gradient(ellipse at 100% 0%, rgba(39, 215, 232, 0.14), transparent 44%);
}

.course-decision-panel > div:first-child span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-decision-panel h3 {
  margin: 5px 0 14px;
  color: #fff;
}

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

.course-decision-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(39, 215, 232, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
}

.course-decision-grid svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.course-decision-grid strong {
  color: #fff;
}

.course-decision-grid p {
  margin: 0;
  color: rgba(213, 226, 236, 0.82);
  line-height: 1.6;
  font-size: 13px;
}

@media (max-width: 640px) {
  .course-decision-grid {
    grid-template-columns: 1fr;
  }
}
