/* TEAM MEMBER CARD COMPONENT STYLES */

.team-member-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
  align-items: stretch;
  background: #fff;
  border-radius: 15px;
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(34, 102, 51, 0.13);
}
.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(35, 42, 39, 0.18);
}
.team-member-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: var(--tertiary-color);
}
.team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.3s ease;
}
.team-member-card:hover .team-member-image img {
  transform: scale(1.05);
}
.team-member-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  height: auto;
}
.team-member-content-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}
.team-member-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-family: "Cormorant", serif;
}
.team-member-role {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-family: "Work Sans", sans-serif;
}
.team-member-period {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  font-family: "Work Sans", sans-serif;
}
.team-member-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dark-color);
  margin-bottom: 0rem;
  font-family: "Work Sans", sans-serif;
}
.team-member-contact {
  border-top: 1px solid rgba(34, 102, 51, 0.2);
  padding-top: 1rem;
  margin-top: auto;
  width: 100%;
}
.team-member-contact hr {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(34, 102, 51, 0.2);
}
.team-member-contact p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-family: "Work Sans", sans-serif;
}
.team-member-contact a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.team-member-contact a:hover {
  color: var(--dark-color);
}
.team-member-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
  width: 100%;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.social-link:hover {
  color: var(--dark-color);
}
.social-link i {
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .team-member-card {
    margin-bottom: 2rem;
  }
  .team-member-social {
    justify-content: center;
  }
}
@media (max-width: 576px) {
  .team-member-info {
    padding: 1.5rem;
  }
  .team-member-content-fixed {
    min-height: unset;
    max-height: unset;
    margin-bottom: 0.7rem;
  }
  .team-member-info {
    padding-bottom: 1.2rem;
  }
}
