/* Base styles for .page-the-thao */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is #FFFFFF */
  padding-bottom: 60px; /* Space for footer */
}

/* Page content area */
.page-the-thao__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

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

.page-the-thao__section-title--light {
  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--light {
  color: #f0f0f0;
}

/* Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%; /* Ensure container fills width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

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

.page-the-thao__btn-tertiary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Fixed header offset handled by body, this is extra padding */
  padding-bottom: 60px;
  background-color: #FFFFFF; /* Light background for the hero */
}

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

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  padding-right: 20px;
  box-sizing: border-box;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-the-thao__intro-text {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
}

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

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

/* Feature Section (Module 1) */
.page-the-thao__feature-section {
  padding: 60px 0;
  background-color: #f5f5f5; /* Light background */
}

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

.page-the-thao__icon-box {
  text-align: center;
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-the-thao__icon-box:hover {
  transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #017439; /* Brand color border */
}

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

.page-the-thao__icon-box-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Sports Section */
.page-the-thao__sports-section {
  padding: 60px 0;
  background-color: #017439; /* Dark brand background */
}

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

.page-the-thao__sport-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
}

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

.page-the-thao__sport-card-title {
  font-size: 1.5em;
  color: #017439;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-the-thao__sport-card-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px;
}

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

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

.page-the-thao__guide-step {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for icon */
}

.page-the-thao__guide-step-icon {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-the-thao__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__guide-step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Promotion Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: #017439; /* Dark brand background */
}

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

.page-the-thao__promo-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.page-the-thao__promo-card-title {
  font-size: 1.5em;
  color: #017439;
  padding: 15px 20px 5px;
  font-weight: bold;
}

.page-the-thao__promo-card-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 15px;
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Light green background for question */
  border-bottom: 1px solid #d4edda;
  user-select: none;
  list-style: none; /* For <summary> */
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

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

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

.page-the-thao__cta-final-content {
  max-width: 900px;
  padding: 40px 16px;
}

/* Images responsive base */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

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

  .page-the-thao__hero-content {
    padding-right: 0;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-the-thao__hero-image {
    margin-top: 30px;
  }

  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
  }

  .page-the-thao__sport-card-image,
  .page-the-thao__promo-card-image {
    height: 180px;
  }
}

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

  .page-the-thao__content-area {
    padding: 20px 15px !important;
  }

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

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

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Specific override for hero section top padding */
    padding-bottom: 40px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    text-align: center;
  }

  .page-the-thao__intro-text {
    font-size: 1em;
    text-align: center;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Module 1 - Feature Section */
  .page-the-thao__feature-section {
    padding: 40px 0;
  }

  .page-the-thao__feature-list {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-the-thao__icon-box {
    padding: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 160px; /* Smaller square */
    height: 160px; /* Smaller square */
    margin-bottom: 15px;
    border-width: 3px;
  }

  .page-the-thao__icon-box-title {
    font-size: 1.4em;
  }

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

  .page-the-thao__sport-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-the-thao__sport-card-image {
    height: 160px; /* Smaller height */
  }

  .page-the-thao__sport-card-title {
    font-size: 1.3em;
  }

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

  .page-the-thao__guide-steps {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

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

  .page-the-thao__guide-step-icon {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    top: -15px;
    border-width: 2px;
  }

  .page-the-thao__guide-step-title {
    font-size: 1.3em;
  }

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

  .page-the-thao__promo-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-the-thao__promo-card-image {
    height: 180px;
  }

  .page-the-thao__promo-card-title {
    font-size: 1.3em;
  }

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

  .page-the-thao__faq-list {
    margin-top: 20px;
  }

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

  .page-the-thao__faq-toggle {
    font-size: 1.3em;
  }

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

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

  .page-the-thao__cta-final-content {
    padding: 20px 15px;
  }

  /* Image responsive force */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Exception for round images, maintain aspect ratio */
  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-container,
  .page-the-thao__feature-list,
  .page-the-thao__sport-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid,
  .page-the-thao__faq-list,
  .page-the-thao__cta-final-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}