.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-sports__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-sports__section-title--light {
  color: #ffffff;
}

.page-sports__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__text-block--light {
  color: #ffffff;
}

.page-sports__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-sports__sub-title--light {
  color: #ffffff;
}

.page-sports__introduction-section, 
.page-sports__featured-sports-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__how-to-play-section,
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: var(--dark-bg); /* Ensure sections have a background */
}

.page-sports__dark-section {
  background-color: #000080; /* Dark blue auxiliary color */
  color: #ffffff;
  padding: 80px 0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  font-size: 1.1em;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #000080;
  border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  color: #000080;
}

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

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

.page-sports__btn-link {
  display: inline-block;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-sports__btn-link:hover {
  color: #e6c200;
}

.page-sports__cta-buttons--center {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-sports__sports-card, .page-sports__promotion-card {
  background-color: #000080; /* Dark blue card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-sports__sports-card:hover, .page-sports__promotion-card:hover {
  transform: translateY(-10px);
}

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 15px 10px;
}

.page-sports__card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* Image Text Layout */
.page-sports__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-sports__image-text-layout--reversed {
  flex-direction: row-reverse;
}

.page-sports__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__text-content--light {
  color: #ffffff;
}

.page-sports__bullet-list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__bullet-list--light {
  color: #ffffff;
}

.page-sports__bullet-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__feature-list--light {
  color: #ffffff;
}

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-item strong {
  color: #FFD700;
}

/* How-To Steps */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-card {
  background-color: #000080;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #000080;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #000080;
}

.page-sports__step-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 15px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #000080; /* Dark blue for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-title {
  font-size: 1.3em;
  margin: 0;
  color: #FFD700;
}

.page-sports__faq-title--light {
  color: #FFD700;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly lighter dark for answer */
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px;
}

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

/* Conclusion Section */
.page-sports__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* 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;
  }

  .page-sports__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__image-text-layout--reversed {
    flex-direction: column;
  }

  .page-sports__text-content, .page-sports__image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 500px;
  }

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

  .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%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-sports__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-sports__container {
    padding: 0 15px;
  }

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

  .page-sports__sub-title {
    font-size: 1.5em;
  }

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

  .page-sports__sports-card, .page-sports__promotion-card, .page-sports__step-card {
    padding: 25px;
  }

  .page-sports__step-number {
    top: -15px;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  /* Force responsive images, videos, buttons */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__image-wrapper,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure padding for sections on mobile */
  .page-sports__introduction-section,
  .page-sports__featured-sports-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__how-to-play-section,
  .page-sports__conclusion-section,
  .page-sports__odds-section,
  .page-sports__technology-section,
  .page-sports__security-section,
  .page-sports__faq-section {
    padding: 40px 15px !important; /* Adjust padding for mobile sections */
  }

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

  .page-sports__faq-title {
    font-size: 1.1em;
  }

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

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-sports__sub-title {
    font-size: 1.3em;
  }

  .page-sports__btn-primary, .page-sports__btn-secondary {
    font-size: 1em;
  }
}