.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared.css, set here for clarity */
}

.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;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

.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.5); /* Darken image for text readability */
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

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

/* General Section Styles */
.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

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

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
}

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

.page-sports__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-sports__advantage-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-sports__advantage-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__advantage-text {
  color: #f0f0f0;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 80px 0;
}

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

.page-sports__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

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

.page-sports__category-title {
  font-size: 1.6em;
  padding: 20px 20px 10px;
  color: #017439;
  font-weight: bold;
}

.page-sports__category-text {
  padding: 0 20px 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-sports__live-betting-features {
  flex: 1;
}

.page-sports__feature-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-sports__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-sports__promotion-title {
  font-size: 1.6em;
  padding: 20px 20px 10px;
  color: #017439;
  font-weight: bold;
}

.page-sports__promotion-text {
  padding: 0 20px 20px;
  color: #f0f0f0;
}

/* How To Start Section */
.page-sports__how-to-start-section {
  padding: 80px 0;
}

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

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-icon {
  width: 60px;
  height: 60px;
  background: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__step-text {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for the video player */
  margin: 50px auto 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

/* Security Section */
.page-sports__security-section {
  padding: 80px 0;
}

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

.page-sports__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: invert(100%) brightness(1.5); /* Adjust icon color for dark background */
}

.page-sports__feature-heading {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-text {
  color: #f0f0f0;
}

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

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  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;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-heading {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus to X / Minus */
  color: #C30808;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

/* Contact Section */
.page-sports__contact-section {
  padding: 80px 0;
  text-align: center;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-sports__btn-primary:hover {
  background-color: #005a2d;
  transform: translateY(-3px);
}

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

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-3px);
}

.page-sports__btn-tertiary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
  margin-top: auto; /* Push to bottom of flex item */
}

.page-sports__btn-tertiary:hover {
  background-color: #a30606;
  transform: translateY(-3px);
}

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

/* Color Contrast Adjustments for specific elements */
.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__feature-list li,
.page-sports__light-bg .page-sports__feature-heading,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__advantage-text {
  color: #333333; /* Darker text for light backgrounds */
}

.page-sports__light-bg .page-sports__advantage-item,
.page-sports__light-bg .page-sports__step-item {
  background: #ffffff;
  color: #333333;
}

.page-sports__light-bg .page-sports__advantage-title,
.page-sports__light-bg .page-sports__step-title {
  color: #017439;
}

/* Background colors for sections */
.page-sports__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast with #121212 body */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

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

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

  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-betting-features {
    order: 2;
  }

  .page-sports__live-betting-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  
  .page-sports__feature-list {
    text-align: left;
  }

  .page-sports__feature-list li {
    background-position: left top;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

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

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

  .page-sports__advantages-grid,
  .page-sports__categories-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid,
  .page-sports__security-features {
    grid-template-columns: 1fr;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  
  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__video-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header on mobile */
  }
  
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
}