/* style/sports.css */

.page-sports {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Only 10px top padding, body handles --header-offset */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content up over the image slightly for visual flow */
  background: linear-gradient(0deg, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.8) 50%, rgba(10, 10, 10, 0) 100%);
  border-radius: 10px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #FFD36B;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B020 100%);
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
  transform: translateY(-2px);
}

.page-sports__btn-link {
  background: transparent;
  color: #FFD36B;
  border: 1px solid #3A2A12;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-sports__btn-link:hover {
  background: #3A2A12;
  color: #FFF6D6;
}

.page-sports__section-title {
  font-size: 2.5rem;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: #FFF6D6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-sports__why-choose-section,
.page-sports__getting-started-section,
.page-sports__popular-sports-section,
.page-sports__promotions-section,
.page-sports__mobile-app-section,
.page-sports__responsible-gaming-section,
.page-sports__faq-section,
.page-sports__news-section,
.page-sports__testimonials-section,
.page-sports__cta-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__features-grid,
.page-sports__steps-grid,
.page-sports__sports-grid,
.page-sports__promo-cards,
.page-sports__news-cards,
.page-sports__testimonial-cards {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

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

.page-sports__feature-card,
.page-sports__step-card,
.page-sports__sport-card,
.page-sports__promo-card,
.page-sports__news-card,
.page-sports__testimonial-card {
  background-color: #111111;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promo-image,
.page-sports__news-image,
.page-sports__testimonial-avatar {
  width: 100%;
  height: auto;
  max-width: 400px; /* Ensure images don't stretch too wide in cards */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-sports__testimonial-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFD36B;
}

.page-sports__feature-title,
.page-sports__step-title,
.page-sports__sport-title,
.page-sports__promo-title,
.page-sports__news-title {
  font-size: 1.5rem;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-sports__news-title a {
  color: #FFD36B;
  text-decoration: none;
}

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

.page-sports__feature-description,
.page-sports__step-description,
.page-sports__sport-description,
.page-sports__promo-description,
.page-sports__news-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 15px;
}

.page-sports__step-number {
  font-size: 3rem;
  font-weight: bold;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-sports__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: left;
}

.page-sports__step-card {
  text-align: left;
  align-items: flex-start;
}

.page-sports__sport-card {
  padding: 20px;
}

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

.page-sports__promo-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-sports__mobile-app-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background-color: #111111;
  padding: 60px 40px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

.page-sports__app-content {
  flex: 1;
  min-width: 300px;
}

.page-sports__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-sports__app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #FFF6D6;
}

.page-sports__app-features 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="none" stroke="%23FFD36B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-sports__app-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.page-sports__responsible-gaming-content {
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
  color: #FFF6D6;
  font-size: 1.1rem;
}

.page-sports__responsible-gaming-content p {
  margin-bottom: 20px;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  color: #FFD36B;
  font-size: 1.2rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

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

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

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

.page-sports__news-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-sports__news-card {
  text-align: left;
  align-items: flex-start;
}

.page-sports__news-meta {
  font-size: 0.9rem;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-sports__news-excerpt {
  font-size: 1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-sports__testimonial-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-sports__testimonial-card {
  padding: 40px 30px;
  background-color: #111111;
  border: 1px solid #3A2A12;
}

.page-sports__testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-sports__testimonial-author {
  font-weight: bold;
  color: #FFD36B;
  font-size: 1rem;
}

.page-sports__cta-section--bottom {
  margin-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -100px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding for hero on mobile */
    padding-bottom: 40px;
  }
  
  .page-sports__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-sports__main-title {
    font-size: 2.2rem;
  }

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

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

  .page-sports__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__why-choose-section,
  .page-sports__getting-started-section,
  .page-sports__popular-sports-section,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__news-section,
  .page-sports__testimonials-section,
  .page-sports__cta-section {
    margin: 40px auto;
    padding: 0 15px;
  }

  .page-sports__features-grid,
  .page-sports__steps-grid,
  .page-sports__sports-grid,
  .page-sports__promo-cards,
  .page-sports__news-cards,
  .page-sports__testimonial-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__step-card,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__news-card,
  .page-sports__testimonial-card {
    padding: 20px;
  }

  /* Mobile image responsive adaptation */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__why-choose-section,
  .page-sports__getting-started-section,
  .page-sports__popular-sports-section,
  .page-sports__promotions-section,
  .page-sports__mobile-app-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__news-section,
  .page-sports__testimonials-section,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile button responsive adaptation */
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .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__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-sports__app-download-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-sports__faq-answer {
    padding: 0 20px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
}