.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #FFF5E1); /* Default text color for dark background */
  background-color: var(--background-color, #B71C1C); /* Main background */
}

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

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Minimal top padding, relies on body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--text-main-color, #FFF5E1);
  background-color: var(--deep-red-color, #7A0E0E);
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  margin-top: -100px; /* Overlap slightly for visual flow */
  background: rgba(var(--card-bg-rgb, 211, 47, 47), 0.85); /* Card BG with transparency */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color, #F2B544);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color, #F4D34D);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description,
.page-the-thao__section-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-main-color, #FFF5E1);
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #FFD86A 0%, #E6B800 100%));
  color: var(--deep-red-color, #7A0E0E);
  border: 2px solid var(--border-color, #F2B544);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--text-main-color, #FFF5E1);
  border: 2px solid var(--border-color, #F2B544);
}

.page-the-thao__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__light-bg {
  background-color: var(--light-bg-color, #ffffff);
  color: #333333; /* Dark text for light background */
}

.page-the-thao__dark-bg {
  background-color: var(--dark-bg-color, #B71C1C);
  color: var(--text-main-color, #FFF5E1); /* Light text for dark background */
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-color, #F4D34D);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__why-choose .page-the-thao__section-title,
.page-the-thao__how-to-join .page-the-thao__section-title,
.page-the-thao__security-commitment .page-the-thao__section-title,
.page-the-thao__faq-section .page-the-thao__section-title {
  color: var(--deep-red-color, #7A0E0E);
  text-shadow: none;
}

.page-the-thao__why-choose .page-the-thao__section-description,
.page-the-thao__how-to-join .page-the-thao__section-description,
.page-the-thao__security-commitment .page-the-thao__section-description,
.page-the-thao__faq-section .page-the-thao__section-description {
  color: #555555;
}

.page-the-thao__card {
  background-color: var(--card-bg-color, #D32F2F);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color, #FFF5E1);
  border: 1px solid var(--border-color, #F2B544);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

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

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

.page-the-thao__feature-icon,
.page-the-thao__betting-image,
.page-the-thao__step-icon,
.page-the-thao__promo-image,
.page-the-thao__news-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__security-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 60px;
  min-height: 60px;
}

.page-the-thao__feature-title,
.page-the-thao__betting-title,
.page-the-thao__step-title,
.page-the-thao__promo-title,
.page-the-thao__news-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color, #F4D34D);
}

.page-the-thao__light-bg .page-the-thao__feature-title,
.page-the-thao__light-bg .page-the-thao__betting-title,
.page-the-thao__light-bg .page-the-thao__step-title,
.page-the-thao__light-bg .page-the-thao__promo-title,
.page-the-thao__light-bg .page-the-thao__news-title a {
  color: var(--deep-red-color, #7A0E0E);
}

.page-the-thao__news-title a {
  text-decoration: none;
  color: var(--text-main-color, #FFF5E1);
}

.page-the-thao__news-title a:hover {
  text-decoration: underline;
}

.page-the-thao__news-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.page-the-thao__light-bg .page-the-thao__news-meta {
  color: #777777;
}

.page-the-thao__step-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--deep-red-color, #7A0E0E);
  color: var(--text-main-color, #FFF5E1);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-the-thao__step-link:hover {
  background-color: var(--main-color, #C91F17);
}

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

.page-the-thao__security-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-the-thao__security-subtitle {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--deep-red-color, #7A0E0E);
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-red-color, #7A0E0E);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker { /* Hide default marker for Chrome */
  display: none;
}

.page-the-thao__faq-question:hover {
  background-color: #f0f0f0;
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  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 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

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

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-the-thao__hero-description,
  .page-the-thao__section-description {
    font-size: 1rem;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__betting-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-the-thao__security-features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  .page-the-thao__feature-title,
  .page-the-thao__betting-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title,
  .page-the-thao__news-title {
    font-size: 1.3rem;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

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

  .page-the-thao__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__hero-image-wrapper {
    max-height: unset !important; /* Allow image to scale */
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile: contain to show full image, not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    margin-top: 0 !important; /* Remove negative margin for mobile */
    padding: 25px 15px !important;
    border-radius: 0 !important; /* No rounded corners for full width */
    box-shadow: none !important;
    border: none !important;
    background: var(--card-bg-color, #D32F2F) !important; /* Solid background */
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }

  .page-the-thao__hero-description {
    font-size: 1rem !important;
  }

  /* Buttons */
  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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-left: 15px;
    padding-right: 15px;
  }

  /* Image and Container General Rules */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !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;
  }

  /* Feature/Betting/Steps/Promo/News Grids */
  .page-the-thao__feature-grid,
  .page-the-thao__betting-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__news-grid {
    grid-template-columns: 1fr !important; /* Single column for mobile */
    gap: 20px !important;
    overflow-x: hidden !important;
  }

  .page-the-thao__card {
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }

  .page-the-thao__feature-icon,
  .page-the-thao__betting-image,
  .page-the-thao__step-icon,
  .page-the-thao__promo-image,
  .page-the-thao__news-image {
    min-width: 200px !important;
    min-height: 150px !important; /* Slightly smaller min-height for mobile content images */
    object-fit: cover !important;
  }

  /* Security Features */
  .page-the-thao__security-features {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    overflow-x: hidden !important;
  }

  .page-the-thao__security-item {
    padding: 20px !important;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    margin-top: 30px !important;
  }

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

  .page-the-thao__faq-answer {
    padding: 10px 20px 15px !important;
    font-size: 0.95rem !important;
  }
}

/* Custom Colors */
:root {
  --main-color: #C91F17;
  --auxiliary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg-color: #D32F2F;
  --card-bg-rgb: 211, 47, 47; /* For rgba usage */
  --background-color: #B71C1C;
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
}

/* Ensure contrast for light background sections */
.page-the-thao__light-bg .page-the-thao__section-title,
.page-the-thao__light-bg .page-the-thao__feature-title,
.page-the-thao__light-bg .page-the-thao__security-subtitle,
.page-the-thao__light-bg .page-the-thao__faq-question {
  color: var(--deep-red-color, #7A0E0E);
}

.page-the-thao__light-bg .page-the-thao__feature-text,
.page-the-thao__light-bg .page-the-thao__security-text,
.page-the-thao__light-bg .page-the-thao__faq-answer p {
  color: #555555;
}