.page-sports {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color, #08160F); /* Fallback to custom dark background */
  color: #F2FFF6; /* Custom Text Main */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-sports__dark-section {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  padding: 80px 20px;
}

.page-sports__light-bg {
  background-color: #ffffff; /* Use white for light background sections */
  color: #333333; /* Dark text for light background */
  padding: 80px 20px;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce top-image, bottom-text */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Match dark theme */
}

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

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  width: 100%; /* Ensure image takes full width of its container */
}

.page-sports__hero-content {
  width: 100%; /* Ensure content takes full width */
  max-width: 1200px; /* Constrain content width */
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for hero text for contrast */
  color: #333333; /* Dark text for light background */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin-top: -60px; /* Pull up slightly to overlap image, but text itself is not on image */
  position: relative;
  z-index: 10;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* clamp for h1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #000000; /* Darker for light background */
}

.page-sports__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button color */
  color: #F2FFF6; /* Custom Text Main */
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-secondary {
  background-color: #ffffff; /* Default white background */
  color: #11A84E; /* Main color for text */
  border: 2px solid #11A84E; /* Main color for border */
}

.page-sports__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section, either F2FFF6 or 333333 */
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Card Styles */
.page-sports__features-grid,
.page-sports__bet-types-grid,
.page-sports__steps-grid,
.page-sports__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__card {
  background-color: #11271B; /* Custom Card B G */
  color: #F2FFF6; /* Custom Text Main */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #2E7A4E; /* Custom Border */
}

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

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain; /* Keep aspect ratio without cropping */
}

.page-sports__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Steps Specific */
.page-sports__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-sports__step-number {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(42, 209, 111, 0.4);
}

.page-sports__step-item .page-sports__btn-primary,
.page-sports__step-item .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  width: 100%; /* Full width within card */
  max-width: 200px; /* Max width for consistency */
}

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

.page-sports__faq-item {
  background-color: #11271B; /* Custom Card B G */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Custom Text Main */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for question background */
  color: #F2FFF6;
  user-select: none;
  list-style: none; /* For <summary> */
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #57E38D; /* Glow color for toggle */
}

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

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-sports__faq-answer p {
  margin-bottom: 0;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-sports__faq-answer .page-sports__btn-secondary {
  margin-top: 20px;
}

/* Final CTA Section */
.page-sports__cta-final {
  text-align: center;
  padding: 80px 20px;
  background-color: #11A84E; /* Main color for a strong CTA */
  color: #F2FFF6;
}

.page-sports__cta-final .page-sports__btn-primary {
  margin-top: 40px;
}

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

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

  .page-sports__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* Mobile responsive images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive image containers */
  .page-sports__hero-image-wrapper,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__features-grid,
  .page-sports__bet-types-grid,
  .page-sports__steps-grid,
  .page-sports__promotions-grid,
  .page-sports__faq-list,
  .page-sports__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for hero section to avoid double padding */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-left: 0 !important; /* Remove left/right padding as container handles it */
    padding-right: 0 !important; /* Remove left/right padding as container handles it */
  }

  .page-sports__hero-content {
    margin-top: -30px;
    padding: 20px 15px; /* Adjust padding for mobile */
  }

  .page-sports__main-title {
    font-size: 2em; /* Smaller h1 on mobile */
  }

  .page-sports__intro-text {
    font-size: 1em;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__card-title {
    font-size: 1.2em;
  }

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

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

  /* Min image size enforcement for mobile */
  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }
}