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

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

.page-the-thao__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #017439;
}

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

.page-the-thao__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

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

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  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; /* Đăng Ký color */
  color: #FFFF00; /* Đăng ký và Đăng nhập chữ 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-outline {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-the-thao__btn-outline:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-the-thao__feature-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-the-thao__feature-description {
  font-size: 1em;
  color: #555555;
}

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

.page-the-thao__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__sport-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-the-thao__sport-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__sport-card .page-the-thao__btn-outline {
  color: #ffffff;
  border-color: #ffffff;
}

.page-the-thao__sport-card .page-the-thao__btn-outline:hover {
  background-color: #ffffff;
  color: #017439;
}

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

.page-the-thao__betting-card {
  background-color: #f8f8f8;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-the-thao__betting-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-the-thao__betting-description {
  font-size: 1em;
  color: #555555;
}

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

/* Guide Steps */
.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-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 15px;
  display: block;
}

.page-the-thao__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-the-thao__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__step-card .page-the-thao__btn-outline {
  color: #ffffff;
  border-color: #ffffff;
  margin-top: auto;
}

.page-the-thao__step-card .page-the-thao__btn-outline:hover {
  background-color: #ffffff;
  color: #017439;
}

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

.page-the-thao__promo-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e0e0e0;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-the-thao__promo-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-the-thao__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.15em;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    min-height: 400px;
  }
  .page-the-thao__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-the-thao__hero-image {
    height: 300px !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-the-thao__hero-content {
    padding: 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-the-thao__section {
    padding: 30px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-the-thao__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-outline,
  .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__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__betting-types-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  .page-the-thao__feature-card,
  .page-the-thao__sport-card,
  .page-the-thao__betting-card,
  .page-the-thao__step-card,
  .page-the-thao__promo-card {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__feature-icon,
  .page-the-thao__sport-image,
  .page-the-thao__promo-image,
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__faq-list {
    margin-top: 20px;
  }
  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-the-thao__faq-answer {
    padding: 10px 20px 20px;
  }
  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific overrides for mobile-related elements if they were present */
  .page-the-thao__home-content { /* Assuming a long text gold frame might exist for other pages, applying the rule here */
    height: auto !important;
    overflow-y: visible !important;
    padding: 15px !important;
  }
  .page-the-thao__home-content h2 { /* Example for h2 inside long text frame */
    font-size: 1.5em !important;
  }
  .page-the-thao__slider-track { /* Assuming a game carousel might exist for other pages, applying the rule here */
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-the-thao__game-slide { /* Example for game slide */
    flex: 0 0 80% !important;
    max-width: 80% !important;
    scroll-snap-align: start;
  }
  .page-the-thao__banners-top-wrapper { /* Partner grid */
    grid-template-columns: repeat(2, 1fr) !important; /* Changed from 3 to 2 for better mobile display */
    gap: 10px !important;
  }
  .page-the-thao__banner-item img { /* Partner image */
    
    
  }
  .page-the-thao__blog-masonry { /* Blog card area */
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    align-items: stretch !important;
  }
  .page-the-thao__blog-card-link { /* Blog card link */
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-the-thao__blog-slider-track { /* Blog slider track */
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .page-the-thao__blog-slide { /* Blog slide */
    flex: 0 0 90% !important;
    max-width: 90% !important;
    scroll-snap-align: start;
  }
}