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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  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;
}

.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;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #017439;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding for fixed header */
  padding-bottom: 60px;
  background-color: #FFFFFF;
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 16px;
}

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

.page-the-thao__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.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;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

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

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

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

.page-the-thao__feature-item:hover {
  transform: translateY(-10px);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: #666666;
}

/* Game Tabs Section (Sports Providers) */
.page-the-thao__game-tabs {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #FFFFFF;
}

.page-the-thao__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.page-the-thao__tab-button {
  background: transparent;
  border: none;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.page-the-thao__tab-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.page-the-thao__tab-button:hover {
  color: #FFFFFF;
}

.page-the-thao__tab-button.is-active {
  color: #FFFFFF;
}

.page-the-thao__tab-button.is-active::after {
  background-color: #FFFF00; /* Active tab indicator */
}

.page-the-thao__game-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-the-thao__game-panel.is-active {
  display: block;
}

.page-the-thao__game-panel-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
}

.page-the-thao__game-panel:nth-child(even) .page-the-thao__game-panel-inner {
  flex-direction: row-reverse; /* Alternate image/text order */
}

.page-the-thao__game-panel-text {
  flex: 1 1 50%;
  min-width: 300px;
  color: #FFFFFF;
}

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

.page-the-thao__game-panel-text p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-the-thao__game-panel-image {
  flex: 1 1 40%;
  min-width: 250px;
  text-align: center;
}

.page-the-thao__game-panel-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

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

.page-the-thao__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-the-thao__guide-step-item {
  flex: 1 1 18%;
  min-width: 180px;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #C30808;
  margin-bottom: 10px;
}

.page-the-thao__guide-step-title {
  font-size: 1.2em;
  color: #017439;
  margin-bottom: 10px;
}

.page-the-thao__guide-step-text {
  font-size: 0.95em;
  color: #666666;
}

.page-the-thao__guide-image {
  text-align: center;
}

.page-the-thao__guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 80px 0;
  background-color: #017439;
}

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

.page-the-thao__promo-card {
  flex: 1 1 45%;
  min-width: 320px;
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-10px);
}

.page-the-thao__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-card-content {
  padding: 25px;
  text-align: center;
}

.page-the-thao__promo-card-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-the-thao__promo-card-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
}

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

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

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

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

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

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

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

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

  .page-the-thao__game-panel-inner {
    flex-direction: column;
  }

  .page-the-thao__game-panel:nth-child(even) .page-the-thao__game-panel-inner {
    flex-direction: column;
  }

  .page-the-thao__game-panel-text,
  .page-the-thao__game-panel-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__guide-step-item {
    flex: 1 1 45%;
  }

  .page-the-thao__promo-card {
    flex: 1 1 80%;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
    font-size: 0.95em;
  }

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

  .page-the-thao__container,
  .page-the-thao__intro-section .page-the-thao__container,
  .page-the-thao__game-tabs .page-the-thao__container,
  .page-the-thao__guide-section .page-the-thao__container,
  .page-the-thao__promo-section .page-the-thao__container,
  .page-the-thao__faq-section .page-the-thao__container,
  .page-the-thao__cta-section .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__intro-features {
    flex-direction: column;
  }

  .page-the-thao__feature-item {
    flex: 1 1 100%;
    min-width: unset;
  }

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

  .page-the-thao__tab-nav {
    flex-direction: column;
    border-bottom: none;
  }

  .page-the-thao__tab-button {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-the-thao__tab-button.is-active::after {
    width: 50px;
    left: calc(50% - 25px);
  }

  .page-the-thao__game-panel-inner {
    padding: 20px;
  }

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

  .page-the-thao__guide-steps {
    flex-direction: column;
  }

  .page-the-thao__guide-step-item {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__promo-cards {
    flex-direction: column;
  }

  .page-the-thao__promo-card {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__promo-card-image {
    height: 200px; /* Adjust height for mobile */
  }

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

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

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

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

  .page-the-thao__promo-card-image {
    height: 200px !important; /* Override height:auto for specific fixed-height images */
  }

  /* Ensure no horizontal scroll */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}