/* =====================================================
   TEAM PAGE — team.css
   ===================================================== */

/* ── Shared layout ──────────────────────────────────── */
.team-container {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero ───────────────────────────────────────────── */
.team-hero {
  display: flex;
  align-items: stretch;
}

.team-hero-text {
  flex: 0 0 50%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8% 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-hero-heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--senseye-white);
  margin: 0 0 20px;
}

.team-hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--senseye-text);
  margin: 0 0 16px;
}

.team-hero-text p:last-child {
  margin-bottom: 0;
}

.team-hero-text strong {
  color: var(--senseye-teal);
  font-weight: 600;
}

.team-hero-img {
  flex: 0 0 50%;
  min-width: 0;
  min-height: 0;
  background-image: url('/wp-content/uploads/2021/09/about-team.jpeg');
  background-size: cover;
  background-position: center;
}

/* ── Section headings ───────────────────────────────── */
.team-section-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--senseye-white);
  text-align: center;
  margin: 0 0 48px;
}

/* ── Leadership Team ────────────────────────────────── */
.team-leadership {
  padding: 70px 0 60px;
}

/* ── Medical Advisory Board ─────────────────────────── */
.team-advisory {
  padding: 60px 0 80px;
}

/* ── Person grid ────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

/* Last card alone in a row spans full width and centers itself */
.team-grid .team-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 30px);
  margin: 0 auto;
}

/* ── Person card ────────────────────────────────────── */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin-bottom: 20px;
}

.team-card-body {
  width: 100%;
}

.team-card-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--senseye-white);
  margin: 0 0 2px;
}

.team-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--senseye-teal);
  margin: 0 0 12px;
}

.team-card-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--senseye-text);
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .team-container {
    padding: 0 24px;
  }

  .team-hero {
    flex-direction: column;
  }

  .team-hero-text {
    flex: none;
    padding: 40px 24px;
  }

  .team-hero-heading {
    font-size: 28px;
  }

  .team-hero-img {
    flex: none;
    height: 260px;
  }

  .team-leadership {
    padding: 40px 0 32px;
  }

  .team-advisory {
    padding: 32px 0 60px;
  }

  .team-section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-card-photo {
    width: 120px;
    height: 120px;
  }
}
