/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: #FFF3E6; /* Main text color for dark background */
  background-color: transparent; /* Body background is handled by shared.css var(--site-bg) which is #0D0E12 */
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFB04D; /* Glow color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description,
.page-the-thao__paragraph {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #FFF3E6;
}

.page-the-thao__paragraph {
    text-align: left;
    margin-bottom: 15px;
}

.page-the-thao__sub-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFA53A; /* Accent color for sub-titles */
    margin-bottom: 15px;
    text-align: left;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Dark gradient background for hero */
}

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

.page-the-thao__hero-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px; /* Ensure image doesn't get too small */
  text-align: center;
}

.page-the-thao__hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block; /* Ensures proper spacing */
}

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px; /* Ensure content doesn't get too small */
  color: #FFF3E6;
  text-align: left;
}

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

.page-the-thao__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: none; /* Override center alignment for hero */
  text-align: left;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button max-width */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-the-thao__btn-secondary {
  background: #17191F; /* Card BG color */
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

.page-the-thao__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.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);
  background-color: #17191F; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-the-thao__icon-box-media {
  width: 200px; /* Fixed size for square image */
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FF8C1A;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the circle */
  display: block;
  border-radius: 50%; /* Important for image to be circular within container */
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFA53A;
  margin-bottom: 10px;
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: #FFF3E6;
  text-align: center;
}

/* Main Content Area */
.page-the-thao__content-area {
    padding: 60px 0;
    background-color: #0D0E12;
}

.page-the-thao__image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-the-thao__image-text-block--reverse {
    flex-direction: row-reverse;
}

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

.page-the-thao__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-the-thao__text-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #FFF3E6;
}

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

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #17191F; /* Card BG for FAQ section */
}

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

.page-the-thao__faq-item {
  background-color: #0D0E12; /* Background color for each FAQ item */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFA53A;
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: #FFF3E6;
}

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


/* --- Responsive Styles for Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 20px 15px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  
  .page-the-thao__hero-container {
    flex-direction: column; /* Stack image and content */
    gap: 30px;
    padding: 20px 15px;
  }

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

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

  .page-the-thao__main-title {
    font-size: 2em;
    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;
    align-items: center;
  }

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

  /* Section Titles & Descriptions */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-the-thao__section-description,
  .page-the-thao__paragraph {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-the-thao__paragraph {
      text-align: left;
  }

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

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

  .page-the-thao__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }
  .page-the-thao__icon-box-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

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

  /* Main Content Area */
  .page-the-thao__content-area {
      padding: 40px 0;
  }

  .page-the-thao__image-text-block,
  .page-the-thao__image-text-block--reverse {
      flex-direction: column;
      gap: 20px;
      margin-bottom: 40px;
  }

  .page-the-thao__image-wrapper,
  .page-the-thao__text-content {
      flex: 1 1 100%;
      min-width: unset;
  }

  .page-the-thao__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__sub-title {
      font-size: 1.5em;
      text-align: center;
  }
  .page-the-thao__text-content .page-the-thao__paragraph {
      text-align: left;
  }

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

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

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

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

  /* General image and container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}