.md-content .team_list,
.team_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team_list_item {
  box-sizing: border-box;
  padding: 10px;
  background: #ffffff;
  border-radius: 12px;

  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.team_list_item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

.team_list_pic {
  /* fixed box for consistent alignment */
  width: 112px;
  min-width: 112px;
  max-width: 112px;

  height: 150px;
  min-height: 150px;
  max-height: 150px;

  box-sizing: border-box;
  border-radius: 0;
  display: block;
  object-fit: cover;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.04);
}

.team_list_content {
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.team_list_name {
  font-size: 1.05rem;
}

.team_list_interests {
  font-size: 0.6rem;
  color: #666666;
  width: 100%;

  /* white-space: nowrap; */
  /* overflow: hidden; */
  text-overflow: ellipsis;
  display: block;
}

.team_list_email {
  font-size: 0.7rem;
  width: 100%;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* Person Profile Styles */
.person_profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  gap: 2rem;
}

.profile_avatar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile_image {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.profile_info {
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.profile_name {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #1e293b;
}

.profile_role,
.profile_email,
.profile_interests,
.profile_groups {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  line-height: 1.6;
  color: #475569;
}

.profile_role strong,
.profile_email strong,
.profile_interests strong,
.profile_groups strong {
  color: #334155;
  font-weight: 600;
}

.profile_email a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.profile_email a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Responsive design for person profile */
@media (max-width: 768px) {
  .person_profile {
    margin: 1rem;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .profile_image {
    width: 160px;
    height: 200px;
  }

  .profile_name {
    font-size: 2rem;
  }

  .profile_role,
  .profile_email,
  .profile_interests,
  .profile_groups {
    font-size: 1rem;
  }
}
