.page-sports {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a; /* From shared.css body background */
  --light-bg-color: #f8f9fa;
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --button-login-color: #EA7C07;
}

.page-sports__dark-bg {
  background-color: var(--dark-bg-color);
  color: var(--text-color-dark-bg);
}

.page-sports__light-bg {
  background-color: var(--light-bg-color);
  color: var(--text-color-light-bg);
}

/* Ensure main content text color contrasts with body background */
.page-sports p,
.page-sports li,
.page-sports h1,
.page-sports h2,
.page-sports h3,
.page-sports h4,
.page-sports h5,
.page-sports h6 {
  color: inherit; /* Inherit from section, which is set by dark/light-bg */
}

.page-sports a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
}

.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-sports__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker primary */
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-sports__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
  z-index: 1;
}

.page-sports__hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-sports__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-sports__hero-cta-buttons {
  display: flex;
  gap: 20px;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 0;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.page-sports__features-section,
.page-sports__popular-sports-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__get-started-section,
.page-sports__mobile-app-section,
.page-sports__responsible-gaming-section,
.page-sports__faq-section,
.page-sports__cta-bottom-section {
  padding: 80px 0;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark bg, or solid white for light bg */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-color-dark-bg); /* Default for dark background */
}

.page-sports__light-bg .page-sports__card {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promo-image,
.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensures proper spacing */
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__promo-title,
.page-sports__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: inherit;
}

.page-sports__feature-text,
.page-sports__sport-text,
.page-sports__promo-text,
.page-sports__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: inherit;
}

/* Popular Sports Section */
.page-sports__sport-card .page-sports__btn-primary,
.page-sports__sport-card .page-sports__btn-secondary {
  margin-top: 20px;
}

/* Live Betting Section */
.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-sports__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-sports__video-caption {
  text-align: center;
  font-style: italic;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-color-light-bg);
}

.page-sports__dark-bg .page-sports__video-caption {
  color: var(--text-color-dark-bg);
}

.page-sports__live-betting-advantages {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-sports__live-betting-advantages li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-color-dark-bg);
}

.page-sports__light-bg .page-sports__live-betting-advantages li {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-sports__highlight-text {
  color: var(--primary-color);
}

/* Promotions Section */
.page-sports__promo-card .page-sports__btn-primary,
.page-sports__promo-card .page-sports__btn-secondary {
  margin-top: 20px;
}

.page-sports__more-promos {
  text-align: center;
  margin-top: 40px;
  font-size: 17px;
  color: inherit;
}

.page-sports__more-promos .page-sports__link {
  font-weight: bold;
}

/* Get Started Section */
.page-sports__step-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-sports__step-card .page-sports__btn-primary,
.page-sports__step-card .page-sports__btn-secondary {
  margin-top: 20px;
  width: 100%; /* Ensure button fills card */
  max-width: 200px;
}

/* Mobile App Section */
.page-sports__mobile-app-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-sports__mobile-app-content {
  flex: 1;
}

.page-sports__app-benefits {
  list-style: disc;
  margin-left: 20px;
  font-size: 17px;
  line-height: 1.8;
  margin-top: 20px;
  color: var(--text-color-dark-bg);
}

.page-sports__mobile-app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__mobile-app-content .page-sports__btn-primary {
  margin-top: 30px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-text {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 20px auto 0 auto;
  color: inherit;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark-bg);
}

.page-sports__light-bg .page-sports__faq-item {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__light-bg .page-sports__faq-question:hover {
  background-color: #f0f0f0;
}

.page-sports__faq-heading {
  margin: 0;
  font-size: 18px;
  color: inherit;
}

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 16px;
  line-height: 1.6;
  color: inherit;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure it overrides */
  padding: 15px 25px 25px 25px;
}

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

/* CTA Bottom Section */
.page-sports__cta-bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
  .page-sports__section-description {
    font-size: 16px;
  }
  .page-sports__mobile-app-section .page-sports__container {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__mobile-app-content {
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-sports__mobile-app-image-wrapper {
    order: -1; /* Image above content on smaller screens */
  }
  .page-sports__app-benefits {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 80%;
  }
  .page-sports__live-betting-advantages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-sports__hero-content {
    max-width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-sports__hero-cta-buttons .page-sports__btn-primary,
  .page-sports__hero-cta-buttons .page-sports__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
  .page-sports__hero-image-wrapper {
    order: -1; /* Image above content */
    margin-bottom: 40px;
  }

  /* General mobile content area padding */
  .page-sports__container {
    padding: 0 15px;
  }

  /* Images and Videos responsive for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  /* Buttons responsive for mobile */
  .page-sports__cta-button,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__mobile-app-content .page-sports__btn-primary {
    width: 100%;
    max-width: 300px;
  }
  .page-sports__app-benefits {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    padding-left: 20px;
  }
  .page-sports__faq-question,
  .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-bottom-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-sports__cta-bottom-buttons .page-sports__btn-primary,
  .page-sports__cta-bottom-buttons .page-sports__btn-secondary {
    width: 80%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 32px;
  }
  .page-sports__hero-description {
    font-size: 16px;
  }
  .page-sports__section-title {
    font-size: 26px;
  }
  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 20px;
  }
  .page-sports__faq-question {
    font-size: 16px;
  }
  .page-sports__faq-heading {
    font-size: 16px;
  }
}