:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --page-bg: #08160F; /* This is typically from shared.css, defined here for reference */
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

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

.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--about,
.page-the-thao__section--types,
.page-the-thao__section--promotions,
.page-the-thao__section--guide,
.page-the-thao__section--faq {
  background-color: transparent; /* Sections are transparent, body background shows through */
}

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main); /* Main text color */
  line-height: 1.2;
}

.page-the-thao__section-title--light {
  color: var(--text-main);
}

.page-the-thao__section-intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body padding-top for 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: 550px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 900px;
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-the-thao__description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.page-the-thao__description--light {
  color: var(--text-secondary);
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width for flex-wrap */
  max-width: 600px; /* Limit max width for desktop */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-small,
.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: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
  max-width: 100%; /* Essential for mobile responsiveness */
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 200, 100, 0.3);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 100, 0.4);
  opacity: 0.9;
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 200, 100, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(34, 199, 104, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 200, 100, 0.2);
}

.page-the-thao__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 6px;
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  margin-top: 15px;
}

.page-the-thao__btn-small:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-the-thao__btn-text {
  color: var(--secondary-color);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
}

.page-the-thao__btn-text:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-the-thao__arrow-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-the-thao__btn-text:hover .page-the-thao__arrow-icon {
  transform: translateX(5px);
}

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

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

.page-the-thao__feature-card {
  background: var(--card-bg); /* Card background */
  border: 1px solid var(--border-color); /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-the-thao__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  max-height: 200px; /* Constrain image height in card */
}

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

.page-the-thao__card-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* Bet Types Grid */
.page-the-thao__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__bet-type-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-the-thao__bet-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Promotions Grid */
.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: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px;
}

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

.page-the-thao__promotion-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%;
  max-height: 220px;
}

/* Guide Section (Article Body) */
.page-the-thao__article-body {
  text-align: left;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-the-thao__article-body h2,
.page-the-thao__article-body h3 {
  color: var(--text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-the-thao__article-body h2 {
  font-size: clamp(26px, 3.5vw, 38px);
}

.page-the-thao__article-body h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

.page-the-thao__article-body p {
  margin-bottom: 1em;
}

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

.page-the-thao__step-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-the-thao__step-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-the-thao__step-number {
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.page-the-thao__step-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* 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: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
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(--text-main);
  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: rgba(46, 122, 78, 0.2); /* Lighter hover for dark card */
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}
.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color); /* Glow color for toggle */
  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: var(--deep-green); /* Slightly different dark background for answer */
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-the-thao__section--cta-final {
  background: transparent;
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-the-thao__section--cta-final .page-the-thao__container {
  background: var(--deep-green); /* Use a distinct dark background for the final CTA */
  border-radius: 15px;
  padding: 60px 40px;
  border: 1px solid var(--border-color);
}

/* Global image styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default for most images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 15px;
  }
  .page-the-thao__section {
    padding: 50px 0;
  }
  .page-the-thao__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-the-thao__description {
    font-size: 18px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }
  .page-the-thao__feature-card,
  .page-the-thao__promotion-card {
    padding: 25px;
  }
  .page-the-thao__card-title {
    font-size: 20px;
  }
  .page-the-thao__card-text {
    font-size: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) { /* HERO主图区域 object-fit:contain */
  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset;
    max-height: 400px; /* Adjust max height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-the-thao__section {
    padding: 40px 0;
  }
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-the-thao__hero-image {
    max-height: 300px;
  }
  .page-the-thao__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
  }
  .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: 12px 20px;
    font-size: 16px;
  }

  /* Products/Features Grid (General content grids) */
  .page-the-thao__features-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__feature-card,
  .page-the-thao__bet-type-card,
  .page-the-thao__promotion-card,
  .page-the-thao__step-item {
    padding: 20px;
    min-height: unset;
  }

  .page-the-thao__feature-card img,
  .page-the-thao__promotion-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    
  }

  .page-the-thao__card-title {
    font-size: 20px;
  }
  .page-the-thao__card-text {
    font-size: 15px;
  }
  .page-the-thao__section-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-the-thao__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Article Body (Guide Section) */
  .page-the-thao__article-body {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
  }
  .page-the-thao__article-body h2 {
    font-size: clamp(22px, 6vw, 32px);
  }
  .page-the-thao__article-body h3 {
    font-size: clamp(18px, 5vw, 24px);
  }
  .page-the-thao__article-body p {
    font-size: 15px;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 16px;
  }
  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* General image adaptation */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container padding for mobile */
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__section--cta-final .page-the-thao__container {
    padding: 40px 20px;
  }
}