
/* Team.css */
.team-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #3498db;
  margin: 15px auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.teacher-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.teacher-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.teacher-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.teacher-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-image {
  transform: scale(1.1);
}

.teacher-info {
  padding: 20px;
  text-align: center;
}

.teacher-name {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #2c3e50;
}

.teacher-expertise {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Popup Overlay Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #e74c3c;
}

.popup-image-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid #f8f9fa;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-info {
  text-align: center;
}

.popup-name {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.popup-expertise {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #34495e;
}

.popup-quote {
  font-style: italic;
  color: #7f8c8d;
  border-left: 4px solid #3498db;
  padding-left: 15px;
  margin: 20px 0;
  text-align: left;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .popup-content {
    width: 95%;
    padding: 20px;
  }
  
  .popup-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .teacher-card {
    max-width: 300px;
    margin: 0 auto;
  }
}