/* ==============================
   TEAM SECTION STYLES
   ============================== */

.team-section {
  background: #f8f9fa;
  overflow: visible;
  min-height: auto;
}

.team-wrapper {
  margin-bottom: 0;
  overflow: visible;
  width: 100%;
}

.team-member {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 35px 30px;
  margin-bottom: 30px;
  text-align: center;
  transition: all 0.4s ease-in-out;
  position: relative;
  overflow: hidden;
}

.team-member:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.team-avatar {
  margin-bottom: 20px;
}

.team-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  display: block;
}

.team-member:hover .team-avatar img {
  transform: scale(1.05);
}

.team-info h6 {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 1.125rem;
}

.team-info p {
  color: #666;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Dark mode support */
body.theme--dark .team-info h6 {
  color: #ffffff;
}

body.theme--dark .team-info p {
  color: #b8b8b8;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
  .team-member {
    padding: 30px 25px;
  }
  
  .team-avatar {
    margin-bottom: 18px;
  }
  
  .team-avatar img {
    width: 70px;
    height: 70px;
  }
  
  .team-info h6 {
    font-size: 1.0625rem;
  }
}

@media (max-width: 991px) {
  .team-member {
    padding: 25px 20px;
  }
  
  .team-avatar {
    margin-bottom: 15px;
  }
  
  .team-avatar img {
    width: 65px;
    height: 65px;
  }
  
  .team-info h6 {
    font-size: 1rem;
  }
  
  .team-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .team-member {
    padding: 30px 25px;
  }
  
  .team-avatar img {
    width: 70px;
    height: 70px;
  }
  
  .team-info h6 {
    font-size: 1.125rem;
  }
}

@media (max-width: 575px) {
  .team-member {
    padding: 25px 20px;
  }
  
  .team-avatar {
    margin-bottom: 15px;
  }
  
  .team-avatar img {
    width: 65px;
    height: 65px;
  }
  
  .team-info h6 {
    font-size: 1.0625rem;
  }
}

/* Specific fix for mobile screens like 430px */
@media (max-width: 480px) {
  .team-section {
    overflow: visible !important;
    height: auto !important;
    min-height: auto !important;
  }
  
  .team-wrapper {
    overflow: visible !important;
    height: auto !important;
  }
  
  .team-wrapper > div {
    overflow: visible !important;
    height: auto !important;
  }
  
  .team-member {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
    padding: 20px 15px;
  }
  
  .team-avatar img {
    width: 60px;
    height: 60px;
  }
  
  .team-info h6 {
    font-size: 1rem;
  }
  
  .team-info p {
    font-size: 0.8rem;
  }
}