/* About us: carried over from the previous Team page so it looks the same. */
/* ── Team page styles ── */
.section-team-hero {
  padding: 40px 20px 24px;
  text-align: center;
}


.team-hero-heading {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
  margin: 16px auto 28px;
  max-width: 960px;
}

.team-hero-sub {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Group photo — border-radius applied directly to img to avoid GPU
   compositing blur that overflow:hidden+border-radius triggers */
.team-group-photo-wrap {
  width: 100%;
  margin: 0;
}

.team-group-photo-wrap picture,
.team-card-photo picture {
  display: block;
  height: 100%;
}

.team-group-photo-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.13);
}

/* Section heading */
.section-team-members {
  padding: 24px 20px 32px;
}

.team-members-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.team-section-label {
  display: none;
}

/* Individual member cards */
.team-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 72px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.team-card:hover {
  box-shadow: 0 12px 48px rgba(39, 0, 187, 0.10);
  transform: translateY(-3px);
}

.team-card:last-child {
  margin-bottom: 0;
}

/* Alternate image side for visual rhythm */
.team-card.reverse {
  grid-template-columns: 1fr 340px;
}

.team-card.reverse .team-card-photo {
  order: 2;
}

.team-card.reverse .team-card-content {
  order: 1;
  padding: 48px 0 48px 56px;
}

.team-card-photo {
  height: 420px;
  overflow: hidden;
  flex-shrink: 0;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-card-content {
  padding: 48px 56px 48px 0;
}

.team-card.reverse .team-card-content {
  padding: 48px 0 48px 56px;
}

.team-card-role {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.team-card-name {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.15;
}

.team-card-bio {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
}

.team-card-bio p {
  margin: 0 0 14px;
}

.team-card-bio p:last-child {
  margin-bottom: 0;
}

/* Bible verse */
.team-verse {
  margin: 48px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 0;
  border: none;
}

.team-verse-text {
  font-family: var(--f-display);
  font-size: 19px;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.team-verse-ref {
  font-family: var(--f-body);
  font-size: 14px;
  font-style: normal;
  color: var(--ink-3);
}


/* ── Mobile responsive ── */
@media screen and (max-width: 860px) {
  .team-card,
  .team-card.reverse {
    grid-template-columns: 1fr;
  }

  /* Stacked cards go full-width, so a fixed pixel height crops a
     different amount of the portrait at every screen size — heads drift
     and chins get cut. A square frame keeps the crop proportional. */
  .team-card-photo {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .team-card.reverse .team-card-photo {
    order: 0;
  }

  .team-card-content,
  .team-card.reverse .team-card-content {
    padding: 36px 32px 36px;
    order: 0;
  }

  .team-group-photo-wrap img {
    height: 220px;
    border-radius: 16px;
  }
}

@media screen and (max-width: 479px) {
  .section-team-hero {
    padding: 32px 16px 16px;
  }

  .team-card-content,
  .team-card.reverse .team-card-content {
    padding: 28px 24px;
  }

  .team-card-name {
    font-size: 1.6rem;
  }

  .section-team-members {
    padding: 0 16px 72px;
  }

  .team-group-photo-wrap {
    margin-bottom: 60px;
  }
}
  
.section-team-members{padding-bottom:96px}
.section-team-hero{padding-top:64px}

/* Photo links to the person's LinkedIn; a LinkedIn badge appears on hover (always shown on touch screens). */
.team-photo-link { position: relative; display: block; height: 100%; overflow: hidden; }
.team-photo-link img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.team-photo-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,11,36,0) 55%, rgba(14,11,36,.45)); opacity: 0; transition: opacity .25s; }
.li-badge { position: absolute; right: 16px; bottom: 16px; z-index: 1; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(14,11,36,.55); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.li-badge svg { width: 22px; height: 22px; fill: #0a66c2; }
.team-photo-link:hover img, .team-photo-link:focus-visible img { transform: scale(1.03); }
.team-photo-link:hover::after, .team-photo-link:focus-visible::after { opacity: 1; }
.team-photo-link:hover .li-badge, .team-photo-link:focus-visible .li-badge { opacity: 1; transform: none; }
.team-photo-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
@media (hover: none) { .li-badge { opacity: 1; transform: none; width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .team-photo-link img, .li-badge { transition: none; } }
