.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default body background */
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not --header-offset */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-the-thao__hero-cta-buttons,
.page-the-thao__final-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-the-thao__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

.page-the-thao__btn-tertiary {
  background-color: #C30808; /* Đăng ký/Nạp tiền/Chơi ngay */
  color: #FFFF00; /* Đăng ký/Nạp tiền/Chơi ngay font */
  border: 2px solid #C30808;
}

.page-the-thao__btn-tertiary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-the-thao__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao__intro-section p,
.page-the-thao__security-section p,
.page-the-thao__cta-final-section p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__image-container {
  margin: 30px auto;
  text-align: center;
  max-width: 800px;
}

.page-the-thao__content-image,
.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__card-title {
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__light-bg {
  background-color: #f9f9f9;
  color: #333333;
}

.page-the-thao__types-section .page-the-thao__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__card p {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-the-thao__guide-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-list h3 {
  font-size: 1.5em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-the-thao__guide-list p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-the-thao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-the-thao__promo-image {
  margin-bottom: 15px;
}

.page-the-thao__promo-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__promo-card p {
  font-size: 0.95em;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__promo-cta {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-the-thao__tips-list li {
  background-color: #ffffff;
  border-bottom: 1px dashed #e0e0e0;
  padding: 20px 0;
}

.page-the-thao__tips-list li:last-child {
  border-bottom: none;
}

.page-the-thao__tips-list h3 {
  font-size: 1.4em;
  color: #017439;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-the-thao__tips-list p {
  font-size: 1.05em;
  line-height: 1.7;
}

.page-the-thao__faq-list {
  margin-top: 30px;
}

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f5f5f5;
  list-style: none;
  user-select: none; /* Prevent text selection on click */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-the-thao__faq-answer p {
  margin: 0;
}

.page-the-thao__cta-final-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.page-the-thao__cta-final-section .page-the-thao__section-title {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-the-thao__cta-final-section p {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-the-thao__description {
    font-size: 1em;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
    margin-bottom: 30px;
  }

  .page-the-thao__types-section .page-the-thao__grid,
  .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-the-thao__guide-list li {
    padding: 20px;
  }

  .page-the-thao__guide-list h3 {
    font-size: 1.3em;
  }

  .page-the-thao__tips-list h3 {
    font-size: 1.3em;
  }

  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-the-thao__faq-answer {
    padding: 12px 20px 15px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-bottom: 20px;
    padding-top: 10px !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-cta-buttons,
  .page-the-thao__final-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__article-wrap {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section {
    padding: 30px 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 25px;
  }

  .page-the-thao__intro-section p,
  .page-the-thao__security-section p,
  .page-the-thao__cta-final-section p,
  .page-the-thao__card p,
  .page-the-thao__guide-list p,
  .page-the-thao__promo-card p,
  .page-the-thao__tips-list p,
  .page-the-thao__faq-answer p {
    font-size: 1em !important;
    line-height: 1.6 !important;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__image-container {
    margin: 20px auto;
    padding: 0 5px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* 4. 按钮与按钮容器 (already covered in hero-cta-buttons, but general rule) */
  .page-the-thao__types-section .page-the-thao__grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__card,
  .page-the-thao__promo-card {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__card-title,
  .page-the-thao__promo-title {
    font-size: 1.2em;
  }

  .page-the-thao__promo-cta {
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-the-thao__guide-list li {
    padding: 20px 15px;
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__guide-list h3 {
    font-size: 1.25em;
  }

  .page-the-thao__tips-list li {
    padding: 15px 0;
  }

  .page-the-thao__tips-list h3 {
    font-size: 1.2em;
  }

  .page-the-thao__faq-item {
    margin-bottom: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__faq-question {
    padding: 15px 15px;
    font-size: 1em;
  }

  .page-the-thao__faq-answer {
    padding: 10px 15px 15px;
  }

  .page-the-thao__cta-final-section {
    padding: 50px 15px;
  }
}