/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background: #F5F7FA; /* Background color from custom palette */
}

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

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

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935; /* Main brand color */
}

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

.page-the-thao__card {
  background: #FFFFFF; /* Card background from custom palette */
  border: 1px solid #E0E0E0; /* Border color from custom palette */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__card-text {
  font-size: 16px;
  color: #333333;
}

.page-the-thao__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  width: 100%; /* Ensure images fill card width */
  min-height: 200px; /* Minimum size requirement */
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  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%); /* Button gradient from custom palette */
  color: #ffffff;
}

.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__btn-tertiary {
  background: none;
  color: #E53935;
  border: 1px solid #E53935;
  padding: 8px 15px;
  font-size: 14px;
  margin-top: 15px;
}

.page-the-thao__btn-tertiary:hover {
  background: #E53935;
  color: #ffffff;
}

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

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 80px;
  color: #ffffff; /* Default for dark-bg */
  overflow: hidden;
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-the-thao__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Why Choose Section */
.page-the-thao__why-choose {
  background: #F5F7FA;
}

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

/* Sports Categories Section */
.page-the-thao__sports-categories {
  background: #E53935; /* Dark brand color for background */
}

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

.page-the-thao__categories-grid .page-the-thao__card img {
    height: 200px;
}

/* Betting Types Section */
.page-the-thao__betting-types {
  background: #F5F7FA;
}

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

.page-the-thao__betting-card .page-the-thao__card-title {
  color: #E53935;
}

/* Promotions Section */
.page-the-thao__promotions {
  background: #FF5A4F; /* Auxiliary brand color for background */
}

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

.page-the-thao__promotions-grid .page-the-thao__card img {
    height: 200px;
}

/* Guide Section */
.page-the-thao__guide {
  background: #F5F7FA;
}

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

.page-the-thao__step-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #E53935;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-the-thao__step-text {
  font-size: 15px;
  color: #333333;
}

/* Responsible Gaming Section */
.page-the-thao__responsible-gaming {
  background: #E53935;
}

.page-the-thao__responsibility-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 40px auto 0;
  font-size: 18px;
  color: #f0f0f0;
}

.page-the-thao__responsibility-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-the-thao__responsibility-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FF5A4F;
  font-weight: bold;
  font-size: 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background: #F5F7FA;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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: #333333;
}

/* Color contrast classes */
.page-the-thao__dark-bg {
  color: #ffffff; /* Deep background with light text */
}

.page-the-thao__light-bg {
  color: #333333; /* Light background with dark text */
}

.page-the-thao__text-contrast-fix {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 32px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-the-thao__tagline {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

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

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

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

  .page-the-thao__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-the-thao__card {
    padding: 20px;
  }

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

  .page-the-thao__card-text {
    font-size: 14px;
  }

  /* HERO Section (Mobile) */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 50px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* HERO: object-fit:contain */
    aspect-ratio: unset !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-the-thao__tagline {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 25px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Buttons: vertical stack */
    gap: 15px;
    margin-top: 30px;
  }

  /* Buttons (Mobile) */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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;
  }

  /* Image Responsiveness (Mobile) */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product/Feature Grids (Mobile) */
  .page-the-thao__features-grid,
  .page-the-thao__categories-grid,
  .page-the-thao__betting-grid,
  .page-the-thao__promotions-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__categories-grid .page-the-thao__card img,
  .page-the-thao__promotions-grid .page-the-thao__card img {
    height: auto;
    min-
  }

  /* Responsible Gaming List (Mobile) */
  .page-the-thao__responsibility-list {
    font-size: 16px;
    margin-top: 30px;
    padding-left: 15px;
  }

  .page-the-thao__responsibility-list li {
    padding-left: 25px;
  }

  .page-the-thao__responsibility-list li::before {
    font-size: 18px;
  }

  /* FAQ Section (Mobile) */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question { 
    padding: 15px; 
  }

  .page-the-thao__faq-qtext { 
    font-size: 15px; 
  }

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