.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF1E8); /* Default text color from custom scheme */
  background-color: var(--background, #140C0C); /* Default background from custom scheme */
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold, #F3C54D); /* Gold color for section titles */
  line-height: 1.2;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Responsive font size for H1 */
  font-weight: bold;
  text-align: center;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-main, #FFF1E8);
}

.page-the-thao__link-text {
  color: var(--gold, #F3C54D);
  text-decoration: underline;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  background-color: var(--deep-red, #7E0D0D); /* Deep Red background for hero */
  padding-bottom: 40px;
}

.page-the-thao__hero-image {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8; /* Text Main */
  border: none;
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.page-the-thao__btn-secondary {
  background: var(--card-bg, #2A1212); /* Card BG */
  color: var(--gold, #F3C54D); /* Gold */
  border: 2px solid var(--border, #6A1E1E); /* Border color */
}

.page-the-thao__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--deep-red, #7E0D0D);
}

.page-the-thao__about-sports-section,
.page-the-thao__why-choose-us-section,
.page-the-thao__promotions-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section,
.page-the-thao__final-cta-section {
  padding: 60px 0;
  background-color: var(--background, #140C0C);
}

.page-the-thao__sports-categories-section {
  padding: 60px 0;
  background-color: var(--card-bg, #2A1212);
}

.page-the-thao__image-content {
  margin: 30px auto;
  max-width: 800px;
  overflow: hidden;
  border-radius: 8px;
}

.page-the-thao__image-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-the-thao__category-card,
.page-the-thao__feature-item,
.page-the-thao__promotion-card {
  background-color: var(--card-bg, #2A1212);
  border: 1px solid var(--border, #6A1E1E);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__category-card img,
.page-the-thao__feature-item img,
.page-the-thao__promotion-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-the-thao__card-title,
.page-the-thao__feature-title,
.page-the-thao__guide-step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold, #F3C54D);
  margin-bottom: 15px;
}

.page-the-thao__card-description,
.page-the-thao__feature-description {
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
}

.page-the-thao__guide-list li {
  background-color: var(--card-bg, #2A1212);
  border: 1px solid var(--border, #6A1E1E);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg, #2A1212);
  border: 1px solid var(--border, #6A1E1E);
  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.2em;
  font-weight: bold;
  color: var(--gold, #F3C54D);
  cursor: pointer;
  background-color: var(--deep-red, #7E0D0D);
  border-bottom: 1px solid var(--border, #6A1E1E);
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  border-bottom: 1px solid var(--border, #6A1E1E);
}

.page-the-thao__faq-question::-webkit-details-marker,
.page-the-thao__faq-question::marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: var(--text-main, #FFF1E8);
  border-top: none;
}

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

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

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

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

  .page-the-thao__hero-section {
    padding-bottom: 20px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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: 12px 20px;
  }

  .page-the-thao__sports-categories-section,
  .page-the-thao__about-sports-section,
  .page-the-thao__why-choose-us-section,
  .page-the-thao__promotions-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__final-cta-section {
    padding: 40px 0;
  }

  .page-the-thao__category-grid,
  .page-the-thao__feature-grid,
  .page-the-thao__promotion-cards {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

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

  .page-the-thao__guide-list li {
    padding: 20px;
  }

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

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

  /* Table specific mobile styles (if any tables are generated) */
  .page-the-thao__home-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap; /* Prevent content from wrapping inside cells */
    width: 100%; /* Ensure table takes full width */
  }
  .page-the-thao__home-content table thead, .page-the-thao__home-content table tbody, .page-the-thao__home-content table th, .page-the-thao__home-content table td, .page-the-thao__home-content table tr {
    /* These rules are for vertical stacking of table cells, not needed with overflow-x: auto for horizontal scroll */
    /* display: block; */
  }
  .page-the-thao__home-content table th, .page-the-thao__home-content table td {
    /* width: 100%; */ /* Not ideal with overflow-x: auto, let content determine width */
    box-sizing: border-box;
    text-align: left;
    border-bottom: 1px solid var(--border, #6A1E1E);
    min-width: 120px; /* Ensure cells have a minimum readable width */
  }
  .page-the-thao__home-content table tr {
    margin-bottom: 10px;
    border: 1px solid var(--border, #6A1E1E);
    border-radius: 8px;
    overflow: hidden;
  }
  .page-the-thao__home-content table td:last-child {
    border-bottom: none;
  }
  .page-the-thao__home-content table th {
    background-color: var(--deep-red, #7E0D0D);
    color: var(--gold, #F3C54D);
  }
}