.team-intro-section {
  text-align: center;
  padding: 40px 15px 20px 15px;
}

.team-intro-section .intro-title {
  font-size: 40px;
  color: #121e31;   
  margin-bottom: 5px;
}

.team-intro-section .intro-title .txt-blue {
  color: #2488ff; 
}

.team-intro-section .intro-title .txt-orange {
  color: var(--primary-color); 
}

.team-intro-section .intro-subtitle {
  font-size: 16px;
  color: #4b5563; 
  font-weight: 400;
  line-height: 1.6;
  max-width: 850px; 
  margin: 0 auto; 
}

@media (max-width: 768px) {
  .team-intro-section .intro-title {
    font-size: 26px; 
  }
  .team-intro-section .intro-subtitle {
    font-size: 14px; 
    padding: 0 10px;
  }
}


.teacher-homepage {
	background: linear-gradient(180deg, #ffefe0 0%, #ffffff 50%, #e3f0ff 100%) !important;
}

/* Khung lưới chứa các Card trên Desktop */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cột trên máy tính */
  gap: 24px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 15px;
}

/* Định dạng thẻ Card giáo viên */
.teacher-card {
  background: #ffffff;
  border: 1.5px solid #ffe8d8; /* Viền cam rất nhạt */
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(242, 101, 34, 0.05); /* Đổ bóng cam siêu nhẹ */
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hiệu ứng di chuột vào Card trên máy tính */
.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(242, 101, 34, 0.15);
}

/* Nhãn kinh nghiệm */
.teacher-badge {
  background-color: var(--fs-color-secondary);
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 25px;
  width: 100%;
  max-width: 260px;
  line-height: 1.3;
}

/* Ảnh chân dung hình tròn */
.teacher-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid #ffcca3;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

/* Tên Giáo viên */
.teacher-name {
  font-size: 20px;
  font-weight: bold;
  color: #121e31;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Mô tả ngắn */
.teacher-bio {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ======================================================= */
/* CẤU HÌNH RESPONSIVE & HIỆU ỨNG SLIDE TRÊN MOBILE        */
/* ======================================================= */

/* Giao diện trên iPad */
@media (max-width: 991px) {
  .teacher-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột trên Ipad */
  }
}

/* Giao diện Slide lướt ngang trên điện thoại (Mobile) */
@media (max-width: 767px) {
  .teacher-grid {
    display: flex !important;      /* Chuyển Grid thành hàng ngang (Flex) */
    flex-wrap: nowrap;             /* Không cho phép rớt dòng */
    overflow-x: auto;              /* Cho phép cuộn ngang */
    scroll-snap-type: x mandatory; /* Bật tính năng hít/dính khi vuốt */
    -webkit-overflow-scrolling: touch; /* Giúp cuộn mượt hơn trên Safari/iOS */
    
    /* Căn lề hít khi vuốt */
    scroll-padding-left: 20px;     
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 25px !important; /* Chừa không gian đổ bóng dưới đáy */
    gap: 16px;                     /* Khoảng cách giữa các Card */

    /* Ẩn thanh cuộn (scrollbar) để giao diện giống hệt app di động */
    scrollbar-width: none;         /* Cho Firefox */
  }

  /* Ẩn thanh cuộn cho Chrome, Safari và Edge */
  .teacher-grid::-webkit-scrollbar {
    display: none;
  }

  .teacher-card {
    /* Độ rộng mỗi Card là 82% màn hình, 18% còn lại để hiển thị lấp ló Card tiếp theo */
    flex: 0 0 82% !important;     
    scroll-snap-align: start;     /* Điểm dừng khi vuốt xong sẽ căn lề trái */
    box-sizing: border-box;
  }
}