.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--accent-color, #017439); /* Inherit from shared or use primary color as fallback */
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: 10px; /* Small top padding, body padding-top handled by shared */
  padding-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 15px;
  z-index: 1;
  position: relative;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: #FFFF00; /* Yellow for prominence */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.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;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-the-thao__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

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

.page-the-thao__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__text-link {
  color: #FFFF00;
  text-decoration: underline;
}

.page-the-thao__text-link:hover {
  color: #e01010;
}

.page-the-thao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
}

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

.page-the-thao__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-the-thao__feature-description {
  font-size: 1em;
  line-height: 1.5;
}

.page-the-thao__bet-type-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-the-thao__bet-type-description {
  font-size: 1em;
  line-height: 1.5;
}

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

.page-the-thao__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-the-thao__step-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-the-thao__step-description {
  font-size: 1.1em;
  line-height: 1.5;
}

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

.page-the-thao__promo-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-the-thao__promo-description {
  font-size: 1.1em;
  line-height: 1.5;
}

.page-the-thao__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

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

.page-the-thao__feature-card-description {
  font-size: 1em;
  line-height: 1.5;
}

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

  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 20px;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 300px;
  }

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

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

  .page-the-thao__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-the-thao__section {
    padding: 30px 0;
  }

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

  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 1em;
  }

  .page-the-thao__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__bet-type-item,
  .page-the-thao__step-item,
  .page-the-thao__promo-item,
  .page-the-thao__feature-card {
    padding: 20px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__bet-type-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title,
  .page-the-thao__feature-card-title {
    font-size: 1.3em;
  }
}