.page-the-thao {
  font-family: Arial, sans-serif;
  color: #FFF1E8;
  background-color: #140C0C;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F3C54D;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-the-thao__paragraph {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: justify;
}

.page-the-thao__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-the-thao__list-item {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-the-thao__note {
  font-style: italic;
  text-align: center;
  margin-top: 30px;
}

/* Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: #2A1212;
  color: #F3C54D;
  border: 2px solid #6A1E1E;
}

.page-the-thao__btn-secondary:hover {
  background: #6A1E1E;
  color: #FFF1E8;
  transform: translateY(-2px);
}

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 50px;
  background-color: #140C0C;
  overflow: hidden;
}

.page-the-thao__hero-content {
  text-align: center;
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 900;
  color: #F3C54D;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #FFF1E8;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #140C0C;
}

/* Sports Categories */
.page-the-thao__sports-categories {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-the-thao__category-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 10px;
}

.page-the-thao__card-description {
  font-size: 1em;
  line-height: 1.5;
  color: #FFF1E8;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Odds Advantage */
.page-the-thao__odds-advantage {
  padding: 60px 0;
  background-color: #140C0C;
}

/* How To Play */
.page-the-thao__how-to-play {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-the-thao__step-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  font-size: 3em;
  font-weight: 900;
  color: #F3C54D;
  margin-bottom: 15px;
  line-height: 1;
}

/* Promotions */
.page-the-thao__promotions {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-the-thao__promo-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-the-thao__all-promos-cta {
  text-align: center;
  margin-top: 50px;
}

/* Advantages */
.page-the-thao__advantages {
  padding: 60px 0;
  background-color: #140C0C;
}

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

.page-the-thao__advantage-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
  text-align: center;
}

.page-the-thao__advantage-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
}

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

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

.page-the-thao__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF1E8;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: #2A1212;
  color: #F3C54D;
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details/summary */
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #F3C54D;
  margin-left: 15px;
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid #6A1E1E;
}

/* Bottom CTA */
.page-the-thao__cta-bottom {
  padding: 80px 0;
  background-color: #140C0C;
}

.page-the-thao__cta-bottom .page-the-thao__container {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 15px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao__cta-bottom .page-the-thao__section-title {
  color: #F3C54D;
  margin-bottom: 20px;
}

.page-the-thao__cta-bottom .page-the-thao__paragraph {
  max-width: 800px;
  margin: 0 auto 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

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

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

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

  .page-the-thao__category-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* General container padding */
  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

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

  .page-the-thao__hero-image-wrapper {
    margin-top: 20px;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile main image uses contain */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

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

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

  /* Section Titles */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-the-thao__paragraph,
  .page-the-thao__list-item {
    font-size: 0.95em;
  }

  /* Category Grid (Sports Categories) */
  .page-the-thao__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__category-card {
    padding: 20px;
  }

  .page-the-thao__card-image {
    height: 180px;
  }

  /* How To Play Steps */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__step-card {
    padding: 25px;
  }

  /* Promotions Grid */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__promo-card {
    padding: 20px;
  }

  /* Advantages Grid */
  .page-the-thao__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__advantage-item {
    padding: 25px;
  }

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

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

  /* Bottom CTA */
  .page-the-thao__cta-bottom .page-the-thao__container {
    padding: 40px 20px;
  }

  .page-the-thao__cta-bottom .page-the-thao__cta-buttons {
    padding: 0;
  }

  /* General image and container overflow handling */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
}