/* Container holding the cards */
.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* ⬅ left aligned */
  align-items: stretch;
  gap: 1.2rem;
}

/* Individual card */
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;      /* ⬅ centers image + text horizontally */
  justify-content: flex-start;
  text-align: center;

  flex: 1 1 260px;
  max-width: 300px;

  padding: 1rem;
  box-sizing: border-box;
}

.profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;        /* ⬅ same shape for all images */
  border-radius: 50%;
  margin: 0 auto 0.8rem auto;
  display: block;
}

.role-affiliation {
  text-align: center;
  margin: 0.4rem 0 0.6rem 0;
  line-height: 1.3;
}


.expandable-content {
  display: none;
  text-align: left;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.expand-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.team-card p a {
  text-decoration: none;
  font-weight: 500;
}

.team-card p a:not(:last-child)::after {
  content: " | ";
}


/* Responsive: adapt to tablets/phones */
@media (max-width: 768px) {
  .team-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .team-card {
    width: 100%;
  }
}
