/* style/sports.css */

.page-sports {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold primary color */
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-sports__section-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-text--small {
  font-size: 0.9em;
  color: #cccccc;
  margin-top: 20px;
}

.page-sports__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__text-link:hover {
  text-decoration: underline;
  color: #ffe033;
}

/* Buttons */
.page-sports__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-sports__button--primary {
  background-color: #FFD700; /* Gold primary color */
  color: #1A1A1A; /* Dark text for gold background */
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-sports__button--primary:hover {
  background-color: #ffe033;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-sports__button--secondary {
  background-color: #1A1A1A; /* Dark auxiliary color */
  color: #FFD700; /* Gold text for dark background */
  border: 2px solid #FFD700;
}

.page-sports__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
  color: #ffe033;
}

.page-sports__button--link {
  background: none;
  color: #FFD700;
  padding: 10px 15px;
  font-size: 1em;
  border: 1px solid #FFD700;
}

.page-sports__button--link:hover {
  color: #1A1A1A;
  background-color: #FFD700;
  transform: none;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 600px;
  padding: 80px 20px;
  background-color: #1A1A1A; /* Dark background for hero */
}

.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;
  opacity: 0.3;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: 4em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
  line-height: 1.2;
}

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

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__feature-icon {
  width: 100%; /* Ensure image takes full width of its container */
  height: auto; /* Maintain aspect ratio */
  max-width: 250px; /* Max width to ensure it doesn't get too large */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* Sports Types Section */
.page-sports__sports-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  text-align: left;
}

.page-sports__sports-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 5px solid #FFD700;
  font-size: 1.1em;
  color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-sports__sports-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-sports__sports-item a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

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

/* How To Bet Section */
.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  flex: 1 1 calc(25% - 30px); /* 4 items per row on desktop */
  min-width: 250px;
  max-width: 300px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

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

/* Promotions Section */
.page-sports__promotions-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.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Mobile App Section */
.page-sports__mobile-app-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.page-sports__mobile-app-content {
  flex: 1 1 55%;
  padding-right: 30px;
}

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

.page-sports__mobile-app-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

.page-sports__app-features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-sports__app-features-list li {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-sports__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-color: #FFD700; /* Example for a checkmark icon */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat 50% 50%;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat 50% 50%;
  background-size: contain;
}

/* FAQ Section */
.page-sports__faq-items {
  margin-top: 40px;
  text-align: left;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sports__faq-question {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  cursor: pointer;
}

.page-sports__faq-answer {
  font-size: 1em;
  color: #cccccc;
}

/* CTA Section */
.page-sports__cta-section {
  background-color: #1A1A1A;
  padding: 80px 20px;
  border-top: 5px solid #FFD700;
}

.page-sports__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.page-sports__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3.5em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2.4em;
  }
  .page-sports__mobile-app-content {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 500px;
    padding: 60px 20px;
  }
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section {
    padding: 40px 20px;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__features-grid,
  .page-sports__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__step-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .page-sports__mobile-app-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__mobile-app-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
  .page-sports__mobile-app-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }
  .page-sports__mobile-app-image {
    max-width: 300px;
  }
  .page-sports__app-features-list {
    text-align: left;
  }
  .page-sports__cta-title {
    font-size: 2.5em;
  }

  /* Ensure all images within .page-sports are responsive and not too small */
  .page-sports img {
    max-width: 100%;
    height: auto;
  }

  /* Specific overrides for images to ensure min-width/height is met, or max-width:100% applies */
  .page-sports__feature-icon,
  .page-sports__promo-image,
  .page-sports__mobile-app-image {
    min-width: 200px; /* Ensure images are not smaller than 200px */
    min-height: 200px; /* Ensure images are not smaller than 200px */
  }

  /* For any other img in content area, ensure it adheres to min size or max-width: 100% */
  .page-sports *:not(.shared-header):not(.shared-footer) img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size for all content images */
    min-height: 200px; /* Enforce min size for all content images */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__cta-title {
    font-size: 2em;
  }
  .page-sports__button {
    padding: 12px 25px;
    font-size: 1em;
  }
}