/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Main text color for dark body background */
  background-color: #0D0E12; /* Inherited from body or set explicitly if needed */
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 60px;
  background-color: #0D0E12; /* Ensure consistent background */
}

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

.page-the-thao__hero-image-wrapper {
  flex: 1 1 50%;
  max-width: 600px; /* Adjust max-width as needed */
  text-align: center;
  order: 2; /* Image on right for desktop */
}

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

.page-the-thao__hero-content {
  flex: 1 1 40%;
  max-width: 500px;
  text-align: left;
  order: 1; /* Content on left for desktop */
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for H1 */
  font-weight: 700;
  color: #FFB04D; /* Glow color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: rgba(255, 165, 58, 0.1);
  color: #FFB04D;
  border-color: #FFB04D;
}

/* Section Titles & Descriptions */
.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

/* Intro Section (Feature Grid) */
.page-the-thao__intro-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG color for this section */
}

.page-the-thao__dark-section {
  background-color: #17191F; /* Card BG color for dark sections */
}

.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: 350px;
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border color */
}

.page-the-thao__icon-box-media {
  width: 200px; /* Fixed width for circular image */
  height: 200px; /* Fixed height for circular image */
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FFA53A; /* Accent border */
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

/* Types Section (Card Grid) */
.page-the-thao__types-section {
  padding: 80px 0;
  background-color: #0D0E12;
}

.page-the-thao__card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__card {
  flex: 1 1 calc(33.333% - 20px);
  max-width: 380px;
  background-color: #17191F; /* Card BG color */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__card-title {
  font-size: 1.6rem;
  color: #FFA53A;
  margin: 20px 20px 10px;
  font-weight: 600;
}

.page-the-thao__card-text {
  font-size: 1rem;
  color: #FFF3E6;
  padding: 0 20px 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.page-the-thao__card-button {
  margin: 0 20px 20px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 140, 26, 0.3);
}

.page-the-thao__card-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  box-shadow: 0 4px 12px rgba(255, 140, 26, 0.5);
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 80px 0;
  background-color: #17191F; /* Card BG color for this section */
}

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

.page-the-thao__guide-step {
  flex: 1 1 calc(25% - 22.5px);
  max-width: 280px;
  text-align: center;
  padding: 30px 20px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C;
}

.page-the-thao__guide-icon {
  width: 60px;
  height: 60px;
  background-color: #FFA53A;
  color: #17191F; /* Dark text for light background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 25px;
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.5);
}

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

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

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

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

.page-the-thao__promo-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__promo-card {
  flex: 1 1 calc(50% - 15px);
  max-width: 570px;
  background-color: #17191F;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__promo-title {
  font-size: 1.8rem;
  color: #FFA53A;
  margin: 25px 25px 15px;
  font-weight: 700;
}

.page-the-thao__promo-text {
  font-size: 1.05rem;
  color: #FFF3E6;
  padding: 0 25px 25px;
  flex-grow: 1;
}

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

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

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  border: 1px solid #A84F0C;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFA53A;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

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

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

.page-the-thao__section,
.page-the-thao__card,
.page-the-thao__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    gap: 30px;
    padding: 30px 15px;
  }
  .page-the-thao__hero-image-wrapper {
    flex: 1 1 100%;
    order: 1;
  }
  .page-the-thao__hero-content {
    flex: 1 1 100%;
    text-align: center;
    order: 2;
  }
  .page-the-thao__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-the-thao__cta-buttons {
    justify-content: center;
  }
  .page-the-thao__feature-item,
  .page-the-thao__card,
  .page-the-thao__promo-card {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .page-the-thao__guide-step {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .page-the-thao__promo-title {
    font-size: 1.6rem;
  }
}

@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 {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }
  .page-the-thao__hero-image-wrapper {
    max-width: 100%;
  }
  .page-the-thao__hero-content {
    max-width: 100%;
    text-align: center;
  }
  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .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;
  }

  /* Module 1 (Intro Section) - Three-column circular images */
  .page-the-thao__intro-section,
  .page-the-thao__types-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section {
    padding: 40px 0; /* Reduced padding */
  }
  .page-the-thao__container {
    padding: 20px 15px; /* Adjust container padding */
  }
  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }
  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-the-thao__feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__feature-item {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }
  .page-the-thao__icon-box-media {
    width: 150px; /* Smaller circular image */
    height: 150px; /* Smaller circular image */
    margin-bottom: 20px;
    border-width: 3px;
  }
  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }
  .page-the-thao__feature-text {
    font-size: 0.9rem;
  }

  /* Card Grid Sections (Types & Promo) */
  .page-the-thao__card-grid,
  .page-the-thao__promo-cards {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__card,
  .page-the-thao__promo-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-the-thao__card-image,
  .page-the-thao__promo-image {
    height: 180px; /* Smaller fixed height for mobile cards */
  }
  .page-the-thao__card-title {
    font-size: 1.4rem;
    margin: 15px 15px 8px;
  }
  .page-the-thao__card-text {
    font-size: 0.95rem;
    padding: 0 15px 15px;
  }
  .page-the-thao__card-button {
    margin: 0 15px 15px;
    font-size: 0.95rem;
  }
  .page-the-thao__promo-title {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
  }
  .page-the-thao__promo-text {
    font-size: 0.95rem;
    padding: 0 20px 20px;
  }

  /* Guide Section */
  .page-the-thao__guide-steps {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__guide-step {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px 20px;
  }
  .page-the-thao__guide-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .page-the-thao__guide-title {
    font-size: 1.3rem;
  }
  .page-the-thao__guide-text {
    font-size: 0.9rem;
  }
  .page-the-thao__cta-center {
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    margin-top: 30px;
  }
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* General Images and Containers */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}