/* Team Members Section Styles */
.team-members-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.team-members-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-members-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.team-members-section .section-header .h {
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.team-members-section .section-header .p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  justify-items: center;
}

.team-member {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 350px;
  width: 100%;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.member-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0;
  transition: border-color 0.3s ease;
}

.team-member:hover .member-avatar img {
  border-color: #007bff;
}

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

.member-name {
  color: #333;
  font-weight: 600;
  margin-bottom: 8px;
}

.member-position {
  color: #007bff;
  font-weight: 500;
  margin-bottom: 15px;
}

.member-bio {
  color: #666;
  line-height: 1.6;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: pre-line;
}

.member-bio:hover {
  color: #007bff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .team-members-section {
    padding: 60px 0;
  }
  
  .team-members-section .container {
    padding: 0 15px;
  }
  
  .team-members-section .section-header {
    margin-bottom: 40px;
  }
  
  .team-members-section .section-header .h {
    font-size: 36px !important;
  }
  
  .team-members-section .section-header .p {
    font-size: 18px !important;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .team-member {
    padding: 25px;
    max-width: 100%;
  }
  
  .member-avatar img {
    width: 100px;
    height: 100px;
  }
  
  .member-name {
    font-size: 20px !important;
  }
  
  .member-position {
    font-size: 16px !important;
  }
  
  .member-bio {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .team-members-section {
    padding: 40px 0;
  }
  
  .team-members-section .section-header .h {
    font-size: 28px !important;
  }
  
  .team-members-section .section-header .p {
    font-size: 16px !important;
  }
  
  .team-member {
    padding: 20px;
  }
  
  .member-avatar img {
    width: 80px;
    height: 80px;
  }
  
  .member-name {
    font-size: 18px !important;
  }
  
  .member-position {
    font-size: 14px !important;
  }
  
  .member-bio {
    font-size: 13px !important;
  }
}

/* Modal Styles */
.team-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.team-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

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

.modal-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0;
}

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

.modal-position {
  color: #007bff;
  font-weight: 500;
  font-size: 18px;
}

.modal-bio {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
  white-space: pre-line;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-name {
    font-size: 20px;
  }
  
  .modal-position {
    font-size: 16px;
  }
  
  .modal-bio {
    font-size: 14px;
  }
  
  .modal-avatar img {
    width: 80px;
    height: 80px;
  }
}