/* cs-facilitators — centered heading + facilitator cards (name-overlay photo
   above a soft-blue caption box).
   All rem values follow BB Theme's html { font-size: 10px } base. */

/* Strip BB's default row chrome. */
.fl-row-content-wrap:has(.cs-facilitators) {
  padding-block: 0;
}
.fl-module-content:has(.cs-facilitators) {
  margin-block: 0;
}

.cs-facilitators {
  position: relative;
  padding-block: var(--cs-space-2xl);
  font-family: var(--cs-font-body);
  color: var(--cs-ink);
}

.cs-facilitators__inner {
  position: relative;
  z-index: 1;
  max-width: var(--cs-container);
  margin: 0 auto;
  padding-inline: var(--cs-gutter);
}

/* Doubled classes + font-style so BB Global h2 rules lose. */
.cs-facilitators .cs-facilitators__heading {
  margin: 0 0 var(--cs-space-xl);
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: clamp(4rem, 4vw + 1rem, 6.4rem); /* → 64px */
  font-style: normal;
  line-height: 1.212;
  letter-spacing: var(--cs-tracking-tight);
  color: var(--cs-ink);
  text-align: center;
  text-wrap: balance;
}

.cs-facilitators .cs-facilitators__heading .cs-facilitators__heading-accent {
  color: var(--cs-orange);
}

/* ---------- Cards ---------- */
.cs-facilitators__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* equal-height cards so captions can match */
  gap: 4rem;
}

.cs-facilitators__card {
  width: 33.1rem; /* 331px */
  max-width: 100%;
  display: flex;
  flex-direction: column;
  /* Same gap between photo and caption as between the cards themselves */
  gap: 4rem;
}

.cs-facilitators__photo {
  position: relative;
  aspect-ratio: 342 / 428;
  border-radius: 4.9rem; /* 49px */
  overflow: hidden;
}

.cs-facilitators__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-facilitators__nameplate {
  position: absolute;
  top: 2.4rem;
  left: 2.4rem;
  display: flex;
  flex-direction: column;
  color: var(--cs-white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.cs-facilitators__name {
  font-family: var(--cs-font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.2;
}

.cs-facilitators__credential {
  font-family: var(--cs-font-display);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Soft-blue caption box — flexes to fill the card so both boxes match */
.cs-facilitators__caption {
  background: #93b4dd;
  border-radius: 2.8rem; /* 28px */
  padding: 2.4rem 2.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--cs-font-display);
  font-weight: 500;
  font-size: 1.8rem; /* 18px */
  line-height: 1.4;
  color: var(--cs-white);
  text-align: center;
  text-transform: none;
}

.cs-facilitators__caption p {
  margin: 0 0 1.2rem;
}
.cs-facilitators__caption p:last-child {
  margin-bottom: 0;
}

/* ---------- Card CTA — "Read More" to the facilitator's bio ----------
   Same pill geometry as cs-team-carousel's card CTA, which is the other place
   a team member links out to their bio, but in --cs-blue-dark rather than
   orange. It sits inside the caption box so the card keeps its two-part
   photo/box geometry and the boxes still stretch to equal height; `align-self`
   stops it filling the box width the way a flex child otherwise would.

   White on #1B5386 is 7.99:1, and the pill reads 3.73:1 against the #93B4DD
   caption box behind it — over the 3:1 a UI component needs to stay visible
   against its own background. */
.cs-facilitators__caption-text + .cs-facilitators__cta {
  margin-top: var(--cs-space-md);
}

.cs-facilitators .cs-facilitators__cta,
.cs-facilitators .cs-facilitators__cta:link,
.cs-facilitators .cs-facilitators__cta:visited {
  align-self: center;
  display: inline-block;
  background: var(--cs-blue-dark);
  border: 1px solid var(--cs-glass-border);
  color: var(--cs-white);
  font-family: var(--cs-font-display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.212;
  letter-spacing: var(--cs-tracking-tight);
  text-decoration: none;
  text-align: center;
  padding: 1.3rem 2.8rem; /* 46px tall, matching the carousel CTA */
  border-radius: var(--cs-radius-pill);
  transition: filter 250ms ease-in-out, box-shadow 250ms ease-in-out, transform 250ms ease-in-out;
}

.cs-facilitators .cs-facilitators__cta.cs-facilitators__cta:hover,
.cs-facilitators .cs-facilitators__cta.cs-facilitators__cta:focus-visible {
  background: var(--cs-blue-dark);
  color: var(--cs-white);
  text-decoration: none;
  filter: brightness(1.12);
  box-shadow: 0 0.8rem 2rem -0.8rem rgba(27, 83, 134, 0.7);
  transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .cs-facilitators .cs-facilitators__cta.cs-facilitators__cta:hover,
  .cs-facilitators .cs-facilitators__cta.cs-facilitators__cta:focus-visible {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .cs-facilitators {
    padding-block: var(--cs-space-section-sm);
  }
}
