.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* General page background */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  background-color: #ffffff;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

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

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

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

.page-the-thao__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.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: #E53935;
  color: #ffffff;
}

.page-the-thao__section {
  max-width: 1150px;
  margin: 40px auto;
  padding: 0 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-the-thao__section-intro {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

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

.page-the-thao__feature-item,
.page-the-thao__bet-type-item,
.page-the-thao__security-item {
  background-color: #F5F7FA;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-the-thao__feature-title,
.page-the-thao__bet-type-name,
.page-the-thao__security-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__feature-item p,
.page-the-thao__bet-type-item p,
.page-the-thao__security-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
}

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

.page-the-thao__sport-item {
  background-color: #F5F7FA;
  border-left: 5px solid #E53935;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-the-thao__sport-name {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__sport-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333333;
}

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

.page-the-thao__step-item {
  background-color: #F5F7FA;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 700;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__step-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333333;
}

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

.page-the-thao__promo-card {
  background-color: #F5F7FA;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-the-thao__promo-card p {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
}

.page-the-thao__view-all-promos {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-the-thao__tip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-the-thao__tip-item {
  background-color: #F5F7FA;
  border-left: 5px solid #FF5A4F;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.page-the-thao__tip-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
}

.page-the-thao__tip-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #333333;
}

.page-the-thao__figure {
  margin: 40px auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
}

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

.page-the-thao__figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 15px;
  line-height: 1.5;
}

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

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

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

.page-the-thao__faq-answer {
  font-size: 1em;
  line-height: 1.7;
  color: #333333;
  padding: 0 25px 20px 25px;
}

.page-the-thao__call-to-action {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
}

.page-the-thao__call-to-action .page-the-thao__section-title,
.page-the-thao__call-to-action .page-the-thao__description {
  color: #ffffff;
}

.page-the-thao__call-to-action .page-the-thao__btn-primary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #ffffff;
}

.page-the-thao__call-to-action .page-the-thao__btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

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

@media (max-width: 1024px) {
  .page-the-thao__section {
    margin: 30px auto;
    padding: 30px 15px;
  }

  .page-the-thao__main-title {
    font-size: 3em;
  }

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

  .page-the-thao__feature-grid,
  .page-the-thao__bet-type-grid,
  .page-the-thao__security-grid,
  .page-the-thao__sport-list,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-card-grid {
    gap: 20px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
  }

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

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. Top section (title + CTA buttons) */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, relies on body padding-top from shared.css */
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2.5em !important;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Buttons stack vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons within CTA container */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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;
  }

  /* 2. Single column long text containers */
  .page-the-thao__section {
    margin: 20px auto;
    padding: 25px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-the-thao__feature-item,
  .page-the-thao__bet-type-item,
  .page-the-thao__security-item,
  .page-the-thao__sport-item,
  .page-the-thao__step-item,
  .page-the-thao__promo-card,
  .page-the-thao__tip-item,
  .page-the-thao__faq-item {
    padding: 20px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__bet-type-name,
  .page-the-thao__security-title,
  .page-the-thao__sport-name,
  .page-the-thao__step-title,
  .page-the-thao__promo-title,
  .page-the-thao__tip-title,
  .page-the-thao__faq-question {
    font-size: 1.15em;
  }

  .page-the-thao__feature-item p,
  .page-the-thao__bet-type-item p,
  .page-the-thao__security-item p,
  .page-the-thao__sport-item p,
  .page-the-thao__step-item p,
  .page-the-thao__promo-card p,
  .page-the-thao__tip-item p,
  .page-the-thao__faq-answer {
    font-size: 0.9em;
  }

  /* 3. General images and figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__figure {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Buttons and button containers (already covered in CTA section, but reinforce general) */
  .page-the-thao__view-all-promos {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 5. Registration tutorial and FAQ blocks (FAQ only for this page) */
  .page-the-thao__faq-item {
    margin-bottom: 10px;
  }

  .page-the-thao__faq-question {
    padding: 15px 20px;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-the-thao__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .page-the-thao__step-item {
    padding-top: 50px;
  }

  .page-the-thao__call-to-action {
    padding: 40px 15px;
  }
}