/* ==========================================================================
   TEAM MEMBER PAGE STYLESHEET
   team_member.html only. Loaded after common.css and content.css.
   ========================================================================== */

.team-section {
  text-align: center;
  padding: clamp(30px, 5vw, 50px) clamp(10px, 2vw, 15px);
  margin-top: 50px;
}

.team-section p {
  color: var(--dark);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 800px;
  margin: 0 auto clamp(30px, 3vw, 40px);
}

.team-section a { text-decoration: none; }

.team-section img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

.team-section .card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
}

.team-section .card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.team-section .card:hover h5 { color: var(--primary); }
.team-section .card:hover p:first-of-type { color: var(--secondary); }

.team-section .card .card-img-top {
  filter: brightness(1.1);
  transform: translateZ(0);
}

/* Hover overlay with extra bio info on a team card */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(10px, 2vw, 20px);
  border-radius: 15px;
  transition: opacity 0.3s, visibility 0.3s;
}

.card:hover .card-overlay {
  opacity: 1;
  visibility: visible;
}

.card-overlay img {
  width: 80%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.card-overlay p { margin: 0; }

.card-overlay .extra-info {
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.card-overlay a {
  color: var(--white);
  text-decoration: none;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.card-overlay a:hover { color: var(--secondary); }

@media (max-width: 576px) {
  .team-section { padding: 20px 10px; }
}
