/* Base styles for the The Thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  line-height: 1.6;
  padding-bottom: 50px;
}

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

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

.page-the-thao__card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold */
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.7);
}

.page-the-thao__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF5E1;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 0 15px #FFCC66; /* Glow */
}

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

.page-the-thao__btn-secondary:hover {
  background: rgba(244, 211, 77, 0.1);
  box-shadow: 0 0 15px #FFCC66; /* Glow */
}

/* HERO Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

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

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
  background: rgba(183, 28, 28, 0.85); /* Deep Red with opacity */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544;
}

.page-the-thao__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD86A; /* Light Gold */
  text-shadow: 0 0 10px rgba(255, 216, 106, 0.8);
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

.page-the-thao__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

.page-the-thao__feature-item {
  text-align: center;
}

.page-the-thao__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-the-thao__feature-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* Sports Markets Section */
.page-the-thao__sports-markets-section {
  padding: 80px 0;
}

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

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

.page-the-thao__sport-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #F2B544;
}

.page-the-thao__sport-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD86A;
}

.page-the-thao__sport-card p {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #FFF5E1;
}

/* How to Bet Section */
.page-the-thao__how-to-bet-section {
  padding: 80px 0;
}

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

.page-the-thao__step-item {
  text-align: center;
  position: relative;
  padding-top: 50px;
}

.page-the-thao__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #FFD86A;
  color: #7A0E0E;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border: 3px solid #F2B544;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-the-thao__step-item p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF5E1;
}

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

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

.page-the-thao__tip-item {
  text-align: center;
  background: #D32F2F;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #F2B544;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__tip-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #F2B544;
}

.page-the-thao__tip-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FFD86A;
}

.page-the-thao__tip-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* News Section */
.page-the-thao__news-section {
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__news-cta {
  margin-top: 30px;
}

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

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold */
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #C91F17; /* Primary Color */
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: #C91F17; /* Primary Color */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 50px auto 0;
  border-radius: 15px;
  border: 2px solid #F2B544;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* --- Responsive Styles --- */

/* Tablet and smaller (up to 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 25px 20px;
  }

  .page-the-thao__main-title {
    font-size: clamp(30px, 4.5vw, 50px);
  }

  .page-the-thao__hero-description {
    font-size: clamp(15px, 2.2vw, 18px);
  }

  .page-the-thao__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-the-thao__section-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

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

  .page-the-thao__sport-card img,
  .page-the-thao__tip-item img {
    height: 200px;
  }

  .page-the-thao__faq-qtext {
    font-size: 17px;
  }
}

/* Mobile (up to 768px) */
@media (max-width: 768px) {
  .page-the-thao {
    padding-bottom: 30px;
  }

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

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

  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
  }

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

  .page-the-thao__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 产品展示图区域 - Not applicable for this page, but general grid items will adapt */
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .page-the-thao__sport-card img,
  .page-the-thao__tip-item img {
    height: 200px !important;
    width: 100% !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-the-thao__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .page-the-thao__section-description {
    font-size: 15px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

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

  .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__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;
    padding-right: 15px;
  }

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

  .page-the-thao__cta-image {
    margin-top: 30px;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 15px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }
}

/* Mobile (up to 480px) */
@media (max-width: 480px) {
  .page-the-thao__main-title {
    font-size: clamp(26px, 9vw, 36px);
  }

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

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

  .page-the-thao__section-title {
    font-size: clamp(22px, 8vw, 28px);
  }

  .page-the-thao__section-description {
    font-size: 14px;
  }

  .page-the-thao__faq-qtext {
    font-size: 14px;
  }
}