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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-the-thao__section-title--white {
  color: #FFFFFF;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-description--white {
  color: #f0f0f0;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF;
  color: #333333;
}

.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 45%;
  min-width: 300px;
  padding-right: 20px;
}

.page-the-thao__main-title {
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

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

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

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

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-primary:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

.page-the-thao__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #e0f0f8;
  color: #1a7fb3;
}

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

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

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

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

.page-the-thao__icon-box {
  flex: 1 1 30%;
  max-width: 350px;
  text-align: center;
  padding: 20px;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-the-thao__icon-box:hover {
  transform: translateY(-10px);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is also round */
  display: block;
}

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

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

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF;
}

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

.page-the-thao__betting-item {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-the-thao__betting-item:hover {
  transform: translateY(-8px);
}

.page-the-thao__betting-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-the-thao__betting-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  padding: 15px 20px 10px;
}

.page-the-thao__betting-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

/* Live Betting Section */
.page-the-thao__live-betting-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-the-thao__content-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

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

.page-the-thao__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-the-thao__content-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #555555;
}

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

.page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-the-thao__promo-card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  padding: 15px 20px 10px;
}

.page-the-thao__promo-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

.page-the-thao__cta-center {
  text-align: center;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: #F8F8F8;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-the-thao__guide-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.page-the-thao__guide-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__guide-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-the-thao__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-the-thao__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−';
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

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

/* Final CTA Section */
.page-the-thao__cta-section {
  padding: 60px 0;
  background-color: #FFFFFF;
  text-align: center;
}

.page-the-thao__cta-container {
  max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content {
    padding-right: 0;
    text-align: center;
  }

  .page-the-thao__main-title,
  .page-the-thao__hero-description {
    text-align: center;
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

  .page-the-thao__content-row {
    flex-direction: column;
  }

  .page-the-thao__content-text,
  .page-the-thao__content-image {
    padding: 0 15px;
  }

  .page-the-thao__betting-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__main-title {
    font-size: 1.8em;
    text-align: center;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Module 1 (Intro Section) */
  .page-the-thao__section-title {
    font-size: 2em;
  }

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

  .page-the-thao__icon-boxes {
    flex-direction: column;
    align-items: center;
  }

  .page-the-thao__icon-box {
    max-width: 90%;
    width: 100%;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
  }

  .page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Betting Types Section */
  .page-the-thao__betting-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Live Betting Section */
  .page-the-thao__content-row {
    flex-direction: column;
  }

  .page-the-thao__sub-title {
    font-size: 1.5em;
  }

  .page-the-thao__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promo Section */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Guide Section */
  .page-the-thao__guide-item {
    padding: 20px;
  }

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

  .page-the-thao__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

  /* General Image and Container Rules */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .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;
  }

  /* Specific override for round icons to maintain aspect ratio */
  .page-the-thao__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    flex-shrink: 0;
  }
}