.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

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

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

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

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

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

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

.page-the-thao__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-the-thao__btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-the-thao__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-the-thao__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #1a202c; /* Dark background for hero */
  color: #FFFFFF;
  padding-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Constrain image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

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

.page-the-thao__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-the-thao__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro Section */
.page-the-thao__intro-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.page-the-thao__intro-content p {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-the-thao__intro-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Bet Types Section */
.page-the-thao__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-the-thao__bet-type-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: #FFFFFF;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.page-the-thao__bet-type-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-the-thao__bet-types-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-the-thao__guide-step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  border: 1px solid #e0e0e0;
}

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

.page-the-thao__guide-step-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-the-thao__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Tips Section */
.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__tips-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #FFFFFF;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-the-thao__tips-list li strong {
  color: #FFFFFF;
}

.page-the-thao__tips-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

.page-the-thao__promo-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__promo-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  flex-grow: 1;
}

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

/* FAQ Section */
.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.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: #26A9E0;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

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

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

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #eee;
  animation: fadein 0.3s ease-in-out;
}

.page-the-thao__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Final CTA Section */
.page-the-thao__cta-section {
  text-align: center;
  background-color: #1a202c; /* Dark background */
  color: #FFFFFF;
}

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

.page-the-thao__cta-title {
  font-size: 2em;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-the-thao__cta-description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* Universal image styling */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

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

@media (max-width: 768px) {
  .page-the-thao__section-padding {
    padding: 40px 15px;
  }

  .page-the-thao__hero-section {
    padding-top: 10px; /* Still small padding, relying on body for offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.6em, 7vw, 2.5em) !important; /* Smaller H1 on mobile */
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__intro-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__intro-content p {
    font-size: 0.95em;
  }

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

  .page-the-thao__bet-types-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-the-thao__bet-type-card,
  .page-the-thao__guide-step-item,
  .page-the-thao__promo-card {
    padding: 25px;
  }

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

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

  .page-the-thao__tips-list li {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

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

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

  .page-the-thao__cta-title {
    font-size: 1.8em;
  }

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

  /* General image and container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__section-padding,
  .page-the-thao__container,
  .page-the-thao__card,
  .page-the-thao__bet-type-card,
  .page-the-thao__guide-step-item,
  .page-the-thao__promo-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__hero-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}