/* Team Modern Section Styles */

.team-modern-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.team-title {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  position: relative;
}

.team-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f4d03f;
}

.team-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.team-member {
  text-align: center;
}

.team-card-modern {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  position: relative;
}

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

.team-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card-modern:hover .team-photo {
  transform: scale(1.1);
}

.team-info {
  padding: 30px 20px;
}

.team-name {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.team-position {
  font-size: 16px;
  color: #f4d03f;
  font-weight: 500;
}

/* Responsive Design */
/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
  
  .team-image-container {
    height: 320px;
  }
}

/* Laptop/Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
  .team-modern-section {
    padding: 70px 0;
  }
  
  .team-title {
    font-size: 38px;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .team-image-container {
    height: 280px;
  }
  
  .team-info {
    padding: 25px 18px;
  }
  
  .team-name {
    font-size: 22px;
  }
  
  .team-position {
    font-size: 15px;
  }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
  .team-modern-section {
    padding: 60px 0;
  }
  
  .team-title {
    font-size: 34px;
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  .team-image-container {
    height: 240px;
  }
  
  .team-info {
    padding: 20px 15px;
  }
  
  .team-name {
    font-size: 18px;
  }
  
  .team-position {
    font-size: 14px;
  }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  .team-modern-section {
    padding: 50px 0;
  }
  
  .team-title {
    font-size: 30px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .team-image-container {
    height: 220px;
  }
  
  .team-info {
    padding: 18px 12px;
  }
  
  .team-name {
    font-size: 16px;
  }
  
  .team-position {
    font-size: 13px;
  }
}

/* Mobile Landscape (480px - 575px) */
@media (max-width: 575px) and (min-width: 480px) {
  .team-modern-section {
    padding: 40px 0;
  }
  
  .team-title {
    font-size: 26px;
  }
  
  .team-subtitle {
    font-size: 16px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .team-image-container {
    height: 200px;
  }
  
  .team-info {
    padding: 15px 10px;
  }
  
  .team-name {
    font-size: 15px;
  }
  
  .team-position {
    font-size: 12px;
  }
}

/* Mobile Portrait (320px - 479px) */
@media (max-width: 479px) {
  .team-modern-section {
    padding: 30px 0;
  }
  
  .team-title {
    font-size: 22px;
  }
  
  .team-subtitle {
    font-size: 14px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .team-image-container {
    height: 250px;
  }
  
  .team-info {
    padding: 20px 15px;
  }
  
  .team-name {
    font-size: 18px;
  }
  
  .team-position {
    font-size: 14px;
  }
}
