.page-the-thao {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg-color: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;

  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__section-title {
  font-size: clamp(2em, 4vw, 3em);
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-the-thao__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main-color);
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  background-color: var(--background-color);
  color: var(--text-main-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 40px 15px;
  text-align: center;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.5);
}

.page-the-thao__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

.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: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.2);
}

.page-the-thao__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: var(--card-bg-color);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.4);
}

/* Why Choose Us Section */
.page-the-thao__why-choose-us {
  background-color: var(--card-bg-color);
  padding: 80px 0;
}

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

.page-the-thao__feature-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.5);
}

.page-the-thao__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

/* Featured Sports Section */
.page-the-thao__featured-sports {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-the-thao__sport-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.5);
}

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

.page-the-thao__sport-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-the-thao__sport-description {
  color: var(--text-main-color);
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 25px;
}

/* How To Bet Section */
.page-the-thao__how-to-bet {
  background-color: var(--card-bg-color);
  padding: 80px 0;
}

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

.page-the-thao__step-card {
  background: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-the-thao__step-description {
  font-size: 1em;
  flex-grow: 1;
  margin-bottom: 25px;
  color: #555555;
}

/* Betting Tips Section */
.page-the-thao__betting-tips {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-the-thao__tip-card {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__tip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.5);
}

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

.page-the-thao__tip-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__tip-description {
  color: var(--text-main-color);
  font-size: 1em;
  flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: var(--card-bg-color);
  padding: 80px 0;
}

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

.page-the-thao__faq-item {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-the-thao__faq-item[open] {
  box-shadow: 0 5px 20px rgba(255, 140, 26, 0.3);
}

.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: var(--secondary-color);
  cursor: pointer;
  background: var(--card-bg-color);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
  list-style: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  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: 20px 25px;
  font-size: 1em;
  color: var(--text-main-color);
  background: var(--background-color);
}

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

/* Call To Action Section */
.page-the-thao__call-to-action {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-orange-color) 100%);
  padding: 80px 0;
  color: #ffffff;
}

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

.page-the-thao__cta-title {
  font-size: clamp(2.2em, 4.5vw, 3.2em);
  margin-bottom: 20px;
  font-weight: 800;
  color: #ffffff;
}

.page-the-thao__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-the-thao__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-width: 3px;
}

/* --- Responsive Styles --- */
/* Mobile image adaptation */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile button adaptation */
.page-the-thao__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__cta-buttons,
.page-the-thao__button-group,
.page-the-thao__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }

  .page-the-thao__main-title {
    font-size: 2.2em; /* Smaller H1 for mobile */
  }

  .page-the-thao__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;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

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

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

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

  .page-the-thao__feature-title,
  .page-the-thao__sport-title,
  .page-the-thao__step-title,
  .page-the-thao__tip-title {
    font-size: 1.4em;
  }

  .page-the-thao__feature-text,
  .page-the-thao__sport-description,
  .page-the-thao__step-description,
  .page-the-thao__tip-description {
    font-size: 0.95em;
  }

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

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

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

  .page-the-thao__cta-title {
    font-size: 1.8em;
  }

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

  .page-the-thao__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  /* General mobile image adaptation */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__container,
  .page-the-thao__hero-content,
  .page-the-thao__cta-content,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Button containers for multiple buttons */
  .page-the-thao__cta-buttons {
    display: flex;
    flex-direction: column !important; /* Force vertical stacking */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
  }
}