/* style/sports.css */
/* Body background is #0a0a0a (dark), so text color should be light (#ffffff) for main content. */
/* Specific sections might have different backgrounds, adjust accordingly for contrast. */

:root {
  --page-sports-primary-color: #26A9E0;
  --page-sports-secondary-color: #FFFFFF;
  --page-sports-text-light: #ffffff;
  --page-sports-text-dark: #333333;
  --page-sports-background-dark: #0a0a0a; /* Inherited from body via shared.css */
  --page-sports-login-button: #EA7C07;
  --page-sports-black: #000000;
}

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--page-sports-text-light); /* Default text color for dark body background */
  background-color: var(--page-sports-background-dark); /* Ensure consistency if needed, though body handles it */
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-sports-black); /* Dark background for the hero section */
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -150px; /* Overlap with image slightly for visual appeal */
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for content */
  border-radius: 10px;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--page-sports-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-sports__hero-description {
  font-size: 1.2rem;
  color: var(--page-sports-secondary-color);
  margin-bottom: 30px;
  line-height: 1.5;
}

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

/* General Section Styles */
.page-sports__section-title {
  font-size: 2.5rem;
  color: var(--page-sports-primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-sports__section-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--page-sports-text-light); /* Default for dark background */
  text-align: center;
}

/* Dark Section */
.page-sports__dark-section {
  background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent primary color */
  padding: 80px 0;
  color: var(--page-sports-text-light); /* Light text for dark background */
}

.page-sports__dark-section .page-sports__section-title {
  color: var(--page-sports-secondary-color);
}

.page-sports__dark-section .page-sports__section-text {
  color: var(--page-sports-secondary-color);
}

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
}

.page-sports__intro-section .page-sports__section-text a {
  color: var(--page-sports-primary-color);
  text-decoration: underline;
}

/* Featured Sports Section */
.page-sports__featured-sports-section {
  padding: 80px 0;
  background-color: var(--page-sports-background-dark);
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__sport-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-sports__sport-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__sport-card-title {
  font-size: 1.8rem;
  color: var(--page-sports-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__sport-card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-sports-text-light);
  margin-bottom: 20px;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-sports__feature-card-title {
  font-size: 1.5rem;
  color: var(--page-sports-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-sports-text-light);
}

.page-sports__feature-card-description a {
  color: var(--page-sports-primary-color);
  text-decoration: underline;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: var(--page-sports-background-dark);
}

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

.page-sports__guide-step {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__guide-step-number {
  width: 50px;
  height: 50px;
  background-color: var(--page-sports-primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--page-sports-secondary-color);
  margin-bottom: 20px;
}

.page-sports__guide-step-title {
  font-size: 1.5rem;
  color: var(--page-sports-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__guide-step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-sports-text-light);
  margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
  text-align: center;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--page-sports-background-dark);
}

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--page-sports-text-light);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--page-sports-primary-color);
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--page-sports-text-light);
}

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

.page-sports__faq-answer a {
  color: var(--page-sports-primary-color);
  text-decoration: underline;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: var(--page-sports-primary-color);
  color: var(--page-sports-secondary-color);
  border: 2px solid var(--page-sports-primary-color);
}

.page-sports__btn-primary:hover {
  background-color: #1e87c0; /* Slightly darker primary */
  border-color: #1e87c0;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--page-sports-primary-color);
  border: 2px solid var(--page-sports-primary-color);
}

.page-sports__btn-secondary:hover {
  background-color: var(--page-sports-primary-color);
  color: var(--page-sports-secondary-color);
}

.page-sports__btn-tertiary {
  background-color: var(--page-sports-login-button); /* Login button color for tertiary */
  color: var(--page-sports-secondary-color);
  border: 2px solid var(--page-sports-login-button);
  margin-top: auto; /* Push to bottom of card */
}

.page-sports__btn-tertiary:hover {
  background-color: #b86200; /* Slightly darker login color */
  border-color: #b86200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__hero-description {
    font-size: 1.1rem;
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__container {
    padding: 0 15px !important;
  }

  .page-sports__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-sports__hero-content {
    margin-top: -100px; /* Adjust overlap for smaller screens */
    padding: 20px 15px;
  }

  .page-sports__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary,
  .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: 12px 20px;
    font-size: 1rem;
  }

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

  .page-sports__section-text {
    font-size: 1rem;
  }

  .page-sports__dark-section,
  .page-sports__featured-sports-section,
  .page-sports__features-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__sports-grid,
  .page-sports__features-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__sport-card-image {
    height: 180px;
  }

  .page-sports__sport-card-title,
  .page-sports__feature-card-title,
  .page-sports__guide-step-title {
    font-size: 1.4rem;
  }

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

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

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

  .page-sports__hero-image-wrapper,
  .page-sports__sport-card,
  .page-sports__feature-card,
  .page-sports__guide-step,
  .page-sports__faq-item,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-content {
    margin-top: -80px;
  }
  .page-sports__hero-title {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  .page-sports__hero-description {
    font-size: 0.95rem;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary {
    padding: 10px 15px;
    font-size: 0.95rem;
  }
  .page-sports__section-title {
    font-size: 1.6rem;
  }
  .page-sports__sport-card-image {
    height: 150px;
  }
  .page-sports__sport-card-title,
  .page-sports__feature-card-title,
  .page-sports__guide-step-title {
    font-size: 1.3rem;
  }
  .page-sports__faq-question {
    font-size: 1rem;
  }
}