/**
 * Theme-side styling for theme-registered Divi modules:
 * - [WP] Steps Text (et_pb_wp_steps_text)
 * - [WP] Testimonial (et_pb_wp_testimonial)
 *
 * Kept in theme so theme-only deploy contains the full feature set.
 */

/* ---------------------------------------------------------------------------
 * CTA underline hover (fixes SCSS nesting issue by using valid CSS)
 * Underline always matches current text color.
 * --------------------------------------------------------------------------- */
.button-cta:hover {
  text-decoration: underline !important;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor !important;
}

/* ---------------------------------------------------------------------------
 * [WP] Steps Text
 * --------------------------------------------------------------------------- */
.et_pb_wp_steps_text .wp-steps-text {
  display: grid;
  grid-template-columns: minmax(80px, 100px) 1fr;
  column-gap: 32px;
  align-items: start;
}

.et_pb_wp_steps_text .wp-steps-text__step {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  color: #fff;
  font-size: 28px;
  line-height: 36px;
}

.et_pb_wp_steps_text .wp-steps-text__content {
  color: #fff;
  font-size: 16px;
  line-height: 18px;
}

.et_pb_wp_steps_text .wp-steps-text__content p {
  margin: 0;
}

@media (max-width: 767px) {
  .et_pb_wp_steps_text .wp-steps-text {
    grid-template-columns: minmax(80px, 100px) 1fr;
    column-gap: 24px;
  }
}

/* ---------------------------------------------------------------------------
 * [WP] Testimonial
 * --------------------------------------------------------------------------- */
.et_pb_wp_testimonial .wp-testimonial {
  background: #FDFBF4;
  border-radius: 12px;
  padding: 24px;
}

.et_pb_wp_testimonial .wp-testimonial__stars {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  font-family: "Open Sans", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: #E7D596;
}

.et_pb_wp_testimonial .wp-testimonial__star {
  display: inline-block;
}

/* Half star: render ★ but clip to half width */
.et_pb_wp_testimonial .wp-testimonial__star--half {
  width: 0.55em;
  overflow: hidden;
  vertical-align: bottom;
}

.et_pb_wp_testimonial .wp-testimonial__star--half > span {
  display: inline-block;
}

.et_pb_wp_testimonial .wp-testimonial__name,
.et_pb_wp_testimonial .wp-testimonial__title {
  font-family: "Open Sans", sans-serif;
  color: #0D304A;
  font-weight: 700;
}

.et_pb_wp_testimonial .wp-testimonial__name {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 24px;
}

.et_pb_wp_testimonial .wp-testimonial__title {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 24px;
}

.et_pb_wp_testimonial .wp-testimonial__name em,
.et_pb_wp_testimonial .wp-testimonial__title em {
  font-style: italic;
}

.et_pb_wp_testimonial .wp-testimonial__quote {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 18px;
  align-items: start;
}

.et_pb_wp_testimonial .wp-testimonial__quote-icon {
  line-height: 0;
}

.et_pb_wp_testimonial .wp-testimonial__quote-icon svg {
  width: 24px;
  height: auto;
  display: block;
}

.et_pb_wp_testimonial .wp-testimonial__quote-text {
  font-family: "Frank Ruhl Libre", serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #0D304A;
}

.et_pb_wp_testimonial .wp-testimonial__quote-text p {
  margin: 0;
}


