/* style/the-thao.css */

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

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Minimal top padding, body handles --header-offset */
  background-color: #140C0C;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 675px; /* Fixed height for desktop hero image container */
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  min-height: 200px; /* Ensure minimum size */
}

.page-the-thao__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  color: #FFF1E8;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  color: #FFF1E8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

/* General Section Styles */
.page-the-thao__section {
  padding: 60px 0;
  background-color: #140C0C; /* Consistent background */
  border-bottom: 1px solid #6A1E1E; /* Border between sections */
}

.page-the-thao__section:last-of-type {
  border-bottom: none;
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #F3C54D; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-the-thao__section-title--light {
  color: #FFF1E8;
}

.page-the-thao__description {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__description--light {
  color: #FFF1E8;
}

/* Intro Section */
.page-the-thao__intro-section p {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF1E8;
  text-align: justify;
}

/* Bet Types Section */
.page-the-thao__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__bet-type-card {
  background-color: #2A1212; /* Card background */
  border: 1px solid #6A1E1E; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.page-the-thao__bet-type-card .page-the-thao__card-title {
  font-size: 1.5rem;
  color: #F3C54D; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__bet-type-card p {
  font-size: 0.95rem;
  color: #FFF1E8;
  line-height: 1.5;
  text-align: justify;
}

.page-the-thao__btn-container {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__btn-text-link {
  background: none;
  border: none;
  color: #F3C54D;
  text-decoration: underline;
  padding: 0;
  font-size: 0.95rem;
  margin-top: 10px;
}

.page-the-thao__btn-text-link:hover {
  color: #FFB04A;
  transform: none;
}

/* Guide Section */
.page-the-thao__article-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Ensure minimum size */
  max-width: 680px; /* Limit width as per blog image size */
}

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

.page-the-thao__guide-step {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF1E8;
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__guide-step p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
  text-align: justify;
}

/* Promo Section */
.page-the-thao__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao__promo-card {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  font-size: 1.5rem;
  color: #F3C54D;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__promo-card p {
  font-size: 0.95rem;
  color: #FFF1E8;
  line-height: 1.5;
  text-align: justify;
  flex-grow: 1;
}

/* Why Choose Section */
.page-the-thao__why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__why-choose-list li {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #FFF1E8;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: justify;
}

.page-the-thao__why-choose-list li strong {
  color: #F3C54D;
  margin-right: 10px;
  flex-shrink: 0;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #F3C54D;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  position: relative;
}

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

.page-the-thao__faq-question .page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Change to X or minus sign */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  color: #FFF1E8;
  line-height: 1.5;
  text-align: justify;
}

/* Bottom CTA Section */
.page-the-thao__cta-bottom .page-the-thao__container {
  background-color: #C61F1F; /* Deep Red background */
  padding: 40px 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Image responsiveness for all img tags */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all image containers are responsive */
.page-the-thao__hero-image-wrapper,
.page-the-thao__container,
.page-the-thao__bet-type-card,
.page-the-thao__guide-step,
.page-the-thao__promo-card,
.page-the-thao__why-choose-list li,
.page-the-thao__faq-item,
.page-the-thao__cta-bottom .page-the-thao__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

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

  /* 1. 顶区标题 + 双 CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Minimal top padding */
  }

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

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

  .page-the-thao__main-title {
    font-size: 2.2rem;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
    padding: 0 10px;
  }

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

  .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;
  }

  /* 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: 40px 0;
  }

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

  .page-the-thao__intro-section p,
  .page-the-thao__guide-step p,
  .page-the-thao__promo-card p,
  .page-the-thao__why-choose-list li,
  .page-the-thao__faq-answer p {
    font-size: 0.9rem;
  }

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

  .page-the-thao__article-image {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }

  /* 4. 按钮与按钮容器 */
  .page-the-thao__btn-container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. 注册教程与 FAQ 区块 */
  .page-the-thao__guide-steps,
  .page-the-thao__bet-types-grid,
  .page-the-thao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__guide-step,
  .page-the-thao__bet-type-card,
  .page-the-thao__promo-card {
    padding: 20px;
    min-height: unset;
  }

  .page-the-thao__step-title,
  .page-the-thao__bet-type-card .page-the-thao__card-title,
  .page-the-thao__promo-card .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  .page-the-thao__why-choose-list {
    margin-left: 0;
    margin-right: 0;
  }

  .page-the-thao__why-choose-list li {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  .page-the-thao__why-choose-list li strong {
    margin-bottom: 5px;
    margin-right: 0;
  }

  .page-the-thao__faq-list {
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .page-the-thao__cta-bottom .page-the-thao__container {
    padding: 30px 15px;
  }
}