/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Specific padding for first section, assuming body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-the-thao__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-the-thao__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  margin-bottom: 20px;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap; /* Prevent text wrapping by default on desktop */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

/* General Section Styling */
.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-the-thao__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Default for light background */
}

.page-the-thao__section-title--white {
  color: #FFFFFF; /* For dark background sections */
}

.page-the-thao__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Default for light background */
}

.page-the-thao__sub-title--white {
  color: #FFFFFF; /* For dark background sections */
}

.page-the-thao__text--white {
  color: #FFFFFF;
}

.page-the-thao__image-figure {
  margin: 30px 0;
  text-align: center;
}

.page-the-thao__content-image,
.page-the-thao__card-image,
.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-the-thao__image-caption {
  font-size: 0.9rem;
  color: #666666;
  margin-top: 10px;
}

/* Grid Layout for Sports Cards */
.page-the-thao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-the-thao__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 0;
}

/* Promo Box Styling */
.page-the-thao__promo-box {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  background-color: #1e87c0; /* Slightly darker brand color for inner box */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-image-wrap {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__promo-content {
  flex: 2;
}

/* Step List for Guide */
.page-the-thao__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__step-item {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

/* Responsibility List */
.page-the-thao__responsibility-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-the-thao__responsibility-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-the-thao__responsibility-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFFFF; /* Checkmark color for dark background */
  font-weight: 700;
}

/* 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: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6ff; /* Lighter blue for summary */
  border-bottom: 1px solid #d0e8ff;
  list-style: none; /* Hide default marker for details/summary */
}

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

.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-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  background-color: #FFFFFF;
}

.page-the-thao__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Promo Banner (bottom CTA) */
.page-the-thao__promo-banner {
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

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

  .page-the-thao__description {
    font-size: 1rem;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.6rem;
  }

  .page-the-thao__promo-box {
    flex-direction: column;
    gap: 30px;
    padding: 25px;
  }
}

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

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-the-thao__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-left: 15px;
    padding-right: 15px; /* Add horizontal padding to text */
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px; /* Add horizontal padding to button container */
    box-sizing: border-box !important;
  }

  /* 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: 12px 15px;
  }

  /* 2. 单栏长文容器 */
  .page-the-thao__container.page-the-thao__article-wrap,
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__promo-box,
  .page-the-thao__step-list,
  .page-the-thao__responsibility-list,
  .page-the-thao__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    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: 2rem;
    margin-bottom: 25px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__sub-title {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__grid-layout {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__card {
    padding: 20px;
  }

  .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  .page-the-thao__promo-box {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__promo-content {
    width: 100%;
  }

  .page-the-thao__step-list {
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__step-item {
    padding: 20px;
  }

  .page-the-thao__step-title {
    font-size: 1.2rem;
  }

  .page-the-thao__responsibility-list {
    padding-left: 0;
    padding-right: 0;
  }

  .page-the-thao__responsibility-item {
    font-size: 1rem;
    padding-left: 25px;
  }

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

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

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

  .page-the-thao__promo-banner {
    padding: 50px 15px;
  }

  /* 3. 通用图片与 figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__image-figure,
  .page-the-thao__promo-image-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}