.page-ththao {
  color: #F2FFF6; /* Default text color for dark background */
  background-color: #08160F; /* Custom background color for body */
}

.page-ththao__dark-bg {
  background-color: #08160F; /* Deep Green background */
  color: #F2FFF6; /* Main text color for dark background */
}

.page-ththao__light-bg {
  background-color: #11271B; /* Card BG color, acts as a lighter background */
  color: #F2FFF6; /* Main text color for this background */
}

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

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  background-color: #08160F; /* Ensure hero section has background */
  color: #F2FFF6; /* Main text color */
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-ththao__hero-content {
  padding: 40px 20px 0; /* Padding below image, no top padding as image is above */
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
}

.page-ththao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Main text color */
}

.page-ththao__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

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

/* Buttons */
.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
}

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

.page-ththao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

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

.page-ththao__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section common styles */
.page-ththao__intro-section,
.page-ththao__sports-types,
.page-ththao__how-to-bet,
.page-ththao__promotions,
.page-ththao__advantages,
.page-ththao__faq-section,
.page-ththao__cta-section {
  padding: 80px 0;
}

.page-ththao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Main text color */
}

.page-ththao__intro-section .page-ththao__section-title,
.page-ththao__how-to-bet .page-ththao__section-title,
.page-ththao__advantages .page-ththao__section-title,
.page-ththao__cta-section .page-ththao__section-title {
  color: #F2FFF6; /* Main text color for light background */
}

.page-ththao__text-block {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #A7D9B8; /* Secondary text color */
}

.page-ththao__text-block strong {
  color: #F2FFF6; /* Highlight strong text */
}

/* Grid Cards for Sports Types */
.page-ththao__grid-cards,
.page-ththao__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-ththao__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6; /* Main text color for card */
}

.page-ththao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-ththao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ththao__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: #F2FFF6; /* Main text color */
}

.page-ththao__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 20px 20px;
  color: #A7D9B8; /* Secondary text color */
}

/* How-to-bet section */
.page-ththao__ordered-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 30px;
}

.page-ththao__ordered-list li {
  position: relative;
  padding-left: 45px;
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8; /* Secondary text color */
}

.page-ththao__ordered-list li strong {
  color: #F2FFF6; /* Highlight strong text */
}

.page-ththao__ordered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #11A84E;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Promotions section */
.page-ththao__promo-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
}

.page-ththao__promo-card .page-ththao__card-title {
  color: #F2FFF6;
}

.page-ththao__promo-card .page-ththao__card-text {
  color: #A7D9B8;
}

.page-ththao__promotions .page-ththao__text-block a {
  color: #2AD16F;
  text-decoration: underline;
}

.page-ththao__promotions .page-ththao__text-block a:hover {
  color: #13994A;
}

/* FAQ Section */
.page-ththao__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-ththao__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-ththao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #F2FFF6; /* Main text color */
  list-style: none; /* Hide default arrow */
}

.page-ththao__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default arrow for Webkit browsers */
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-ththao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2AD16F;
  margin-left: 15px;
}

.page-ththao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #A7D9B8; /* Secondary text color */
}

.page-ththao__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: "−"; /* Change toggle to minus when open */
}

/* CTA Section */
.page-ththao__cta-section {
  text-align: center;
  padding: 60px 0;
}

.page-ththao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Video Section */
.page-ththao__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-ththao__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 40px auto 0;
  background-color: #000; /* Placeholder background */
}

.page-ththao__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Ensure it behaves as a block element */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-image {
    max-height: 500px;
  }
  .page-ththao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-ththao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__how-to-bet,
  .page-ththao__promotions,
  .page-ththao__advantages,
  .page-ththao__faq-section,
  .page-ththao__cta-section,
  .page-ththao__video-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 0 15px; /* Add horizontal padding for mobile */
  }

  /* Fixed header spacing: body handles padding-top, sections use small top padding */
  .page-ththao__hero-section {
    padding-top: 10px !important; /* Small top padding for hero on mobile */
    padding-bottom: 40px;
  }
  .page-ththao__intro-section,
  .page-ththao__sports-types,
  .page-ththao__how-to-bet,
  .page-ththao__promotions,
  .page-ththao__advantages,
  .page-ththao__faq-section,
  .page-ththao__cta-section {
    padding: 40px 0;
  }
  .page-ththao__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
    padding-bottom: 40px;
  }

  .page-ththao__hero-image {
    max-height: 300px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-ththao__hero-description {
    font-size: 1rem;
  }

  .page-ththao__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-ththao__text-block {
    font-size: 0.95rem;
  }

  .page-ththao__grid-cards,
  .page-ththao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card-image {
    height: 180px;
  }

  .page-ththao__card-title {
    font-size: 1.1rem;
  }

  .page-ththao__card-text {
    font-size: 0.9rem;
  }

  .page-ththao__ordered-list li {
    font-size: 0.95rem;
    padding-left: 40px;
  }

  .page-ththao__ordered-list li::before {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .page-ththao__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-ththao__faq-toggle {
    font-size: 1.3rem;
  }

  .page-ththao__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }

  /* Ensure all images are responsive and don't overflow */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile styles */
  .page-ththao__video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-ththao__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-ththao__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
}