.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #333333);
  background-color: var(--background-color, #F5F7FA);
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main-color, #333333);
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-main-color, #333333);
}

.page-the-thao__light-text {
  color: #ffffff;
}

.page-the-thao__text-main {
  color: var(--text-main-color, #333333);
}

.page-the-thao__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  padding: 60px 0;
}

.page-the-thao__light-bg {
  background-color: var(--background-color, #F5F7FA);
  padding: 60px 0;
}

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
}

.page-the-thao__hero-title {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-the-thao__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #ffffff;
}

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

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

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

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

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

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 60px 0;
}

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

.page-the-thao__betting-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__betting-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-the-thao__betting-card-description {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-the-thao__betting-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Sports Section */
.page-the-thao__sports-section {
  padding: 60px 0;
}

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

.page-the-thao__sport-card {
  background-color: var(--card-bg-color, #FFFFFF);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__sport-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-the-thao__sport-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-main-color, #333333);
}

.page-the-thao__sport-description {
  font-size: 0.95em;
  color: var(--text-main-color, #333333);
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 60px 0;
}

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

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

.page-the-thao__feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-the-thao__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-the-thao__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* How to Start Section */
.page-the-thao__how-to-start-section {
  padding: 60px 0;
}

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

.page-the-thao__step-card {
  background-color: var(--card-bg-color, #FFFFFF);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-the-thao__step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-the-thao__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-main-color, #333333);
}

.page-the-thao__step-description {
  font-size: 1em;
  color: var(--text-main-color, #333333);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
}

.page-the-thao__promo-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-the-thao__promo-image {
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-cta {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__promo-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-the-thao__promo-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* Download App Section */
.page-the-thao__download-app-section {
  padding: 60px 0;
}

.page-the-thao__download-app-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-the-thao__download-app-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__download-app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.page-the-thao__download-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main-color, #333333);
  list-style: none;
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #E53935);
}

.page-the-thao__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-main-color, #333333);
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 80px 0;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: 3em;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__betting-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__features-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-the-thao__promo-image {
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }
  .page-the-thao__hero-image-wrapper {
    max-height: none;
  }
  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile: contain to avoid cropping important content */
    aspect-ratio: unset !important;
  }
  .page-the-thao__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 1.1em;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* General content sections */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-the-thao__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Buttons */
  .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-cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Betting Types Grid */
  .page-the-thao__betting-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__betting-card-image {
    width: 100%;
    height: auto;
  }

  /* Sports Grid */
  .page-the-thao__sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Allow 2 columns for smaller cards */
    gap: 20px;
  }
  .page-the-thao__sport-card {
    padding: 15px;
  }
  .page-the-thao__sport-icon {
    width: 80px;
    height: 80px;
  }

  /* Features Grid */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__feature-icon {
    width: 50px;
    height: 50px;
  }

  /* How to Start Steps Grid */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Promotions Section */
  .page-the-thao__promo-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__promo-cta {
    text-align: center;
    min-width: unset;
  }

  /* Download App Section */
  .page-the-thao__download-app-grid {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__download-app-content {
    text-align: center;
    min-width: unset;
  }
  .page-the-thao__download-app-image-wrapper {
    min-width: unset;
  }
  .page-the-thao__download-app-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* CTA Section */
  .page-the-thao__cta-section {
    padding: 40px 0;
  }

  /* Universal image & container rules for mobile */
  .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__promo-content,
  .page-the-thao__download-app-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}