.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area if body is unknown */
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 1;
  max-width: 900px;
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 15px;
}

.page-sports__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-sports__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background-color: #e0e0e0;
}

.page-sports__btn-link {
  background: none;
  color: #017439;
  border: 2px solid #017439;
}

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

/* General Section Styling */
.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-align: center;
}

.page-sports__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Video Section */
.page-sports__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__video-container {
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 80px 20px;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px; /* Ensure minimum height for card images */
}

.page-sports__feature-icon {
  width: 100%; /* Ensure images are responsive within cards */
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-sports__feature-text {
  font-size: 1rem;
  line-height: 1.7;
}

/* How to Start Section */
.page-sports__how-to-start {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-sports__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-sports__step-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__responsible-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
}

.page-sports__responsible-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__responsible-item-text {
  font-size: 1rem;
  line-height: 1.7;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 20px;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__faq-item summary {
  list-style: none;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed; /* Lighter green background for question */
  border-bottom: 1px solid #d0e0d0;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #017439;
}

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
}

/* Bottom CTA Section */
.page-sports__cta-bottom {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

/* --- Contrast and Color Rules --- */
/* Dark background sections */
.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__section-description {
  color: #ffffff;
}

/* Light background sections */
.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description {
  color: #333333;
}

/* Ensure all text in dark sections is light */
.page-sports__dark-bg p,
.page-sports__dark-bg li,
.page-sports__dark-bg h2,
.page-sports__dark-bg h3,
.page-sports__dark-bg h4 {
  color: #ffffff;
}

/* Ensure all text in light sections is dark */
.page-sports__light-bg p,
.page-sports__light-bg li,
.page-sports__light-bg h2,
.page-sports__light-bg h3,
.page-sports__light-bg h4 {
  color: #333333;
}

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

  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    width: 100%;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-sports__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__video-section,
  .page-sports__features-section,
  .page-sports__how-to-start,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__cta-bottom {
    padding: 40px 15px;
  }

  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__feature-card,
  .page-sports__step-card,
  .page-sports__responsible-item {
    padding: 20px;
  }

  .page-sports__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  /* Ensure all images are responsive on mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__features-grid,
  .page-sports__steps-grid,
  .page-sports__responsible-list,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }

  .page-sports__video-section {
    padding-top: 10px !important;
  }

  .page-sports__hero-section .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}