/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8;
}

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

/* HERO Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Max height for desktop hero */
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

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

.page-the-thao__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* General Section Styles */
.page-the-thao__section {
  padding: 60px 0;
}

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color */
  font-weight: 700;
}

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

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

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

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

.page-the-thao__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__feature-item p {
  color: #333333;
  font-size: 1rem;
}

/* Sports Cards Grid */
.page-the-thao__sports-cards-grid,
.page-the-thao__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-the-thao__card--dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

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

.page-the-thao__card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  padding: 15px 20px 10px;
  color: #26A9E0;
}

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

.page-the-thao__card p {
  padding: 0 20px 15px;
  font-size: 1rem;
  color: #555555;
}

.page-the-thao__card--dark-bg p {
  color: #f0f0f0;
}

.page-the-thao__btn-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background: #EA7C07; /* Login button color for emphasis */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-the-thao__btn-link:hover {
  background: #cc6a00;
}

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

.page-the-thao__guide-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-the-thao__guide-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__guide-item p {
  color: #333333;
  font-size: 1rem;
}

/* App Download Section */
.page-the-thao__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-the-thao__app-text {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__app-title {
  font-size: 2rem;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-the-thao__app-features li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333333;
  display: flex;
  align-items: center;
}

.page-the-thao__app-feature-icon {
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 10px;
}

.page-the-thao__app-image {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-the-thao__app-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__app-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Call to Action Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  background-color: #cc6a00;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

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

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

/* FAQ Section */
.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: #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;
  color: #333333;
}

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

.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;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

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

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

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

  .page-the-thao__section-title {
    font-size: 2.5rem;
  }

  .page-the-thao__app-download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__app-text,
  .page-the-thao__app-image {
    min-width: unset;
    width: 100%;
  }

  .page-the-thao__app-cta-buttons {
    justify-content: center;
  }
}

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

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

  /* HERO Section - Mobile */
  .page-the-thao__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-the-thao__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust font size for mobile */
    margin-bottom: 10px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* General Text & Images - Mobile */
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

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

  .page-the-thao p,
  .page-the-thao li {
    font-size: 0.95rem;
  }

  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Feature Grid - Mobile */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 0 15px;
  }

  .page-the-thao__feature-item {
    padding: 25px;
  }

  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }

  /* Sports & Promo Cards Grid - Mobile */
  .page-the-thao__sports-cards-grid,
  .page-the-thao__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 0 15px;
  }

  .page-the-thao__card {
    margin-bottom: 0;
  }

  .page-the-thao__card img {
    height: 200px; /* Adjust height for mobile cards */
  }

  .page-the-thao__card-title {
    font-size: 1.2rem;
    padding: 10px 15px 5px;
  }

  .page-the-thao__card p {
    padding: 0 15px 10px;
  }

  .page-the-thao__btn-link {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
    box-sizing: border-box;
  }

  /* Guide Steps - Mobile */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 0 15px;
  }

  .page-the-thao__guide-item {
    padding: 25px;
  }

  .page-the-thao__guide-title {
    font-size: 1.4rem;
  }

  /* App Download - Mobile */
  .page-the-thao__app-download-content {
    gap: 30px;
    margin: 20px 0;
    padding: 0 15px;
  }

  .page-the-thao__app-title {
    font-size: 1.8rem;
  }

  .page-the-thao__app-features {
    margin: 15px 0 20px;
  }

  .page-the-thao__app-features li {
    font-size: 1rem;
  }

  .page-the-thao__app-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* Buttons - Mobile */
  .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,
  .page-the-thao__app-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  /* FAQ - Mobile */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
  .page-the-thao__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }
}

/* Additional contrast/color rules */
.page-the-thao__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

/* Ensure all text in general content areas is dark on light background */
.page-the-thao__content-area, .page-the-thao__text-block {
  color: #333333;
  background: #ffffff;
}

.page-the-thao p, .page-the-thao li {
  color: #333333;
}

.page-the-thao__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-the-thao__card--dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-the-thao__btn-primary {
  background: #EA7C07;
  color: #ffffff;
  border: 2px solid transparent;
}

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

/* Contrast fix for potential issues */
.page-the-thao__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-the-thao__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}