/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  min-height: 500px;
  box-sizing: border-box;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-sports__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  max-width: 800px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Slightly transparent white for readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  color: #333333; /* Dark text on light background */
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Primary color for title */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

/* General Section Styling */
.page-sports__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-sports__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-sports__section-description {
  font-size: 1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Dark Background Section */
.page-sports__dark-section {
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff; /* White text for contrast */
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__section-description,
.page-sports__dark-section .page-sports__feature-title,
.page-sports__dark-section .page-sports__feature-text,
.page-sports__dark-section .page-sports__promo-title,
.page-sports__dark-section .page-sports__promo-text,
.page-sports__dark-section .page-sports__faq-qtext,
.page-sports__dark-section .page-sports__faq-answer p {
  color: #ffffff; /* Ensure all text elements are white */
}

/* Light Background Section */
.page-sports__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__bet-type-title,
.page-sports__light-bg .page-sports__bet-type-text,
.page-sports__light-bg .page-sports__cta-heading,
.page-sports__light-bg .page-sports__cta-text,
.page-sports__light-bg .page-sports__info-title,
.page-sports__light-bg .page-sports__info-text {
  color: #333333; /* Ensure all text elements are dark */
}

/* Buttons */
.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #26A9E0; /* Primary color */
  color: #ffffff; /* White text */
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background-color: #1a7bbd; /* Slightly darker primary on hover */
  border-color: #1a7bbd;
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #26A9E0; /* Primary color text */
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

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

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

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__info-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark bg */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.page-sports__feature-card img,
.page-sports__info-card img {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-sports__feature-title,
.page-sports__promo-title,
.page-sports__info-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: inherit; /* Inherit color from parent section */
}

.page-sports__feature-text,
.page-sports__promo-text,
.page-sports__info-text {
  font-size: 0.95em;
  color: inherit; /* Inherit color from parent section */
}

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

.page-sports__bet-type-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__bet-type-title {
  font-size: 1.25em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0; /* Primary color for title */
}

.page-sports__bet-type-text {
  font-size: 0.95em;
  color: #555555;
}

/* Call to Action Block */
.page-sports__cta-block {
  text-align: center;
  background: #f8f8f8;
  padding: 40px 25px;
  border-radius: 8px;
  margin-top: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-sports__cta-heading {
  font-size: clamp(1.5em, 2.5vw, 2em);
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__cta-text {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 80px 20px;
  background-color: #f0f8ff; /* A very light blue background */
  text-align: center;
}

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

/* FAQ Section */
.page-sports__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Ensure all images in content area are at least 200px */
.page-sports img:not(.page-sports__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 15px;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 5vw, 2.5em);
  }
  .page-sports__section-title {
    font-size: clamp(1.8em, 4vw, 2.2em);
  }
  .page-sports__features-grid,
  .page-sports__promo-grid,
  .page-sports__info-grid,
  .page-sports__betting-types {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Global responsive for images, videos, buttons within .page-sports */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure content images are not too small */
    min-height: 200px !important;
  }

  .page-sports video,
  .page-sports__video {
    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,
  .page-sports__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__hero-section {
    padding: 10px 15px 40px !important; /* Adjust padding for mobile */
  }

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

  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em); /* Smaller H1 on mobile */
  }

  .page-sports__section-title {
    font-size: clamp(1.6em, 5vw, 2em);
  }

  .page-sports__hero-cta-buttons,
  .page-sports__final-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports 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 !important;
    padding-right: 15px !important;
    text-align: center;
  }

  .page-sports__features-grid,
  .page-sports__promo-grid,
  .page-sports__info-grid,
  .page-sports__betting-types {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-sports__section {
    padding: 40px 15px; /* Adjust section padding */
  }

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

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

/* Color Contrast Fixes (if needed, applying based on general design) */
.page-sports__content-area,
.page-sports__text-block {
  color: #333333; /* Ensure dark text on default light backgrounds */
  background: #ffffff;
}

.page-sports p,
.page-sports li {
  color: #333333;
}

.page-sports__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

/* Specific button colors are defined above */
.page-sports__btn-primary {
  background: #26A9E0;
  color: #ffffff;
}

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