.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333);
  background-color: var(--bg-color, #F5F7FA);
  line-height: 1.6;
}

.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  background-color: #E53935;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px;
}

.page-the-thao__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

.page-the-thao__intro-text {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

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

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

.page-the-thao__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
}

.page-the-thao__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 6px;
}

.page-the-thao__section {
  padding: 50px 0;
  background-color: var(--card-bg, #FFFFFF);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

.page-the-thao__section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.page-the-thao__about-sports {
  background-color: var(--bg-color, #F5F7FA);
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F, #E53935);
  border-radius: 2px;
}

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

.page-the-thao p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

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

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

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

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.page-the-thao__market-item {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color, #E0E0E0);
}

.page-the-thao__market-item:last-of-type {
  border-bottom: none;
}

.page-the-thao__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 20px;
}

.page-the-thao__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

.page-the-thao__list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-the-thao__list-type-bet {
  list-style: none;
  padding: 0;
}

.page-the-thao__list-type-bet li {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color, #E0E0E0);
}

.page-the-thao__list-type-bet li:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.page-the-thao__promotions {
  background-color: var(--bg-color, #F5F7FA);
}

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

.page-the-thao__promo-card {
  background: var(--card-bg, #FFFFFF);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color, #E0E0E0);
  color: var(--text-main, #333333);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  color: #E53935;
}

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

.page-the-thao__how-to-start {
  background-color: var(--card-bg, #FFFFFF);
}

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

.page-the-thao__step-card {
  background: var(--card-bg, #FFFFFF);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color, #E0E0E0);
  color: var(--text-main, #333333);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__step-caption {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__responsible-gaming {
  background-color: var(--bg-color, #F5F7FA);
  text-align: center;
}

.page-the-thao__faq {
  background-color: var(--card-bg, #FFFFFF);
}

.page-the-thao__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #E0E0E0);
}

.page-the-thao__faq-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-the-thao__faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.page-the-thao__faq-question:hover {
  color: #E53935;
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #E53935;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item.active .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  font-size: 1rem;
  color: #555555;
  padding-left: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 500px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-the-thao__final-cta {
  background-color: #E53935;
  color: #ffffff;
  padding: 60px 0;
}

.page-the-thao__cta-box {
  text-align: center;
}

.page-the-thao__cta-box .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__cta-box .page-the-thao__section-title::after {
  background: #ffffff;
}

.page-the-thao__cta-box p {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- Responsive Styles --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 0 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-the-thao__intro-text {
    font-size: 1.1rem;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.5rem;
  }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED BLOCKS */
@media (max-width: 768px) {
  /* 1. Top section title + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

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

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem !important;
    padding: 12px 20px !important;
  }

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

  .page-the-thao__section {
    padding: 30px 0;
    margin-bottom: 15px;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-the-thao p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  /* 3. General images and figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto !important;
    border-radius: 8px;
    box-shadow: none;
  }

  .page-the-thao__feature-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-the-thao__feature-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-card {
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .page-the-thao__card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-the-thao__sub-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .page-the-thao__list,
  .page-the-thao__list-type-bet {
    margin-left: 0;
    padding-left: 0;
  }

  .page-the-thao__list li,
  .page-the-thao__list-type-bet li {
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  /* 4. Buttons and button containers (already covered in top-cta and general .page-the-thao__btn) */
  .page-the-thao__cta-center .page-the-thao__btn {
    width: auto !important;
    max-width: 280px !important;
    margin: 0 auto;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-the-thao__step-card {
    padding: 20px;
  }

  .page-the-thao__step-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-the-thao__faq-list {
    margin-top: 20px;
  }

  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 8px 0;
  }

  .page-the-thao__faq-answer {
    font-size: 0.95rem;
    padding-left: 0;
  }

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

  .page-the-thao__cta-box p {
    font-size: 1rem;
    padding: 0 15px;
  }
}