/* Team Page Styles */

.team-hero-banner {
  background: linear-gradient(90deg, #D81324, #B31020, #D81324);
  background-size: 200% auto;
  color: white;
  padding: 15px 30px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  animation: gradient 3s ease infinite;
  box-shadow: 0 4px 15px rgba(216, 19, 36, 0.3);
  margin-bottom: 0;
}

@keyframes gradient {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.team-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  padding: 60px 0;
  min-height: 100vh;
}

.team-header {
  text-align: center;
  margin-bottom: 50px;
}

.team-subtitle {
  color: #D81324;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.team-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.team-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #D81324, #B31020);
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
}

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

.team-image-container {
  position: relative;
  overflow: hidden;
  height: 320px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.team-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(216, 19, 36, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

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

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

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

.team-info {
  padding: 25px 20px;
  text-align: center;
  background: white;
  position: relative;
}

.team-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #D81324, #B31020);
  border-radius: 2px;
}

.team-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 15px 0 8px 0;
}

.team-role {
  font-size: 0.95rem;
  color: #D81324;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-section {
  background: linear-gradient(135deg, #D81324 0%, #B31020 100%);
  color: white;
  padding: 35px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(216, 19, 36, 0.4);
  margin: 60px auto 40px auto;
  max-width: 800px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(216, 19, 36, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(216, 19, 36, 0.6);
  }
}

.contact-section h2 {
  font-size: 2rem;
  margin: 0 0 10px 0;
  font-weight: 700;
}

.contact-phone {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-phone:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-hero-banner {
    font-size: 1.2rem;
    padding: 12px 20px;
  }

  .team-title {
    font-size: 2rem;
  }

  .team-subtitle {
    font-size: 0.95rem;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .team-image-container {
    height: 280px;
  }

  .team-name {
    font-size: 1.1rem;
  }

  .team-role {
    font-size: 0.85rem;
  }

  .contact-section {
    padding: 25px;
    margin: 40px 20px;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-phone {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
