.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-text-color, #FFF3E6); /* Default to light text for dark background */
  background: var(--site-bg, #0D0E12); /* Use global background variable */
}

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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Specific top padding for main content, not header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

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

.page-the-thao__hero-content {
  background: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  padding: 30px 40px;
  border-radius: 8px;
  max-width: 90%;
  margin: -80px auto 0;
  position: relative;
  z-index: 10;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border */
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6; /* Text Main */
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  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: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

.page-the-thao__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F; /* Card BG for text on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  line-height: 1.3;
}

.page-the-thao__text-block {
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__introduction-section,
.page-the-thao__betting-types-section,
.page-the-thao__promotions-section,
.page-the-thao__contact-cta-section {
  padding: 40px 0;
  background: #0D0E12; /* Background */
}

.page-the-thao__why-choose-section,
.page-the-thao__guide-section,
.page-the-thao__leagues-section,
.page-the-thao__faq-section {
  padding: 40px 0;
  background: #17191F; /* Card BG */
}

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

.page-the-thao__feature-card {
  background: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-the-thao__card-text {
  font-size: 0.95rem;
  color: #FFF3E6; /* Text Main */
  text-align: justify;
}

.page-the-thao__betting-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__betting-type-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  color: #FFF3E6; /* Text Main */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-the-thao__guide-step {
  background: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #FFF3E6; /* Text Main */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid #17191F; /* Card BG */
  box-shadow: 0 0 0 5px #A84F0C; /* Border */
}

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

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

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

.page-the-thao__tip-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  color: #FFF3E6; /* Text Main */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__leagues-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: #FFF3E6; /* Text Main */
}

.page-the-thao__leagues-list li {
  background: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border */
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.page-the-thao__leagues-list li strong {
  color: #FFA53A;
  margin-right: 10px;
  flex-shrink: 0;
}

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

.page-the-thao__promotion-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6; /* Text Main */
  display: flex;
  flex-direction: column;
}

.page-the-thao__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__promotion-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__promotion-card .page-the-thao__card-title {
  margin-top: 0;
}

.page-the-thao__promotion-card .page-the-thao__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

.page-the-thao__link {
  color: #FFA53A;
  text-decoration: underline;
}

.page-the-thao__link:hover {
  color: #FFB04D;
}

/* FAQ styles */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #0D0E12; /* Background */
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #17191F; /* Card BG */
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFA53A; /* Auxiliary color for questions */
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #17191F; /* Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}

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

.page-the-thao__contact-cta-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(180deg, #D96800 0%, #FF8C1A 100%);
    border-top: 2px solid #A84F0C;
}

.page-the-thao__contact-cta-content {
    max-width: 900px;
}

.page-the-thao__contact-cta-section .page-the-thao__section-title {
    color: #FFF3E6;
    margin-bottom: 20px;
}

.page-the-thao__contact-cta-section .page-the-thao__text-block {
    color: #FFF3E6;
    margin-bottom: 40px;
    font-size: 1.1rem;
}


/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-image-wrapper {
    height: 400px;
  }
  .page-the-thao__hero-content {
    padding: 25px 30px;
    max-width: 95%;
    margin-top: -60px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-the-thao__description {
    font-size: 1rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }
  .page-the-thao__cta-buttons {
    flex-direction: row;
    gap: 15px;
  }
  .page-the-thao__leagues-list li {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__hero-section {
    margin-bottom: 20px;
    padding-top: 10px;
  }
  .page-the-thao__hero-image-wrapper {
    height: 300px;
  }
  .page-the-thao__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped on mobile */
    aspect-ratio: unset !important;
  }
  .page-the-thao__hero-content {
    padding: 20px;
    max-width: calc(100% - 30px);
    margin-top: -40px;
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-the-thao__description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .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;
    font-size: 0.95rem;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
    padding-top: 10px;
  }
  .page-the-thao__text-block {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  .page-the-thao__introduction-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__tips-section,
  .page-the-thao__leagues-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta-section {
    padding: 20px 0;
  }
  .page-the-thao__features-grid,
  .page-the-thao__betting-types-list,
  .page-the-thao__guide-steps,
  .page-the-thao__tips-list,
  .page-the-thao__promotions-grid {
    gap: 20px;
    margin-top: 20px;
    grid-template-columns: 1fr;
  }
  .page-the-thao__feature-card,
  .page-the-thao__betting-type-item,
  .page-the-thao__guide-step,
  .page-the-thao__tip-item,
  .page-the-thao__promotion-card {
    padding: 20px;
  }
  .page-the-thao__feature-icon {
    max-width: 150px;
  }
  .page-the-thao__card-title,
  .page-the-thao__betting-type-title,
  .page-the-thao__step-title,
  .page-the-thao__tip-title {
    font-size: 1.2rem;
  }
  .page-the-thao__leagues-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }
  .page-the-thao__leagues-list li strong {
    margin-bottom: 5px;
  }
  .page-the-thao__promotion-image {
    max-height: 150px;
  }

  /* General image and container rules for mobile */
  .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,
  .page-the-thao__hero-section,
  .page-the-thao__introduction-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__tips-section,
  .page-the-thao__leagues-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* FAQ specific mobile styles */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 15px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }
}