.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  line-height: 1.6;
}

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

.page-the-thao__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

.page-the-thao__light-bg {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1;
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-the-thao__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFCC66; /* Glow */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-the-thao__intro-text {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red */
  border: 2px solid #F4D34D; /* Gold */
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-the-thao__btn-secondary {
  background: #C91F17; /* Main Color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F4D34D; /* Gold */
  box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-the-thao__btn-secondary:hover {
  background: #E53935; /* Auxiliary Color */
  box-shadow: 0 6px 20px rgba(201, 31, 23, 0.6);
}

.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFCC66; /* Glow */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.page-the-thao__section-description {
  font-size: 1.05em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #FFF5E1;
}

.page-the-thao__features-grid,
.page-the-thao__grid-layout,
.page-the-thao__promo-grid,
.page-the-thao__steps-grid {
  display: grid;
  gap: 30px;
  padding: 0 20px;
}

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

.page-the-thao__feature-card,
.page-the-thao__option-card,
.page-the-thao__promo-card,
.page-the-thao__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border */
}

.page-the-thao__feature-icon,
.page-the-thao__option-image,
.page-the-thao__promo-image,
.page-the-thao__step-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
}

.page-the-thao__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
  flex-grow: 1;
}

.page-the-thao__grid-layout {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-the-thao__option-card img {
  max-height: 250px;
}

.page-the-thao__button-container {
  margin-top: 40px;
}

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

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin-top: 20px;
  width: auto; /* Allow button to size naturally within card */
  align-self: center;
}

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

.page-the-thao__step-card img {
  max-height: 200px;
}

.page-the-thao__live-betting-section {
  background-color: #7A0E0E; /* Deep Red */
}

.page-the-thao__live-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-the-thao__live-text {
  flex: 1;
}

.page-the-thao__live-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #FFF5E1;
}

.page-the-thao__live-image-wrapper {
  flex: 1;
  max-width: 50%;
}

.page-the-thao__live-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__live-text .page-the-thao__btn-primary {
  margin-top: 20px;
}

.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

.page-the-thao__faq-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF5E1;
  box-shadow: 0 4px 15px 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;
  font-weight: 600;
  cursor: pointer;
  color: #FFCC66; /* Glow */
  background-color: #C91F17; /* Main Color */
  user-select: none;
  list-style: none;
}

.page-the-thao__faq-question::-webkit-details-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 25px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF5E1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
  opacity: 1;
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 15px;
}

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

.page-the-thao__faq-answer .page-the-thao__btn-secondary {
  margin-top: 15px;
}

.page-the-thao__final-cta-section {
  padding: 80px 0;
  background-color: #E53935; /* Auxiliary Color */
}

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

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }

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

  .page-the-thao__live-content {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__live-image-wrapper {
    max-width: 80%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section (Hero) */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 30px;
  }

  .page-the-thao__hero-content {
    padding: 0 15px;
  }

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

  .page-the-thao__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-the-thao__cta-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  /* 2. Single column long text containers */
  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

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

  .page-the-thao__feature-card,
  .page-the-thao__option-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card {
    padding: 25px 20px;
  }

  .page-the-thao__card-title {
    font-size: 1.3em;
  }

  .page-the-thao__card-text {
    font-size: 0.95em;
  }

  /* 3. Generic images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

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

  .page-the-thao__feature-icon,
  .page-the-thao__option-image,
  .page-the-thao__promo-image,
  .page-the-thao__step-image {
    max-height: 200px;
  }

  /* 4. Buttons */
  .page-the-thao__btn,
  .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-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-the-thao__button-container {
    margin-top: 30px;
  }

  /* 5. FAQ section */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }

  .page-the-thao__faq-item[open] .page-the-thao__faq-answer {
    padding-top: 10px;
  }

  .page-the-thao__live-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__live-image-wrapper {
    max-width: 100%;
    margin-top: 20px;
  }

  .page-the-thao__final-cta-section {
    padding: 60px 0;
  }
}