/* ==========================================================================
   Single Course + Single Career Bundle
   (roadmap step cards are also reused on the White Label page)
   ========================================================================== */

/* ---------- Two-column layout ---------- */
.course-intro,
.bundle-intro {
  padding: 68px 0 0;
}

.course-layout {
  display: grid;
  grid-template-columns: 622px 356px;
  column-gap: 110px;
  align-items: start;
  margin-left: 2px;
}

.course-layout__main {
  min-width: 0;
}

.course-layout__side {
  position: sticky;
  top: 20px;
  padding-top: 54px;
}

.course-intro__title {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 35px;
  line-height: 42px;
  text-align: center;
  margin: 0 0 16px;
}

.course-intro__media {
  aspect-ratio: 622 / 350;
  border-radius: 64px 0 64px 0;
  overflow: hidden;
}

.course-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Get access to all courses" strip */
.course-intro__strip {
  display: block;
  margin-top: 16px;
  height: 46px;
  line-height: 46px;
  text-align: center;
  background: var(--ts-gradient);
  border-radius: 14px 0 14px 0;
  font-weight: 500;
  font-size: 12px;
  color: var(--ts-black);
}

.course-intro__strip:hover {
  color: var(--ts-black);
  filter: brightness(1.05);
}

/* ---------- Buy card (sidebar) ---------- */
.course-card-buy {
  padding: 30px 22px 24px;
  border: 1px solid transparent;
  border-radius: 50px 0 50px 0;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
  font-family: var(--ts-font-head);
  text-align: center;
}

.course-card-buy__title {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 27px;
  line-height: 32px;
  margin: 0 0 8px;
}

.course-card-buy__price {
  margin: 0 0 22px;
  font-family: var(--ts-font-body);
}

.course-card-buy__price del {
  font-size: 23px;
  color: #666;
}

.course-card-buy__price strong {
  font-weight: 700;
  font-size: 35px;
  color: var(--ts-black);
}

.course-card-buy__save {
  font-size: 16px;
  margin: 0 0 14px;
  background: linear-gradient(90deg, #c8561a, #e8812a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.course-card-buy__btn {
  width: 100%;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.course-card-buy__or {
  font-size: 16px;
  margin: 5px 0 6px;
}

.course-card-buy__access {
  position: relative;
  display: block;
  height: 41px;
  line-height: 39px;
  padding-left: 58px;
  border: 1.5px solid transparent;
  border-radius: 12px 0 12px 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
  font-size: 14px;
  color: #c8641f;
  text-align: left;
}

.course-card-buy__access img {
  position: absolute;
  left: 8px;
  top: -7px;
  width: 47px;
}

.course-card-buy__guarantee {
  font-size: 16px;
  margin: 10px 0 18px;
}

/* Info rows: label : value */
.course-info {
  display: grid;
  grid-template-columns: 94px 1fr;
  row-gap: 11px;
  margin: 0;
  text-align: left;
  font-family: var(--ts-font-head);
  font-size: 14px;
  color: var(--ts-black);
}

.course-info dt {
  font-weight: 500;
  position: relative;
}

.course-info dt::after {
  content: ":";
  position: absolute;
  right: 0;
  font-weight: 400;
}

.course-info dd {
  margin: 0;
  padding-left: 8px;
}

.course-info--wide {
  grid-template-columns: 106px 1fr;
  row-gap: 8px;
}

.course-info--mobile {
  display: none;
}

/* ---------- Overview with "See More" ---------- */
.course-overview {
  position: relative;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: 14px 0 14px 0;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
  overflow: hidden;
}

.course-overview__text {
  max-height: 488px;
  overflow: hidden;
  padding: 18px 26px 40px;
  font-family: var(--ts-font-head);
  font-size: 9.5px;
  line-height: 22px;
  color: var(--ts-black);
  transition: max-height 0.4s ease;
}

.course-overview__text p {
  margin: 0;
}

.course-overview__text p:first-child {
  font-size: 12.2px;
  margin-bottom: 6px;
}

.course-overview__text strong {
  font-weight: 500;
}

.course-overview.is-open .course-overview__text {
  max-height: 2000px;
}

.course-overview__more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  border: 0;
  background: linear-gradient(90deg, rgba(230, 107, 35, 0.9), rgba(247, 176, 43, 0.9));
  color: #fff;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  gap: 2px;
  border-radius: 14px 0 14px 0;
}

.course-overview__more .bi {
  font-size: 10px;
  -webkit-text-stroke: 0.6px;
  transition: transform 0.25s ease;
}

.course-overview.is-open .course-overview__more {
  position: static;
  width: 100%;
}

.course-overview.is-open .course-overview__more .bi {
  transform: rotate(180deg);
}

/* ---------- Curriculum ---------- */
.course-curriculum {
  margin-top: 40px;
}

.course-curriculum .ts-heading-left {
  margin-bottom: 14px;
}

.course-curriculum .ts-accordion__item + .ts-accordion__item {
  margin-top: 21px; /* 8px gap + 13px tuck */
}

/* ---------- Certificate CTA ---------- */
.course-certificate {
  padding: 74px 0 40px;
}

.course-certificate__box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 289px;
  margin: 0 0 0 2px;
  max-width: 1089px;
  border: 1px solid transparent;
  border-radius: 50px 0 50px 0;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
}

