/*----------------------------The le---------------------------------*/
.section-thele {
  background: url(../images/bg-p3.webp) no-repeat;
  background-size: 100% 100%;
}

.section-thele .page {
  /* Vừa đủ cho mục lục 320 + khoảng cách 64 + nội dung 820 + lề 2 × 48: cả cụm nằm giữa màn hình,
     mục lục không bị dính mép trái và cách xa nội dung trên màn rộng. */
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(290px, 320px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: 136px clamp(20px, 2.5vw, 48px) 100px;
  align-items: start;
}

/* ===== Danh mục ===== */
.section-thele .sidebar {
  justify-self: start;
  width: 100%;
  max-width: 320px;
  margin-right: 0;
  align-self: start;
}

.section-thele .sidebar h2 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  margin-bottom: 24px;
}

.section-thele .menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
}

.section-thele .menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b9099;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
  transition: color .2s;
}

.section-thele .menu .num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 500;
  color: #8b9099;

}

.section-thele .menu a:hover {
  color: #fff
}

.section-thele .menu a:focus-visible {
  outline: 2px solid #ee4b14;
  outline-offset: 4px;
  border-radius: 6px
}

.section-thele .menu a.active {
  color: #fff
}

.section-thele .menu a.active .num {
  background: linear-gradient(0deg, #d1b26e, #ee4b14);
  border-color: transparent;
  color: #fff;
  border: none;
}

.section-thele .menu a:hover .num {
  background: linear-gradient(0deg, #d1b26e, #ee4b14);
  border-color: transparent;
  color: #fff;
  border: none;
}

/* ===== Nội dung ===== */
.section-thele .content {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.section-thele .rules-category-pane {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
}

.section-thele .content h1 {
  text-align: center;
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .01em;
  text-transform: uppercase;
  background-image: linear-gradient(270deg,
      #fbda9e,
      #ec9333 50%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 22px;
  line-height: 2;
}

.section-thele .banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 782/225;
}

.section-thele .content h3 {
  margin: 26px 0 14px 4px;
  font-size: 19px;
  font-weight: 600;
  color: #f2b560;
  text-transform: uppercase;
}

.section-thele .content .body {
  font-size: 14px;
  line-height: 1.72;
  font-weight: 300;
  color: #ddd
}

.section-thele .content .body p {
  margin-bottom: 24px;
  overflow-wrap: anywhere
}

.section-thele .content .body p:last-child {
  margin-bottom: 0
}

.section-thele .content .body a {
  color: inherit
}

.section-thele .content .body a:focus-visible {
  outline: 2px solid #f2b560
}

/* ===== Tablet ===== */
@media (max-width:1100px) {
  .section-thele .page {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    padding: 112px 24px 80px
  }

  .section-thele .sidebar {
    justify-self: start;
    max-width: 260px;
    margin-right: 0
  }

  .section-thele .content {
    grid-column: 2
  }

  .section-thele .menu a,
  .section-thele .menu-cat-link,
  .section-thele .menu .unavailable {
    font-size: 16px
  }

  .section-thele .menu {
    gap: 20px
  }
}

/* ===== Mobile ===== */
@media (max-width:760px) {
  .section-thele {
    background: url(../images/bg-p3-sm.webp) no-repeat;
    background-size: 100% 100%;
  }

  .section-thele .page {
    display: block;
    padding: 28px 16px 64px
  }

  .section-thele .sidebar {
    max-width: none;
    margin-bottom: 28px
  }

  .section-thele .sidebar h2 {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px
  }

  .section-thele .menu {
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 2px 2px 10px;
    margin: 0 -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }

  .section-thele .menu::-webkit-scrollbar {
    display: none
  }

  .section-thele .menu li {
    scroll-snap-align: start;
    flex: none
  }

  .section-thele .menu a {
    font-size: 14px;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
  }

  .section-thele .menu a.active {
    border-color: rgba(240, 145, 79, .6)
  }

  .section-thele .menu .num {
    width: 28px;
    height: 28px;
    font-size: 14px
  }

  .section-thele .content h1 {
    font-size: 22px;
    margin-bottom: 16px
  }

  .section-thele .banner .side {
    display: none
  }

  .section-thele .banner p {
    margin-left: 7%
  }

  .section-thele .content h3 {
    font-size: 16px;
    margin: 20px 0 10px 0
  }

  .section-thele .body {
    font-size: 13.5px;
    line-height: 1.7
  }

  .section-thele .body p {
    margin-bottom: 20px
  }
}


/* Application behavior outside the final design selectors. */
.section-thele .menu-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.section-thele .menu-cat-link, .section-thele .menu .unavailable {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b9099;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  white-space: normal;
  line-height: 1.35;
  overflow: hidden;
  transition: color .2s;
}
.section-thele .menu .cat-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}
.section-thele .menu-cat-link {
  flex: 1 1 auto;
}
.section-thele .menu-cat-toggle {
  background: transparent;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b9099;
  border-radius: 4px;
}
.section-thele .menu-cat-toggle:hover {
  color: #fff;
}
.section-thele .toggle-icon::before {
  content: '▼';
  font-size: 10px;
  color: #8b9099;
  transition: color .2s;
}
.section-thele .menu-item.is-expanded .toggle-icon::before {
  content: '▲';
  color: #fff;
}
.section-thele .toggle-icon.toggle-disabled::before {
  content: '▼';
  color: rgba(255, 255, 255, 0.22);
}
.section-thele .menu-cat-link:hover {
  color: #fff;
}
.section-thele .menu-cat-link:focus-visible {
  outline: 2px solid #ee4b14;
  outline-offset: 4px;
  border-radius: 6px;
}
.section-thele .menu-cat-link.active {
  color: #fff;
}
.section-thele .menu-cat-link.active .cat-title {
  color: #fff;
}
.section-thele .menu-cat-link.active .num {
  background: linear-gradient(135deg, #f7931e, #e6631b);
  border-color: transparent;
  color: #fff;
  border: none;
}
.section-thele .menu-cat-link:hover .num {
  background: linear-gradient(135deg, #f7931e, #e6631b);
  border-color: transparent;
  color: #fff;
  border: none;
}
.section-thele .rules-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: none;
}
.section-thele .menu-item.is-expanded .rules-tree {
  display: block;
}
.section-thele .rules-tree-item {
  position: relative;
  padding: 12px 0 12px 48px;
  margin: 0;
}
.section-thele .rules-tree-item::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 22px;
  width: 23px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.section-thele .rules-tree-item::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.section-thele .rules-tree-item:first-child::after {
  top: -4px;
}
.section-thele .rules-tree-item:last-child::after {
  bottom: auto;
  height: 23px;
}
.section-thele .rules-tree-item:first-child:last-child::after {
  top: -4px;
  height: 27px;
}
.section-thele .rules-tree-link {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  display: block;
  word-break: break-word;
  white-space: normal;
  font-weight: 400;
  transition: color 0.15s ease;
}
.section-thele .rules-tree-link:hover {
  color: #ffffff;
}
.section-thele .rules-tree-link.active {
  color: #ffffff;
  font-weight: 500;
}
.section-thele .rules-article-block {
  margin-bottom: 28px;
  scroll-margin-top: 110px;
}
.section-thele .rules-article-heading {
  margin: 16px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #fbda9e;
}
.section-thele .content .rules-heading {
  margin: 26px 0 14px 4px;
  font-size: 19px;
  font-weight: 600;
  color: #f2b560;
  text-transform: uppercase;
}
@media (max-width:760px) {
.section-thele .menu-cat-link,
.section-thele .menu .unavailable {
    font-size: 14px;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    white-space: nowrap;
  }
.section-thele .menu .cat-title {
    flex: 0 0 auto;
  }
.section-thele .content .rules-heading {
    font-size: 16px;
    margin: 20px 0 10px 0
  }
}
.section-thele .menu .unavailable {
  cursor: default;
}
.section-thele .rules-category-pane {
  display: none;
}
.section-thele .rules-category-pane.active {
  display: block;
  animation: fadeInRule 0.25s ease-in-out;
}
@keyframes fadeInRule {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.section-thele #linh-vuc {
  scroll-margin-top: 110px;
}
.section-thele .rules-article-block[hidden] { display: none !important; }

.section-thele .menu-cat-link { gap: 10px; }
.section-thele .menu-cat-link.active .num, .section-thele .menu-cat-link:hover .num { background: linear-gradient(0deg, #d1b26e, #ee4b14); }
@media (min-width: 761px) and (max-width: 1100px) { .section-thele .menu .menu-cat-link { white-space: normal; } }
/* Trang chính sách bảo vệ dữ liệu: danh sách gạch đầu dòng trong nội dung và dòng ghi chú bản demo. */
.section-thele .content .body ul { margin: 0 0 24px; padding-left: 22px; }
.section-thele .content .body li { margin-bottom: 8px; overflow-wrap: anywhere; }
.section-thele .content .privacy-note { margin: 0 0 8px; font-size: 13px; font-style: italic; color: #f2b560; }
/* Cột mũi tên sổ xuống luôn thẳng một hàng: phần tên chiếm hết chỗ còn lại, ô mũi tên (cả nút lẫn mục chưa có nội dung) rộng cố định sát mép phải. */
.section-thele .menu-cat-link, .section-thele .menu .unavailable { flex: 1 1 auto; min-width: 0; }
.section-thele .menu-cat-toggle, .section-thele .menu-cat-row > .toggle-icon {
  flex: 0 0 28px; width: 28px; display: flex; align-items: center; justify-content: center; padding: 4px 0; margin: 0;
}
/* Trang chính sách bảo vệ dữ liệu: không có menu danh mục, nội dung một cột nằm giữa trang. */
.section-thele .page.page--single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.section-thele .page.page--single .content { grid-column: 1; }
@media (max-width: 1100px) { .section-thele .page.page--single { grid-template-columns: minmax(0, 1fr); gap: 0; } }
