/* AFEM home sections polish: compact CTA spacing and readable counter heading. */

/* The page-builder row already has its own padding. Keep the CTA compact and
   avoid stacking it with the template's legacy .rs-cta padding. */
.sp-page-builder .page-content #rs-cta {
  padding: 42px 0 !important;
}

#rs-cta .row {
  align-items: center;
  row-gap: 14px;
}

#rs-cta .cta-content {
  line-height: 1.25;
}

#rs-cta .cta-content small {
  display: inline-block;
  margin-top: 8px;
  line-height: 1.45;
}

/* The counter sits on a dark photo/overlay; keep the supporting copy legible. */
#rs-counter .sppb-section-title .sppb-title-subheading {
  color: #fff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

/* The legacy template pulls this section 127px into the previous intro row.
   At desktop widths that makes the two sections visibly overlap; keep the
   cards in normal flow while preserving the mobile template override below. */
@media only screen and (min-width: 992px) {
  .sp-page-builder .page-content #section-id-1512975898299.our-history {
    margin-top: 0 !important;
  }
}

@media only screen and (max-width: 991px) {
  .sp-page-builder .page-content #rs-cta {
    padding: 34px 0 !important;
  }

  #rs-cta .cta-content {
    margin-right: 0 !important;
    text-align: center;
  }

  #rs-cta .col-md-4 {
    justify-content: center !important;
  }
}

@media only screen and (max-width: 575px) {
  .sp-page-builder .page-content #rs-cta {
    padding: 30px 0 !important;
  }
}