.course-certificate__frame {
  position: absolute;
  left: 61px;
  top: -30px;
  width: 291px;
  height: 349px;
  padding: 8px 8px 8px 8px;
  border: 1.5px solid transparent;
  border-radius: 40px 0 40px 0;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
}

.course-certificate__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 30px 0 34px 0;
  box-shadow: 10px 12px 18px rgba(0, 0, 0, 0.2);
}

.course-certificate__content {
  margin-left: 429px;
  max-width: 440px;
}

.course-certificate__content p {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 12.2px;
  line-height: 25px;
  color: var(--ts-black);
  margin: 0 0 16px;
}

.course-certificate__content .ts-btn {
  height: 30px;
  width: 158px;
  font-size: 11.9px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Accreditation + FAQ spacing on the course page */
.course-accreditation {
  padding-top: 40px;
}

.ts-faq {
  padding: 40px 0 44px;
}

.course-faq .ts-container {
  max-width: 1194px;
}

/* ==========================================================================
   Career bundle
   ========================================================================== */
.bundle-intro__actions {
  display: grid;
  grid-template-columns: 270px 270px;
  justify-content: space-between;
  margin-top: 16px;
}

.bundle-intro__actions .ts-btn {
  height: 41px;
  font-family: var(--ts-font-body);
  font-size: 12px;
}

.bundle-intro__actions .ts-btn--leaf {
  border-radius: 12px 0 12px 0;
}

.bundle-intro__actions .ts-btn--leaf-outline {
  border-width: 1px;
  border-radius: 12px 0 12px 0;
  color: var(--ts-black);
}

.bundle-heading {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 26px;
  line-height: 32px;
  margin: 0 0 6px;
}

.bundle-subheading {
  font-family: var(--ts-font-head);
  font-size: 12px;
  color: var(--ts-black);
  margin: 0 0 20px;
}

.bundle-roadmap {
  margin-top: 24px;
  width: 853px;
  max-width: calc(100vw - 32px);
}

/* Gradient step cards (also used on White Label) */
.bundle-roadmap__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bundle-step {
  min-height: 145px;
  padding: 14px 10px 16px;
  background: var(--ts-gradient);
  border-radius: 40px 0 40px 0;
  color: var(--ts-white);
  text-align: center;
  font-family: var(--ts-font-head);
}

.bundle-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--ts-dark);
  font-size: 23px;
  border-radius: 10px 0 10px 0;
}

.bundle-step__title {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 23px;
  margin: 14px 0 4px;
}

.bundle-step__text {
  font-size: 11px;
  margin: 0;
}

.bundle-courses {
  margin-top: 36px;
  width: 884px;
  max-width: calc(100vw - 32px);
}

.bundle-stage__title {
  font-family: var(--ts-font-head);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 8px;
}

.bundle-stage__grid {
  display: grid;
  grid-template-columns: repeat(3, 272px);
  justify-content: space-between;
  margin-bottom: 22px;
}

