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

.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, not --header-offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for desktop hero */
  overflow: hidden;
  position: relative;
}

.page-the-thao__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-the-thao__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #ffffff;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-the-thao__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

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

.page-the-thao__btn-secondary:hover {
  background: #f0f5ff;
  color: #1a57cc;
  border-color: #1a57cc;
  transform: translateY(-2px);
}

.page-the-thao__section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: #F4F7FB;
}

.page-the-thao__section:nth-of-type(odd) {
  background-color: #ffffff;
}

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
}

.page-the-thao__section-description {
  font-size: 1.1rem;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__feature-item,
.page-the-thao__sport-card,
.page-the-thao__promotion-card,
.page-the-thao__step-item {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF;
}

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

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

.page-the-thao__feature-title,
.page-the-thao__sport-title,
.page-the-thao__promotion-title,
.page-the-thao__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-the-thao__feature-text,
.page-the-thao__sport-text,
.page-the-thao__promotion-text,
.page-the-thao__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-the-thao__article-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D;
  max-width: 1000px;
  margin: 60px auto 0 auto;
  padding: 0 20px;
  text-align: justify;
}

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

.page-the-thao__live-betting-section .page-the-thao__text-content {
  flex: 1;
}

.page-the-thao__live-betting-section .page-the-thao__image-content {
  flex: 1;
  min-width: 400px; /* Ensure image has enough space */
}

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

.page-the-thao__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px 0;
}

.page-the-thao__feature-list li {
  font-size: 1.05rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #1F2D3D;
}

.page-the-thao__feature-list li::before {
  content: '✔';
  color: #2F6BFF;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

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

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #2F6BFF;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

/* FAQ Styles */
details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: #F4F7FB;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB;
  border-radius: 0 0 10px 10px;
  color: #1F2D3D;
  font-size: 1rem;
  line-height: 1.6;
}
details.page-the-thao__faq-item .page-the-thao__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    margin-bottom: 30px;
  }

  .page-the-thao__hero-image-wrapper {
    height: 400px;
  }

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

  .page-the-thao__hero-description {
    font-size: 1.05rem;
    margin-bottom: 25px;
  }

  .page-the-thao__hero-cta-buttons {
    gap: 15px;
  }

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

  .page-the-thao__section {
    padding: 50px 0;
  }

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

  .page-the-thao__section-description {
    margin-bottom: 30px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__promotion-card,
  .page-the-thao__step-item {
    padding: 25px;
  }

  .page-the-thao__feature-icon,
  .page-the-thao__sport-image,
  .page-the-thao__promotion-image {
    height: 180px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__sport-title,
  .page-the-thao__promotion-title,
  .page-the-thao__step-title {
    font-size: 1.3rem;
  }

  .page-the-thao__article-body {
    margin-top: 40px;
    font-size: 1rem;
  }

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

  .page-the-thao__live-betting-section .page-the-thao__image-content {
    min-width: unset;
    width: 100%;
  }

  .page-the-thao__feature-list li {
    font-size: 1rem;
  }

  .page-the-thao__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }

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

  .page-the-thao__faq-qtext {
    font-size: 1.05rem;
  }

  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 28px;
  }

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

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-image-wrapper {
    height: 250px;
  }

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-content {
    padding: 20px 15px;
    position: static; /* Adjust to static for mobile to flow below image */
    background: none; /* Remove gradient for better readability */
    color: #1F2D3D; /* Dark text on light background */
    text-align: left;
  }
  
  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
    color: #1F2D3D; /* Dark text on light background */
    text-align: center;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #1F2D3D; /* Dark text on light background */
    text-align: center;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
    margin-top: 25px;
  }

  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__promotion-card,
  .page-the-thao__step-item {
    padding: 20px;
  }

  .page-the-thao__feature-icon,
  .page-the-thao__sport-image,
  .page-the-thao__promotion-image,
  .page-the-thao__live-betting-image,
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-the-thao__feature-title,
  .page-the-thao__sport-title,
  .page-the-thao__promotion-title,
  .page-the-thao__step-title {
    font-size: 1.2rem;
  }

  .page-the-thao__feature-text,
  .page-the-thao__sport-text,
  .page-the-thao__promotion-text,
  .page-the-thao__step-text {
    font-size: 0.9rem;
  }

  .page-the-thao__article-body {
    margin-top: 30px;
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-the-thao__live-betting-section .page-the-thao__content-wrapper {
    gap: 20px;
  }

  .page-the-thao__feature-list li {
    font-size: 0.95rem;
    padding-left: 20px;
  }

  .page-the-thao__feature-list li::before {
    font-size: 0.95rem;
  }

  .page-the-thao__cta-center {
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 12px 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }

  .page-the-thao__faq-toggle {
    font-size: 22px;
    width: 24px;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 12px;
  }
}