.ecosystem-page {
  --ecosystem-container: 1720px;
  --ecosystem-gutter: clamp(48px, 6vw, 120px);
  background:
    radial-gradient(circle at 6% 4%, rgba(224, 240, 255, 0.92) 0, rgba(224, 240, 255, 0) 34%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 42%, #f7fbff 100%);
}

.ecosystem-page main .container,
.ecosystem-page .site-footer .container {
  width: min(100% - var(--ecosystem-gutter), var(--ecosystem-container));
}

.ecosystem-page .course-hero .container {
  width: min(100% - var(--ecosystem-gutter), var(--ecosystem-container));
}

.ecosystem-page .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}

.ecosystem-page .site-header .nav-shell {
  width: calc(100% - clamp(32px, 3.4vw, 56px));
  max-width: none;
  min-height: 82px;
  gap: clamp(24px, 3vw, 52px);
}

.ecosystem-page .brand img {
  width: 150px;
}

.ecosystem-page .primary-nav {
  gap: clamp(26px, 2.5vw, 46px);
  color: #27354a;
  font-size: 15px;
  font-weight: 500;
}

.ecosystem-page .round-action {
  width: 40px;
  height: 40px;
}

.course-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #f7fbff 0%, rgba(247, 251, 255, 0.95) 45%, rgba(237, 247, 255, 0.62) 100%),
    #f7fbff;
}

.course-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 76px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0), var(--background));
  content: "";
}

.course-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(560px, 0.46fr) minmax(0, 0.54fr);
  align-items: stretch;
  min-height: 330px;
}

.course-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 8px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: #50627c;
  font-size: 12px;
}

.breadcrumbs a {
  color: #1f67be;
  font-weight: 700;
}

.breadcrumbs span::before {
  margin-right: 8px;
  color: #9aaec5;
  content: ">";
}

.course-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 10px;
  padding: 3px 15px;
  border-radius: 999px;
  background: #dff8ed;
  color: #187655;
  font-size: 14px;
  font-weight: 800;
}

.course-hero h1 {
  margin: 0 0 8px;
  color: #16213a;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-subtitle {
  margin: 0 0 8px;
  color: #223653;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 0 0 14px;
  color: #52657f;
  font-size: 14px;
  line-height: 1.75;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  max-width: 680px;
  gap: 18px;
  margin-bottom: 14px;
}

.hero-features article {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  color: #657792;
  text-align: center;
  font-size: 11.5px;
}

.hero-features img {
  width: 28px;
  height: 28px;
  margin-bottom: 3px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.hero-features strong {
  color: #1f3658;
  font-size: 13.5px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 8px;
  background: #edf6ff;
  color: #4c6d93;
  font-size: 12.5px;
  white-space: nowrap;
}

.hero-pills strong {
  color: #1f67be;
}

.course-hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 330px;
  margin-right: calc((100vw - min(100vw - var(--ecosystem-gutter), var(--ecosystem-container))) / -2);
}

