/* --- Base Styles --- */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-the-thao__dark-bg {
  background-color: #B71C1C; /* Custom Background */
  color: #FFF5E1; /* Custom Text Main */
}

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from parent section */
}

.page-the-thao__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

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

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFF5E1; /* Custom Text Main */
}

.page-the-thao__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF5E1; /* Custom Text Main */
}

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button */
  color: #7A0E0E; /* Deep Red for text */
  border: none;
}

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

.page-the-thao__btn-secondary {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Custom Text Main */
  border: 2px solid #F4D34D; /* Gold border */
}

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

.page-the-thao__btn-outline {
  background: transparent;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D; /* Gold border */
  padding: 10px 20px;
}

.page-the-thao__btn-outline:hover {
  background: #F4D34D;
  color: #7A0E0E; /* Deep Red */
}

.page-the-thao__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* --- Why Choose Section --- */
.page-the-thao__why-choose-section {
  padding: 80px 0;
}

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

.page-the-thao__feature-item {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1; /* Custom Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__feature-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-the-thao__feature-description {
  font-size: 1em;
  line-height: 1.7;
}

/* --- Bet Types Section --- */
.page-the-thao__bet-types-section {
  padding: 80px 0;
}

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

.page-the-thao__type-item {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1; /* Custom Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__type-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-the-thao__type-description {
  font-size: 1em;
  line-height: 1.7;
}

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

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

.page-the-thao__step-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__step-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #C91F17; /* Main Color */
}

.page-the-thao__step-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.page-the-thao__tip-item {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1; /* Custom Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__tip-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-the-thao__tip-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.page-the-thao__promo-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__promo-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #C91F17; /* Main Color */
}

.page-the-thao__promo-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

.page-the-thao__faq-item {
  background-color: #D32F2F; /* Custom Card BG */
  color: #FFF5E1; /* Custom Text Main */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #C91F17; /* Main Color */
  color: #FFF5E1; /* Custom Text Main */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* Hide default marker for details */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  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 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1; /* Custom Text Main */
}

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

/* --- General Image Styles --- */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space nicely */
}

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

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

  .page-the-thao__intro-text {
    font-size: 1em;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }

  .page-the-thao__description {
    font-size: 1.1em;
  }

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

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

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

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

  .page-the-thao__intro-text {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 通用按钮和容器 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline,
  .page-the-thao__btn-small,
  .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__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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 通用图片和容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__why-choose-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__tips-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    padding: 40px 0;
  }

  .page-the-thao__features-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__tips-grid,
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__type-item,
  .page-the-thao__step-item,
  .page-the-thao__tip-item,
  .page-the-thao__promo-card {
    padding: 20px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__type-title,
  .page-the-thao__step-title,
  .page-the-thao__tip-title,
  .page-the-thao__promo-title {
    font-size: 1.5em;
  }

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

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