/* Base styles for the-thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

.page-the-thao__dark-bg {
  background-color: #26A9E0;
  color: #ffffff; /* Light text for dark background */
}

.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-the-thao__light-text {
  color: #ffffff;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-the-thao__dark-bg .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

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

.page-the-thao__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow */
  position: relative;
  z-index: 1;
  background-color: rgba(38, 169, 224, 0.9); /* Semi-transparent brand color */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__main-title {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7fb2;
}

.page-the-thao__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 15px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-outline:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-the-thao__small-btn {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-the-thao__intro-section {
  padding: 60px 20px;
}

.page-the-thao__image-container {
  text-align: center;
  margin-top: 30px;
}

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

.page-the-thao__bet-types-section {
  padding: 60px 20px;
}

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

.page-the-thao__card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-the-thao__guide-section {
  padding: 60px 20px;
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-the-thao__guide-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
  border-left: 3px solid #26A9E0;
  padding-bottom: 20px;
}

.page-the-thao__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: -20px;
  top: 0;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
}

.page-the-thao__list-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-the-thao__guide-item p {
  font-size: 1.05em;
  color: #444444;
}

.page-the-thao__guide-item a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-the-thao__guide-item .page-the-thao__btn-primary,
.page-the-thao__guide-item .page-the-thao__btn-secondary {
  margin-top: 15px;
}

.page-the-thao__advantages-section {
  padding: 60px 20px;
}

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

.page-the-thao__advantages-list .page-the-thao__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-the-thao__advantages-list .page-the-thao__list-title {
  color: #ffffff;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-the-thao__advantages-list .page-the-thao__list-item p {
  color: #f0f0f0;
  font-size: 1em;
  flex-grow: 1;
}

.page-the-thao__promotions-section {
  padding: 60px 20px;
}

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

.page-the-thao__promo-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-the-thao__promo-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__promo-card .page-the-thao__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

.page-the-thao__full-promo-link {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__faq-section {
  padding: 60px 20px;
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.15em;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-the-thao__faq-answer a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-the-thao__more-faq-link {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-the-thao__cta-final {
  margin-top: 40px;
}

/* Ensure all images are responsive by default */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles for mobile */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-the-thao__main-title {
    font-size: 2.5em;
  }

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

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao__grid-container,
  .page-the-thao__advantages-list,
  .page-the-thao__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    padding: 12px 25px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px;
  }

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

  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-the-thao__main-title {
    font-size: 2em; /* Adjusted font size for mobile */
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Section titles and general text */
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 1em;
  }

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

  .page-the-thao__container,
  .page-the-thao__grid-container,
  .page-the-thao__advantages-list,
  .page-the-thao__promo-grid,
  .page-the-thao__faq-list,
  .page-the-thao__cta-buttons,
  .page-the-thao__full-promo-link,
  .page-the-thao__more-faq-link,
  .page-the-thao__cta-final {
    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__btn-outline,
  .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: 12px 15px;
    font-size: 1em;
  }

  .page-the-thao__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Grid layouts */
  .page-the-thao__grid-container,
  .page-the-thao__advantages-list,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-the-thao__guide-item {
    padding-left: 45px;
    border-left: none;
  }

  .page-the-thao__guide-item::before {
    left: 0;
    width: 35px;
    height: 35px;
    font-size: 1em;
  }

  .page-the-thao__list-title {
    font-size: 1.2em;
  }

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

  .page-the-thao__faq-answer {
    padding: 10px 20px 15px;
  }
}