.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF1E8; /* Light text for dark background */
  background: #140C0C; /* Overall page background */
}

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

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

.page-the-thao__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFB04A; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-subtitle {
  font-size: 18px;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__hero-image {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-the-thao__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/9;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  padding: 30px 20px 0;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image slightly for visual appeal */
  background: linear-gradient(180deg, rgba(20, 12, 12, 0.0) 0%, #140C0C 50%);
  padding-bottom: 30px;
}

.page-the-thao__hero-title {
  font-size: clamp(30px, 4vw, 56px); /* Responsive font size */
  font-weight: 900;
  color: #FFB04A;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 176, 74, 0.6);
}

.page-the-thao__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border: none;
  box-shadow: 0 5px 15px rgba(216, 106, 20, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04A 0%, #E53030 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(216, 106, 20, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
  box-shadow: 0 3px 10px rgba(255, 176, 74, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-text {
  background: none;
  border: none;
  color: #FFB04A;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  display: inline-block;
  margin-top: 15px;
}

.page-the-thao__btn-text:hover {
  color: #F3C54D;
}

.page-the-thao__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-the-thao__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-the-thao__text-block {
  flex: 1;
}

.page-the-thao__text-block h3 {
  font-size: 28px;
  color: #FFB04A;
  margin-bottom: 15px;
}

.page-the-thao__text-block p {
  font-size: 17px;
  line-height: 1.7;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-the-thao__image-block {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__image-block img,
.page-the-thao__image-center img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

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

.page-the-thao__sport-card,
.page-the-thao__promo-card,
.page-the-thao__feature-card {
  background: #2A1212; /* Card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  color: #FFF1E8;
}

.page-the-thao__sport-card img,
.page-the-thao__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D; /* Gold for card titles */
  margin: 20px 20px 10px;
}

.page-the-thao__card-description {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn-primary {
  margin: 0 20px 20px;
}

.page-the-thao__feature-card .page-the-thao__card-title {
  margin-bottom: 10px;
  padding: 20px 20px 0;
}

.page-the-thao__feature-card p {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

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

.page-the-thao__step-item {
  background: #2A1212;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  text-align: center;
}

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

.page-the-thao__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF1E8;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #7E0D0D;
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04A;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFB04A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #140C0C;
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 16px;
}

.page-the-thao__cta-section {
  background: #2A1212;
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__cta-section .page-the-thao__section-title {
  color: #FFB04A;
}

.page-the-thao__cta-section .page-the-thao__section-subtitle {
  color: #FFF1E8;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* ======================================================= */
/*                       RESPONSIVE STYLES                 */
/* ======================================================= */

/* Tablet styles (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 34px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(28px, 5vw, 48px);
  }

  .page-the-thao__hero-description {
    font-size: 18px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-the-thao__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-the-thao__text-block h3 {
    font-size: 24px;
  }

  .page-the-thao__text-block p {
    font-size: 16px;
  }

  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
    height: 220px;
  }

  .page-the-thao__card-title {
    font-size: 20px;
  }

  .page-the-thao__card-description {
    font-size: 15px;
  }

  .page-the-thao__step-title {
    font-size: 22px;
  }

  .page-the-thao__step-item p {
    font-size: 15px;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px 18px;
  }

  .page-the-thao__faq-qtext {
    font-size: 17px;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 18px 18px;
  }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 0 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: 28px;
    margin-bottom: 15px;
  }

  .page-the-thao__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
  }

  .page-the-thao__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 20px 15px 0;
  }

  .page-the-thao__hero-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 10px;
  }

  .page-the-thao__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-buttons,
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-text,
  .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 20px;
    font-size: 16px;
  }

  .page-the-thao__text-block h3 {
    font-size: 22px;
  }

  .page-the-thao__text-block p {
    font-size: 15px;
    line-height: 1.6;
  }

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

  .page-the-thao__image-block,
  .page-the-thao__image-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-the-thao__sports-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__features-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
    
  }

  .page-the-thao__card-title {
    font-size: 20px;
    margin: 15px 15px 5px;
  }

  .page-the-thao__card-description {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  .page-the-thao__promo-card .page-the-thao__btn-primary {
    margin: 0 15px 15px;
  }

  .page-the-thao__feature-card .page-the-thao__card-title {
    padding: 15px 15px 0;
  }

  .page-the-thao__feature-card p {
    padding: 0 15px 15px;
  }

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

  .page-the-thao__step-title {
    font-size: 20px;
  }

  .page-the-thao__step-item p {
    font-size: 14px;
  }

  /* FAQ 区域 */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 12px 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 16px;
  }

  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer p {
    font-size: 14px;
  }

  /* 内容区不得导致横向滚动 */
  .page-the-thao__intro-section,
  .page-the-thao__sports-list-section,
  .page-the-thao__guide-section,
  .page-the-thao__features-section,
  .page-the-thao__promotions-section,
  .page-the-thao__security-support-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__sports-list-section .page-the-thao__sports-grid {
    overflow-x: hidden;
  }

  .page-the-thao__content-wrapper {
    padding: 0 15px;
    box-sizing: border-box;
  }
}

/* Ensure all content area images conform to min-size */
.page-the-thao__content-area img,
.page-the-thao__text-block img,
.page-the-thao__image-block img,
.page-the-thao__image-center img,
.page-the-thao__sport-card img,
.page-the-thao__promo-card img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure text contrast for default body background */
.page-the-thao {
  color: #FFF1E8; /* Must use light text for dark background */
  background: #140C0C; /* Dark background */
}

.page-the-thao__card,
.page-the-thao__step-item {
  background: #2A1212; /* Dark card background */
  color: #FFF1E8; /* Light text */
}

.page-the-thao__dark-section {
  background: #C61F1F;
  color: #ffffff;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C; /* Dark text for bright button */
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #FFB04A;
  border: 2px solid #FFB04A;
}

.page-the-thao__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C;
}