.course-hero-visual::before {
  position: absolute;
  inset: 0 auto 0 -1px;
  z-index: 1;
  width: 30%;
  background: linear-gradient(90deg, #f7fbff 0%, rgba(247, 251, 255, 0.82) 38%, rgba(247, 251, 255, 0) 100%);
  content: "";
}

.course-hero-visual img {
  width: 100%;
  height: 356px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.course-main {
  padding: 18px 0 10px;
}

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  column-gap: 46px;
  row-gap: 20px;
  align-items: start;
}

.course-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.course-wide {
  grid-column: 1 / -1;
}

.course-section {
  margin-bottom: 20px;
}

.course-content .course-section:last-child {
  margin-bottom: 0;
}

.course-section .section-title {
  margin-bottom: 14px;
}

.course-section .section-title div {
  text-align: center;
}

.course-section .section-title p {
  margin: 3px 0 0;
  color: #75869d;
  font-size: 12px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.highlight-grid article {
  display: grid;
  grid-template-rows: minmax(76px, auto) auto;
  overflow: hidden;
  min-height: 188px;
  border: 1px solid #e5eef9;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.highlight-grid div {
  padding: 14px 15px 6px;
}

.highlight-grid h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.25;
}

.highlight-grid p {
  margin: 0;
  color: #5d6f87;
  font-size: 12px;
  line-height: 1.65;
}

.highlight-grid img {
  align-self: end;
  width: calc(100% - 22px);
  aspect-ratio: 1.65 / 1;
  margin: 0 auto 10px;
  border-radius: 7px;
  object-fit: cover;
}

.outline-panel {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
}

.stage-list {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid #e5eef9;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.stage-list a,
.stage-list button {
  display: grid;
  gap: 2px;
  min-height: 74px;
  padding: 9px 18px;
  border: 0;
  border-bottom: 1px solid #ecf3fb;
  color: #5c6e86;
  font: inherit;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.stage-list a:last-child,
.stage-list button:last-child {
  border-bottom: 0;
}

.stage-list a.is-current,
.stage-list button.is-current {
  background: #edf6ff;
  color: #1f67be;
}

.stage-list a:focus-visible,
.stage-list button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(47, 132, 240, 0.32);
  outline-offset: -3px;
}

.stage-list strong {
  color: #1c3151;
  font-size: 12px;
  line-height: 1.25;
}

.stage-list span {
  color: inherit;
  font-weight: 800;
}

.stage-list small {
  color: #6f8198;
  font-size: 11px;
  line-height: 1.2;
}

.outline-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 20px;
  align-items: center;
  min-height: 210px;
  padding: 20px 22px 20px 26px;
  border: 1px solid #e5eef9;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.outline-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1.35;
}

.outline-card p {
  margin: 0 0 14px;
  color: #62748d;
  font-size: 12px;
  line-height: 1.65;
}

.outline-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.outline-card li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 28px;
  color: #334865;
  font-size: 13px;
}

.outline-card li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 10px;
  content: "✓";
}

.outline-card img {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.course-bottom {
  display: grid;
  grid-template-columns: minmax(360px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}

.course-bottom--single {
  grid-template-columns: 1fr;
}

.gain-card,
.review-card {
  min-width: 0;
  min-height: 260px;
  height: auto;
  padding: 24px 28px;
  border: 1px solid #e5eef9;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.gain-card h2,
.review-card h2 {
  margin: 0 0 6px;
  color: #16345f;
  font-size: 22px;
  line-height: 1.25;
}

.gain-card > p,
.review-card p {
  margin: 0;
  color: #6d7f97;
  font-size: 13px;
  line-height: 1.5;
}

.gain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
  margin-top: 24px;
}

.gain-grid div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
}

.gain-grid img {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 50%;
  background: #edf6ff;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.gain-grid img.gain-image--custom {
  padding: 0;
  object-fit: cover;
  filter: none;
}

.gain-grid strong {
  color: #1c3151;
  font-size: 14px;
  line-height: 1.35;
}

.gain-grid span {
  color: #718198;
  font-size: 12px;
  line-height: 1.55;
}

.review-head {
  margin-bottom: 18px;
}

.review-shell {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
}

.review-shell--single {
  grid-template-columns: minmax(0, 1fr);
}

.review-shell > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e1ebf6;
  border-radius: 50%;
  background: #fff;
}

.review-shell > button[hidden] {
  display: none;
}

.review-shell button img {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(44%) sepia(80%) saturate(1492%) hue-rotate(195deg) brightness(96%) contrast(92%);
}

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

.review-grid--one {
  grid-template-columns: minmax(0, 1fr);
}

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

.review-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 150px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #e8f0fb;
  border-radius: 10px;
  background: #fff;
}

.review-grid p {
  min-height: 58px;
  color: #3f5069;
  font-size: 12px;
  line-height: 1.7;
}

.review-grid footer {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  color: #243b5d;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.review-grid footer::after {
  grid-column: 2;
  color: #f4b844;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  content: "★★★★★";
}

.review-grid footer img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.review-grid span {
  display: block;
  margin-top: 3px;
  color: #7b8da3;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
}

.review-author {
  min-width: 0;
  white-space: nowrap;
}

.review-author span {
  white-space: nowrap;
}

.review-grid footer.review-footer--no-image {
  grid-template-columns: minmax(0, 1fr) auto;
}

.review-grid footer.review-footer--no-image::after {
  grid-column: 2;
  grid-row: 1;
}

.course-sidebar {
  position: static;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 14px;
  min-width: 0;
}

.side-card {
  padding: 16px 20px;
  border: 1px solid #e5eef9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.side-card h2 {
  margin: 0 0 14px;
  color: #1b3153;
  font-size: 19px;
  line-height: 1.35;
}