.bundle-stage .ts-mini-card {
  border-radius: 36px 0 36px 0;
}

.bundle-stage .ts-mini-card__title {
  font-size: 15px;
  line-height: 18px;
  padding: 11px 10px 16px;
}

/* Value comparison */
.bundle-compare {
  margin: 46px 0 0;
  width: 884px;
}

.bundle-compare__title {
  font-family: var(--ts-font-head);
  font-weight: 700;
  font-size: 27.7px;
  text-align: center;
  color: var(--ts-black);
  margin: 0 0 18px;
}

.bundle-compare__cards {
  display: grid;
  grid-template-columns: 290px 292px;
  gap: 32px;
  justify-content: center;
}

.bundle-compare__card {
  min-height: 216px;
  padding: 24px 26px;
  background: var(--ts-cream);
  border-radius: 0 0 12px 0;
  font-family: var(--ts-font-head);
  color: var(--ts-black);
}

.bundle-compare__card h3 {
  font-family: var(--ts-font-head);
  font-weight: 800;
  font-size: 17.9px;
  margin: 0 0 16px;
}

.bundle-compare__lines {
  font-size: 16.5px;
  line-height: 20px;
  padding-left: 16px;
  margin: 0 0 16px;
}

.bundle-compare__total {
  font-size: 26.2px;
  margin: 0;
}

.bundle-compare__total b {
  color: #707070;
}

.bundle-compare__card--best {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
  box-shadow: 14px 16px 22px rgba(0, 0, 0, 0.18);
  border-radius: 12px 0 12px 0;
}

.bundle-compare__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  color: #707070;
  font-size: 16.5px;
  line-height: 20px;
}

.bundle-compare__list .bi {
  font-size: 13px;
  margin-right: 4px;
}

.bundle-compare__price {
  font-weight: 700;
  font-size: 26.2px;
  margin: 0;
}

.bundle-compare__save {
  color: #c56311;
  font-size: 16.5px;
  margin: 0;
}

/* Stats bar */
.bundle-stats {
  list-style: none;
  margin: 76px 0 58px 90px;
  padding: 30px 44px 30px 48px;
  width: 702px;
  display: flex;
  justify-content: space-between;
  border: 2.5px solid transparent;
  border-radius: 26px 0 26px 0;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
  font-family: var(--ts-font-head);
  text-align: center;
  color: var(--ts-black);
}

.bundle-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bundle-stats b {
  font-weight: 500;
  font-size: 54px;
  line-height: 60px;
}

.bundle-stats__inf {
  font-weight: 300 !important;
  font-size: 80px !important;
  line-height: 56px !important;
}

.bundle-stats span {
  font-weight: 500;
  font-size: 11px;
  margin-top: 6px;
}

/* Sidebar on bundle page: info card, then compact sticky card */
.page-bundle .course-layout__side {
  position: static;
  align-self: stretch;
}

.page-bundle .course-card-buy__save {
  margin-bottom: 14px;
}

.page-bundle .course-card-buy__guarantee {
  margin: 12px 0 16px;
}

.bundle-sticky {
  position: sticky;
  top: 20px;
  margin: 38px -194px 0 192px;
  border: 1px solid transparent;
  border-radius: 50px 0 50px 0;
  background:
    linear-gradient(var(--ts-cream), var(--ts-cream)) padding-box,
    var(--ts-gradient) border-box;
  overflow: hidden;
  text-align: center;
  font-family: var(--ts-font-head);
}

.bundle-sticky img {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 200;
  object-fit: cover;
  border-radius: 0 0 40px 0;
}

.bundle-sticky__body {
  padding: 14px 22px 24px;
}

.bundle-sticky .course-card-buy__title {
  margin-bottom: 4px;
}

.bundle-sticky .course-card-buy__price strong {
  font-size: 33px;
}

