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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Ensure light background for hero */
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 16px;
}

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

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  color: #333333;
  margin-bottom: 30px;
}

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

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

.page-the-thao__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* General Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.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: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
}

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

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

/* General Section Styling */
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 16px;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao__section-title--white {
  color: #FFFFFF;
}

.page-the-thao__text-block {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-the-thao__text-block--white {
  color: #FFFFFF;
}

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

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

/* Intro Section */
.page-the-thao__intro-section .page-the-thao__text-block {
  text-align: left;
}
.page-the-thao__intro-section .page-the-thao__section-title {
  text-align: left;
}
.page-the-thao__intro-section .page-the-thao__container {
  padding-bottom: 30px; /* Adjust padding if needed */
}

/* Features Section */
.page-the-thao__features-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__feature-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-the-thao__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-the-thao__feature-description {
  font-size: 1rem;
  color: #555555;
}

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

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

.page-the-thao__guide-step {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__guide-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.page-the-thao__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-the-thao__guide-description {
  font-size: 0.95rem;
  color: #555555;
}

.page-the-thao__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-item summary {
  list-style: none; /* Hide default marker */
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: #FFFFFF;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #017439;
  margin-left: 15px;
  width: 20px; /* Fixed width to prevent layout shift */
  text-align: center;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #f9f9f9;
}

.page-the-thao__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

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

  .page-the-thao__hero-content {
    order: 2; /* Content below image on smaller screens */
  }

  .page-the-thao__hero-image {
    order: 1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }

  .page-the-thao__hero-title,
  .page-the-thao__hero-description {
    text-align: center;
  }

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

  .page-the-thao__feature-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-the-thao__container {
    padding: 40px 15px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding for header offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    gap: 30px;
    padding: 0 15px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to container for buttons */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles */
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 0.95rem;
    text-align: left; /* Reset text-align for mobile */
  }

  /* Features Section */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

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

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

  /* Guide Section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-the-thao__guide-step {
    padding: 25px;
  }

  .page-the-thao__guide-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .page-the-thao__guide-title {
    font-size: 1.2rem;
  }

  /* Promo Section */
  .page-the-thao__promo-section .page-the-thao__text-block {
    text-align: left; /* Reset text-align for mobile */
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    margin-top: 30px;
  }

  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* Universal image and container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__guide-step,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific padding for content containers to ensure content doesn't touch edges */
  .page-the-thao__intro-section .page-the-thao__container,
  .page-the-thao__features-section .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 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}