/* style/the-thao.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --btn-register: #C30808;
  --btn-login: #C30808;
  --font-login-register: #FFFF00;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-color, var(--secondary-color)); /* Ensure this adapts to shared body background */
}

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

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

.page-the-thao__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-dark);
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

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

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  color: var(--text-light);
  max-width: 900px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 300px; /* Limit button width on desktop */
}

.page-the-thao__btn-primary {
  background-color: var(--btn-register);
  color: var(--font-login-register);
  border: 2px solid var(--btn-register);
}

.page-the-thao__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-the-thao__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* General Section Styles */
.page-the-thao__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-the-thao__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__section-intro {
  color: var(--text-light);
}

/* Feature Grid (Why Choose Section) */
.page-the-thao__features-grid,
.page-the-thao__bet-type-grid,
.page-the-thao__steps-grid,
.page-the-thao__esports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  height: 100%; /* Ensure cards have equal height */
}

.page-the-thao__dark-section .page-the-thao__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__dark-section .page-the-thao__card-title {
  color: var(--secondary-color);
}

.page-the-thao__card-text {
  font-size: 1em;
  flex-grow: 1;
}

/* How-to-bet steps */
.page-the-thao__step-card {
  background-color: var(--secondary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__step-card .page-the-thao__card-title {
  color: var(--primary-color);
}

/* FAQ Section */
.page-the-thao__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-light);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
  color: var(--text-light);
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--text-light);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−';
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.8;
  color: var(--text-light);
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section .page-the-thao__btn-primary {
  margin-top: 20px;
}

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

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

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

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

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

  .page-the-thao__features-grid,
  .page-the-thao__bet-type-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__esports-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

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

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

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    background-color: var(--bg-dark);
  }

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

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

  .page-the-thao__main-title {
    font-size: 2.2em !important;
  }

  .page-the-thao__hero-description {
    font-size: 1em;
  }

  /* 深色导语区 (Section Intro) */
  .page-the-thao__section-intro {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__section-title {
    font-size: 1.8em !important;
  }

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

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__why-choose-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__how-to-bet-section,
  .page-the-thao__promo-section,
  .page-the-thao__esports-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* 博客网格 (Feature/Bet Type/Steps/Esports grids) */
  .page-the-thao__features-grid,
  .page-the-thao__bet-type-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__esports-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-the-thao__card {
    padding: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
  }

  .page-the-thao__card-image {
    height: auto;
  }

  /* 按钮与按钮容器 */
  .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;
    margin-left: auto;
    margin-right: auto;
  }

  .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;
    display: flex;
    flex-direction: column;
  }

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

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

@media (max-width: 549px) {
  .page-the-thao__features-grid,
  .page-the-thao__bet-type-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__esports-grid {
    grid-template-columns: 1fr;
  }
}