/* style/sports.css */

/* Base styles for the page, ensuring light text on dark body background */
.page-sports {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #0a0a0a; /* Ensure dark background for hero section */
  color: #ffffff;
  overflow: hidden;
}

.page-sports__hero-image-container {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image for visual flow */
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7));
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  margin-bottom: 40px;
}

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

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

.page-sports__cta-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: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  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: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9rem;
}

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

/* Section Titles */
.page-sports__section-title {
  font-size: 2.2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-sports__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: inherit;
}

.page-sports__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: inherit;
}

.page-sports__note {
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 30px;
}

/* About Section (Light background) */
.page-sports__about-section {
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
  padding: 60px 0;
}

.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__sub-title,
.page-sports__about-section .page-sports__text-block {
  color: #333333;
}

.page-sports__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__image-text-block-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 100%;
  height: auto;
  display: block;
}

.page-sports__text-content {
  flex: 1;
  min-width: 300px;
}

.page-sports__list {
  list-style: none;
  padding: 0;
}

.page-sports__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #333333;
}

.page-sports__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

/* Sports Categories Section (Dark background) */
.page-sports__sports-categories {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__sport-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__sport-card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #FFFFFF;
  padding: 0 15px;
}

.page-sports__sport-card-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Live Betting Section (Light background) */
.page-sports__live-betting-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
  text-align: center;
}

.page-sports__live-betting-section .page-sports__section-title,
.page-sports__live-betting-section .page-sports__text-block {
  color: #333333;
}

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

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

.page-sports__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
  opacity: 1;
}

/* Promotions Section (Dark background) */
.page-sports__promotions-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__promotion-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-sports__promotion-card-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #FFFFFF;
  padding: 0 15px;
}

.page-sports__promotion-card-description {
  font-size: 0.95rem;
  color: #f0f0f0;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__cta-promotions {
  text-align: center;
  margin-top: 40px;
}

/* How To Play Section (Light background) */
.page-sports__how-to-play-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-sports__how-to-play-section .page-sports__section-title,
.page-sports__how-to-play-section .page-sports__text-block {
  color: #333333;
}

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

.page-sports__step-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-sports__step-icon {
  background-color: #26A9E0;
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333333;
}

.page-sports__step-description {
  font-size: 0.95rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* FAQ Section (Dark background) */
.page-sports__faq-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: bold;
  font-size: 1.1rem;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  color: #f0f0f0;
  font-size: 1rem;
}

/* Contact CTA Section (Light background) */
.page-sports__contact-cta-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
  text-align: center;
}

.page-sports__contact-cta-section .page-sports__section-title,
.page-sports__contact-cta-section .page-sports__text-block {
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-sports__hero-content {
    margin-top: -50px;
    padding: 30px 15px;
  }

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

  .page-sports__image-text-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__image-text-block-image,
  .page-sports__text-content {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-sports__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
    margin-bottom: 20px;
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    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-sports__section-title {
    font-size: 1.8rem;
  }

  .page-sports__sub-title {
    font-size: 1.5rem;
  }

  .page-sports__text-block {
    font-size: 0.95rem;
  }

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

  .page-sports__hero-image-container,
  .page-sports__image-text-block-image,
  .page-sports__sport-card-image,
  .page-sports__promotion-card-image,
  .page-sports__video-wrapper,
  .page-sports__video-container,
  .page-sports__video-section,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .page-sports__promotion-cards,
  .page-sports__steps-grid,
  .page-sports__faq-list,
  .page-sports__sport-card,
  .page-sports__promotion-card,
  .page-sports__step-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 10px;
    padding-right: 10px;
  }

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

  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    height: 0 !important;
  }

  .page-sports__video-overlay {
    opacity: 1 !important; /* Always show overlay button on mobile */
  }

  .page-sports__video-overlay .page-sports__btn-primary {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
  }

  .page-sports__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-sports__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-sports__faq-item summary {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-sports__hero-content {
    padding: 15px 5px;
  }

  .page-sports__section-title {
    font-size: 1.5rem;
  }

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

  .page-sports__step-card {
    padding: 20px;
  }
}