/* style/sports.css */

/* General styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #1a1a1a, so text is light */
  background-color: transparent; /* Inherit from body */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Minimum height for hero image */
}

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 40px; /* Space between image and content */
  padding: 0 20px;
}

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

.page-sports__subtitle {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Call to Action Buttons */
.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  padding: 0 20px; /* Add padding to prevent overflow on small screens */
}

.page-sports__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

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

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

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

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

/* Section Content */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: #ffffff; /* Text color for dark background */
}

.page-sports__dark-bg {
  background-color: #1a1a1a; /* Inherited from body, explicit for sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

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

.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-sports__section-title--dark {
  color: #333333; /* For light background sections */
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

/* Image styles */
.page-sports__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 30px 0;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

/* Feature Grid */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Bet Types */
.page-sports__bet-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__bet-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__bet-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__bet-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Registration Steps */
.page-sports__registration-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-left: 5px solid #26A9E0;
}

.page-sports__step-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__step-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #f8f9fa; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  color: #333333;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  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;
}

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-sports__faq-answer {
  padding: 15px 25px 25px 25px;
  background-color: #fcfcfc;
  border-top: 1px solid #e0e0e0;
  color: #555555;
  font-size: 1em;
  line-height: 1.6;
}

.page-sports__faq-answer p {
  margin-bottom: 0;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-sports__subtitle {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding for mobile buttons */
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__content-area,
  .page-sports__faq-section {
    padding: 40px 15px;
  }

  .page-sports__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 30px;
  }

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__feature-grid,
  .page-sports__bet-types,
  .page-sports__registration-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

  /* Force images to be responsive on mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size is kept */
    min-height: 200px !important; /* Ensure min size is kept */
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .page-sports__hero-image-wrapper,
  .page-sports__image-wrapper,
  .page-sports__feature-grid,
  .page-sports__bet-types,
  .page-sports__registration-steps,
  .page-sports__faq-list,
  .page-sports__container,
  .page-sports__content-area,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-sports__faq-answer {
    padding: 10px 20px 20px 20px;
    font-size: 0.95em;
  }
}