/* CSS cho khu vực Những câu hỏi thường gặp (Questions Section) */

.questions-section {
  padding: 100px 0;
  background-color: #fff;
  overflow: hidden;
}

/* Bố cục Collage hình ảnh bên trái */
.questions-collage {
  position: relative;
  width: 100%;
  max-width: 582px;
  height: 559px;
  margin: 0 auto;
}

.collage-item {
  position: absolute;
  overflow: hidden;
  background-color: #f0f0f0; /* Màu nền tạm thời khi chưa có ảnh */
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ảnh lớn bên trái */
.img-large {
  width: 289px;
  height: 408px;
  left: 0;
  top: 0;
  border-radius: 80px 0 80px 0;
}

/* Ảnh nhỏ phía trên bên phải */
.img-small-top {
  width: 265px;
  height: 208px;
  left: 317px;
  top: 0;
  border-radius: 80px 0 80px 0;
}

/* Ảnh nhỏ phía dưới bên phải */
.img-small-bottom {
  width: 265px;
  height: 216px;
  left: 317px;
  top: 236px;
  border-radius: 80px 0 80px 0;
}

/* Thẻ Instructor nổi trên hình ảnh */
.instructor-card {
  position: absolute;
  width: 273px;
  height: 132px;
  left: 95px;
  top: 335px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.18);
  padding: 20px 24px;
  z-index: 10;
}

.instructor-card .card-title {
  color: #2b2b2b;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.instructor-card .card-body {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Nhóm Avatar chồng lên nhau */
.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -14px;
  overflow: hidden;
  background: #e0e0e0;
}

.avatar-group .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-plus {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #52dbc0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  border: 2px solid #fff;
}

/* Chỉ số thống kê trong card */
.instructor-stats {
  display: flex;
  flex-direction: column;
}

.instructor-stats .count {
  color: #52dbc0;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.instructor-stats .label {
  color: #414141;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

/* Phần nội dung bên phải (Tiêu đề & Accordion) */
.section-title {
  color: #35afa5;
  font-family: "Inter", sans-serif;
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 36px;
}

.questions-accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accordion-item {
  border: 1px solid #35afa5 !important; /* Viền xanh mặc định cho mọi trạng thái */
  border-radius: 10px !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #fff;
}

.question-text {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* Biểu tượng Plus/Minus - GIỮ NGUYÊN */
.accordion-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bg {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 4px;
}

.accordion-icon img {
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1;
}

/* Phần nội dung câu trả lời */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.answer-text {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #35afa5;
  line-height: 1.6;
  margin: 0;
}

/* Trạng thái Kích hoạt (Active) */
.accordion-item.active .question-text {
  color: #35afa5;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 10px;
  padding-bottom: 24px;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .questions-collage {
    transform: scale(0.75);
    transform-origin: left center;
  }
}

/* Tương thích thiết bị (Responsive) */
@media (max-width: 991px) {
  .questions-collage {
    transform: scale(0.8);
    margin-bottom: 40px;
  }
  .questions-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .questions-collage {
    margin-bottom: 0px;
  }

  .questions-header {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .questions-section {
    padding: 60px 0;
  }

  .questions-collage {
    transform: scale(0.6);
    height: 350px;
    margin-bottom: 20px;
  }

  .questions-header .section-title {
    font-size: 28px;
  }

  .question-text {
    font-size: 16px;
  }

  .answer-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .questions-collage {
    display: none;
  }
}
