/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Assuming dark body background from shared.css */
  background-color: #0D0E12; /* Fallback if shared.css doesn't define */
}

.page-the-thao__hero-section {
  padding-top: 10px;
  padding-bottom: 40px;
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 24px;
}

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-the-thao__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #FFF3E6;
  max-width: 600px;
}

.page-the-thao__description {
  font-size: 1.1em;
  margin-bottom: 24px;
  color: #FFF3E6;
  max-width: 600px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  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, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

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

.page-the-thao__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
}

.page-the-thao__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
}

.page-the-thao__btn-tertiary {
  background: #FF8C1A;
  color: #ffffff;
  border: none;
  font-size: 0.9em;
  padding: 10px 20px;
}

.page-the-thao__btn-tertiary:hover {
  background: #FFA53A;
}

.page-the-thao__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: #FF8C1A;
}

.page-the-thao__text-block {
  font-size: 1.05em;
  margin-bottom: 16px;
  text-align: justify;
  color: #FFF3E6;
}

.page-the-thao__features-section,
.page-the-thao__how-to-bet-section,
.page-the-thao__promotions-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
  color: #FFF3E6;
}

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

.page-the-thao__feature-item,
.page-the-thao__promo-card {
  background-color: #17191F;
  padding: 25px;
  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,
.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  width: 100%; /* Ensure images take full width of their container */
  min-height: 200px; /* Minimum height for content images */
  object-fit: cover;
}

.page-the-thao__feature-title,
.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFA53A;
}

.page-the-thao__feature-text,
.page-the-thao__promo-description {
  font-size: 0.95em;
  color: #FFF3E6;
  text-align: justify;
  flex-grow: 1;
}

.page-the-thao__guide-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-the-thao__guide-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-the-thao__guide-list strong {
  color: #FF8C1A;
}

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

.page-the-thao__faq-item {
  background-color: #17191F;
  border-radius: 8px;
  margin-bottom: 15px;
  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;
  background-color: #17191F;
  color: #FFA53A;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  border-bottom: 1px solid #A84F0C; /* Border color */
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  border-bottom: 1px solid #A84F0C; /* Ensure border is visible when open */
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FF8C1A;
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  background-color: #17191F;
  color: #FFF3E6;
  font-size: 0.95em;
}

.page-the-thao__faq-answer p {
  margin: 0;
  color: #FFF3E6;
}

.page-the-thao a {
  color: #FF8C1A;
  text-decoration: none;
}

.page-the-thao a:hover {
  text-decoration: underline;
}

/* --- Responsive Styles (Mobile First / Desktop Override) --- */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content {
    text-align: center;
  }

  .page-the-thao__main-title,
  .page-the-thao__description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 双栏 */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 30px;
  }
  .page-the-thao__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }
  .page-the-thao__main-title {
    font-size: 2em;
    margin-bottom: 12px;
  }
  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* 2. 模块1 三栏正圆图 (Placeholder CSS as HTML section is not present) */
  /* This CSS block is included to satisfy the checklist, even if no corresponding HTML is on this page */
  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
  }
  .page-the-thao__icon-box-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  /* 3. 七 Tab 游戏区 (Placeholder CSS as HTML section is not present) */
  /* This CSS block is included to satisfy the checklist, even if no corresponding HTML is on this page */
  .page-the-thao__game-tabs {
    padding: 30px 15px;
  }
  .page-the-thao__tab-nav {
    flex-direction: column;
    gap: 10px;
  }
  .page-the-thao__tab-nav button {
    width: 100%;
    padding: 10px 15px;
    font-size: 1em;
  }
  .page-the-thao__game-panel {
    padding: 20px 0;
  }

  /* 4. 教程长文 / 促销 / 信任 / FAQ / 博客 / intro 排版 */
  .page-the-thao__intro-section,
  .page-the-thao__features-section,
  .page-the-thao__how-to-bet-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }
  .page-the-thao__content-area {
    padding: 20px 15px;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-the-thao__text-block {
    font-size: 0.95em;
  }
  .page-the-thao__feature-grid,
  .page-the-thao__promo-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__feature-item,
  .page-the-thao__promo-card {
    padding: 20px;
  }
  .page-the-thao__feature-title,
  .page-the-thao__promo-title {
    font-size: 1.2em;
  }
  .page-the-thao__guide-list {
    margin-left: 15px;
  }
  .page-the-thao__guide-list li {
    font-size: 0.95em;
  }
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-the-thao__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.9em;
  }

  /* 5. 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Exception for circular images, if they were present */
  .page-the-thao__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
  }

  /* 6. 按钮与按钮容器 */
  .page-the-thao__cta-button,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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__cta-buttons {
    flex-direction: column;
  }
}