/* style/sports.css */
.page-sports {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 40px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__section-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.8;
}

/* Sections background colors */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Advantages Section */
.page-sports__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__advantage-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__advantage-title {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__advantage-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

/* Sports Types Section */
.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__sport-title {
  font-size: 1.75rem;
  margin: 20px 0 10px;
  color: #26A9E0;
}

.page-sports__sport-text {
  font-size: 1.1rem;
  padding: 0 20px 20px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

/* Live Betting Section */
.page-sports__live-betting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-sports__live-feature-card {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__live-feature-title {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__live-feature-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

.page-sports__cta-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block;
}

.page-sports__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1rem;
  color: #ffffff;
  opacity: 0.7;
}

/* Promotions Section */
.page-sports__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__promotion-title {
  font-size: 1.75rem;
  margin: 20px 0 10px;
  color: #26A9E0;
}

.page-sports__promotion-text {
  font-size: 1.1rem;
  padding: 0 20px 20px;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

.page-sports__cta-center {
  text-align: center;
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__step-icon {
  font-size: 2.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__step-title {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__step-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* Security Section */
.page-sports__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__feature-title {
  font-size: 1.75rem;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__feature-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.9;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.25rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 20px;
}

.page-sports__faq-answer p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ffffff;
  opacity: 0.8;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #26A9E0;
}

.page-sports__cta-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: #ffffff;
  margin-bottom: 20px;
}

.page-sports__cta-description {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #ffffff;
  opacity: 0.9;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 70vh;
    padding: 80px 20px 40px 20px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-sports__hero-description {
    font-size: clamp(1rem, 3.5vw, 1.25rem);
  }

  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-sports__section-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-sports__section-description {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    margin-bottom: 30px;
  }

  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__sport-image,
  .page-sports__promotion-image {
    height: auto;
    max-height: 200px;
  }

  .page-sports__cta-video-wrapper {
    padding-bottom: 65%; /* Adjust aspect ratio for mobile if needed */
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-sports__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

  .page-sports__faq-answer p {
    font-size: 1rem;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 15px;
  }

  .page-sports__cta-final-section {
    padding: 60px 15px;
  }

  .page-sports__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .page-sports__cta-description {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

/* Ensure content area images are not too small */
.page-sports__sports-grid img, 
.page-sports__promotions-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure text contrast for light backgrounds within dark sections for specific elements if any */
.page-sports__light-bg .page-sports__advantage-title,
.page-sports__light-bg .page-sports__sport-title,
.page-sports__light-bg .page-sports__live-feature-title,
.page-sports__light-bg .page-sports__promotion-title,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__feature-title {
  color: #26A9E0;
}

.page-sports__light-bg .page-sports__advantage-text,
.page-sports__light-bg .page-sports__sport-text,
.page-sports__light-bg .page-sports__live-feature-text,
.page-sports__light-bg .page-sports__promotion-text,
.page-sports__light-bg .page-sports__step-text,
.page-sports__light-bg .page-sports__feature-text {
  color: #ffffff;
}

/* Specific overrides for text on dark background to ensure visibility */
.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__hero-title,
.page-sports__dark-bg .page-sports__advantage-title,
.page-sports__dark-bg .page-sports__sport-title,
.page-sports__dark-bg .page-sports__promotion-title,
.page-sports__dark-bg .page-sports__feature-title,
.page-sports__dark-bg .page-sports__cta-title {
  color: #26A9E0;
}

.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg .page-sports__hero-description,
.page-sports__dark-bg .page-sports__advantage-text,
.page-sports__dark-bg .page-sports__sport-text,
.page-sports__dark-bg .page-sports__promotion-text,
.page-sports__dark-bg .page-sports__feature-text,
.page-sports__dark-bg .page-sports__cta-description {
  color: #ffffff;
}

.page-sports__faq-item.active .page-sports__faq-answer p {
  color: #ffffff;
}

/* Ensure all images are not affected by filter */
.page-sports img {
  filter: none !important;
}