/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--Text-Main, #F3F8FF); /* Default text color for the page, assuming dark body background */
  background-color: transparent; /* Body background is handled by shared.css var(--deep-navy) */
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  background: var(--Deep-Navy, #08162B);
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  max-height: 600px; /* Max height for hero image */
  overflow: hidden;
}

.page-the-thao__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default to cover for desktop */
  display: block;
  filter: none !important;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  text-align: center;
  color: var(--Text-Main, #F3F8FF);
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Gold, #F2C14E);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-the-thao__description {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--Gold, #F2C14E);
  border: 2px solid var(--Gold, #F2C14E);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--Deep-Navy, #08162B); /* Default section background */
}

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--Gold, #F2C14E);
}

.page-the-thao__section-title--light {
  color: var(--Gold, #F2C14E);
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 20px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-the-thao__text-block--light {
  color: var(--Text-Secondary, #AFC4E8);
}

/* Sports Types Section */
.page-the-thao__sports-types .page-the-thao__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background: var(--Card-BG, #10233F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: var(--Text-Secondary, #AFC4E8);
  border: 1px solid var(--Border, #244D84);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
  filter: none !important;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: var(--Text-Main, #F3F8FF);
}

.page-the-thao__card p {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--Text-Secondary, #AFC4E8);
}

/* Advantages Section */
.page-the-thao__advantages {
  background: linear-gradient(180deg, var(--Deep-Navy, #08162B) 0%, #113B7A 100%);
  padding: 80px 0;
}

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

.page-the-thao__advantage-item {
  background: var(--Card-BG, #10233F);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  color: var(--Text-Secondary, #AFC4E8);
  border: 1px solid var(--Border, #244D84);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__advantage-item img {
  width: 100%;
  
  height: auto;
  margin-bottom: 20px;
  display: block;
  object-fit: contain;
  filter: none !important;
}

.page-the-thao__advantage-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Text-Main, #F3F8FF);
}

.page-the-thao__advantage-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--Text-Secondary, #AFC4E8);
}

/* How to Play Section */
.page-the-thao__how-to-play {
  background-color: var(--Deep-Navy, #08162B);
  padding-bottom: 80px;
}

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

.page-the-thao__step-card {
  background: var(--Card-BG, #10233F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--Border, #244D84);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__step-card img {
  width: 100%;
  height: 200px; /* Consistent height for step images */
  object-fit: cover;
  display: block;
  filter: none !important;
}

.page-the-thao__step-content {
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--Text-Main, #F3F8FF);
}

.page-the-thao__step-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-the-thao__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-small:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-1px);
}

/* Promotions Section */
.page-the-thao__promotions {
  background-color: var(--Deep-Navy, #08162B);
  padding-bottom: 80px;
}

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

.page-the-thao__promotion-card {
  background: var(--Card-BG, #10233F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--Border, #244D84);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__promotion-card img {
  width: 100%;
  height: 220px; /* Consistent height for promotion images */
  object-fit: cover;
  display: block;
  filter: none !important;
}

.page-the-thao__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: var(--Text-Main, #F3F8FF);
}

.page-the-thao__promotion-card p {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--Text-Secondary, #AFC4E8);
}

.page-the-thao__promotion-card .page-the-thao__btn-small {
  margin: 0 20px 20px;
  display: block; /* Make button full width within card padding */
}

.page-the-thao__cta-center {
  margin-top: 50px;
}

/* Final CTA Section */
.page-the-thao__final-cta {
  background: linear-gradient(180deg, #113B7A 0%, var(--Deep-Navy, #08162B) 100%);
  padding: 80px 0;
}

.page-the-thao__cta-content {
  max-width: 900px;
}

/* FAQ Section */
.page-the-thao__faq {
  background-color: var(--Deep-Navy, #08162B);
  padding-bottom: 80px;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--Border, #244D84);
  overflow: hidden;
  background: var(--Card-BG, #10233F);
  color: var(--Text-Secondary, #AFC4E8);
}
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: var(--Text-Main, #F3F8FF);
}
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: rgba(var(--Border, #244D84), 0.3); /* Lighter hover for dark background */
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--Text-Main, #F3F8FF);
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--Gold, #F2C14E);
  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: var(--Deep-Navy, #08162B);
  border-radius: 0 0 5px 5px;
  color: var(--Text-Secondary, #AFC4E8);
}
.page-the-thao__faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: var(--Text-Secondary, #AFC4E8);
}
.page-the-thao__faq-answer a {
  color: var(--Gold, #F2C14E);
  text-decoration: underline;
}
.page-the-thao__faq-answer a:hover {
  color: var(--Glow, #4FA8FF);
}


/* Global Image Sizing for Content Area (>= 200x200px) */
.page-the-thao img:not(.page-the-thao__hero-image img, .page-the-thao__advantage-item img) {
  min-width: 200px;
  min-height: 200px;
  filter: none !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .page-the-thao__hero-content {
    padding: 30px 20px 50px;
  }
  .page-the-thao__section {
    padding: 50px 0;
  }
  .page-the-thao__cta-buttons {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  }
  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Important for mobile to show full image */
    aspect-ratio: unset !important; /* Remove aspect ratio if set, to fit content */
    height: auto !important; /* Ensure height adjusts */
    max-height: 300px !important; /* Limit max height on mobile */
    width: 100% !important;
  }
  .page-the-thao__hero-content {
    padding: 20px 15px 40px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for smaller screens */
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* 通用 Section/Container/Text */
  .page-the-thao__section {
    padding: 40px 0;
  }
  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 25px;
  }
  .page-the-thao__text-block {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  
  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    filter: none !important;
  }
  .page-the-thao__card img {
    
  }
  .page-the-thao__step-card img {
    
  }
  .page-the-thao__promotion-card img {
    
  }
  
  /* 按钮与按钮容器 */
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-small,
  .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: 1rem;
  }
  .page-the-thao__btn-small {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

  /* Card Grid Layouts */
  .page-the-thao__grid {
    grid-template-columns: 1fr !important; /* Single column for all grids */
    gap: 20px;
  }
  .page-the-thao__sports-types .page-the-thao__grid,
  .page-the-thao__advantages .page-the-thao__grid,
  .page-the-thao__how-to-grid,
  .page-the-thao__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    overflow-x: hidden;
  }
  .page-the-thao__card-title {
    font-size: 1.2rem;
  }
  .page-the-thao__promotion-title {
    font-size: 1.2rem;
  }

  /* FAQ Section */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
  .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;
  }
  .page-the-thao__faq-answer p {
    font-size: 0.95rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .page-the-thao__sports-types .page-the-thao__grid,
  .page-the-thao__advantages .page-the-thao__grid,
  .page-the-thao__how-to-grid,
  .page-the-thao__promotion-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}