/* style/sports.css */
.page-sports {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #f8f8f8;
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #8B0000; /* Auxiliary color for hero background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__button {
  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;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
}

.page-sports__button--primary {
  background-color: #FFD700;
  color: #8B0000;
}

.page-sports__button--primary:hover {
  background-color: #e6c200;
  color: #6a0000;
}

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

.page-sports__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-sports__section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: #8B0000;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-sports__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

.page-sports__feature-card,
.page-sports__step-card,
.page-sports__promo-card,
.page-sports__rg-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 5px solid #FFD700;
}

.page-sports__feature-card:hover,
.page-sports__step-card:hover,
.page-sports__promo-card:hover,
.page-sports__rg-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__card-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-sports__card-description {
  font-size: 1em;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__feature-link {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__feature-link:hover {
  text-decoration: underline;
}

.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: left;
  width: 100%;
}

.page-sports__feature-list li {
  margin-bottom: 8px;
  color: #444;
}

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

.page-sports__detail-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__detail-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border-left: 5px solid #FFD700;
}

.page-sports__detail-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-sports__detail-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-sports__detail-title a:hover {
  text-decoration: underline;
}

.page-sports__detail-description {
  color: #666666;
  margin-bottom: 20px;
}

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

.page-sports__action-area {
  margin-top: 40px;
}

.page-sports__mobile-app {
  background-color: #f0f0f0;
  padding: 80px 20px;
}

.page-sports__app-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-sports__app-image-wrapper {
  flex-shrink: 0;
  max-width: 400px;
}

.page-sports__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__app-details {
  text-align: left;
  max-width: 600px;
}

.page-sports__app-details .page-sports__card-title {
  text-align: left;
  font-size: 1.6em;
  color: #8B0000;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-sports__app-details .page-sports__card-description {
  text-align: left;
  margin-bottom: 25px;
}

.page-sports__news-faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 40px;
}

.page-sports__news-section {
  text-align: left;
}

.page-sports__news-section .page-sports__card-image {
  margin-bottom: 30px;
  max-width: 600px;
  width: 100%;
  height: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__faq-section {
  text-align: left;
}

.page-sports__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #FFD700;
}

.page-sports__faq-question {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-sports__faq-answer {
  color: #555555;
}

.page-sports__call-to-action {
  background-color: #8B0000;
  color: #ffffff;
  padding: 80px 20px;
  border-radius: 12px;
  margin-bottom: 60px;
}

.page-sports__call-to-action .page-sports__section-title {
  color: #FFD700;
}

.page-sports__call-to-action .page-sports__section-title::after {
  background-color: #ffffff;
}

.page-sports__call-to-action .page-sports__section-intro {
  color: #f0f0f0;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .page-sports__hero-section {
    flex-direction: row;
    text-align: left;
    min-height: 500px;
    padding: 80px 40px;
  }

  .page-sports__hero-content {
    flex: 1;
    padding-right: 40px;
  }

  .page-sports__hero-image-wrapper {
    position: relative;
    width: 50%;
    height: auto;
    opacity: 1;
    background: none;
  }

  .page-sports__hero-image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .page-sports__hero-title {
    font-size: 4em;
    text-align: left;
  }

  .page-sports__hero-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .page-sports__hero-actions {
    justify-content: flex-start;
  }

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

  .page-sports__section-title::after {
    width: 100px;
  }

  .page-sports__mobile-app .page-sports__app-features {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .page-sports__news-faq-container {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .page-sports__hero-image-wrapper {
    display: none; /* Hide hero image on small screens if it overlaps content */
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-sports img {
    max-width: 100%;
    height: auto;
  }

  .page-sports__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__button {
    width: 100%;
  }

  .page-sports__app-features {
    flex-direction: column;
  }

  .page-sports__app-details,
  .page-sports__news-section,
  .page-sports__faq-section {
    text-align: center;
  }
  
  .page-sports__app-details .page-sports__card-title {
    text-align: center;
  }

  .page-sports__app-details .page-sports__card-description {
    text-align: center;
  }

  /* Critical: Ensure all images within .page-sports are responsive */
  .page-sports__hero-section img,
  .page-sports__feature-card img,
  .page-sports__step-card img,
  .page-sports__promo-card img,
  .page-sports__rg-card img,
  .page-sports__app-image,
  .page-sports__news-section img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size even on mobile if possible without overflow */
    min-height: 200px;
  }
}