/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

.page-sports__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;\  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__intro-section, .page-sports__sports-options, .page-sports__promotions-section, .page-sports__responsible-gaming, .page-sports__testimonials-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__sports-options .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__responsible-gaming .page-sports__section-title,
.page-sports__testimonials-section .page-sports__section-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-sports__why-choose-us, .page-sports__live-betting, .page-sports__how-to-start, .page-sports__faq-section, .page-sports__contact-cta {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for sections */
  color: #ffffff;
}

.page-sports__why-choose-us .page-sports__section-title,
.page-sports__live-betting .page-sports__section-title,
.page-sports__how-to-start .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title,
.page-sports__contact-cta .page-sports__section-title {
  color: #ffffff; /* White for titles on dark background */
}

.page-sports__features-grid, .page-sports__sports-grid, .page-sports__steps-grid, .page-sports__testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__card {
  background-color: #2a2a2a; /* Card background for dark sections */
  color: #ffffff; /* White text for cards on dark sections */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card styling for light background sections */
.page-sports__intro-section .page-sports__card,
.page-sports__sports-options .page-sports__card,
.page-sports__promotions-section .page-sports__card,
.page-sports__responsible-gaming .page-sports__card,
.page-sports__testimonials-section .page-sports__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-sports__card-title {
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #017439; /* Brand color for card titles */
}

/* Ensure link color in card titles is also visible */
.page-sports__card-title a {
  color: #017439; /* Brand color for links in card titles */
  text-decoration: none;
}

.page-sports__card-title a:hover {
  text-decoration: underline;
}

.page-sports__feature-icon, .page-sports__sport-image, .page-sports__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

.page-sports__image-centered {
  max-width: 1000px;
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

.page-sports__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__promo-list li {
  background-color: #ffffff; /* White background for list items on light sections */
  color: #333333; /* Dark text for list items on light sections */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.page-sports__promo-list li a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__promo-list li a:hover {
  text-decoration: underline;
}

.page-sports__btn-primary, .page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for primary buttons (Đăng Ký, Đăng Nhập) */
  color: #FFFF00; /* Custom font color for primary buttons */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #017439; /* Primary brand color for secondary buttons on light background */
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Secondary button style for dark background sections */
.page-sports__hero-section .page-sports__btn-secondary,
.page-sports__contact-cta .page-sports__btn-secondary,
.page-sports__why-choose-us .page-sports__btn-secondary,
.page-sports__how-to-start .page-sports__btn-secondary,
.page-sports__faq-section .page-sports__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-sports__hero-section .page-sports__btn-secondary:hover,
.page-sports__contact-cta .page-sports__btn-secondary:hover,
.page-sports__why-choose-us .page-sports__btn-secondary:hover,
.page-sports__how-to-start .page-sports__btn-secondary:hover,
.page-sports__faq-section .page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

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

.page-sports__video-section {
  position: relative;
  width: 100%;
  padding: 40px 0;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 10px;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-sports__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #f0f0f0;
}

.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-sports__faq-item {
  background-color: #2a2a2a; /* Card background for dark sections */
  color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Primary brand color for FAQ question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
}

.page-sports__faq-question:hover {
  background-color: #028e46;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes X or similar */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a; /* Darker background for answer */
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  text-align: left;
}

.page-sports__testimonial-card {
  background-color: #ffffff; /* Card background for light sections */
  color: #333333; /* Dark text for cards on light sections */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-sports__testimonial-quote {
  font-style: italic;
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #333333;
}

.page-sports__testimonial-author {
  font-weight: bold;
  color: #017439;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    min-height: 60vh;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports__btn-primary, .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 1em;
  }
  .page-sports__intro-section, .page-sports__why-choose-us, .page-sports__sports-options, .page-sports__live-betting, .page-sports__promotions-section, .page-sports__how-to-start, .page-sports__responsible-gaming, .page-sports__faq-section, .page-sports__testimonials-section, .page-sports__contact-cta {
    padding: 60px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__features-grid, .page-sports__sports-grid, .page-sports__steps-grid, .page-sports__testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__promo-list {
    margin: 30px auto;
  }
  .page-sports__promo-list li {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  .page-sports__image-full-width, .page-sports__image-centered {
    margin: 30px auto;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important;
  }
  .page-sports__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
  .page-sports__faq-answer p {
    font-size: 0.95em;
  }
}