/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body handles background, this section is transparent */
}

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

/* Sections */
.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter than body bg for contrast */
  color: #ffffff;
}

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-sports__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 10px 0 60px; /* Small top padding, body handles main offset */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

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

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

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.page-sports__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  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;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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: 1px solid #26A9E0;
  padding: 10px 20px;
  font-size: 1em;
}

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

/* Card Styles */
.page-sports__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-sports__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

/* Features Section */
.page-sports__features-grid,
.page-sports__categories-grid,
.page-sports__promotions-grid,
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-image,
.page-sports__category-image,
.page-sports__promotion-image,
.page-sports__step-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-sports__live-betting-image {
  flex: 1 1 45%;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports__live-betting-list {
  flex: 1 1 45%;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #f0f0f0;
}

.page-sports__live-betting-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 1.1em;
}

.page-sports__live-betting-list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #26A9E0;
}

.page-sports__list-highlight {
  color: #26A9E0;
}

/* Get Started Section */
.page-sports__steps-grid .page-sports__card {
  justify-content: flex-start; /* Align content to top */
}

/* Responsible Gambling Section */
.page-sports__responsible-features p {
  max-width: 800px;
  margin: 20px auto;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-sports__responsible-features a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__responsible-features a:hover {
  color: #1a8cc7;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-sports__faq-item details > summary {
  list-style: none;
}

.page-sports__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  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.15);
}

.page-sports__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  line-height: 1;
}

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 25px 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

.page-sports__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__faq-answer a:hover {
  color: #1a8cc7;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Use brand color for strong CTA */
  color: #ffffff;
}

.page-sports__cta-final-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-final-section .page-sports__section-description {
  color: #f0f0f0;
}

.page-sports__cta-final-section .page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for strong action */
  border-color: #EA7C07;
}

.page-sports__cta-final-section .page-sports__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-sports__cta-final-section .page-sports__btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

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

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

  .page-sports__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-sports__description {
    font-size: 1em;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__section {
    padding: 40px 0;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-sports__features-grid,
  .page-sports__categories-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card {
    padding: 25px;
  }

  .page-sports__card img {
    
  }

  .page-sports__card-title {
    font-size: 1.3em;
  }

  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-betting-image {
    width: 100%;
    min-width: unset;
    order: -1; /* Image above text on mobile */
  }

  .page-sports__live-betting-list {
    text-align: left;
    width: 100%;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

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

  /* Force responsive images and containers */
  .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__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .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__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  
  .page-sports__video-section {
    padding-top: 10px !important;
  }
}

/* Desktop specific width for video-container, ensuring it exists */
.page-sports__video-container {
  width: 100%; /* Ensure width:100% is present on desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}