.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main); /* Default text color for the page */
  background-color: var(--Deep-Navy); /* Body background color */
}

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

.page-the-thao__card {
  background: var(--Card-B-G);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: var(--Text-Main);
  border: 1px solid var(--Border);
}

.page-the-thao__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--Text-Main);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Text-Secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-the-thao__sub-title {
  font-size: 2em;
  font-weight: 600;
  color: var(--Text-Main);
  margin-bottom: 20px;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.3);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--Text-Main);
  border: 2px solid var(--Border);
  box-shadow: none;
}

.page-the-thao__btn-secondary:hover {
  background: rgba(29, 95, 209, 0.1);
  color: var(--Glow);
  border-color: var(--Glow);
}

.page-the-thao__btn-small {
  padding: 10px 20px;
  font-size: 1em;
}

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  background: var(--Card-B-G);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--Border);
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 800;
  color: var(--Text-Main);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

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

/* About Section */
.page-the-thao__about-section {
  padding: 60px 0;
}

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

.page-the-thao__feature-item {
  text-align: center;
}

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

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

.page-the-thao__feature-description {
  font-size: 1em;
  color: var(--Text-Secondary);
  line-height: 1.6;
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

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

.page-the-thao__type-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

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

.page-the-thao__type-text {
  font-size: 1em;
  color: var(--Text-Secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-the-thao__live-betting-section {
  padding: 80px 0;
}

.page-the-thao__live-betting-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-the-thao__live-betting-text {
  flex: 1;
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-the-thao__list li {
  font-size: 1.1em;
  color: var(--Text-Secondary);
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  line-height: 1.5;
}

.page-the-thao__list li::before {
  content: '✔';
  color: var(--Glow);
  position: absolute;
  left: 0;
  top: 0;
}

.page-the-thao__list-strong {
  color: var(--Text-Main);
}

.page-the-thao__live-betting-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--Border);
}

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

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

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

.page-the-thao__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__promo-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--Text-Main);
  margin-bottom: 10px;
}

.page-the-thao__promo-text {
  font-size: 1em;
  color: var(--Text-Secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__view-all-promos {
  text-align: center;
}

/* How to Start Section */
.page-the-thao__how-to-start-section {
  padding: 80px 0;
}

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

.page-the-thao__step-item {
  text-align: center;
  position: relative;
  padding-top: 50px;
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  border: 3px solid var(--Border);
  box-shadow: 0 0 0 5px var(--Deep-Navy);
}

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

.page-the-thao__step-text {
  font-size: 1em;
  color: var(--Text-Secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Tips Section */
.page-the-thao__tips-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
}

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

.page-the-thao__tip-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__tip-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--Text-Main);
  margin-bottom: 10px;
}

.page-the-thao__tip-text {
  font-size: 1em;
  color: var(--Text-Secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
}

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

.page-the-thao__faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--Text-Main);
  cursor: pointer;
  background: var(--Card-B-G);
  border-bottom: 1px solid var(--Divider);
  user-select: none;
  list-style: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
  color: var(--Text-Main);
}

.page-the-thao__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: var(--Glow);
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  background: rgba(16, 35, 63, 0.7); /* Slightly lighter background for answer */
  color: var(--Text-Secondary);
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid var(--Divider);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background: var(--Card-B-G);
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--Deep-Navy);
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 2.2em;
  }

  .page-the-thao__hero-content {
    margin-top: -80px;
  }

  .page-the-thao__live-betting-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-the-thao__live-betting-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  /* General content area padding */
  .page-the-thao__container,
  .page-the-thao__hero-content,
  .page-the-thao__cta-buttons,
  .page-the-thao__features-grid,
  .page-the-thao__type-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__tips-grid,
  .page-the-thao__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* All images must be responsive */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
  }

  .page-the-thao__hero-image-wrapper {
    max-height: none !important;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
  }

  .page-the-thao__hero-content {
    margin-top: -60px; /* Adjust overlap */
    padding: 30px 15px;
  }

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

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

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

  /* Buttons responsive */
  .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 !important;
    padding-right: 15px !important;
  }
  
  .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: 0px !important; /* Container handles padding */
    padding-right: 0px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Sections padding */
  .page-the-thao__about-section,
  .page-the-thao__sports-types-section,
  .page-the-thao__live-betting-section,
  .page-the-thao__promotions-section,
  .page-the-thao__how-to-start-section,
  .page-the-thao__tips-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 40px 0;
  }

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

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

  /* Feature Grid (About Section) */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__feature-icon {
    width: 150px;
    height: 150px;
  }

  /* Sports Types Grid */
  .page-the-thao__type-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__type-image {
    height: 200px;
  }

  /* Live Betting Section */
  .page-the-thao__live-betting-content {
    flex-direction: column;
  }

  /* Promotions Grid */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__promo-image {
    height: 180px;
  }

  /* How to Start Steps */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    top: -25px;
  }
  .page-the-thao__step-item {
    padding-top: 40px;
  }

  /* Tips Grid */
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__tip-image {
    height: 180px;
  }

  /* FAQ Section */
  .page-the-thao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.5em;
  }

  /* Dark section background */
  .page-the-thao__dark-section {
    background-color: var(--Deep-Navy);
  }

  /* No winner list or blog load more on this page */
}

/* Ensure all elements within .page-the-thao are affected by the default color scheme */
.page-the-thao p,
.page-the-thao li,
.page-the-thao span {
  color: var(--Text-Secondary);
}

.page-the-thao h1,
.page-the-thao h2,
.page-the-thao h3,
.page-the-thao h4,
.page-the-thao h5,
.page-the-thao h6 {
  color: var(--Text-Main);
}

/* Specific contrast adjustments for brand colors */
.page-the-thao__dark-bg {
  background: var(--Deep-Navy);
  color: var(--Text-Main);
}

.page-the-thao__light-bg {
  background: #ffffff;
  color: #333333;
}

.page-the-thao__medium-bg {
  background: var(--Auxiliary-Color);
  color: #000000; /* Default to dark text for medium background */
}