.team-section {
  padding: var(--section-padding);
}

.team-section h2 {
  margin-bottom: 48px;
}

/* Leadership grid: 3 + 2 centered */
.team-leadership {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  justify-items: center;
}

/* Center the last row when it has fewer items */
.team-leadership .team-card:nth-child(4),
.team-leadership .team-card:nth-child(5) {
  max-width: 100%;
}

/* Team grid: 4 columns, smaller */
.team-members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.team-card:hover,
.team-card:focus-visible {
  border-color: var(--border-hover);
}

.team-card-photo {
  width: 100%;
  padding: 32px 32px 0;
  background: var(--bg-elevated);
  display: flex;
  justify-content: center;
}

.team-card-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(0.4);
  transition: filter var(--transition-base);
}

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

.team-card:hover .team-card-photo img {
  filter: saturate(0.7);
}

.team-card-info {
  padding: 20px 24px;
}

.team-card-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card-info .title {
  font-size: 14px;
  color: var(--accent-blue);
  font-weight: 500;
}

.team-card-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.team-card-bio p {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.team-card.expanded {
  border-color: var(--border-hover);
}

/* Smaller cards for non-leadership */
.team-members .team-card-info h3 {
  font-size: 16px;
}

@media (max-width: 1199px) {
  .team-leadership { grid-template-columns: repeat(2, 1fr); }
  .team-members { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .team-leadership { grid-template-columns: 1fr; }
  .team-members { grid-template-columns: 1fr; }
}