.course-info dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.course-info dl div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.course-info dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1f67be;
  font-size: 11px;
  font-weight: 800;
}

.course-info dt img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(88%) saturate(1996%) hue-rotate(198deg) brightness(96%) contrast(94%);
}

.course-info dd {
  margin: 0;
  color: #344963;
  font-size: 11px;
  line-height: 1.55;
}

.enroll-card {
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
}

.enroll-card h2 {
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.enroll-card p {
  margin: 0 0 13px;
  color: #6a7c92;
  font-size: 12px;
}

.enroll-card .primary-button {
  width: 100%;
  min-height: 38px;
  border-radius: 7px;
}

.enroll-card > span {
  display: block;
  margin-top: 12px;
  color: #718198;
  text-align: center;
  font-size: 11px;
}

.consult-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.consult-card > div {
  position: relative;
  z-index: 1;
  padding-right: 72px;
}

.consult-card h2 {
  margin-bottom: 4px;
}

.consult-card p {
  margin: 0 0 8px;
  color: #6d7f97;
  font-size: 12px;
}

.consult-card a {
  display: block;
  color: var(--primary-dark);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

.consult-card small {
  color: #6d7f97;
  font-size: 11px;
}

.consult-card img {
  position: absolute;
  right: -21px;
  bottom: -15px;
  width: 108px;
  max-width: none;
  border-radius: 0;
}

.ecosystem-page .footer-grid {
  gap: 22px;
  padding: 16px 0 8px;
}

.ecosystem-page .footer-brand img {
  width: 112px;
  margin-bottom: 7px;
}

.ecosystem-page .footer-brand p {
  margin-bottom: 8px;
  font-size: 11px;
}

.ecosystem-page .site-footer nav h2 {
  margin-bottom: 5px;
  font-size: 12px;
}

.ecosystem-page .site-footer nav a {
  font-size: 10px;
  line-height: 1.45;
}

.ecosystem-page .qr-block {
  grid-template-columns: 70px minmax(0, 1fr);
}

.ecosystem-page .qr-block img {
  width: 70px;
  height: 70px;
}

.ecosystem-page .qr-block strong {
  font-size: 13px;
}

.ecosystem-page .qr-block span {
  font-size: 12px;
}

.ecosystem-page .copyright {
  padding: 7px 24px 8px;
  font-size: 10px;
}

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

  .course-hero-visual {
    order: -1;
    min-height: 250px;
    margin-top: 18px;
  }

  .course-hero-visual::before {
    display: none;
  }

  .course-hero-visual img {
    min-height: 250px;
    border-radius: 8px;
  }

  .course-hero-copy {
    max-width: none;
    margin-left: 0;
    padding-bottom: 34px;
  }

  .course-sidebar {
    position: static;
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 760px) {
  .ecosystem-page {
    --ecosystem-gutter: 28px;
  }

  .course-hero h1 {
    font-size: 30px;
  }

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

  .outline-panel,
  .outline-card,
  .course-sidebar {
    grid-template-columns: 1fr;
  }

  .stage-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stage-list a,
  .stage-list button {
    min-height: 100px;
    padding: 14px;
  }

  .review-shell {
    grid-template-columns: 1fr;
  }

  .review-shell > button {
    display: none;
  }

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

  .gain-card,
  .review-card {
    height: auto;
  }
}

@media (max-width: 560px) {
  .breadcrumbs {
    margin-bottom: 22px;
  }

  .course-hero h1 {
    font-size: 27px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .highlight-grid,
  .gain-grid {
    grid-template-columns: 1fr;
  }

  .outline-card {
    padding: 20px;
  }

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

  .course-info dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .ecosystem-page .site-header .nav-shell {
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 70px;
    padding: 0;
  }

  .ecosystem-page .brand img {
    width: 118px;
  }

  .ecosystem-page .primary-nav {
    order: initial;
    justify-content: center;
    width: auto;
    gap: 24px;
    overflow: visible;
    font-size: 15px;
  }

  .ecosystem-page .round-action {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .ecosystem-page .site-header .nav-shell {
    min-height: 70px;
  }

  .ecosystem-page .brand img {
    width: 118px;
  }

  .ecosystem-page .primary-nav {
    gap: 24px;
    overflow-x: auto;
    font-size: 15px;
    scrollbar-width: none;
  }

  .ecosystem-page .primary-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .ecosystem-page .primary-nav {
    gap: 18px;
  }
}
