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

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__cta-buttons--center {
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-the-thao__description-text {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-the-thao__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__description-text,
.page-the-thao__dark-bg .page-the-thao__card-title,
.page-the-thao__dark-bg .page-the-thao__bet-type-card p,
.page-the-thao__dark-bg .page-the-thao__sport-card p,
.page-the-thao__dark-bg .page-the-thao__promo-card p,
.page-the-thao__dark-bg .page-the-thao__contact-list li {
  color: #ffffff;
}

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

.page-the-thao__text-block {
  flex: 1;
  min-width: 300px;
}

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

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-the-thao__image-center {
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

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

.page-the-thao__bet-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

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

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

.page-the-thao__step-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-the-thao__step-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__step-card a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

.page-the-thao__step-card a:hover {
  text-decoration: underline;
}

.page-the-thao__sport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-the-thao__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-the-thao__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-the-thao__tips-list {
  list-style: disc;
  margin-left: 20px;
  margin-top: 20px;
  color: #333333;
}

.page-the-thao__tips-list li {
  margin-bottom: 10px;
}

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

.page-the-thao__contact-list li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
}

.page-the-thao__contact-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #ffffff; /* For dark background */
}

.page-the-thao__light-bg .page-the-thao__contact-list li::before {
  color: #26A9E0; /* For light background */
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-question:hover {
  background-color: #eaf6fa;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

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

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

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

.page-the-thao__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__conclusion-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__conclusion-section .page-the-thao__description-text {
  color: #f0f0f0;
}

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

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

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

  .page-the-thao__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .page-the-thao__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-the-thao__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .page-the-thao__description-text {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-the-thao__light-bg,
  .page-the-thao__dark-bg {
    padding: 40px 0;
  }

  .page-the-thao__content-wrapper {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-the-thao__image-block {
    order: -1; /* Image appears before text on mobile */
  }

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

  .page-the-thao__image-center {
    margin-top: 30px;
  }

  .page-the-thao__bet-types-section .page-the-thao__grid-wrapper,
  .page-the-thao__guide-steps,
  .page-the-thao__sport-cards-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-the-thao__card-title,
  .page-the-thao__step-title {
    font-size: 1.3rem;
  }

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

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

  /* General img rules */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensured container width for mobile */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__sports-list-section,
  .page-the-thao__odds-section,
  .page-the-thao__promo-section,
  .page-the-thao__tips-section,
  .page-the-thao__support-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

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