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

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-the-thao__container--center {
  text-align: center;
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted to avoid double padding with shared body offset */
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image for visual effect */
  max-width: 800px;
  width: 90%;
}

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

.page-the-thao__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  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 */
  border: 2px solid #C30808;
}

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-the-thao__btn-primary--center,
.page-the-thao__btn-secondary--center {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-the-thao__section-title--white {
  color: #FFFFFF;
}

.page-the-thao__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-the-thao__section-description--white {
  color: #f0f0f0;
}

.page-the-thao__light-bg {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: #017439;
  padding: 60px 0;
  color: #FFFFFF;
}

.page-the-thao__features-grid,
.page-the-thao__bet-types-grid,
.page-the-thao__sports-grid,
.page-the-thao__promo-grid,
.page-the-thao__steps-grid,
.page-the-thao__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-the-thao__feature-card,
.page-the-thao__bet-type-card,
.page-the-thao__sport-card,
.page-the-thao__promo-card,
.page-the-thao__step-card,
.page-the-thao__tip-item {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__feature-card:hover,
.page-the-thao__sport-card:hover,
.page-the-thao__promo-card:hover,
.page-the-thao__step-card:hover,
.page-the-thao__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__feature-card img,
.page-the-thao__sport-card img,
.page-the-thao__promo-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__card-title--dark-bg {
  color: #FFFFFF;
}

.page-the-thao__bet-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-the-thao__bet-type-card .page-the-thao__card-title {
  color: #FFFFFF;
}

.page-the-thao__bet-type-card p {
  color: #f0f0f0;
}

.page-the-thao__sport-card p,
.page-the-thao__promo-card p,
.page-the-thao__step-card p,
.page-the-thao__tip-item p {
  color: #555555;
  flex-grow: 1;
}

.page-the-thao__card-btn {
  margin-top: 20px;
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 5px;
}

.page-the-thao__card-btn:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-the-thao__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__live-betting-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-the-thao__live-betting-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-the-thao__live-betting-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 17px;
  display: flex;
  align-items: center;
  color: #FFFFFF;
}

.page-the-thao__live-betting-list li::before {
  content: '✓';
  color: #FFFF00; /* A contrasting color */
  font-weight: bold;
  margin-right: 10px;
  font-size: 20px;
}

.page-the-thao__step-card {
  background: #FFFFFF;
  padding-top: 60px;
  position: relative;
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808;
  color: #FFFF00;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__tip-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.page-the-thao__tip-item .page-the-thao__card-title {
  color: #FFFFFF;
}

.page-the-thao__tip-item p {
  color: #f0f0f0;
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #f5f5f5;
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-the-thao__faq-answer p {
  margin: 0;
  padding: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
  }

  .page-the-thao__main-title {
    font-size: clamp(26px, 3.8vw, 44px);
  }

  .page-the-thao__intro-text {
    font-size: 17px;
  }

  .page-the-thao__section-title {
    font-size: clamp(22px, 3.2vw, 36px);
  }

  .page-the-thao__section-description {
    font-size: 16px;
  }

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

  .page-the-thao__live-betting-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }

  .page-the-thao__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-the-thao__hero-content {
    margin-top: -40px;
    width: 95%;
    padding: 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjusted for mobile */
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__card-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
    font-size: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-the-thao__light-bg,
  .page-the-thao__dark-section {
    padding: 40px 0;
  }

  .page-the-thao__features-grid,
  .page-the-thao__bet-types-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-the-thao__feature-card img,
  .page-the-thao__sport-card img,
  .page-the-thao__promo-card img {
    
    margin-bottom: 15px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-the-thao__live-betting-image {
    max-width: 100%;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__live-betting-list li {
    font-size: 16px;
    padding: 12px 15px;
    margin-bottom: 10px;
  }

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

  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
    top: -25px;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 15px;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }

  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__why-choose-us-section,
  .page-the-thao__types-of-bets-section,
  .page-the-thao__featured-sports-section,
  .page-the-thao__live-betting-section,
  .page-the-thao__promotions-section,
  .page-the-thao__how-to-start-section,
  .page-the-thao__responsible-betting-section,
  .page-the-thao__faq-section,
  .page-the-thao__join-us-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title-wrap {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .page-the-thao__article-body {
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-the-thao__article-body figure {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .page-the-thao__article-body img {
    max-width: 100% !important;
    height: auto !important;
  }
}