.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  color: #FFF1E8;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF1E8;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn--primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Dark text for light button */
  border: none;
}

.page-the-thao__btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

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

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

.page-the-thao__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

.page-the-thao__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-the-thao__section-intro {
  font-size: 1.05em;
  color: #FFF1E8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-the-thao__feature-card,
.page-the-thao__category-card,
.page-the-thao__step-card,
.page-the-thao__promo-card,
.page-the-thao__tip-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
}

.page-the-thao__feature-title,
.page-the-thao__category-title,
.page-the-thao__step-title,
.page-the-thao__promo-title,
.page-the-thao__tip-title {
  font-size: 1.5em;
  color: #FFB04A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__feature-text,
.page-the-thao__category-text,
.page-the-thao__step-text,
.page-the-thao__promo-text,
.page-the-thao__tip-text {
  font-size: 1em;
  color: #FFF1E8;
}

.page-the-thao__category-image,
.page-the-thao__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

.page-the-thao__text-link {
  color: #FFB04A;
  text-decoration: underline;
}

.page-the-thao__text-link:hover {
  color: #F3C54D;
}

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

.page-the-thao__container--flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Images general responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-the-thao__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

  .page-the-thao__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }

  .page-the-thao__features-grid,
  .page-the-thao__categories-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__category-card,
  .page-the-thao__step-card,
  .page-the-thao__promo-card,
  .page-the-thao__tip-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(2em, 7vw, 2.5em) !important;
    margin-bottom: 10px;
  }

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

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

  /* 4. 按钮与按钮容器 */
  .page-the-thao__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;
    font-size: 1em;
  }
  
  .page-the-thao__cta-bottom {
    margin-top: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-the-thao__features-grid,
  .page-the-thao__categories-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-the-thao__category-image,
  .page-the-thao__promo-image {
    height: 180px;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 5. 注册教程与 FAQ 区块 (How-to-bet section is similar) */
  .page-the-thao__step-card {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .page-the-thao__step-number {
    font-size: 2em;
  }

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