/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF5E1); /* Default text color from custom palette */
  background-color: var(--background-color, #B71C1C); /* Background color from custom palette */
}

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

.page-the-thao__dark-section {
  background-color: var(--deep-red, #7A0E0E);
  color: var(--text-main, #FFF5E1);
}

.page-the-thao__text-center {
  text-align: center;
}

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold, #F4D34D);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.6);
}

.page-the-thao__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold, #F4D34D);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: var(--text-main, #FFF5E1);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 50px;
  background-color: var(--background-color, #B71C1C);
}

.page-the-thao__hero-image {
  width: 100%;
  height: 500px; /* Fixed height for desktop */
  position: relative;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold, #F4D34D);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.8);
}

.page-the-thao__hero-description {
  font-size: 19px;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: var(--deep-red, #7A0E0E);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg, #D32F2F);
  color: var(--text-main, #FFF5E1);
  border: 2px solid var(--border-color, #F2B544);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary:hover {
  background: var(--main-color, #C91F17);
  border-color: var(--glow, #FFCC66);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-the-thao__btn-link {
  background: none;
  color: var(--gold, #F4D34D);
  border: 1px solid var(--gold, #F4D34D);
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 500;
  margin-top: 15px;
}

.page-the-thao__btn-link:hover {
  background: var(--gold, #F4D34D);
  color: var(--deep-red, #7A0E0E);
}

/* Grid Layouts */
.page-the-thao__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-the-thao__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Card Styles */
.page-the-thao__card {
  background-color: var(--card-bg, #D32F2F);
  border: 1px solid var(--border-color, #F2B544);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF5E1);
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-the-thao__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #F2B544);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold, #F4D34D);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-the-thao__card-description {
  font-size: 16px;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 20px;
}

/* Responsive Images */
.page-the-thao__responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border-color, #F2B544);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__step-item {
  background-color: var(--card-bg, #D32F2F);
  border: 1px solid var(--border-color, #F2B544);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: var(--text-main, #FFF5E1);
}

.page-the-thao__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold, #F4D34D);
  margin-bottom: 10px;
}

/* Promotions Section */
.page-the-thao__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__promo-list li {
  font-size: 17px;
  color: var(--text-main, #FFF5E1);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.page-the-thao__list-icon {
  color: var(--glow, #FFCC66);
  font-size: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Call to action at bottom */
.page-the-thao__call-to-action-bottom {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #F2B544);
  overflow: hidden;
  background: var(--card-bg, #D32F2F);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold, #F4D34D);
  font-weight: 600;
}

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: var(--main-color, #C91F17);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--gold, #F4D34D);
}

.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow, #FFCC66);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 25px;
  background: var(--deep-red, #7A0E0E);
  border-radius: 0 0 10px 10px;
  color: var(--text-main, #FFF5E1);
  font-size: 16px;
}

.page-the-thao__faq-more-link {
  margin-top: 30px;
  display: block;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-image {
    height: 400px;
  }
  .page-the-thao__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-the-thao__hero-description {
    font-size: 18px;
  }
  .page-the-thao__grid-2-cols {
    grid-template-columns: 1fr;
  }
  .page-the-thao__image-content {
    order: -1; /* Image above text on smaller screens for 2-col layout */
    margin-bottom: 20px;
  }
  .page-the-thao__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-the-thao__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-image {
    height: 300px !important;
    margin-bottom: 20px !important;
  }
  .page-the-thao__hero-image img {
    object-fit: contain !important; /* 移动端 contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* 小顶距 */
    padding-bottom: 30px !important;
  }
  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 36px) !important; /* 更小的字号范围 */
    margin-bottom: 15px !important;
  }
  .page-the-thao__hero-description {
    font-size: 16px !important;
    margin-bottom: 25px !important;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__container,
  .page-the-thao__card,
  .page-the-thao__step-item,
  .page-the-thao__image-content,
  .page-the-thao__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
  }
  .page-the-thao__cta-buttons,
  .page-the-thao__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-the-thao__section-title {
    font-size: clamp(24px, 7vw, 32px) !important;
    margin-bottom: 30px !important;
    padding: 0 10px !important;
  }
  .page-the-thao__sub-title {
    font-size: clamp(18px, 6vw, 24px) !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }
  .page-the-thao__text-block {
    font-size: 15px !important;
  }
  .page-the-thao__grid-3-cols,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-the-thao__card-image {
    height: 180px !important;
  }
  .page-the-thao__card-title {
    font-size: 18px !important;
  }
  .page-the-thao__card-description {
    font-size: 15px !important;
  }
  .page-the-thao__step-icon {
    width: 80px !important;
    height: 80px !important;
  }
  .page-the-thao__step-title {
    font-size: 18px !important;
  }
  .page-the-thao__promo-list li {
    font-size: 15px !important;
  }
  .page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px !important;
  }
  .page-the-thao__faq-qtext {
    font-size: 16px !important;
  }
  .page-the-thao__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
    margin-left: 10px !important;
  }
  .page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px !important;
    font-size: 15px !important;
  }
}