/*************************************
 * Leadership
 ************************************/

.leadership {
  background: var(--light-grey);
  padding-top: 3rem;
  padding-bottom: 0;
}

.leadership-title {
  margin: 0 0 40px;
}

.leader-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0 auto;
}

.leader-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(30, 37, 104, 0.08);
}

/* Photo container — same approach as .archive-cell .post-thumbnail in
   content-archive.php: a slightly larger red background div sits behind the
   image, both clipped with the same circle so the red shows as a thin ring. */
.leader-photo {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

/* Mobile: simple image with a red accent border on top, mirroring
   .post-thumbnail img on small viewports in style.css. */
.leader-photo-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 4px solid var(--red);
}

.leader-photo-bg {
  display: none;
}

/* Text side */
.leader-text {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leader-name {
  font-weight: 600;
  font-family: 'Gotham', sans-serif;
  text-transform: none;
  color: var(--blue);
  font-size: 1.8em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.leader-bio {
  color: var(--blue);
  opacity: 1;
  max-width: none;
}

.leader-bio p {
  margin: 0 0 12px;
}
.leader-bio p:last-child {
  margin-bottom: 0;
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .leadership-title {
    margin-bottom: 60px;
  }

  .leader-card {
    grid-template-columns: minmax(380px, 30%) minmax(0, 1fr);
    align-items: stretch;
  }

  /* Photo column */
  .leader-photo {
    min-height: 0;
    overflow: visible;
    border-radius: 0;
  }

  /* Odd cards: photo on the LEFT, text on the right — circle sits to the
     left of the image area so the visible curve faces the text. */
  .leader-photo-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: calc(100% + 18px);
    clip-path: circle(70% at 30% center);
    background: var(--red);
    z-index: 1;
  }

  .leader-photo-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    clip-path: circle(70% at 30% center);
    z-index: 2;
    border-top: 0;
  }

  /* Alternating layout: even cards put photo on the right */
  .leader-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 30%);
  }
  .leader-card:nth-child(even) .leader-photo {
    order: 2;
  }
  .leader-card:nth-child(even) .leader-photo-bg,
  .leader-card:nth-child(even) .leader-photo-img {
    clip-path: circle(70% at 70% center);
  }
  .leader-card:nth-child(even) .leader-photo-bg {
    background: #008bd2;
    right: 0;
    left: auto;
  }

  .leader-text {
    padding: clamp(48px, 6vw, 92px) clamp(44px, 6vw, 88px);
  }
}

/* Large and up */
@media screen and (min-width: 64em) {
  .leader-cards {
    gap: 36px;
  }
}

/* ---- Testimonial (appended to leadership section) ---- */

.leadership-testimonial {
  margin-top: 50px;
  padding: 60px 24px;
  background: linear-gradient(180deg, var(--light-grey) 0%, #eaf2f8 25%, #cfe4f4 60%, #b3d5ed 100%);
}

.leadership-testimonial-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
}

.leadership-testimonial .quote-mark {
  color: #1e2568;
  opacity: 0.12;
}
.leadership-testimonial .quote-mark.open {
  top: -28px;
  left: 0;
}
.leadership-testimonial .quote-mark.close {
  bottom: -180px;
  right: 0;
}

.leadership-testimonial-text {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1.5;
  color: var(--blue);
  margin: 0 0 16px;
}

.leadership-testimonial-cite {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--blue);
  opacity: 0.85;
  font-style: normal;
  font-size: 0.9em;
}

/* Medium and up */
@media screen and (min-width: 50em) {
  .leadership-testimonial {
    margin-top: 70px;
    padding: 190px 60px;
  }
  .leadership-testimonial-inner {
    padding: 0 60px;
  }
  .leadership-testimonial .quote-mark.open {
    top: -64px;
    left: 0;
  }
  .leadership-testimonial .quote-mark.close {
    bottom: -258px;
    right: 0;
  }
  .leadership-testimonial-text {
    font-size: 1.8em;
  }
  .leadership-testimonial-cite {
    font-size: 0.95em;
  }
}
