/* style/sports.css */

/* Root variables for colors */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* General page styling - text color adapted for dark body background */
.page-sports {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Light text for dark body background */
  background-color: var(--background-color); /* Ensure consistency with body background */
  line-height: 1.6;
}

/* Section spacing and container */
.page-sports__section-title {
  font-size: clamp(2em, 2.5vw, 3em); /* H1 font size constraint applied to H2 for responsiveness */
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: rgba(255, 246, 214, 0.8);
}

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

/* Call to Action Button Styles */
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: #ffffff; /* White text for button gradient */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-sports__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
  opacity: 0.9;
}

.page-sports__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: 200px; /* Push content down below the top of the video */
}

.page-sports__hero-title {
  font-size: clamp(2.5em, 4vw, 3.8em); /* H1 clamp for responsiveness */
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -1px;
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: rgba(255, 246, 214, 0.9);
  margin-bottom: 30px;
}

/* Why Us Section */
.page-sports__why-us-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-sports__feature-card {
  background-color: var(--card-bg); /* Dark card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main-color); /* Light text for dark card background */
}

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
  display: block;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

/* Sports Markets Section */
.page-sports__sports-markets-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-sports__market-item {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color); /* Light text for dark card background */
}

.page-sports__market-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Max width for these icons */
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
  object-fit: cover;
  border-radius: 5px;
  margin: 0 auto 15px auto;
  display: block;
}

.page-sports__item-title {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-sports__promo-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main-color); /* Light text for dark card background */
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* How to Start Section */
.page-sports__how-to-start-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

.page-sports__step-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color); /* Light text for dark card background */
}

.page-sports__step-icon {
  width: 100%;
  height: auto;
  max-width: 300px; /* Specific width for these icons */
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  display: block;
}

/* Partners Section */
.page-sports__partners-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 167x127px images */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-sports__partner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__partner-logo {
  width: 167px; /* Fixed width for partner logos */
  height: 127px; /* Fixed height for partner logos */
  object-fit: contain;
  display: block;
}

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

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

.page-sports__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--secondary-color);
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #2a2a2a;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
}

.page-sports__faq-answer {
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  padding: 0 20px; /* Padding only when expanded */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main-color);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px !important;
}

.page-sports__faq-answer p {
  margin-bottom: 0;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: 150px;
  }
  .page-sports__hero-title {
    font-size: clamp(2em, 3.5vw, 3em);
  }
  .page-sports__section-title {
    font-size: clamp(1.8em, 2.8vw, 2.5em);
  }
}

@media (max-width: 768px) {
  /* General mobile text and padding */
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding: 20px 15px;
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: 100px;
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__hero-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-sports__cta-button {
    font-size: 1em;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Sections and Cards */
  .page-sports__why-us-section, .page-sports__sports-markets-section, .page-sports__promotions-section, .page-sports__how-to-start-section, .page-sports__partners-section, .page-sports__faq-section {
    padding: 40px 0;
  }

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

  .page-sports__feature-card, .page-sports__promo-card, .page-sports__step-item, .page-sports__market-item {
    padding: 20px;
  }
  
  /* Image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-sports__video-wrapper, .page-sports__container, .page-sports__content-grid, .page-sports__market-grid, .page-sports__promo-grid, .page-sports__steps-grid, .page-sports__partners-grid, .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific overrides for partner logos (exceptions) */
  .page-sports__partner-logo {
    width: 100% !important; /* Allow these to scale within their flexible parent */
    height: auto !important;
    max-width: 167px !important; /* Maintain original aspect ratio, but scale down if needed */
    max-height: 127px !important;
  }

  /* Video section: body already handles --header-offset; this is for internal spacing */
  .page-sports__hero-section {
    padding-top: 10px !important;
  }

  /* Button group flexibility for mobile */
  .page-sports__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  .page-sports__cta-button--small {
    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__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 15px !important;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-content {
    margin-top: 80px;
  }
  .page-sports__hero-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__cta-button {
    font-size: 0.9em;
  }
  .page-sports__market-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .page-sports__market-icon {
    max-width: 150px;
    min-width: 150px;
    min-height: 150px;
  }
  .page-sports__promo-grid, .page-sports__steps-grid {
    grid-template-columns: 1fr;
  }
}