.page-the-thao {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
  color: var(--text-main-color);
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-the-thao__dark-section {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-the-thao__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding-top for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

.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: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with the image for visual flow */
  background: rgba(13, 14, 18, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--glow-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

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

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 10px rgba(255, 176, 77, 0.3);
}

.page-the-thao__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--background-color);
  box-shadow: 0 0 15px rgba(255, 176, 77, 0.5);
  transform: translateY(-2px);
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--glow-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
}

.page-the-thao__description-text {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-main-color);
}

.page-the-thao__why-choose-section {
  padding: 80px 0;
}

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

.page-the-thao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__feature-text {
  font-size: 1rem;
  color: var(--text-main-color);
}

.page-the-thao__betting-types-section {
  padding: 80px 0;
}

.page-the-thao__image-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.page-the-thao__image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-the-thao__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-the-thao__betting-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-the-thao__betting-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__betting-item:last-child {
  margin-bottom: 0;
}

.page-the-thao__betting-type-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__betting-item p {
  font-size: 1rem;
  color: var(--text-main-color);
}

.page-the-thao__live-betting-section {
  padding: 80px 0;
}

.page-the-thao__live-betting-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-the-thao__live-betting-wrapper img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-the-thao__live-betting-info {
  padding: 30px;
  max-width: 800px;
  text-align: left;
}

.page-the-thao__live-betting-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__live-betting-info p {
  font-size: 1rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-the-thao__promotions-section {
  padding: 80px 0;
}

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

.page-the-thao__promo-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.page-the-thao__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao__promo-card h3,
.page-the-thao__promo-card p {
  padding: 0 25px;
}

.page-the-thao__promo-title {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__promo-description {
  font-size: 0.95rem;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__how-to-section {
  padding: 80px 0;
}

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

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

.page-the-thao__step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.5);
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__step-item p {
  font-size: 1rem;
  color: var(--text-main-color);
}

.page-the-thao__image-center {
  text-align: center;
  margin-bottom: 60px;
}

.page-the-thao__image-center img {
  max-width: 900px;
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-the-thao__faq-section {
  padding: 80px 0;
}

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

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

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-color);
}

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(--primary-color-rgb), 0.1);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--glow-color);
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--card-bg-rgb), 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--text-main-color);
}

.page-the-thao__faq-answer p {
  margin-top: 10px;
  font-size: 1rem;
}

.page-the-thao__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }
  .page-the-thao__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
  }
  .page-the-thao__description {
    font-size: 1rem;
  }
  .page-the-thao__btn-primary, .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
  .page-the-thao__image-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-the-thao__live-betting-info {
    max-width: 100%;
  }
  .page-the-thao__promo-card img {
    
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 0 15px; /* Ensure full width, padding handled by inner elements */
  }

  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    max-height: 400px; /* Constrain height on mobile */
  }
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
    border-radius: 8px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
    padding: 0 10px; /* Add padding to title for better mobile layout */
  }
  .page-the-thao__description-text {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  /* General images and containers */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__why-choose-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__live-betting-section,
  .page-the-thao__promotions-section,
  .page-the-thao__how-to-section,
  .page-the-thao__faq-section,
  .page-the-thao__final-cta-section {
    padding: 40px 0;
  }
  .page-the-thao__features-grid,
  .page-the-thao__promo-cards-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 10px;
  }
  .page-the-thao__card {
    padding: 25px;
  }
  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }
  .page-the-thao__betting-item {
    padding: 20px;
  }
  .page-the-thao__betting-type-title {
    font-size: 1.2rem;
  }
  .page-the-thao__live-betting-wrapper img {
    border-radius: 8px;
  }
  .page-the-thao__promo-card img {
    
  }
  .page-the-thao__promo-card h3,
  .page-the-thao__promo-card p {
    padding: 0 20px;
  }
  .page-the-thao__step-item {
    padding: 25px;
  }
  .page-the-thao__step-title {
    font-size: 1.3rem;
  }
  .page-the-thao__image-center img {
    border-radius: 8px;
  }

  /* FAQ */
  details.page-the-thao__faq-item {
    margin-bottom: 10px;
    border-radius: 8px;
  }
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px 20px;
  }
  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }
  .page-the-thao__faq-answer p {
    font-size: 0.95rem;
  }

  /* No products grid, so no special products-grid rule for 2x3 */
  /* Article body is handled by general image/container rules */
  .page-the-thao__article-body, .page-the-thao__article-figure {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      text-align: left; /* Adjust text alignment for mobile readability */
  }
  .page-the-thao__article-body p, .page-the-thao__article-body li {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-the-thao__hero-content {
    padding: 20px 10px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-the-thao__description {
    font-size: 0.85rem;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 10px 10px;
    font-size: 0.9rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }
  .page-the-thao__card {
    padding: 20px;
  }
  .page-the-thao__feature-title {
    font-size: 1.2rem;
  }
  .page-the-thao__betting-type-title {
    font-size: 1.1rem;
  }
  .page-the-thao__promo-card img {
    
  }
  .page-the-thao__step-title {
    font-size: 1.2rem;
  }
  .page-the-thao__faq-qtext {
    font-size: 0.95rem;
  }
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 12px 15px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 12px;
  }
}