:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-background: #1a1a2e; /* From shared.css body background */
  --light-text: #ffffff;
  --dark-text: #333333;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
  --default-background: #ffffff;
}

/* Base styles for the page content */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text); /* Default text color for light backgrounds */
  background-color: var(--default-background); /* Override body for main content sections */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

/* Sections with dark background */
.page-sports__dark-bg {
  background-color: var(--dark-background);
  color: var(--light-text);
}

/* Sections with light background */
.page-sports__light-bg {
  background-color: var(--default-background);
  color: var(--dark-text);
}

/* Container for consistent content width */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-sports__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-sports__sub-title--light {
  color: var(--light-text);
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-sports__text-block--light {
  color: var(--light-text);
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-sports__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-sports__btn-primary:hover {
  background-color: #005a2e; /* darken primary */
  border-color: #005a2e; /* darken primary */
}

.page-sports__btn-primary--yellow-text {
  background-color: var(--register-button-bg); /* Specifically for login/register type buttons */
  color: var(--register-login-font);
  border-color: var(--register-button-bg);
}

.page-sports__btn-primary--yellow-text:hover {
  background-color: #9d0606;
  border-color: #9d0606;
}

.page-sports__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e; /* darken primary */
  border-color: #005a2e; /* darken primary */
}

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

.page-sports__btn-secondary--light-border:hover {
  background-color: var(--light-text);
  color: var(--dark-background);
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__cta-buttons--center {
  justify-content: center;
}

.page-sports__cta-buttons--mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 0; /* Handled by .page-sports padding-top */
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  color: var(--light-text);
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

/* Intro Section */
.page-sports__intro-section {
  padding: 60px 0;
}

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

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 30px auto;
  border-radius: 10px;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 10px;
  display: block; /* Ensure it behaves as a block element */
}

/* Features/Sports Types Section */
.page-sports__features-section {
  padding: 60px 0;
}

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

.page-sports__feature-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
}

.page-sports__feature-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-sports__card-title--light {
  color: var(--light-text);
}

.page-sports__card-text {
  font-size: 1em;
  color: var(--dark-text);
  padding: 0 15px 20px;
}

.page-sports__card-text--light {
  color: var(--light-text);
}

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

.page-sports__content-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-sports__content-layout--reverse {
  flex-direction: row-reverse;
}

.page-sports__content-text {
  flex: 1;
}

.page-sports__content-image {
  flex: 1;
  text-align: center;
}

.page-sports__responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.page-sports__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  padding-left: 0;
}

.page-sports__list--light {
  color: var(--light-text);
}

.page-sports__list li {
  margin-bottom: 10px;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 60px 0;
}

.page-sports__guide-list {
  counter-reset: guide-step;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-list li {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
}

.page-sports__guide-list li::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-sports__guide-step-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-sports__guide-step-text {
  font-size: 1.1em;
}

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

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  padding-bottom: 20px; /* Space for button */
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

.page-sports__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__btn-primary--yellow-text {
  margin-top: 15px;
}

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

/* Support Section */
.page-sports__support-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-sports__contact-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
}

.page-sports__contact-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__contact-title--light {
  color: var(--light-text);
}

.page-sports__contact-text {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-sports__contact-text--light {
  color: var(--light-text);
}

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

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--secondary-color);
  color: var(--dark-text);
}

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

.page-sports__faq-a-text {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-final-content {
  max-width: 800px;
}

/* 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__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* Ensure content does not overflow horizontally */
  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__video-wrapper,
  .page-sports__grid,
  .page-sports__promo-grid,
  .page-sports__contact-methods,
  .page-sports__faq-list,
  .page-sports__cta-final-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-sports__hero-section {
    height: 500px;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-sports__content-layout {
    flex-direction: column;
  }
  .page-sports__content-layout--reverse {
    flex-direction: column; /* Keep consistent column order on mobile */
  }

  /* Image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__feature-image,
  .page-sports__promo-image {
    height: auto !important; /* Allow images to scale proportionally */
    min-height: 200px; /* Ensure minimum size */
  }

  /* Video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
    margin: 20px auto !important;
  }

  .page-sports__guide-list li {
    padding-left: 50px;
  }
  .page-sports__guide-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
}