.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 light background */
}

/* --- Hero Section --- */
.page-the-thao__hero-section {
  padding-top: 10px; /* Adhering to the fixed header rule */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #017439, #005a2d); /* Gradient for hero background */
  color: #ffffff; /* Light text on dark background */
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 */
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on small screens */
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
}

.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: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

.page-the-thao__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

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

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #017439; /* Brand color for titles on light background */
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__section-description,
.page-the-thao__dark-bg .page-the-thao__content-title,
.page-the-thao__dark-bg .page-the-thao__content-paragraph,
.page-the-thao__dark-bg .page-the-thao__sport-list li,
.page-the-thao__dark-bg .page-the-thao__promo-title,
.page-the-thao__dark-bg .page-the-thao__promo-text {
  color: #ffffff; /* Light text on dark background */
}

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

.page-the-thao__icon-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-the-thao__icon-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 240px; /* Recommended larger size for desktop */
  height: 240px; /* Recommended larger size for desktop */
  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%;
  display: block;
}

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

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

/* --- Content Section (Module 2) --- */
.page-the-thao__content-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
}

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

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

.page-the-thao__content-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-the-thao__content-paragraph {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

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

.page-the-thao__sport-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-the-thao__sport-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Highlight checkmark */
  font-weight: bold;
}

.page-the-thao__content-image {
  flex: 1 1 35%;
  text-align: center;
  min-width: 250px;
}

.page-the-thao__blog-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Guide Section (Module 3) --- */
.page-the-thao__guide-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-the-thao__guide-step {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 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;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

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

.page-the-thao__guide-text {
  font-size: 1rem;
  color: #666666;
}

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

/* --- Promo Section (Module 4) --- */
.page-the-thao__promo-section {
  padding: 80px 0;
  background-color: #005a2d; /* Darker green background */
}

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

.page-the-thao__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #ffffff;
}

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

.page-the-thao__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight promo titles */
}

.page-the-thao__promo-text {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* --- FAQ Section (Module 5) --- */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-the-thao__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px 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.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* 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-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #017439;
  margin-left: 15px;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "−";
}

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

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

/* --- Final CTA Section --- */
.page-the-thao__final-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand dark green */
  text-align: center;
}

.page-the-thao__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

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

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    padding: 40px 15px;
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem;
    text-align: center;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
    text-align: center;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__hero-image {
    order: -1; /* Image above text on mobile */
    min-width: unset;
    width: 100%;
  }

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

  /* General Section */
  .page-the-thao__container {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem;
  }

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

  /* Intro Section (Module 1) */
  .page-the-thao__intro-section {
    padding: 50px 0;
  }

  .page-the-thao__icon-boxes {
    grid-template-columns: 1fr; /* Single column for icon boxes */
  }

  .page-the-thao__icon-box-media {
    width: 200px; /* Adjust size for mobile */
    height: 200px; /* Adjust size for mobile */
  }

  /* Content Section (Module 2) */
  .page-the-thao__content-section {
    padding: 50px 0;
  }

  .page-the-thao__content-wrapper {
    flex-direction: column; /* Stack content and image vertically */
    gap: 30px;
  }

  .page-the-thao__content-text {
    min-width: unset;
    width: 100%;
  }

  .page-the-thao__content-title {
    font-size: 1.8rem;
  }

  .page-the-thao__content-paragraph,
  .page-the-thao__sport-list li {
    font-size: 1rem;
  }

  .page-the-thao__content-image {
    min-width: unset;
    width: 100%;
  }

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

  /* Guide Section (Module 3) */
  .page-the-thao__guide-section {
    padding: 50px 0;
  }

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

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

  /* Promo Section (Module 4) */
  .page-the-thao__promo-section {
    padding: 50px 0;
  }

  .page-the-thao__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
    margin-top: 30px;
  }

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

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

  /* FAQ Section (Module 5) */
  .page-the-thao__faq-section {
    padding: 50px 0;
  }

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

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

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

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

  /* Final CTA Section */
  .page-the-thao__final-cta-section {
    padding: 50px 0;
  }

  /* General 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__content-wrapper,
  .page-the-thao__icon-boxes,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}