.khoahoc {
  min-height: 800px;
  position: relative;
}
.khoahoc-imgbg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}
.khoahoc .container {
  position: relative;
  z-index: 10;
}
.khoahoc-content {
  padding-top: 185px;
}
.khoahoc-heading {
  display: flex;
  align-items: center;
  justify-content: end;
  padding-right: 62px;
  background-image: var(--imgbg);
  background-size: cover;
  width: 711px;
  height: 314px;
  margin-left: -72px;
  color: var(--pri, #fbae17);
  font-family: "Baloo 2";
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: end;
}
.khoahoc-banner-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: max-content;
  margin-top: -36px;
}
.khoahoc-banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: #683f19;
  border-radius: 24px;
  border: 1px solid #fbae17;
  min-width: 360px;
}
.khoahoc-banner-item svg {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
}
.khoahoc-banner-item p {
  color: #fff;
  font-family: "Baloo 2";
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 120% */
}
.khoahoc-banner-list-decodaudau {
  position: absolute;
  bottom: -20px;
  left: 107%;
  width: 221.517px;
  height: 286px;
}

/* ============================================
   BANNER — TABLET (640px – 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 640px) {
  .khoahoc {
    min-height: auto;
    padding-bottom: 60px;
  }
  .khoahoc-content {
    padding-top: 120px;
  }
  .khoahoc-heading {
    width: 100%;
    max-width: 520px;
    height: auto;
    min-height: 180px;
    margin-left: 0;
    padding-right: 32px;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 42px;
  }
  .khoahoc-banner-list {
    margin-top: -20px;
  }
  .khoahoc-banner-item {
    min-width: 300px;
    padding: 10px 20px;
  }
  .khoahoc-banner-item p {
    font-size: 17px;
  }
  .khoahoc-banner-list-decodaudau {
    width: 160px;
    height: auto;
    left: 104%;
    bottom: -12px;
  }
}

/* ============================================
   BANNER — MOBILE (≤ 639px)
   ============================================ */
@media (max-width: 639px) {
  .khoahoc {
    min-height: auto;
    padding-bottom: 40px;
  }
  .khoahoc .container {
    padding: 0 16px;
  }
  .khoahoc-content {
    padding-top: 90px;
  }
  .khoahoc-heading {
    width: calc(100% + 32px);
    max-width: unset;
    height: auto;
    min-height: 120px;
    margin-left: -16px;
    padding: 20px 20px 20px 16px;
    font-size: 28px;
    line-height: 1.2;
    justify-content: flex-start;
    text-align: left;
  }
  .khoahoc-banner-list {
    margin-top: 16px;
    width: 100%;
    gap: 10px;
  }
  .khoahoc-banner-item {
    min-width: unset;
    width: 100%;
    padding: 10px 16px;
    border-radius: 16px;
    gap: 10px;
  }
  .khoahoc-banner-item p {
    font-size: 15px;
    line-height: 20px;
  }
  .khoahoc-banner-item svg {
    flex-shrink: 0;
  }
  .khoahoc-banner-list-decodaudau {
    display: none;
  }
}
