/* style/sports.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Light body background #F5F7FA, so dark text */
  background-color: #F5F7FA;
  line-height: 1.6;
  font-size: 16px;
}

/* Section base styles */
.page-sports__section {
  padding: 60px 20px;
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for general container padding */
  box-sizing: border-box;
}

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
  color: #E53935; /* Brand color for titles */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: #333333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  color: #ffffff; /* Text color for hero content */
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-sports__hero-content {
  position: relative; /* Ensure content is in normal flow */
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
  color: #333333; /* Text color for hero content on light background */
}

.page-sports__hero-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1 */
  font-weight: 900;
  margin-bottom: 15px;
  line-height: 1.1;
  color: #E53935; /* Brand color for H1 */
}

.page-sports__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* CTA Buttons */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__cta-button--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

.page-sports__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-sports__cta-button--secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-sports__cta-button--secondary:hover {
  background: #E53935;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Why Us Section */
.page-sports__why-us-section {
  background-color: #ffffff; /* White background for this section */
  color: #333333;
}

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

.page-sports__feature-card {
  background: #F5F7FA;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Minimum card height */
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Ensure icons are not too large but still meet 200px min */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #333333;
}

/* Dark background sections */
.page-sports__dark-section {
  background-color: #E53935; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__feature-title,
.page-sports__dark-section .page-sports__sport-title,
.page-sports__dark-section .page-sports__step-title {
  color: #ffffff;
}

.page-sports__dark-section .page-sports__section-description,
.page-sports__dark-section .page-sports__feature-text,
.page-sports__dark-section .page-sports__sport-text,
.page-sports__dark-section .page-sports__step-text {
  color: #f0f0f0;
}

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

.page-sports__sport-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  min-height: 200px; /* Minimum card height */
}

.page-sports__sport-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sport-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__sport-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  background-color: #F5F7FA;
  color: #333333;
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 20px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

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

.page-sports__video-caption {
  font-size: 14px;
  color: #666666;
  margin-top: 10px;
}

/* Bonuses Section */
.page-sports__bonuses-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.page-sports__bonus-card {
  background: #ffffff; /* Card BG color */
  border: 1px solid #E0E0E0; /* Border color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 200px; /* Minimum card height */
}

.page-sports__bonus-image {
  width: 100%;
  height: auto;
  max-width: 200px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__bonus-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 10px;
}

.page-sports__bonus-text {
  font-size: 16px;
  color: #333333;
  margin-bottom: 20px;
}

.page-sports__btn-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  background-color: #FF5A4F;
  color: #ffffff;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-link:hover {
  background-color: #E53935;
}

/* How to Start Section */
.page-sports__how-to-start-section {
  background-color: #E53935; /* Dark background */
  color: #ffffff;
}

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

.page-sports__step-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  min-height: 200px; /* Minimum card height */
}

.page-sports__step-number {
  font-size: 48px;
  font-weight: bold;
  color: #FF5A4F; /* Auxiliary color */
  margin-bottom: 15px;
}

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

.page-sports__step-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  background-color: #F5F7FA;
  color: #333333;
}

.page-sports__responsible-gaming-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  min-width: 200px;
  min-height: 200px;
  display: block;
  margin: 40px auto;
  object-fit: contain;
}

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

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

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

.page-sports__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #E53935;
  transition: background-color 0.3s ease;
}

.page-sports__faq-item summary:hover {
  background-color: #ffebeb; /* Lighter red */
}

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

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #FF5A4F;
}

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 16px;
  color: #333333;
  line-height: 1.6;
}

/* Final CTA Section */
.page-sports__final-cta-section {
  background-color: #E53935; /* Dark background */
  color: #ffffff;
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__section {
    padding: 40px 15px;
  }

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

  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

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

  .page-sports__container {
    padding: 0 10px;
  }

  .page-sports__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-sports__section-description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-sports__hero-title {
    font-size: clamp(28px, 8vw, 48px);
  }

  .page-sports__hero-description {
    font-size: clamp(16px, 4vw, 20px);
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* 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-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  
  /* Button responsiveness */
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"],
  .page-sports__btn-link {
    max-width: 100% !important;
    width: 100% !important; /* Ensure full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__button-group {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__bonuses-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr; /* Single column layout */
  }

  .page-sports__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

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