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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Specific top padding to avoid double header offset */
  padding-bottom: 40px;
  background: #FFFFFF;
  color: #333333;
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

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

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

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-the-thao__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

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

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

/* General Section Styling */
.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__icon-box {
  flex: 1 1 calc(33.333% - 20px);
  min-width: 280px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__icon-box-media {
  width: 200px; /* Fixed width for square */
  height: 200px; /* Fixed height for square */
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-the-thao__icon-box-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439;
}

.page-the-thao__icon-box-description {
  font-size: 1em;
  color: #555555;
}

/* Content Sections with Image and Text */
.page-the-thao__sports-overview-section,
.page-the-thao__bet-types-section,
.page-the-thao__promo-section {
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background: #017439;
  color: #ffffff; /* Forced white text */
}

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

.page-the-thao__dark-section .page-the-thao__section-description,
.page-the-thao__dark-section p,
.page-the-thao__dark-section li {
  color: #f0f0f0;
}

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

.page-the-thao__content-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-the-thao__content-grid--reverse {
  flex-direction: row-reverse;
}

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

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

.page-the-thao__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

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

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

.page-the-thao__text {
  margin-bottom: 20px;
}

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

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

.page-the-thao__guide-item {
  flex: 1 1 calc(20% - 16px);
  min-width: 220px;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__guide-step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  background: #C30808;
  color: #FFFF00;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.page-the-thao__guide-item-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ffffff;
}

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

.page-the-thao__centered-cta {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__guide-image {
  margin-bottom: 30px;
  border-radius: 8px;
}

/* Promo Section */
.page-the-thao__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__promo-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-the-thao__promo-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

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

.page-the-thao__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none;
  user-select: 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: 10px;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }
  .page-the-thao__cta-buttons {
    justify-content: center;
  }
  .page-the-thao__feature-grid {
    gap: 20px;
  }
  .page-the-thao__icon-box {
    flex: 1 1 calc(50% - 10px);
  }
  .page-the-thao__content-grid {
    flex-direction: column;
  }
  .page-the-thao__content-grid--reverse {
    flex-direction: column;
  }
  .page-the-thao__text-block,
  .page-the-thao__image-block {
    flex: 1 1 100%;
  }
  .page-the-thao__promo-content {
    flex-direction: column;
  }
  .page-the-thao__promo-text,
  .page-the-thao__promo-image {
    flex: 1 1 100%;
  }
  .page-the-thao__guide-steps {
    flex-wrap: wrap;
    justify-content: center;
  }
  .page-the-thao__guide-item {
    flex: 1 1 calc(50% - 10px);
  }
}

@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;
    overflow: hidden !important;
  }
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-the-thao__hero-title {
    font-size: 2em;
  }
  .page-the-thao__hero-description {
    font-size: 1em;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .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-image img,
  .page-the-thao__image-block img,
  .page-the-thao__guide-image,
  .page-the-thao__promo-image img,
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__icon-box-media {
    width: 150px; /* Smaller square for mobile */
    height: 150px;
    border-width: 3px;
  }
  .page-the-thao__icon-box {
    flex: 1 1 100%;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
  }
  .page-the-thao__section-description {
    font-size: 1em;
  }
  .page-the-thao__guide-item {
    flex: 1 1 100%;
  }
  .page-the-thao__faq-question {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-the-thao__faq-answer {
    padding: 0 15px 12px;
  }
}