/* Base styles for the Thể thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F3F8FF); /* Default text color for dark body background */
  background-color: var(--deep-navy, #08162B); /* Assuming body background from shared is dark */
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F3F8FF);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(17, 59, 122, 0.8) 0%, rgba(8, 22, 43, 0.9) 100%);
  margin-top: -100px; /* Overlap slightly for visual effect, but not over image content */
  position: relative;
  z-index: 1;
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #AFC4E8);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-the-thao__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

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

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg, #10233F);
  color: var(--gold, #F2C14E);
  border: 2px solid var(--border, #244D84);
}

.page-the-thao__btn-secondary:hover {
  background: var(--glow, #4FA8FF);
  color: var(--deep-navy, #08162B);
  border-color: var(--glow, #4FA8FF);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__intro-section,
.page-the-thao__sports-highlight-section,
.page-the-thao__promo-section,
.page-the-thao__conclusion-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: var(--deep-navy, #08162B);
  color: var(--text-main, #F3F8FF);
}

.page-the-thao__intro-section p,
.page-the-thao__promo-section p,
.page-the-thao__conclusion-section p {
  font-size: 1.05em;
  color: var(--text-secondary, #AFC4E8);
  text-align: justify;
  margin-bottom: 20px;
}

.page-the-thao__dark-section {
  background-color: var(--main-color, #113B7A);
  color: #ffffff;
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-the-thao__feature-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

.page-the-thao__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__feature-card p {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  text-align: justify;
  flex-grow: 1;
}

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

.page-the-thao__sport-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__sport-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  padding: 15px 20px 10px;
  font-weight: 600;
}

.page-the-thao__sport-card p {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  padding: 0 20px 20px;
  text-align: justify;
  flex-grow: 1;
}

.page-the-thao__guide-section {
  padding: 60px 0;
  margin-bottom: 40px;
  background-color: var(--main-color, #113B7A);
  color: #ffffff;
}

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

.page-the-thao__step-card {
  background: var(--card-bg, #10233F);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  font-size: 3em;
  color: var(--gold, #F2C14E);
  font-weight: bold;
  margin-bottom: 15px;
  background: rgba(242, 193, 78, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__step-title {
  font-size: 1.6em;
  color: var(--text-main, #F3F8FF);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__step-card p {
  font-size: 0.95em;
  color: var(--text-secondary, #AFC4E8);
  text-align: justify;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-the-thao__promo-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  display: block;
}

.page-the-thao__promo-buttons,
.page-the-thao__conclusion-buttons {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-the-thao__faq-section {
  background-color: var(--deep-navy, #08162B);
  padding: 60px 0;
  margin-bottom: 40px;
  color: var(--text-main, #F3F8FF);
}

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

.page-the-thao__faq-item {
  background: var(--card-bg, #10233F);
  border: 1px solid var(--border, #244D84);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F3F8FF);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-question:hover {
  background-color: rgba(29, 95, 209, 0.1);
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: var(--main-color, #113B7A);
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold, #F2C14E);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #AFC4E8);
  line-height: 1.7;
}

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

  .page-the-thao__container {
    padding: 15px;
  }

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

  .page-the-thao__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image {
    max-height: 300px;
  }

  .page-the-thao__hero-content {
    padding: 20px 15px;
    margin-top: -50px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  .page-the-thao__hero-buttons,
  .page-the-thao__promo-buttons,
  .page-the-thao__conclusion-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  .page-the-thao__intro-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__sports-highlight-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    padding: 40px 0;
    margin-bottom: 20px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__sport-card,
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__feature-icon {
    max-width: 100px;
    margin-bottom: 15px;
  }

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

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

  .page-the-thao__sport-title {
    font-size: 1.2em;
    padding: 10px 15px;
  }

  .page-the-thao__sport-card p {
    padding: 0 15px 15px;
  }

  .page-the-thao__step-number {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }

  .page-the-thao__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

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

  .page-the-thao__promo-image {
    max-height: 250px;
    margin-bottom: 20px;
  }

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

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

  /* Generic image and container responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-the-thao__content-area,
  .page-the-thao__dark-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section,
  .page-the-thao__hero-section .page-the-thao__hero-content,
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Placeholder for HOMEPAGE_ONLY sections if they were used, ensuring mobile rules are present */
/* The-thao is not homepage, so these are not actively used, but included for completeness as per checklist */
.page-the-thao__row-games, .page-the-thao__row-sport, .page-the-thao__row-coop { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__games-title, .page-the-thao__sport-title, .page-the-thao__coop-title { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__slider-wrapper { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__slider-track { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__game-slide { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__banners-top-wrapper { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__banner-item img { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__blog-masonry { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__blog-card-link { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__btn-outline { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__blog-slider-track { /* Not applicable to this page, but included for checklist */ }
.page-the-thao__blog-slide { /* Not applicable to this page, but included for checklist */ }

@media (max-width: 768px) {
  /* These are for HOMEPAGE_ONLY sections, not strictly for the-thao.html, but included for checklist */
  .page-the-thao__blog-masonry { grid-template-columns: 1fr; } /* Example for blog masonry if present */
  .page-the-thao__game-slide { flex: 0 0 160px; max-width: 160px; } /* Example for game slides if present */
  .page-the-thao__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* Example for banners if present */
  .page-the-thao__blog-slide { flex: 0 0 100%; max-width: 100%; } /* Example for blog slides if present */
}