/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
}

.page-the-thao__dark-section {
  background-color: #E53935; /* Main brand color for dark sections */
  color: #ffffff; /* White text for dark backgrounds */
}

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-the-thao__text-block {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding to avoid double spacing */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #E53935;
  color: #ffffff;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit image height */
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

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

.page-the-thao__description {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-the-thao__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 60px 0;
}

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

.page-the-thao__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FF5A4F;
}

.page-the-thao__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  padding: 60px 0;
}

.page-the-thao__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__category-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao__category-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-the-thao__category-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #333333;
}

.page-the-thao__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

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

/* Features Section */
.page-the-thao__features-section {
  padding: 60px 0;
}

.page-the-thao__feature-highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__highlight-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__highlight-item:nth-child(odd) {
  grid-column: 1 / 2;
}

.page-the-thao__highlight-item:nth-child(even) {
  grid-column: 2 / 3;
}

.page-the-thao__highlight-item:first-child {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-the-thao__highlight-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__highlight-title {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FF5A4F;
}

.page-the-thao__highlight-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 60px 0;
}

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

.page-the-thao__promo-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #E0E0E0;
}

.page-the-thao__promo-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-the-thao__promo-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #333333;
}

.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #ffffff;
  color: #E53935;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #E53935;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
}

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

.page-the-thao__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #FF5A4F;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-the-thao__step-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FF5A4F;
}

.page-the-thao__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-the-thao__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
}

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

.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E0E0E0;
  transition: box-shadow 0.3s ease;
}

.page-the-thao__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.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: #ffffff;
  color: #333333;
  border-bottom: 1px solid #E0E0E0;
  list-style: none;
}

.page-the-thao__faq-question::-webkit-details-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: #E53935;
  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: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333333;
}

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

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

/* General image and button responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__cta-button,
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__button-group,
.page-the-thao__cta-buttons,
.page-the-thao__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.5em;
  }

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

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

  .page-the-thao__feature-highlight-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__highlight-item:first-child {
    grid-row: auto;
  }

  .page-the-thao__highlight-item:nth-child(odd),
  .page-the-thao__highlight-item:nth-child(even) {
    grid-column: auto;
  }
}

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

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Fixed top padding */
    padding-bottom: 40px;
  }

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

  .page-the-thao__main-title {
    font-size: 2em !important;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-button {
    padding: 12px 25px !important;
    font-size: 1em !important;
  }

  .page-the-thao__container {
    padding: 20px 15px !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-the-thao__text-block {
    font-size: 0.95em !important;
    margin-bottom: 30px;
  }

  /* 游戏轮播 (Not directly applicable to this page, but as per checklist) */
  /* .page-the-thao__slider-track { display: flex; } */

  /* 合作品牌六宫格 (Not directly applicable to this page, but as per checklist) */
  /* .page-the-thao__banners-top-wrapper { grid-template-columns: repeat(3, minmax(0, 1fr)); } */

  /* 博客卡片区 (Not directly applicable to this page, but as per checklist) */
  /* .page-the-thao__blog-masonry { grid-template-columns: 1fr; } */

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

  .page-the-thao__container,
  .page-the-thao__hero-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__features-section,
  .page-the-thao__promotions-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section,
  .page-the-thao__card,
  .page-the-thao__feature-item,
  .page-the-thao__category-card,
  .page-the-thao__highlight-item,
  .page-the-thao__promo-card,
  .page-the-thao__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-button,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao__button-group {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-the-thao__features-grid,
  .page-the-thao__category-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr !important;
  }

  .page-the-thao__feature-highlight-grid {
    grid-template-columns: 1fr !important;
  }

  .page-the-thao__highlight-item:first-child {
    grid-row: auto !important;
  }
}