.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #F5F7FA;
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-the-thao__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-the-thao__btn-link {
  background: transparent;
  color: #E53935;
  border: 1px solid #E53935;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-the-thao__btn-link:hover {
  background: #E53935;
  color: #ffffff;
}

.page-the-thao__button-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-the-thao__hero-content {
  position: relative;
  padding: 40px 20px;
  background-color: rgba(255, 255, 255, 0.95);
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual effect, but content below image */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.page-the-thao__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: #E53935;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Introduction Section */
.page-the-thao__introduction-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

/* Bet Types Section */
.page-the-thao__bet-types-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-the-thao__bet-types-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__bet-types-section .page-the-thao__text-block {
  color: #f0f0f0;
}

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

.page-the-thao__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-the-thao__card-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-the-thao__card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
}

/* How to Bet Section */
.page-the-thao__how-to-bet-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

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

.page-the-thao__step-item {
  text-align: center;
  padding: 30px;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-the-thao__step-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-the-thao__step-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__step-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

/* Leagues Section */
.page-the-thao__leagues-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-the-thao__leagues-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__leagues-section .page-the-thao__text-block {
  color: #f0f0f0;
}

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

.page-the-thao__feature-card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-the-thao__feature-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.page-the-thao__feature-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__feature-title {
  font-size: 1.8em;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__feature-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
  flex-grow: 1;
}

.page-the-thao__feature-list li {
  margin-bottom: 8px;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

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

.page-the-thao__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-title {
  font-size: 1.6em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__promo-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tips Section */
.page-the-thao__tips-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-the-thao__tips-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__tips-section .page-the-thao__text-block {
  color: #f0f0f0;
}

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

.page-the-thao__tip-card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-the-thao__tip-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__tip-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background-color: #f0f0f0;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E53935;
  margin-left: 15px;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555555;
}

.page-the-thao__faq-item:not([open]) .page-the-thao__faq-answer {
  display: none; /* Hide answer when not open for <details> */
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
}

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

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

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

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

/* General image responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-the-thao__hero-image-wrapper {
    height: 500px;
  }

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

  .page-the-thao__hero-title {
    font-size: clamp(2em, 3.5vw, 3em);
  }

  .page-the-thao__grid-3-cols,
  .page-the-thao__step-by-step,
  .page-the-thao__grid-2-cols,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }

  .page-the-thao__feature-image {
    height: 250px;
  }

  .page-the-thao__promo-image {
    height: 200px;
  }
}

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

  .page-the-thao__container,
  .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;
  }

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

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

  .page-the-thao__hero-image-wrapper {
    height: 300px !important;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Hero image uses contain on mobile */
    aspect-ratio: unset !important;
    max-height: none !important;
  }

  .page-the-thao__hero-content {
    margin-top: -50px !important;
    padding: 25px 15px !important;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px !important;
  }

  .page-the-thao__hero-buttons,
  .page-the-thao__button-group,
  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Buttons stack vertically */
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-link,
  .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;
  }

  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__grid-3-cols,
  .page-the-thao__step-by-step,
  .page-the-thao__grid-2-cols,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
  }

  .page-the-thao__card-image,
  .page-the-thao__feature-image,
  .page-the-thao__promo-image {
    height: 180px !important;
  }

  .page-the-thao__feature-card {
    flex-direction: column !important;
  }

  .page-the-thao__feature-content,
  .page-the-thao__promo-content {
    padding: 20px !important;
  }

  .page-the-thao__feature-list {
    margin-bottom: 15px !important;
  }

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

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

  .page-the-thao__cta-section {
    padding: 50px 0 !important;
  }

  .page-the-thao__cta-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__cta-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-the-thao__dark-bg {
    color: #ffffff;
  }

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

  .page-the-thao__card {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
  }

  .page-the-thao__dark-section {
    background: #E53935;
    color: #ffffff;
  }
}