.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Assuming body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000;
  overflow: hidden;
}
.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}
.page-the-thao__hero-content {
  position: absolute;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}
.page-the-thao__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}
.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-the-thao__section {
  padding: 60px 0;
  background-color: #F5F7FA;
  color: #333333;
}
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
  line-height: 1.3;
}
.page-the-thao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}
.page-the-thao__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.page-the-thao__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-the-thao__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}
.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;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.page-the-thao__btn--secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-the-thao__sports-categories .page-the-thao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.page-the-thao__sports-categories .page-the-thao__grid-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-the-thao__sports-categories .page-the-thao__image-card {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}
.page-the-thao__sports-categories .page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  padding: 0 15px;
}
.page-the-thao__sports-categories .page-the-thao__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
  padding: 0 15px;
}

.page-the-thao__how-to-bet .page-the-thao__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.page-the-thao__how-to-bet .page-the-thao__step-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-the-thao__how-to-bet .page-the-thao__step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}
.page-the-thao__how-to-bet .page-the-thao__step-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 20px;
}

/* FAQ Styles */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
}
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: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #E53935;
  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 8px 8px;
  color: #333333;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  margin-top: 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-the-thao__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-the-thao__btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-the-thao__sports-categories .page-the-thao__grid-layout {
    gap: 20px;
  }
  .page-the-thao__how-to-bet .page-the-thao__step-list {
    gap: 20px;
  }
}

@media (max-width: 849px) {
  .page-the-thao__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    position: static; /* Allow content to flow below */
    filter: none; /* Remove filter for better visibility if image is smaller */
  }
  .page-the-thao__hero-content {
    position: static;
    padding: 20px 15px;
    max-width: 100%;
    text-shadow: none;
    color: #333333; /* Darker text for potentially lighter background */
    background-color: #f5f7fa; /* Add a background to ensure text contrast */
  }
  .page-the-thao__hero-section {
    padding-top: 0; /* No top padding if hero image is not full bleed */
    flex-direction: column; /* Ensure image then content */
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px;
  }
  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* General Image & Container Responsive */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__section,
  .page-the-thao__container,
  .page-the-thao__grid-layout,
  .page-the-thao__step-list,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block {
    font-size: 1rem;
    line-height: 1.7;
  }

  /* Buttons Responsive */
  .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;
  }
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  /* Products/Sports Grid Responsive */
  .page-the-thao__sports-categories .page-the-thao__grid-layout {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 25px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-the-thao__sports-categories .page-the-thao__grid-item {
    padding-bottom: 15px;
  }
  .page-the-thao__sports-categories .page-the-thao__image-card {
    height: 180px;
  }
  .page-the-thao__sports-categories .page-the-thao__card-title {
    font-size: 1.2rem;
  }
  .page-the-thao__sports-categories .page-the-thao__card-description {
    font-size: 0.9rem;
  }

  /* How-To Steps Responsive */
  .page-the-thao__how-to-bet .page-the-thao__step-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-the-thao__how-to-bet .page-the-thao__step-item {
    padding: 25px;
  }
  .page-the-thao__how-to-bet .page-the-thao__step-title {
    font-size: 1.3rem;
  }
  .page-the-thao__how-to-bet .page-the-thao__step-description {
    font-size: 0.95rem;
  }

  /* FAQ Responsive */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { padding: 15px; }
  .page-the-thao__faq-qtext { font-size: 1rem; }
  .page-the-thao__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer { padding: 0 15px 15px; }
  details.page-the-thao__faq-item .page-the-thao__faq-answer p { font-size: 0.95rem; }
}