/* ==========================================================================
   Founder Section  —  Figma node 1:79  |  Canvas: 1440 × 1391 px
   Colors: bg #21254a · white #ffffff · blue accent #59acf8
   ========================================================================== */

/* ---- Section wrapper ---- */
.bs-founder {
  background-color: #21254a;
  padding:
    clamp(60px, 11.25vw, 162px)  /* top    162 / 1440 × 100 */
    clamp(16px, 2.85vw, 41px)    /* sides   41 / 1440 × 100 */
    clamp(60px, 8.33vw, 120px);  /* bottom (estimated) */
}

/* ---- Centred inner container ---- */
.bs-founder__inner {
  max-width: 1357px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4.38vw, 63px); /* 63 / 1440 × 100 */
}

/* ---- Main headline ---- */
/* Container: sets default color (white) and shared properties */
.bs-founder__headline {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  line-height: 0.871; /* 87.12 % from Figma */
  max-width: clamp(300px, 71.1vw, 1024px);
  margin: 0;
}

/* "BUILT BY A" — white, 79 px */
.bs-founder__headline-line1 {
  display: block;
  font-size: clamp(24px, 5.49vw, 79px); /* 79 / 1440 × 100 */
}

/* "PHYSICIAN" — blue accent, 98 px */
.bs-founder__headline-highlight {
  color: #59acf8;
  font-size: clamp(30px, 6.81vw, 98px); /* 98 / 1440 × 100 */
}

/* "WHO HAS BEEN THERE" — white, 88 px */
.bs-founder__headline-line2 {
  display: block;
  font-size: clamp(28px, 6.11vw, 88px); /* 88 / 1440 × 100 */
}

/* ---- "OUR FOUNDERS" label ---- */
.bs-founder__label {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
  text-align: center;
  color: #59acf8;
  font-size: clamp(28px, 5.49vw, 79px); /* 79 / 1440 × 100 */
  line-height: normal;
  margin: 0;
}

/* ---- Founder card (photo + name) ---- */
.bs-founder__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 0.83vw, 12px); /* 12 / 1440 × 100 */
}

.bs-founder__photo-wrap {
  width: clamp(140px, 20.56vw, 296px);  /* 296 / 1440 × 100 */
  height: clamp(140px, 20.56vw, 296px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bs-founder__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bs-founder__name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: clamp(20px, 2.71vw, 39px); /* 39 / 1440 × 100 */
  color: #ffffff;
  text-align: center;
  line-height: normal;
  margin: 0;
}

/* ---- Bio / body paragraph ---- */
.bs-founder__body {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(16px, 2.5vw, 36px); /* 36 / 1440 × 100 */
  color: #ffffff;
  text-align: center;
  max-width: clamp(300px, 85.21vw, 1227px);
  line-height: 1.4;
  margin: 0;
}

/* rich_text outputs <p> tags — strip default margin inside .bs-founder__body */
.bs-founder__body p {
  margin: 0;
}

/* ==============================================
   TABLET  (≤ 1023 px)
   ============================================== */
@media (max-width: 1023px) {
  .bs-founder__headline {
    line-height: 1;
  }

  .bs-founder__headline-line1,
  .bs-founder__headline-line2 {
    display: block;
  }
}

/* ==============================================
   MOBILE  (≤ 599 px)
   ============================================== */
@media (max-width: 599px) {
  .bs-founder {
    padding: 48px 20px 64px;
  }

  .bs-founder__inner {
    gap: 28px;
  }

  .bs-founder__headline {
    line-height: 1.05;
    max-width: 100%;
  }

  .bs-founder__label {
    font-size: clamp(24px, 7vw, 42px);
  }

  .bs-founder__body {
    font-size: clamp(15px, 4.5vw, 20px);
    line-height: 1.5;
    max-width: 100%;
  }
}
