:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --gradient-button: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F5F7FA;
  --text-main: #333333;
  --border-color: #E0E0E0;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--page-bg); /* Page background */
}

/* --- Hero Section --- */
.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--page-bg);
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
  position: relative; /* Ensure it's in normal flow, below image */
  z-index: 1;
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__subtitle {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* --- General Section Styles --- */
.page-the-thao__section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-the-thao__section:nth-of-type(even) {
  background-color: #f0f2f5; /* Slightly different background for visual separation */
}

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

.page-the-thao__section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__sub-title {
  font-size: 1.8rem;
  color: var(--text-main);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-the-thao__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-the-thao__text-block strong {
  color: var(--primary-color);
}

.page-the-thao__figure {
  margin: 30px 0;
  text-align: center;
}

.page-the-thao__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 0 auto; /* Center images */
  object-fit: cover;
}

.page-the-thao__figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

.page-the-thao__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-the-thao__list li {
  margin-bottom: 10px;
}

/* --- Popular Sports Section --- */
.page-the-thao__sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__sport-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  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(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-the-thao__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block */
}

.page-the-thao__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__card-description {
  font-size: 0.95rem;
  color: var(--text-main);
  flex-grow: 1; /* Make description take available space */
}

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

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

.page-the-thao__step-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-the-thao__image-small {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content above is shorter */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* --- Odds and Updates Section --- */
.page-the-thao__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__info-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-the-thao__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- Safety & Support Section --- */
.page-the-thao__security-features,
.page-the-thao__contact-channels {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-the-thao__security-features li,
.page-the-thao__contact-channels li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-the-thao__security-features li::before,
.page-the-thao__contact-channels li::before {
  content: '✓'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  padding: 20px;
  font-size: 1.15rem;
  color: var(--primary-color);
  font-weight: bold;
  cursor: pointer;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* --- Conclusion Section --- */
.page-the-thao__cta-buttons--bottom {
  margin-top: 40px;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

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

  .page-the-thao__sport-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__info-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Hero) - padding/spacing/stacking of title + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 30px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-the-thao__subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }

  /* 2. Single Column Long Content (General sections, cards) - padding, font size, max-width:100% */
  .page-the-thao__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-the-thao__text-block,
  .page-the-thao__list li,
  .page-the-thao__faq-answer {
    font-size: 0.95rem;
  }

  .page-the-thao__sport-card,
  .page-the-thao__step-card,
  .page-the-thao__info-card,
  .page-the-thao__promo-card,
  .page-the-thao__faq-item {
    padding: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3. Universal Images and Figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__card-image {
    height: 180px !important; /* Adjust fixed height for mobile */
  }

  .page-the-thao__image-small {
    height: auto !important; /* Ensure smaller images also scale */
  }

  .page-the-thao__figure {
    margin: 20px 0;
  }

  /* 4. Buttons and Button Containers */
  .page-the-thao__btn,
  .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; /* Add padding to button text itself */
    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: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Ensure vertical stacking for cta-buttons */
  }

  /* 5. Registration Tutorial and FAQ Block (adjust for readability) */
  .page-the-thao__steps-grid,
  .page-the-thao__sport-grid,
  .page-the-thao__info-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
  }

  .page-the-thao__step-title {
    font-size: 1.4rem;
  }

  .page-the-thao__faq-question {
    font-size: 1.05rem;
    padding: 15px;
  }

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