/* Unified Team Card Component */
/* Used on homepage and team page for consistent styling */

/* Base Team Card */
.team-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Team Card Photo */
.team-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Team Card Name */
.team-card__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e2a4a;
  margin-bottom: 0.5rem;
}

/* Team Card Role */
.team-card__role {
  font-size: 1rem;
  color: #667eea;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Team Card Bio/Description */
.team-card__bio {
  font-size: 0.95rem;
  color: #4A6FA5;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Social Links Container */
.team-card__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

/* Social Link Styling */
.team-card__social-link {
  color: #667eea;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.team-card__social-link:hover {
  color: #764ba2;
  transform: translateY(-2px);
  text-decoration: none;
}

.team-card__social-link i {
  font-size: 1.1rem;
}

/* Grid Layout for Team Section */
.team-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .team-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .team-section__grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 1.5rem;
  }

  .team-card__photo {
    width: 140px;
    height: 140px;
  }

  .team-card__name {
    font-size: 1.2rem;
  }
}
