:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --register-login-text-color: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
  --header-offset: 122px; /* Default from shared, not to be duplicated in main section */
}

/* Base styles for the page content */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark); /* Default text color for light body background */
  line-height: 1.6;
  background-color: var(--bg-light); /* Default body background is white */
}

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

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

.page-the-thao__section-title--white {
  color: var(--text-color-light);
}

.page-the-thao__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__text-block--white {
  color: var(--text-color-light);
}

.page-the-thao__highlight {
  font-weight: 700;
  color: var(--primary-color);
}

.page-the-thao__dark-section .page-the-thao__highlight {
  color: var(--register-login-text-color); /* Yellow for contrast on dark green */
}

.page-the-thao__inline-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-the-thao__inline-link:hover {
  color: #005a2e; /* Darken primary color */
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 10px; /* Small top padding, body has main padding */
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent overly large images */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 15px 60px;
  max-width: 900px;
  box-sizing: border-box;
  color: var(--text-color-light);
}

.page-the-thao__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Use clamp for H1 font size */
  font-weight: 900;
  color: var(--register-login-text-color); /* Yellow for high contrast */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.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,
.page-the-thao__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background-color: var(--register-btn-color); /* Red for register */
  color: var(--register-login-text-color); /* Yellow text for contrast */
  border-color: var(--register-btn-color);
}

.page-the-thao__btn-primary:hover {
  background-color: #a30707; /* Darken register color */
  border-color: #a30707;
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--register-login-text-color); /* Yellow text for contrast */
  border-color: var(--register-login-text-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--register-login-text-color);
  color: var(--register-btn-color);
  border-color: var(--register-login-text-color);
}

.page-the-thao__btn-link {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
}

.page-the-thao__btn-link:hover {
  background-color: #005a2e; /* Darken primary color */
  border-color: #005a2e;
}

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

/* Sports Types Section */
.page-the-thao__sports-types {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.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-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__sport-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--register-login-text-color); /* Yellow for titles on dark bg */
  margin-bottom: 10px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-the-thao__sport-description {
  font-size: 16px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Advantages Section */
.page-the-thao__advantages-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-the-thao__advantage-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-the-thao__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-the-thao__advantage-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__advantage-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Live Betting Section */
.page-the-thao__live-betting {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

.page-the-thao__live-betting-features {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-the-thao__feature-item {
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--text-color-light);
}

.page-the-thao__feature-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--register-login-text-color); /* Yellow checkmark */
  font-weight: bold;
}

/* Betting Guide Section */
.page-the-thao__betting-guide {
  padding: 60px 0;
  background-color: var(--bg-light);
}

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

.page-the-thao__step-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

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

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

.page-the-thao__step-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
}

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

.page-the-thao__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--register-login-text-color);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-the-thao__promo-description {
  font-size: 16px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid var(--border-color);
}

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

.page-the-thao__faq-question[open] {
  border-bottom: none;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  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: 20px 25px;
  font-size: 16px;
  color: var(--text-color-dark);
  border-top: 1px solid var(--border-color);
  display: none; /* Hidden by default, shown by <details> */
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
  display: block;
}

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

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

/* Final CTA Section */
.page-the-thao__final-cta {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-color-light);
  text-align: center;
}

.page-the-thao__final-cta .page-the-thao__section-title {
  margin-top: 0;
  margin-bottom: 20px;
}

.page-the-thao__final-cta .page-the-thao__text-block {
  margin-bottom: 40px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-the-thao__section-title {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  .page-the-thao__hero-content {
    padding: 30px 15px 40px;
  }

  .page-the-thao__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }

  .page-the-thao__hero-description {
    font-size: 17px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-the-thao__sports-grid,
  .page-the-thao__advantages-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__sport-image,
  .page-the-thao__advantage-icon,
  .page-the-thao__promo-image {
    height: auto;
    max-width: 100%;
  }

  .page-the-thao__feature-item {
    font-size: 16px;
  }

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

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

  .page-the-thao__final-cta {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-the-thao__section-title {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .page-the-thao__hero-content {
    padding: 20px 10px 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(24px, 8vw, 40px);
  }

  .page-the-thao__hero-description {
    font-size: 16px;
  }

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

  .page-the-thao__text-block {
    font-size: 15px;
  }

  .page-the-thao__sport-title,
  .page-the-thao__advantage-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title {
    font-size: 20px;
  }

  .page-the-thao__sport-description,
  .page-the-thao__advantage-description,
  .page-the-thao__step-description,
  .page-the-thao__promo-description {
    font-size: 14px;
  }

  .page-the-thao__feature-item {
    font-size: 15px;
    padding-left: 25px;
  }

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

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