/* Component: service-sections */

/*
 * One full-bleed band per section. This component renders several bands from a
 * single module, so it owns what a BB row would normally do for each one:
 * background, vertical padding, and (via fl-row-fixed-width fl-row-content in the
 * markup) centring at the site's row width. The inner element adds the 20px side
 * gutter that the module margins give hand-built rows.
 */

.cbf-service-section-bg-white {
  background-color: #ffffff;
}

.cbf-service-section-bg-grey {
  background-color: #f2f2f2;
}

.cbf-service-section-inner {
  padding-left: 20px;
  padding-right: 20px;
}

/* Vertical padding per section type, matching the hand-built rows these replace. */

.cbf-service-section-heading-slider,
.cbf-service-section-feature-benefits {
  padding-top: 80px;
  padding-bottom: 80px;
}

.cbf-service-section-image-content-row {
  padding-top: 40px;
  padding-bottom: 40px;
}

.cbf-service-section-testimonial-quote {
  padding-top: 90px;
  padding-bottom: 90px;
}

/*
 * A heading slider directly followed by a features block shares one band (they
 * were a single row): no padding between the two.
 */
.cbf-service-section-heading-slider:has(+ .cbf-service-section-feature-benefits) {
  padding-bottom: 0;
}

.cbf-service-section-heading-slider + .cbf-service-section-feature-benefits {
  padding-top: 0;
}
