.team-page *,
.team-page *::before,
.team-page *::after {
  box-sizing: border-box;
}

.team-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.5;
  color: #212529;
  background-color: #f8f3f3;
  min-height: 100vh;
}

/* 2. Team Grid Container */
.team-page .team-section > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 3. Section Heading (optional) */
.team-page .team-header {
  display: none;
}

.team-page .team-header h2 {
  font-family: 'PT Serif', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #152237;
  margin-bottom: 0.5rem;
}

.team-page .team-header p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #434e5f;
}

/* 4. Team Grid */
.team-page .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;

  /* This makes all grid items the same height per row */
  align-items: stretch;
}

/* 5. Team Card */
.team-page .team-card {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%; 
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-page .team-card:hover {
  transform: none !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

/* 6. Card Image */
.team-page .card-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.team-page .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 7. Card Body */
.team-page .card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1; /* This alone is enough */
}

.team-page .card-name {
  font-family: 'PT Serif', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #152237;
  line-height: 1.3;
}

.team-page .card-role {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.team-page .card-school {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #434e5f;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
