/*
 * Shared styles for the content pages (/how-it-works, /teach, /learn-for-free).
 * These pages reuse the Help & FAQ classes (help-faq.css) for the title, sections, steps and FAQs,
 * so this file only adds what is new: the lead text, link cards and the call-to-action box.
 */

.content-page .help-faq-page__intro {
  margin-bottom: 2.5rem;
}

.content-page .help-faq-page__prose + .help-faq-page__prose {
  margin-top: 1rem;
}

.content-page .help-faq-page__prose a,
.content-page .help-faq-page__highlight a,
.content-page .help-faq-page__bullets a,
.content-page .help-faq-page__steps a {
  color: var(--color-primary, #f76922);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page .help-faq-page__highlight + .help-faq-page__prose,
.content-page .help-faq-page__prose + .help-faq-page__highlight {
  margin-top: 1rem;
}

/* Cards that link on to a deeper page */
.content-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.content-links__item {
  display: block;
  height: 100%;
  padding: 1rem 1.1rem;
  box-sizing: border-box;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.04);
  color: #130f19;
  text-decoration: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.content-links__item:hover,
.content-links__item:focus-visible {
  border-color: rgba(247, 105, 34, 0.45);
  box-shadow: 0 8px 24px rgba(19, 15, 25, 0.08);
  text-decoration: none;
}

.content-links__title {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #130f19;
}

.content-links__text {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #646464;
}

/* Sign-up call to action (same look as the contact box on the Help & FAQ page) */
.content-cta {
  margin-top: 2.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(247, 105, 34, 0.08) 0%, rgba(247, 105, 34, 0.03) 100%);
  border: 1px solid rgba(247, 105, 34, 0.18);
}

.content-cta__title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  color: #130f19;
}

.content-cta__text {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #646464;
}

.content-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  align-items: center;
}

.content-cta__button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  background: #f94e10;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.content-cta__button:hover,
.content-cta__button:focus-visible {
  background: #d9550f;
  color: #fff;
  text-decoration: none;
}

.content-cta__link {
  color: var(--color-primary, #f76922);
  font-weight: 600;
  text-decoration: none;
}

.content-cta__link:hover,
.content-cta__link:focus-visible {
  text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Visual layout for /how-it-works, /teach and /learn-for-free:
 * wide layout, hero with illustration, numbered step cards, feature cards,
 * text-and-illustration sections and a bolder call to action.
 * ------------------------------------------------------------------ */

.help-faq-page.content-page {
  max-width: 1040px;
}

/* Hero */
.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 2rem;
  margin: 0 0 3.5rem;
  padding: 2.5rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff3ec 0%, #fff 55%, #eef3fb 100%);
  border: 1px solid rgba(247, 105, 34, 0.15);
  box-shadow: 0 10px 40px rgba(19, 15, 25, 0.06);
}

.content-hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  background: rgba(247, 105, 34, 0.12);
  color: #d9550f;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-page .content-hero .help-faq-page__title {
  margin: 0 0 1rem !important;
  text-align: left;
  font-size: clamp(1.9rem, 4vw, 2.6rem) !important;
  line-height: 1.15 !important;
}

.content-page .content-hero .help-faq-page__intro {
  margin: 0 0 1.75rem;
  max-width: none;
  text-align: left;
  font-size: 1.1rem;
}

.content-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.content-hero__button {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 30px;
  background: #f94e10;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(249, 78, 16, 0.3);
}

.content-hero__button:hover,
.content-hero__button:focus-visible {
  background: #d9550f;
  color: #fff;
  text-decoration: none;
}

.content-hero__link {
  color: #130f19;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f94e10;
  text-underline-offset: 4px;
}

.content-hero__art {
  text-align: center;
}

.content-hero__art img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

/* Section headings with an accent bar */
.content-page .help-faq-page__section-title {
  position: relative;
  padding: 0 0 0 1rem !important;
  font-size: 1.6rem;
}

.content-page .help-faq-page__section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 5px;
  border-radius: 3px;
  background: #f94e10;
}

.content-page .help-faq-page__section {
  margin-bottom: 3.5rem;
}

/* Steps become numbered cards */
.content-page .help-faq-page__highlight {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.content-page .help-faq-page__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
  counter-reset: content-step;
}

.content-page .help-faq-page__steps li {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.15rem 1.1rem 4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.05);
  counter-increment: content-step;
  line-height: 1.55;
}

.content-page .help-faq-page__steps li::before {
  content: counter(content-step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #f94e10;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 2.2rem;
  text-align: center;
}

.content-page .help-faq-page__steps li strong {
  color: #130f19;
}

/* Bullet lists become feature cards */
.content-page .help-faq-page__bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.content-page .help-faq-page__bullets li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(19, 15, 25, 0.08);
  border-top: 4px solid #f94e10;
  box-shadow: 0 4px 16px rgba(19, 15, 25, 0.05);
  line-height: 1.55;
}

.content-page .help-faq-page__bullets li strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #130f19;
}

/* Short lists read better as small pills */
.content-page .help-faq-page__bullets--compact {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
}

.content-page .help-faq-page__bullets--compact li {
  padding: 0.85rem 1rem;
  border-top-width: 1px;
  border-left: 4px solid #f94e10;
  border-radius: 12px;
  background: #fffaf7;
  box-shadow: none;
}

/* Text beside an illustration */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  background: #f7f9fd;
  border: 1px solid rgba(19, 15, 25, 0.06);
}

.content-split__art {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
}

.content-split .help-faq-page__bullets {
  grid-template-columns: 1fr;
}

.content-split .help-faq-page__bullets--compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

/* FAQ cards */
.content-page .help-faq-item {
  border-radius: 14px;
}

/* Call to action */
.content-page .content-cta {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #f94e10 0%, #ff8a3d 100%);
  box-shadow: 0 12px 36px rgba(249, 78, 16, 0.25);
}

.content-page .content-cta__title {
  font-size: 1.8rem;
  color: #fff;
}

.content-page .content-cta__text {
  color: rgba(255, 255, 255, 0.92);
}

.content-page .content-cta__button {
  background: #fff;
  color: #d9440b;
  box-shadow: 0 6px 18px rgba(19, 15, 25, 0.18);
}

.content-page .content-cta__button:hover,
.content-page .content-cta__button:focus-visible {
  background: #fff3ec;
  color: #b93a08;
}

.content-page .content-cta__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .content-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
    text-align: center;
  }

  .content-hero__art {
    order: -1;
  }

  .content-hero__art img {
    max-width: 200px;
  }

  .content-page .content-hero .help-faq-page__title,
  .content-page .content-hero .help-faq-page__intro {
    text-align: center;
  }

  .content-hero__actions {
    justify-content: center;
  }

  .content-split {
    grid-template-columns: 1fr;
    padding: 1.15rem;
  }

  .content-split__art {
    max-width: 200px;
    order: -1;
  }

  .content-page .help-faq-page__steps,
  .content-page .help-faq-page__bullets {
    grid-template-columns: 1fr;
  }
}
