/* ==========================================================================
   Why Choose Section - Lý do chọn HVG Education (Figma Node 1:2366)
   ========================================================================== */

.why-choose-section {
  background-color: #ffffff; /* Nền trắng thuần khiết theo lưu ý của bạn */
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

/* --- Tiêu đề và Phụ đề phần --- */
.why-choose-header {
  margin-bottom: 60px;
}

.why-title {
  font-family: var(--font-main), sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: #323232F2;
  margin-bottom: 0;
  line-height: 1.3;
}
.why-title strong, 
.why-title .text-highlight {
  color: var(--primary-color);
}

/* Đường gạch ngang trang trí ngắn giữa tiêu đề và phụ đề */
.why-decor-line {
  width: 120px;
  height: 4px;
  background-color: #0D307A;
  margin: 16px auto;
  border-radius: 10px;
}

.why-subtitle {
  font-family: var(--font-main), sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.4;
}

/* --- Bố cục nội dung đồng tâm --- */

.why-content-row {
  margin-top: 20px;
}

/* Các tính năng */
.feature-item {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.left-features .feature-item {
  align-items: flex-end;
  text-align: right;
}

.right-features .feature-item {
  align-items: flex-start;
  text-align: left;
}

/* Icon tính năng */
.feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 24px; /* Figma: y=104 - height=80 = 24px */
  transition: transform 0.3s ease;
}

/* Tiêu đề tính năng */
.feature-title {
  font-family: var(--font-main), sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 16px; /* Figma: y=144 - y=104 - height=24 = 16px */
  line-height: 1.3;
}
.feature-title b, 
.feature-title .text-highlight {
  color: var(--primary-color);
}

/* Mô tả tính năng */
.feature-desc {
  font-family: var(--font-main), sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #555555;
  line-height: 1.5;
  margin-bottom: 0;
}

/* --- Vòng tròn minh họa trung tâm --- */
.center-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-center-visual {
  position: relative;
  width: 100%;
  max-width: 448px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  background-color: #fafeff;
  border: 2px dashed #67676780; /* Đường viền đứt nét nghệ thuật bao quanh */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.center-circle-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* --- Responsive CSS (Tương thích màn hình nhỏ) --- */

@media (max-width: 991px) {
  .why-choose-header {
    margin-bottom: 0px;
  }

  .why-choose-section {
    /* Giảm padding trên màn hình tablet để tối ưu khoảng trống */
    padding: 40px 0;
  }
  
  .why-title {
    /* Giảm cỡ chữ tiêu đề chính trên tablet */
    font-size: 30px;
  }
  
  .why-subtitle {
    /* Giảm cỡ chữ phụ đề trên tablet */
    font-size: 18px;
  }

  .feature-title {
    /* Giảm cỡ chữ tiêu đề tính năng trên tablet */
    font-size: 19px;
  }

  .feature-desc {
    /* Giảm cỡ chữ mô tả tính năng trên tablet */
    font-size: 15.5px;
  }
  
  /* Ẩn vòng tròn trung tâm trên mobile/tablet để tránh chật chội */
  .center-visual-col {
    display: none !important;
  }
  
  /* Cấu trúc cột xếp dọc */
  .left-features, .right-features {
    width: 100% !important;
  }
  
  .left-features {
    margin-bottom: 2rem;
  }
  
  /* Căn giữa toàn bộ tính năng (icon, tiêu đề, mô tả) ở cả hai cột khi ở màn hình máy tính bảng và di động */
  .feature-item {
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .why-choose-section {
    /* Giảm padding trên màn hình di động nhỏ để gọn gàng hơn */
    padding: 25px 0;
  }
  
  .why-title {
    /* Giảm thêm cỡ chữ tiêu đề chính trên di động nhỏ */
    font-size: 24px !important;
  }
  
  .why-subtitle {
    /* Giảm thêm cỡ chữ phụ đề trên di động nhỏ */
    font-size: 15px !important;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }
  
  .feature-title {
    /* Giảm thêm cỡ chữ tiêu đề tính năng trên di động nhỏ */
    font-size: 17px !important;
    margin-bottom: 8px;
  }
  
  .feature-desc {
    /* Giảm thêm cỡ chữ mô tả tính năng trên di động nhỏ */
    font-size: 14px !important;
  }
}
