/* Team Section Styles */
.team-section {
  padding: 80px 20px;
  background-color: #f9fbfd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header h2 span {
  color: #3498db;
}

.section-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #3498db, #2ecc71);
  margin: 0 auto;
  border-radius: 2px;
}

/* Team Cards */
.team-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-card:hover .image-overlay {
  opacity: 1;
}

.card-content {
  padding: 25px;
  text-align: center;
}

.card-content h3 {
  color: #2c3e50;
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.position {
  color: #3498db;
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.qualifications {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.qualifications span {
  background-color: #f1f8fe;
  color: #3498db;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.bio {
  color: #7f8c8d;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  color: white;
  background-color: #3498db;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-section {
    padding: 60px 15px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .team-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .card-image {
    height: 240px;
  }
}