.team-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.team-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
}
.team-card:hover .hover-overlay {
  opacity: 1;
}
.team-name {
  font-weight: bold;
}
.team-role {
  color: #555;
  font-size: 14px;
}
.team-card img {
  width: 100%;
  max-height: 320px; /* keeps same max height */
  object-fit: contain; /* ensures full image is visible */
  background: #fff; /* fills empty space if aspect ratios differ */
  padding: 5px; /* optional, adds spacing */
  border-radius: 8px;
}
