/* Seasonal promo banner under the hero (modules/courses/hero-promo-banner.m.php) */
.hero-promo-banner-section {
  padding: 3.2rem 0 1.6rem;
}

/* Flush under the course hero (no extra gap above the banner) */
.hero-promo-banner-section--in-hero {
  margin-top: 0;
  padding-top: 0;
}

.hero-promo-banner {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 2.4rem 3.2rem;
  border-radius: 2.4rem;
  color: #fff;
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 170, 60, 0.45), transparent 45%),
    linear-gradient(120deg, #2A1446 0%, #4B2178 55%, #E8590C 140%);
  box-shadow: 0 8px 28px rgba(59, 31, 92, 0.25);
}

.hero-promo-banner__visual {
  flex: 0 0 auto;
}

.hero-promo-banner__badge {
  display: block;
  width: 9.6rem;
  height: auto;
  transform: rotate(-8deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-promo-banner__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-promo-banner__eyebrow {
  color: #FFA041;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-promo-banner__title {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.2em;
  font-weight: 800;
}

.hero-promo-banner__text {
  font-size: 1.6rem;
  line-height: 1.45em;
}

.hero-promo-banner__text b {
  color: #FFC078;
}

.hero-promo-banner__terms {
  margin-top: 0.4rem;
  font-size: 1.2rem;
  line-height: 1.4em;
  color: rgba(255, 255, 255, 0.7);
}

.hero-promo-banner__cta {
  flex: 0 0 auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border-radius: 999px;
  background: #FFA041;
  border: 2px solid #FFA041;
  color: #2A1446;
  font-size: 1.5rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-promo-banner__cta:hover,
.hero-promo-banner__cta:focus {
  background: #fff;
  border-color: #fff;
  color: #2A1446;
}

.hero-promo-banner__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 3px;
}

/* Black Friday variant (standalone sections keep top/bottom padding) */
.hero-promo-banner-section.promo-black-friday-banner {
  padding: 6.4rem 0 7.2rem; /* +3.2rem vs previous 3.2 / 4 */
  overflow: visible;
}

/* Only flush when rendered under the course hero */
.hero-promo-banner-section--in-hero.promo-black-friday-banner {
  margin-top: 0;
  padding-top: 0;
}

.hero-promo-banner--black-friday {
  position: relative;
  align-items: center;
  gap: 2rem 4rem;
  min-height: 24rem;
  padding: 3.2rem 3.2rem 3.2rem 0;
  overflow: visible;
  color: #fff;
  background: linear-gradient(
    273deg,
    var(--Primary-Primary40, #006ECE) 5.33%,
    var(--neutral-neutral-0-black, #121618) 46.33%
  );
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

.hero-promo-banner--black-friday .hero-promo-banner__visual {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  flex: 0 0 34%;
  width: 34%;
  max-width: 38rem;
  margin: -1.6rem 0 -4.8rem -3.2rem;
}

.hero-promo-banner--black-friday .hero-promo-banner__art {
  width: 100%;
  max-width: none;
  height: auto;
  transform: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.hero-promo-banner--black-friday .hero-promo-banner__main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  justify-content: center;
  gap: 1.6rem;
  padding: 0.4rem 0 2.4rem;
  min-width: 0;
}

.hero-promo-banner--black-friday .hero-promo-banner__title {
  font-size: 2.8rem; /* 28px - "More time to save." */
  line-height: 1.2;
  font-weight: 700;
}

.hero-promo-banner--black-friday .hero-promo-banner__title-accent {
  display: block;
  margin-top: 0.2rem;
  color: #8FD6F5;
  font-size: 4rem; /* 40px - "More ways to grow." */
  line-height: 1.15;
  font-weight: 800;
}

.hero-promo-banner--black-friday .hero-promo-banner__cta {
  margin-top: 0.2rem;
  background: #2F6FED;
  border-color: #2F6FED;
  color: #fff;
  border-radius: 999px;
}

.hero-promo-banner--black-friday .hero-promo-banner__cta:hover,
.hero-promo-banner--black-friday .hero-promo-banner__cta:focus {
  background: #1f5bd0;
  border-color: #1f5bd0;
  color: #fff;
}

.hero-promo-banner--black-friday .hero-promo-banner__terms {
  position: absolute;
  z-index: 3;
  left: 8rem;
  bottom: 1.2rem;
  margin-top: 0;
  padding-left: 2.4rem;
  max-width: 48rem;
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.72);
}

.hero-promo-banner--black-friday .hero-promo-banner__terms b {
  font-style: italic;
  font-weight: 700;
  color: #fff;
}

.hero-promo-banner--black-friday .hero-promo-banner__offer {
  position: relative;
  z-index: 2;
  flex: 0 0 30%;
  width: 30%;
  min-width: 26rem;
  max-width: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.4rem 0;
}

.hero-promo-banner__offer {
  position: relative;
  z-index: 2;
  flex: 0 0 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -1.2rem 0;
}

.hero-promo-banner__offer-back {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 110%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.hero-promo-banner__offer-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 20rem;
  padding: 2.4rem 2rem 2rem;
  border-radius: 1.6rem;
  background: #fff;
  color: #1B3A6B;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-promo-banner--black-friday .hero-promo-banner__offer-card {
  max-width: none;
  padding: 1.8rem;
}

.hero-promo-banner__offer-kicker {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 800;
  color: #121618;
}

.hero-promo-banner__offer-amount {
  font-size: 4.8rem;
  line-height: 1;
  font-weight: 800;
  color: #1B3A6B;
}

.hero-promo-banner--black-friday .hero-promo-banner__offer-amount {
  margin-top: 0.2rem;
  font-size: 7.6rem; /* 76px */
  line-height: 1;
  color: transparent;
  background: linear-gradient(
    273deg,
    var(--Primary-Primary40, #006ECE) 20%,
    var(--neutral-neutral-0-black, #121618) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* "OFF" next to the amount */
.hero-promo-banner__offer-suffix {
  top: -1.6em;
  margin-left: 0.4rem;
  font-size: 0.26em;
  font-weight: 800;
  vertical-align: baseline;
  color: #1B3A6B;
  -webkit-text-fill-color: #1B3A6B;
}

.hero-promo-banner--black-friday .hero-promo-banner__icon {
  display: none;
}

.hero-promo-banner--black-friday .hero-promo-banner__offer-label {
  color: #121618;
}

.hero-promo-banner--black-friday .hero-promo-banner__offer-rule {
  border-top-color: #2F6FED;
}

.hero-promo-banner--black-friday .hero-promo-banner__offer-code-text {
  font-size: 2rem;
}

.hero-promo-banner__offer-label {
  margin-top: 0.4rem;
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #1B3A6B;
}

.hero-promo-banner__offer-rule {
  margin: 1.4rem 0 1.2rem;
  border: 0;
  border-top: 2px dotted #C5D0DE;
}

.hero-promo-banner__offer-code-label {
  font-size: 1.4rem;
  font-style: italic;
  color: #1B3A6B;
}

.hero-promo-banner__offer-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #121618;
}

.hero-promo-banner__offer-code-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #F5A623;
}

.hero-promo-banner__offer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero-promo-banner__offer-copy .feather {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5px;
}

.hero-promo-banner__offer-copy:hover,
.hero-promo-banner__offer-copy:focus {
  color: #5EC8F0;
}

.hero-promo-banner__offer-copy.is-copied {
  color: #3ADC77;
}

@media all and (max-width: 991px) {
  .hero-promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.4rem 2rem;
    gap: 1.6rem;
  }

  .hero-promo-banner__title {
    font-size: 2.2rem;
  }

  .hero-promo-banner__cta {
    align-self: center;
    white-space: normal;
  }

  .hero-promo-banner--black-friday {
    padding: 3.2rem 2rem 2.8rem;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__visual {
    width: min(70%, 28rem);
    flex: 0 0 auto;
    max-width: 28rem;
    margin: -2rem auto -1.2rem;
    align-self: center;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__main {
    padding-bottom: 0;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__title {
    font-size: 2.4rem;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__title-accent {
    font-size: 3.2rem;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__cta {
    align-self: center;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__terms {
    left: auto;
    right: auto;
    padding-left: 0;
    max-width: none;
    text-align: center;
    position: relative;
    margin-top: 1.8rem;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__offer,
  .hero-promo-banner__offer {
    flex-basis: auto;
    width: 100%;
    min-width: 0;
    max-width: 28rem;
    margin: 0.8rem auto 0;
  }
}

@media all and (max-width: 575px) {
  .hero-promo-banner--black-friday .hero-promo-banner__visual {
    width: min(80%, 22rem);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__title {
    font-size: 2.2rem;
  }

  .hero-promo-banner--black-friday .hero-promo-banner__title-accent {
    font-size: 2.8rem;
  }

  .hero-promo-banner__offer-amount,
  .hero-promo-banner--black-friday .hero-promo-banner__offer-amount {
    font-size: 4.4rem;
  }
}