.bundle-sticky .course-card-buy__price {
  margin-bottom: 14px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1429.98px) {
  /* Bundle page: below ~1430px the sticky card can no longer sit out to the
     right (it would overflow the screen) and the wide sections would run under
     it, so everything fits inside the two columns from here down */
  .page-bundle .course-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    column-gap: 40px;
  }

  .bundle-sticky {
    margin: 38px 0 0;
  }

  .bundle-roadmap,
  .bundle-courses {
    width: auto;
  }

  .bundle-stage__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .bundle-compare {
    margin-left: 0;
    width: auto;
  }

  .bundle-stats {
    margin-left: 0;
    width: auto;
  }
}

@media (max-width: 1199.98px) {
  .course-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    column-gap: 40px;
  }

  .course-certificate__frame {
    left: 30px;
  }

  .course-certificate__content {
    margin-left: 360px;
    padding-right: 30px;
  }
}

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

  .course-layout__side {
    position: static;
    padding-top: 40px;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
    grid-row: 2;
  }

  .page-bundle .course-layout__side {
    grid-row: auto;
  }

  .bundle-sticky {
    display: none;
  }

  .bundle-intro__actions {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .course-intro,
  .bundle-intro {
    padding-top: 22px;
  }

  .course-intro__title {
    font-size: 34px;
    line-height: 40px;
  }

  .course-intro__media {
    border-radius: 40px 0 40px 0;
  }

  .course-intro__strip {
    height: auto;
    line-height: 16px;
    padding: 8px 40px;
    font-size: 10px;
  }

  /* Sidebar card is replaced by the sticky buy bar + inline info */
  .course-layout__side {
    display: none;
  }

  .course-info--mobile {
    display: grid;
    margin: 20px 0 0 30px;
    font-size: 12px;
    grid-template-columns: 86px 1fr;
  }

  .course-overview__text {
    max-height: 560px;
    padding: 14px 16px 44px;
    font-size: 11px;
    line-height: 19px;
  }

  .course-certificate {
    padding: 70px 0 20px;
  }

  .course-certificate__box {
    flex-direction: column;
    padding: 0 18px 26px;
    border-radius: 40px 0 40px 0;
  }

  .course-certificate__frame {
    position: relative;
    left: auto;
    top: -40px;
    width: 220px;
    height: 264px;
    margin-bottom: -20px;
  }

  .course-certificate__content {
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .course-certificate__content p {
    font-size: 11px;
    line-height: 20px;
  }

  .ts-faq .ts-heading-left {
    text-align: center;
  }

  .bundle-intro__actions {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-inline: 24px;
    margin-top: 22px;
  }

  .bundle-intro__actions .ts-btn {
    font-size: 12px;
    height: 40px;
  }

  .bundle-roadmap {
    margin-top: 40px;
  }

  .bundle-heading {
    font-size: 24px;
    line-height: 30px;
  }

  .bundle-subheading {
    font-size: 12px;
    max-width: 300px;
    margin-bottom: 16px;
  }

  /* Roadmap steps + stage cards: swipeable rows with the next card peeking */
  .bundle-roadmap__steps,
  .bundle-stage__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px 22px;
    padding: 0 16px 8px;
    scrollbar-width: none;
  }

  .bundle-roadmap__steps::-webkit-scrollbar,
  .bundle-stage__grid::-webkit-scrollbar {
    display: none;
  }

  .bundle-step {
    flex: 0 0 72%;
    scroll-snap-align: center;
    min-height: 150px;
  }

  .bundle-stage .ts-mini-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  .bundle-stage .ts-mini-card__title {
    font-size: 15px;
    line-height: 18px;
  }

  .bundle-stage__title {
    font-size: 16px;
  }

  .bundle-compare__title {
    font-size: 26px;
    max-width: 240px;
    margin-inline: auto;
  }

  .bundle-compare__cards {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
    gap: 26px;
  }

  .bundle-stats {
    margin: 40px auto 30px;
    max-width: 290px;
    padding: 18px 20px;
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .bundle-stats li {
    flex: 0 0 50%;
  }

  .bundle-stats b {
    font-size: 34px;
    line-height: 40px;
  }

  .bundle-stats__inf {
    font-size: 50px !important;
    line-height: 40px !important;
  }

  .bundle-stats span {
    font-size: 8px;
  }
}
