/* style/the-thao.css */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Ensure body background is respected */
}

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

.page-the-thao__section-title {
  font-size: 3em;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #555555;
}

/* HERO Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #F5F5F5;
  color: #1e1765; /* Darker text for a slightly off-white background */
}

.page-the-thao__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.page-the-thao__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
}

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

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

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-the-thao__feature-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: #fcfcfc;
  min-width: 280px;
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-shadow: 0 0 0 8px rgba(38, 169, 224, 0.2);
}

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

.page-the-thao__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-the-thao__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  padding: 60px 0;
  background-color: #F9F9F9;
}

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

.page-the-thao__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

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

.page-the-thao__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-the-thao__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-the-thao__card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
  padding: 0 15px 20px;
}

.page-the-thao__btn-text {
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-the-thao__guide-section .page-the-thao__section-title,
.page-the-thao__guide-section .page-the-thao__section-description {
  color: #FFFFFF;
}

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

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

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

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

.page-the-thao__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-the-thao__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-the-thao__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__promo-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__promo-subtitle {
  font-size: 2em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-the-thao__promo-list li {
  font-size: 1.1em;
  line-height: 1.8;
  color: #555555;
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.page-the-thao__promo-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

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

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

.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: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-the-thao__cta-bottom-section .page-the-thao__section-title,
.page-the-thao__cta-bottom-section .page-the-thao__section-description {
  color: #FFFFFF;
}

.page-the-thao__cta-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* General image responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-the-thao__container {
    padding: 20px 15px; /* Adjust padding for smaller screens */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

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

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    text-align: center;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
  }

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

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

  .page-the-thao__feature-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__feature-item {
    max-width: 100%;
    min-width: unset;
    padding: 15px;
  }

  .page-the-thao__icon-box-media {
    width: 200px; /* Maintain square shape */
    height: 200px;
    margin: 0 auto 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(38, 169, 224, 0.2);
  }

  .page-the-thao__feature-title {
    font-size: 1.5em;
  }

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

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

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

  .page-the-thao__card-title {
    font-size: 1.3em;
    margin: 15px 10px 8px;
  }

  .page-the-thao__card-text {
    padding: 0 10px 15px;
  }

  .page-the-thao__btn-text {
    padding: 8px 15px;
    font-size: 0.9em;
  }

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

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

  .page-the-thao__step-item {
    padding: 20px;
  }

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

  .page-the-thao__step-text {
    font-size: 0.95em;
  }

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

  .page-the-thao__promo-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-the-thao__promo-image,
  .page-the-thao__promo-text-block {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__promo-subtitle {
    font-size: 1.8em;
    text-align: center;
  }

  .page-the-thao__promo-list {
    padding-left: 0;
    text-align: left;
  }

  .page-the-thao__promo-list li {
    font-size: 1em;
    padding-left: 25px;
  }

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

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

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

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

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

  .page-the-thao__cta-bottom-content {
    gap: 20px;
  }

  /* General image and container responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__category-card,
  .page-the-thao__step-item,
  .page-the-thao__promo-content,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button-specific mobile overrides */
  .page-the-thao__cta-button,
  .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__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
  }
}