.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #f5f5f5;
}

.page-the-thao__hero-image-wrapper {
  max-width: 100%;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-the-thao__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

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

.page-the-thao__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

.page-the-thao__content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.page-the-thao h3 {
  font-size: 1.6em;
  color: #017439;
  margin-top: 35px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #333333;
}

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

.page-the-thao__feature-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439;
}

.page-the-thao__feature-title {
  color: #017439;
  font-size: 1.4em;
  margin-top: 0;
}

.page-the-thao__image-figure {
  margin: 40px 0;
  text-align: center;
}

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

.page-the-thao__image-caption {
  font-style: italic;
  color: #777777;
  margin-top: 15px;
  font-size: 0.95em;
}

.page-the-thao__bet-types-list,
.page-the-thao__tips-list,
.page-the-thao__league-list,
.page-the-thao__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-the-thao__bet-types-list li,
.page-the-thao__tips-list li,
.page-the-thao__league-list li,
.page-the-thao__promo-list li {
  background-color: #f5fdf7;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 4px solid #017439;
}

.page-the-thao__bet-type-title,
.page-the-thao__tip-title {
  color: #017439;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-the-thao__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
  counter-reset: step-counter;
}

.page-the-thao__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  padding-top: 80px;
}

.page-the-thao__step-number {
  counter-increment: step-counter;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
  color: #017439;
  font-size: 1.4em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-the-thao__btn-small {
  padding: 8px 20px;
  font-size: 0.9em;
  margin-top: 15px;
}

.page-the-thao__promo-list strong {
  color: #017439;
}

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

.page-the-thao__league-list {
  list-style: disc;
  padding-left: 40px;
}

.page-the-thao__league-list li {
  background-color: transparent;
  border-left: none;
  padding: 5px 0;
  margin-bottom: 8px;
  color: #333333;
}

.page-the-thao__league-list strong {
  color: #017439;
}

.page-the-thao__faq-section {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 1.2em;
  cursor: pointer;
  margin: 0;
  font-weight: 600;
}

.page-the-thao__faq-answer {
  padding: 20px;
  background-color: #ffffff;
  color: #333333;
  border-top: 1px solid #e0e0e0;
}

.page-the-thao__final-cta {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-the-thao__final-cta-title {
  color: #FFFFFF;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-the-thao__final-cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.5em;
  }

  .page-the-thao__section-title {
    font-size: 2em;
  }

  .page-the-thao h3 {
    font-size: 1.5em;
  }

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

@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Rely on body for shared header offset */
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2em !important;
    line-height: 1.3 !important;
    padding: 0 10px;
  }

  .page-the-thao__hero-description {
    font-size: 1em !important;
    padding: 0 10px;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }

  .page-the-thao__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 !important;
    padding-right: 15px !important;
  }

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

  .page-the-thao__content-section {
    padding: 40px 0 !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8em !important;
    margin-bottom: 25px !important;
  }

  .page-the-thao h3 {
    font-size: 1.3em !important;
    margin-top: 25px !important;
  }

  .page-the-thao p {
    font-size: 0.95em !important;
  }

  .page-the-thao__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
  }

  .page-the-thao__feature-item {
    padding: 20px !important;
  }

  .page-the-thao__bet-types-list li,
  .page-the-thao__tips-list li,
  .page-the-thao__promo-list li {
    padding: 15px !important;
    margin-bottom: 10px !important;
  }

  .page-the-thao__step-by-step {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 30px !important;
  }

  .page-the-thao__step-item {
    padding: 20px !important;
    padding-top: 70px !important;
  }

  .page-the-thao__step-number {
    width: 45px !important;
    height: 45px !important;
    font-size: 1.6em !important;
    top: 15px !important;
  }

  .page-the-thao__final-cta {
    padding: 40px 15px !important;
    margin-top: 40px !important;
  }

  .page-the-thao__final-cta-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__final-cta-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
  }

  .page-the-thao__final-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* 3. Generic images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__image-figure {
    margin: 30px 0 !important;
  }

  .page-the-thao__content-image {
    border-radius: 8px !important;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__cta-center .page-the-thao__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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao__hero-cta-buttons,
  .page-the-thao__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  
  .page-the-thao__hero-cta-buttons .page-the-thao__btn,
  .page-the-thao__final-cta-buttons .page-the-thao__btn {
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  /* 5. FAQ section */
  .page-the-thao__faq-section {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
  }

  .page-the-thao__faq-item {
    margin-bottom: 10px !important;
  }

  .page-the-thao__faq-question {
    padding: 15px !important;
    font-size: 1.1em !important;
  }

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

  .page-the-thao__league-list {
    padding-left: 20px !important;
  }

  .page-the-thao__league-list li {
    font-size: 0.95em !important;
  }
}