.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--page-text-color, #F2FFF6); /* Default to light text for dark background */
  background-color: #08160F; /* Custom background color */
}

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

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

.page-the-thao__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Desktop: cover to fill space */
  display: block;
}

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-the-thao__description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
  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;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

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

.page-the-thao__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-the-thao__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-2px);
}

.page-the-thao__btn-link {
  background: transparent;
  color: #57E38D;
  border: 1px solid #2E7A4E;
  padding: 10px 20px;
  font-size: 1rem;
}

.page-the-thao__btn-link:hover {
  background: #0A4B2C;
  color: #F2FFF6;
}

.page-the-thao__btn-center {
  display: block;
  margin: 30px auto 0 auto;
  width: fit-content; /* Adjust width for single centered button */
  max-width: calc(100% - 40px); /* Ensure it doesn't overflow container padding */
}

.page-the-thao__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #A7D9B8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-the-thao__feature-item,
.page-the-thao__category-card,
.page-the-thao__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__feature-item:hover,
.page-the-thao__category-card:hover,
.page-the-thao__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 15px #57E38D; /* Glow */
}

.page-the-thao__feature-title,
.page-the-thao__category-title,
.page-the-thao__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-the-thao__feature-description,
.page-the-thao__category-description,
.page-the-thao__step-description {
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.6;
}

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

.page-the-thao__live-betting-image,
.page-the-thao__promotions-image,
.page-the-thao__process-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 40px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

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

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 4px 15px 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: #F2FFF6; /* Text Main */
}

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: #0A4B2C; /* Deep Green */
}

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

.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 25px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.6;
}

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

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

.page-the-thao__cta-buttons--bottom {
  margin-top: 40px;
}

/* Image specific rules */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-the-thao__description {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-the-thao__faq-qtext {
    font-size: 1.1rem;
  }
  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-section {
    padding-top: 10px; /* Still small top padding */
    margin-bottom: 30px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Mobile: contain to show full image */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 10px;
  }

  .page-the-thao__description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 20px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-link {
    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: 1rem;
  }

  .page-the-thao__btn-center {
    max-width: calc(100% - 30px) !important; /* Account for container padding */
    width: 100% !important;
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-the-thao__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__category-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
    margin-top: 20px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__category-card,
  .page-the-thao__step-item {
    padding: 20px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__category-title,
  .page-the-thao__step-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-the-thao__feature-description,
  .page-the-thao__category-description,
  .page-the-thao__step-description {
    font-size: 0.95rem;
  }

  .page-the-thao__category-card img {
    
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__live-betting-image,
  .page-the-thao__promotions-image,
  .page-the-thao__process-image {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  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: 22px;
    width: 25px;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }

  .page-the-thao__final-cta-section {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  .page-the-thao__cta-buttons--bottom {
    margin-top: 30px;
    padding: 0 15px;
  }

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