/* Team Section */
.team {
  padding: 5rem 0;
  background-color: var(--white);
}

.team .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
  gap: 2.5rem;
  margin-top: 3rem;
  justify-content: center;
}

.team-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 100%;
  width: 100%;
}

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

.team-img {
  height: 300px;
  background-size: cover;
  background-position: center top;
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.team-position {
  color: var(--dark-gray);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.team-bio {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-social {
  display: flex;
  gap: 0.8rem;
}

.team-social .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
  transition: all 0.3s;
}

.team-social .social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ============================================
   Comprehensive Responsive Styles
   ============================================ */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 3rem;
    justify-content: center;
  }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 2.5rem;
    justify-content: center;
  }
}

/* Laptop/Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 2rem;
    justify-content: center;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .team {
    padding: 4rem 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-content: center;
  }

  .team-card {
    margin-bottom: 0;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 768px) {
  .team {
    padding: 3rem 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .team-img {
    height: 300px;
  }

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

  .team-position {
    font-size: 1rem;
  }

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

/* Mobile (480px - 575px) */
@media (max-width: 576px) {
  .team {
    padding: 2.5rem 0;
  }

  .team-grid {
    gap: 1.5rem;
  }

  .team-img {
    height: 280px;
  }

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

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

  .team-bio {
    font-size: 0.9rem;
  }

  .team-social {
    gap: 0.8rem;
  }

  .team-social .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Small Mobile (360px - 479px) */
@media (max-width: 480px) {
  .team-img {
    height: 250px;
  }

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

/* Extra Small Mobile (below 360px) */
@media (max-width: 360px) {
  .team-img {
    height: 230px;
  }
}
