:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --page-bg-section: #140C0C; /* Using for specific sections, not body */
  --text-main: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red: #7E0D0D;
}

.page-the-thao {
  color: var(--text-main); /* Assuming body background is dark from shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  color: rgba(255, 255, 255, 0.8);
}

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

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

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  border: 2px solid var(--gold-color);
  box-shadow: 0 0 30px rgba(243, 197, 77, 0.4);
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-the-thao__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-the-thao__btn-secondary {
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--card-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(243, 197, 77, 0.4);
}

/* Introduction Section */
.page-the-thao__introduction-section {
  padding: 80px 0;
  background-color: var(--page-bg-section);
}

.page-the-thao__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.9);
}

.page-the-thao__content-wrapper p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Popular Sports Section */
.page-the-thao__popular-sports-section {
  padding: 80px 0;
  background-color: var(--deep-red);
}

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

.page-the-thao__sport-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__sport-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__sport-text {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--gold-color);
  color: var(--gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-outline:hover {
  background: var(--gold-color);
  color: var(--card-bg);
}

/* How to Bet Section */
.page-the-thao__how-to-bet-section {
  padding: 80px 0;
  background-color: var(--page-bg-section);
}

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

.page-the-thao__step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__step-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__step-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__step-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-the-thao__additional-info {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
}

.page-the-thao__additional-info a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
}

.page-the-thao__additional-info a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-the-thao__promotions-section {
  padding: 80px 0;
  background-color: var(--deep-red);
}

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

.page-the-thao__promo-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__promo-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__promo-card p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 80px 0;
  background-color: var(--page-bg-section);
}

.page-the-thao__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.page-the-thao__advantages-list li {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__advantage-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__advantages-list p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-the-thao__responsible-gambling-section {
  padding: 80px 0;
  background-color: var(--deep-red);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg-section);
}

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: var(--gold-color);
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker, /* Hide default marker */
.page-the-thao__faq-question::marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 0 25px 20px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
}

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

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  background-color: var(--deep-red);
  text-align: center;
}

.page-the-thao__cta-bottom-content {
  max-width: 900px;
  margin: 0 auto;
}

/* General Image Styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

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

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

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

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

  .page-the-thao__hero-content {
    margin-top: -40px; /* Adjust overlap */
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

  /* 长文金框区 (Applied to main content wrappers) */
  .page-the-thao__introduction-section,
  .page-the-thao__popular-sports-section,
  .page-the-thao__how-to-bet-section,
  .page-the-thao__promotions-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__responsible-gambling-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 40px 0;
  }

  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-the-thao__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  /* 游戏轮播 (Sports Highlight Slider - using product/service types) */
  /* Not explicitly a game slider with 'game' type, but if I had one, this is how it would be */
  /* For this page, sports grid items will wrap */
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__sport-card,
  .page-the-thao__step-card,
  .page-the-thao__promo-card,
  .page-the-thao__advantages-list li {
    padding: 20px;
  }

  .page-the-thao__sport-title,
  .page-the-thao__step-title,
  .page-the-thao__promo-title,
  .page-the-thao__advantage-title {
    font-size: 1.5em;
  }

  /* 合作品牌六宫格 (Sports Partners Grid - using feature/logo types) */
  /* Not explicitly present, but if I had one, this is how it would be */
  /* Example if I were to add it:
  .page-the-thao__banners-top-wrapper { 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 10px; 
  }
  .page-the-thao__banner-item img { 
     
     
  }
  */

  /* 博客卡片区 (Sports News/Blog) */
  /* If I had a blog masonry/slider, it would be:
  .page-the-thao__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-the-thao__blog-slide {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  */

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

  .page-the-thao__container,
  .page-the-thao__content-wrapper,
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__advantages-list,
  .page-the-thao__faq-list,
  .page-the-thao__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    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__btn-outline {
    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__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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