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

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  background-color: #f8f8f8; /* Light background for hero section */
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-the-thao__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 8px 15px;
}

.page-the-thao__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.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;
  display: block;
  margin: 0 auto;
}

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
}

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

.page-the-thao__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.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-description {
  color: #f0f0f0;
}

/* Intro Section - Module 1 */
.page-the-thao__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__feature-item {
  padding: 25px;
  border-radius: 12px;
  background-color: #f0f8ff; /* Light blue tint */
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-the-thao__icon-box-media {
  width: 200px; 
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
}

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

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

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

/* Sports Categories Section */
.page-the-thao__sports-categories {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-the-thao__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-the-thao__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* 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(280px, 1fr));
  gap: 30px;
}

.page-the-thao__guide-item {
  background-color: #f0f8ff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.page-the-thao__guide-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #EA7C07; /* Login color for numbers */
  margin-bottom: 15px;
}

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

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

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

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

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

.page-the-thao__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e6f7ff; /* Lighter tint for summary */
  position: relative;
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle */
}

.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;
}

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

  .page-the-thao__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

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

  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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;
  }

  /* Module 1: Intro Section - Three Column Round Images */
  .page-the-thao__intro-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-the-thao__features-grid {
    grid-template-columns: 1fr; /* Single column */
  }

  .page-the-thao__icon-box-media {
    width: 180px; /* Still round, but smaller */
    height: 180px;
    border-width: 3px;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 15px;
  }

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

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

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

  .page-the-thao__card-image {
    height: 180px; /* Slightly smaller fixed height */
  }

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

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

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

  .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 Mobile Adaptation */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Exception for round images, they should maintain aspect ratio with object-fit */
  .page-the-thao__icon-box-media img {
    height: 100% !important; /* Override auto height for round images */
    width: 100% !important;
    object-fit: cover !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Color Contrast Safeguards */
.page-the-thao__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-the-thao__light-bg {
  color: #333333; /* White background, dark text */
}

/* Specific elements for contrast */
.page-the-thao__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}