/* Base Styles for page-the-thao */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background: #0A0A0A; /* 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;
  text-align: center;
}

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 40px;
  color: #F2C14E; /* Primary color for titles */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-the-thao__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #FFF6D6;
}

/* Buttons */
.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: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #FFD36B;
  border-color: #FFD36B;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.4);
  transform: translateY(-2px);
}

.page-the-thao__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
}

.page-the-thao__cta-bottom {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #FFF6D6;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.page-the-thao__hero-image {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-the-thao__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Min size for all images */
}

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 10;
  margin-top: -100px; /* Pull content up slightly over image */
  position: relative;
}

.page-the-thao__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for main title */
  text-shadow: 0 0 20px rgba(255, 211, 107, 0.7);
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 40px;
  line-height: 1.6;
  color: #FFF6D6;
}

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

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

.page-the-thao__card {
  background: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-the-thao__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin: 25px 20px 10px;
  line-height: 1.3;
}

.page-the-thao__card-text {
  font-size: 16px;
  color: #FFF6D6;
  margin: 0 20px 25px;
  flex-grow: 1;
}

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

.page-the-thao__step-item {
  background: #111111; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-height: 200px;
}

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

.page-the-thao__step-item p {
  font-size: 16px;
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

.page-the-thao__sport-item {
  background: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
}

.page-the-thao__sport-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-the-thao__sport-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-the-thao__sport-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2C14E;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-the-thao__sport-item p {
  font-size: 16px;
  color: #FFF6D6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

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

.page-the-thao__promotion-card {
  background: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF6D6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-the-thao__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}

.page-the-thao__promotion-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px;
}

.page-the-thao__promotion-card .page-the-thao__card-title {
  margin: 20px 20px 10px;
}

.page-the-thao__promotion-card .page-the-thao__card-text {
  margin: 0 20px 20px;
}

.page-the-thao__promotion-card .page-the-thao__btn-primary {
  margin: 0 20px 25px;
  align-self: center; /* Center button within card */
  width: calc(100% - 40px);
}

/* Tips Section */
.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-the-thao__tips-list li {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF6D6;
}

.page-the-thao__list-icon {
  font-size: 20px;
  color: #FFD36B; /* Glow color for icons */
  margin-right: 15px;
  flex-shrink: 0;
  line-height: 1.5;
}

.page-the-thao__list-text {
  font-size: 17px;
  color: #FFF6D6;
}

/* FAQ Section */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6;
  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;
  font-size: 18px;
  font-weight: 600;
  color: #F2C14E; /* Primary color for question text */
}

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(242, 193, 78, 0.1);
}

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

.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  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 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly transparent for depth */
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  color: #FFF6D6;
  text-align: left;
}

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

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

/* General image responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset;
    height: auto;
    max-height: 500px;
  }

  .page-the-thao__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
  }

  .page-the-thao__hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-the-thao__hero-description {
    font-size: clamp(16px, 1.8vw, 20px);
  }

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

  .page-the-thao__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

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

  .page-the-thao__card img,
  .page-the-thao__sport-item img,
  .page-the-thao__promotion-card img {
    height: 200px; /* Slightly reduce card image height */
  }

  .page-the-thao__card-title,
  .page-the-thao__sport-title {
    font-size: 22px;
  }

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

  .page-the-thao__hero-cta-buttons {
    gap: 15px;
  }

  .page-the-thao__cta-bottom {
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 0 15px;
  }

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: auto;
  }

  .page-the-thao__hero-image {
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-the-thao__hero-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-the-thao__hero-description {
    font-size: clamp(15px, 4vw, 18px);
    margin-bottom: 30px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__cta-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-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 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;
    padding-right: 15px;
  }

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

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__step-item,
  .page-the-thao__sport-item,
  .page-the-thao__promotion-card,
  .page-the-thao__tips-list li,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Prevent content overflow */
  }
  .page-the-thao__text-block {
    padding: 0 10px; /* Small padding for text blocks */
  }

  .page-the-thao__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
  }

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

  .page-the-thao__grid-3-cols,
  .page-the-thao__guide-steps,
  .page-the-thao__sports-list,
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__card img,
  .page-the-thao__sport-item img,
  .page-the-thao__promotion-card img {
    height: auto; /* Allow height to be auto on mobile */
    max-height: 250px; /* Max height to prevent excessively tall images */
  }

  .page-the-thao__card-title,
  .page-the-thao__sport-title,
  .page-the-thao__step-title {
    font-size: 20px;
    margin: 20px 15px 10px;
  }

  .page-the-thao__card-text,
  .page-the-thao__sport-item p,
  .page-the-thao__step-item p {
    font-size: 15px;
    margin: 0 15px 20px;
  }

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

  .page-the-thao__tips-list li {
    padding: 18px 20px;
    margin-bottom: 10px;
  }

  .page-the-thao__list-icon {
    font-size: 18px;
    margin-right: 10px;
  }

  .page-the-thao__list-text {
    font-size: 15px;
  }

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

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

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

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