/* style/sports.css */
.page-sports {
  color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 600px;
  background-color: rgba(0, 0, 0, 0.7);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Dim image to ensure text readability */
}

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

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

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-small {
  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;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
}

.page-sports__btn-small:hover {
  background-color: #028e48;
  border-color: #028e48;
}

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

.page-sports__btn-scroll-to-content:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-sports__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-sports__dark-section {
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Sports Options Section */
.page-sports__sports-options-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

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

.page-sports__sport-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
}

.page-sports__sport-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__sport-link:hover {
  color: #017439;
}

.page-sports__sport-description {
  padding: 0 20px 20px;
  font-size: 0.95em;
  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;
  flex-wrap: wrap;
}

.page-sports__live-betting-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-betting-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__live-betting-video-wrapper {
  flex: 1;
  min-width: 400px;
  position: relative;
  padding-bottom: 28.125%; /* 16:9 Aspect Ratio (450/800 = 0.5625 = 56.25% of width) */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

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

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

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

.page-sports__promo-title {
  font-size: 1.6em;
  margin: 20px 0 10px;
}

.page-sports__promo-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__promo-link:hover {
  color: #017439;
}

.page-sports__promo-description {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-sports__cta-promotions {
  text-align: center;
}

/* Get Started Section */
.page-sports__get-started-section {
  padding: 80px 0;
}

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

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  position: relative;
}

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

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

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

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

.page-sports__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-sports__security-image {
  flex: 1;
  min-width: 300px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__security-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__security-text p {
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__text-link {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-sports__text-link:hover {
  color: #028e48;
}

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

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-betting-content,
  .page-sports__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-video-wrapper,
  .page-sports__security-image {
    width: 100%;
    min-width: unset;
  }
  .page-sports__security-image {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-subtitle {
    font-size: 1em;
  }
  .page-sports__container {
    padding: 20px 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-small,
  .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__hero-cta-buttons,
  .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-direction: column !important;
    gap: 15px;
    overflow: hidden !important;
  }

  .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-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Adjust aspect ratio for mobile if needed, e.g., 16:9 */
  }

  /* Ensure all content area images are not too small */
  .page-sports__feature-icon,
  .page-sports__sport-image,
  .page-sports__promo-image,
  .page-sports__security-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__step-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

/* Global image style for content area to prevent small icons */
.page-sports img {
  min-width: 200px; /* Enforce minimum width */
  min-height: 200px; /* Enforce minimum height */
  height: auto; /* Allow height to adjust proportionally */
}

/* Ensure no CSS filter changes image colors */
.page-sports img, .page-sports__hero-image, .page-sports__feature-icon, .page-sports__sport-image, .page-sports__promo-image, .page-sports__security-image {
  filter: none; /* Explicitly prevent any filter effects */
}

/* Specific filter for hero image for dimming, which is allowed as it's not changing image color */
.page-sports__hero-image {
  filter: brightness(0.5); 
}