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

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

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

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao__container--reverse {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  align-items: center;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit from section background */
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 40px;
  background-color: #ffffff;
}

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333;
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #017439;
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
}

.page-the-thao__hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-the-thao__cta-button {
  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__cta-button--primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-the-thao__cta-button--primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-the-thao__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-the-thao__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

.page-the-thao__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__icon-box {
  flex: 1 1 30%;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

.page-the-thao__icon-box-text {
  font-size: 1em;
  color: #555555;
}

.page-the-thao__sports-types-section,
.page-the-thao__live-betting-section,
.page-the-thao__promotions-section {
  padding: 60px 0;
}

.page-the-thao__container:not(.page-the-thao__hero-container) {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-the-thao__content-block {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__image-block {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-the-thao__content-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-the-thao__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: inherit;
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: inherit;
}

.page-the-thao__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #017439;
  font-weight: bold;
}

.page-the-thao__text-link {
  color: #017439;
  text-decoration: underline;
}

.page-the-thao__text-link:hover {
  color: #005a2e;
}

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

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-the-thao__guide-step {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-top: 60px;
}

.page-the-thao__guide-step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__guide-step-text {
  font-size: 1em;
  color: #555555;
}

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

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

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  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: 1em;
  color: #f0f0f0;
}

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

.page-the-thao__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Generic image responsive rules for content images */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container,
  .page-the-thao__container:not(.page-the-thao__hero-container) {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image,
  .page-the-thao__content-block,
  .page-the-thao__image-block {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-the-thao__hero-title {
    font-size: 2.8em;
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

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

  .page-the-thao__icon-box {
    flex: 1 1 45%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  /* HERO Section (1) */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-the-thao__hero-container {
    padding: 20px 15px;
  }

  .page-the-thao__hero-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
  }

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

  .page-the-thao__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons (6) */
  .page-the-thao__cta-button,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__hero-cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Module 1 (Advantages) (2) */
  .page-the-thao__advantages-section {
    padding: 40px 0;
  }

  .page-the-thao__icon-box {
    flex: 1 1 100%; /* Single column for icon boxes */
    max-width: 100%;
    padding: 15px;
  }

  .page-the-thao__icon-box-media {
    width: 180px;
    height: 180px;
    border-width: 3px;
    margin-bottom: 15px;
  }

  /* Other Content Sections (3, 4) */
  .page-the-thao__sports-types-section,
  .page-the-thao__live-betting-section,
  .page-the-thao__promotions-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-section {
    padding: 40px 0;
  }

  .page-the-thao__container,
  .page-the-thao__container--reverse {
    padding: 20px 15px;
    gap: 30px;
  }

  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-the-thao__section-description,
  .page-the-thao__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-the-thao__list-item {
    font-size: 0.95em;
    padding-left: 20px;
    margin-bottom: 8px;
  }

  /* Generic Images (5) */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-side-image,
  .page-the-thao__content-image {
    margin: 0 auto;
  }

  .page-the-thao__guide-steps {
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-the-thao__guide-step {
    padding: 25px;
    padding-top: 50px;
  }

  .page-the-thao__guide-step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
    top: -22px;
  }

  .page-the-thao__guide-step-title {
    font-size: 1.2em;
  }

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

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

  .page-the-thao__faq-toggle {
    font-size: 1.3em;
  }

  /* Ensure all containers have proper mobile padding */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__content-block,
  .page-the-thao__image-block {
    padding-left: 0;
    padding-right: 0;
  }
}