/* learning */
.learning {
  padding-top: 61px;
}
.learning-heading {
  max-width: 1064px;
  margin: 0 auto;
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.learning-desc {
  max-width: 1064px;
  margin: 0 auto;
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 133.333% */
  margin-bottom: 40px;
}

.learning-item {
  padding-top: 40px;
  padding-bottom: 60px;
}
.learning-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.learning-item-title svg {
  width: 28px;
  height: 28px;
  aspect-ratio: 1/1;
}
.learning-item-title-txt {
  position: relative;
  z-index: 10;
  color: #fff;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 111.111% */
  text-transform: uppercase;
  padding-left: 1px;
  padding-top: 1px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: var(--color-text, #2f1b08);
}
.learning-item-title-txt::before {
  content: var(--text);
  position: absolute;
  top: 0px;
  left: 0px;
  color: #2f1b08;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px; /* 111.111% */
  text-transform: uppercase;
  width: max-content;
  -webkit-text-stroke-width: 0px;
}
.learning-item-desc {
  margin-top: 13px;
  max-width: 645px;
  color: var(--color-text, #2f1b08);
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 144.444% */
  margin-bottom: 40px;
}

/*  */
.swiper1-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  position: relative;
}
.swiper1-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0px;
  width: 20px;
  height: 20px;
  background-image: var(--svgmuiten);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 2;
}
.swiper1-item:first-child::before {
  left: 0px;
}
.swiper1-item::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0px;
  width: 20px;
  height: 20px;
  background-image: var(--svgmuiten);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 2;
}
.swiper1-item-box {
  width: 20px;
  height: 20px;
  border: 1px solid var(--pri, #fbae17);
  background: #fff;
}
.swiper1-item-title {
  color: var(--color-text, #2f1b08);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 100% */
}
.swiper-slide-thumb-active.swiper1-item .swiper1-item-box {
  border: 1px solid var(--pri, #fbae17);
  background: var(--pri, #fbae17);
}
.learning-item-swiper1 {
  position: relative;
}
.learning-item-swiper1::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #2f1b08;
}
.learning-item-swiper2 {
  margin-top: 40px;
}
.swiper2-slide {
  display: flex;
  gap: 40px;
  height: 400px;
}
.swiper2-slide-item {
  position: relative;
  background: var(--pri, #fbae17);
  border: 3px solid #683f19;
  box-shadow: (0 6px 16px rgba(0, 0, 0, 0.24));
  border-radius: 22px;
  padding: 10px;
}
.swiper2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #fff;
}
.swiper2-slide-item-tag {
  position: absolute;
  top: 40px;
  left: 12px;
  min-width: 260px;
  height: 44px;
  width: max-content;
  background: #fbae17;
  border-radius: 0 22px 22px 0;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
  padding: 5px;
}
.swiper2-slide-item-tag svg {
  width: 34.186px;
  height: 34.186px;
}
.swiper2-slide-item-tag p {
  color: #fff;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 23.68px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-shadow:
    0.5px 0 rgba(104, 63, 25, 0.6),
    -0.5px 0 rgba(104, 63, 25, 0.6),
    0 0.5px rgba(104, 63, 25, 0.6),
    0 -0.5px rgba(104, 63, 25, 0.6),
    0.5px 0.5px rgba(104, 63, 25, 0.6),
    -0.5px -0.5px rgba(104, 63, 25, 0.6),
    0.5px -0.5px rgba(104, 63, 25, 0.6),
    -0.5px 0.5px rgba(104, 63, 25, 0.6);
}
.learning-swiper-button-wapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto;
  margin-top: 40px;
  width: max-content;
}
.learning-swiper-button {
  width: 48px;
  height: 48px;
  background: #fffae5;
  border: 1px solid #fbae17;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.learning-swiper-button svg {
  width: 18px;
  height: 18px;
  aspect-ratio: 1/1;
}

/* ============================================
   LEARNING — TABLET (640px – 1024px)
   ============================================ */
@media (max-width: 1024px) and (min-width: 640px) {
  .learning {
    padding-top: 48px;
  }
  .learning-heading {
    font-size: 28px;
    padding: 0 24px;
  }
  .learning-desc {
    font-size: 16px;
    padding: 0 24px;
    margin-bottom: 28px;
  }
  .learning-item {
    padding-top: 28px;
    padding-bottom: 40px;
  }
  .learning-item-title-txt {
    font-size: 26px;
    line-height: 32px;
  }
  .learning-item-title-txt::before {
    font-size: 26px;
    line-height: 32px;
  }
  .learning-item-desc {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 28px;
  }
  /* Swiper 1 — tab nav */
  .swiper1-item-title {
    font-size: 20px;
    line-height: 24px;
  }
  /* Swiper 2 — slide */
  .swiper2-slide {
    gap: 20px;
    height: 300px;
  }
  .swiper2-slide-item-tag {
    min-width: 180px;
    height: 38px;
  }
  .swiper2-slide-item-tag p {
    font-size: 18px;
  }
  .swiper2-slide-item-tag svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   LEARNING — MOBILE (≤ 639px)
   ============================================ */
@media (max-width: 639px) {
  .learning {
    padding-top: 36px;
  }
  .learning-heading {
    font-size: 22px;
    line-height: 28px;
    padding: 0 16px;
    margin-bottom: 6px;
  }
  .learning-desc {
    font-size: 14px;
    line-height: 22px;
    padding: 0 16px;
    margin-bottom: 20px;
  }
  .learning .container {
    padding: 0 16px;
  }
  .learning-item {
    padding-top: 20px;
    padding-bottom: 32px;
  }
  .learning-item-title {
    gap: 6px;
  }
  .learning-item-title svg {
    width: 20px;
    height: 20px;
  }
  .learning-item-title-txt {
    font-size: 20px;
    line-height: 26px;
  }
  .learning-item-title-txt::before {
    font-size: 20px;
    line-height: 26px;
  }
  .learning-item-desc {
    font-size: 14px;
    line-height: 22px;
    margin-top: 8px;
    margin-bottom: 20px;
    max-width: 100%;
  }

  /* --- Swiper 1: tab nav --- */
  .learning-item-swiper1::before {
    top: 9px;
  }
  .swiper1-item-title {
    font-size: 16px;
    line-height: 20px;
  }
  .swiper1-item-box {
    width: 18px;
    height: 18px;
  }
  /* mũi tên nối giữa các tab — ẩn trên mobile cho gọn */
  .swiper1-item::before,
  .swiper1-item::after {
    width: 14px;
    height: 14px;
  }

  /* --- Swiper 2: slides --- */
  .learning-item-swiper2 {
    margin-top: 24px;
  }
  .swiper2-slide {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  .swiper2-slide-item {
    height: 200px;
    border-radius: 16px;
    padding: 8px;
  }
  .swiper2-slide-item-tag {
    min-width: 160px;
    height: 34px;
    top: 28px;
    left: 10px;
    gap: 12px;
    border-radius: 0 16px 16px 0;
  }
  .swiper2-slide-item-tag p {
    font-size: 15px;
  }
  .swiper2-slide-item-tag svg {
    width: 24px;
    height: 24px;
  }

  /* --- Nav buttons --- */
  .learning-swiper-button-wapper {
    margin-top: 24px;
    gap: 16px;
  }
  .learning-swiper-button {
    width: 40px;
    height: 40px;
  }
  .learning-swiper-button svg {
    width: 14px;
    height: 14px;
  }
}
