/* style/sports.css */

/* Body background is #121212 (dark), so main text should be light */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-sports__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.2;
}

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

.page-sports__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: left;
}

.page-sports a {
  color: #26A9E0;
  text-decoration: none;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #26A9E0, #1a7a9e);
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text readability */
  border-radius: 8px;
}

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

.page-sports__cta-buttons--centered {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-sports__btn-link {
  background-color: #EA7C07; /* Login color for specific CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.page-sports__btn-link:hover {
  background-color: #c76706;
  border-color: #c76706;
}

/* General Section Styling */
.page-sports__intro-section,
.page-sports__live-betting-section,
.page-sports__registration-section,
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

.page-sports__popular-sports,
.page-sports__promotions-section,
.page-sports__responsible-gambling-section,
.page-sports__final-cta-section {
  padding: 60px 20px;
  background-color: #121212; /* Main body background color */
  color: #ffffff;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-sports__feature-image,
.page-sports__promo-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
  display: block;
}

.page-sports__feature-title,
.page-sports__promo-title,
.page-sports__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__feature-description,
.page-sports__promo-description,
.page-sports__step-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

/* Popular Sports Section */
.page-sports__sport-category {
  margin-bottom: 50px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-align: center;
}

.page-sports__category-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-sports__category-image,
.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 25px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  color: #e0e0e0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Final CTA Section */
.page-sports__final-cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1a7a9e, #26A9E0);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__features-grid,
  .page-sports__promo-cards-grid,
  .page-sports__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__popular-sports,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__registration-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__final-cta-section {
    padding: 40px 15px; /* Adjust padding for smaller screens */
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-sports__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

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

  .page-sports__description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-sports img,
  .page-sports__hero-image,
  .page-sports__feature-image,
  .page-sports__promo-image,
  .page-sports__category-image,
  .page-sports__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-image-wrapper,
  .page-sports__container,
  .page-sports__card,
  .page-sports__sport-category,
  .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;
    overflow: hidden !important;
  }

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

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