.page-sports {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --button-register: #C30808;
  --button-login: #C30808;
  --button-text-yellow: #FFFF00;
  background-color: #0a0a0a; /* Matches body background from shared.css */
  color: var(--text-on-dark); /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-on-dark);
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  min-height: 600px;
  overflow: hidden;
  color: var(--text-on-dark);
  background-color: var(--primary-color);
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--text-on-dark);
}

.page-sports__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-sports__btn-primary {
  background-color: var(--button-register);
  color: var(--button-text-yellow);
  border: 2px solid var(--button-register);
}

.page-sports__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--button-text-yellow);
  border: 2px solid var(--button-register);
}

.page-sports__btn-secondary:hover {
  background-color: var(--button-register);
  color: var(--text-on-dark);
}

/* Common Card Styles */
.page-sports__card {
  background-color: var(--secondary-color);
  color: var(--text-on-light);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__btn-link {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: center;
}

.page-sports__btn-link:hover {
  background-color: darken(var(--primary-color), 10%);
}

.page-sports__text-link {
  color: var(--button-text-yellow);
  text-decoration: underline;
  font-weight: bold;
}

.page-sports__text-link:hover {
  color: lighten(var(--button-text-yellow), 10%);
}

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__section-description {
  color: var(--text-on-light);
}

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

/* Sports Showcase Section */
.page-sports__sports-showcase-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-sports__sports-showcase-section .page-sports__section-title,
.page-sports__sports-showcase-section .page-sports__section-description {
  color: var(--text-on-dark);
}

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

/* How-To-Bet Section */
.page-sports__how-to-bet-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-sports__how-to-bet-section .page-sports__section-title,
.page-sports__how-to-bet-section .page-sports__section-description {
  color: var(--text-on-light);
}

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

.page-sports__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-description {
  color: var(--text-on-dark);
}

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

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-on-light);
}

.page-sports__faq-section .page-sports__section-title {
  color: var(--text-on-light);
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  border-top: 1px solid #eee;
}

.page-sports__faq-item {
  border-bottom: 1px solid #eee;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-on-light);
}

.page-sports__faq-question:hover {
  color: var(--primary-color);
}

.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);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-light);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 0;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
}

.page-sports__conclusion-section .page-sports__section-title,
.page-sports__conclusion-section .page-sports__section-description {
  color: var(--text-on-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }

  .page-sports__hero-section {
    min-height: 450px;
    padding: 60px 0;
  }

  .page-sports__hero-title {
    font-size: 2.5em;
  }

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

  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__steps-grid,
  .page-sports__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-sports__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-sports__card-image {
    height: auto;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__faq-question {
    font-size: 1em;
  }

  .page-sports__faq-answer {
    padding: 0 0px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__card-title {
    font-size: 1.2em;
  }
}