/* style/sports.css */

/* --- Base Styles & Layout --- */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color for dark background */
  background-color: #0A0A0A; /* Background color */
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFD36B; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-top: 20px; /* Small top padding for sections */
}

.page-sports__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FFD86A, #DDA11D);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-sports__text-block {
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #FFF6D6;
}

.page-sports__text-block p {
  margin-bottom: 15px;
}

.page-sports__highlight {
  color: #FFD36B; /* Glow color for highlights */
  font-weight: bold;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 180px; /* Ensure minimum width for buttons */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for light button background */
  border: none;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__btn-secondary {
  background: #111111; /* Card BG color */
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #3A2A12; /* Border color */
}

.page-sports__btn-secondary:hover {
  background: #FFD36B; /* Glow color */
  color: #111111; /* Card BG color for text */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  background: #0A0A0A; /* Fallback for hero section background */
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for hero image */
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability, not color change */
}

.page-sports__hero-content {
  position: relative; /* Ensure content is above the image if needed, but not overlapping */
  z-index: 2;
  text-align: center;
  padding: 40px 20px 0;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the bottom of the image for visual flow */
  background: linear-gradient(to bottom, transparent, #0A0A0A 60%); /* Gradient for smooth transition */
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-sports__hero-description {
  font-size: 1.3em;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Dark Background Sections --- */
.page-sports__dark-section {
  background-color: #111111; /* Card BG color */
  padding: 60px 0;
}

/* --- Image Grid --- */
.page-sports__image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-sports__image-grid-item {
  width: 100%;
  height: 300px; /* Fixed height for grid items */
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* --- Content Images --- */
.page-sports__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

/* --- FAQ Section --- */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

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

.page-sports__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #FFD36B;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #1a1a1a;
}

.page-sports__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an 'x' or '-' */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for visual balance */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px; /* Restore padding when active */
}

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

/* --- Final CTA Section --- */
.page-sports__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO section mobile adjustments */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: -80px; /* Less overlap on mobile */
    padding-top: 20px;
  }
  .page-sports__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }
  .page-sports__hero-description {
    font-size: 1em;
  }

  /* General section padding */
  .page-sports__dark-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 40px 0;
  }

  .page-sports__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

  /* Container padding for mobile */
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All containing elements for images/buttons should be max-width 100% */
  .page-sports__image-grid,
  .page-sports__cta-buttons,
  .page-sports__text-block,
  .page-sports__faq-list,
  .page-sports__about-section,
  .page-sports__markets-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__seamless-experience-section,
  .page-sports__security-section,
  .page-sports__getting-started-section,
  .page-sports__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .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;
    min-width: unset; /* Remove min-width on mobile */
  }

  .page-sports__image-grid {
    grid-template-columns: 1fr; /* Stack images vertically */
  }
}

/* No CSS filters on images as per requirements */
.page-sports img {
  filter: none;
}

/* Specific filter for hero image for readability, which is allowed as it's not changing the color. */
.page-sports__hero-image {
  filter: brightness(0.7);
}