/* style/sports.css */

/* Base styles for the page */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Section spacing and container */
.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

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

/* Dark background sections */
.page-sports__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__sub-title {
  color: #ffffff;
}

/* Light background sections */
.page-sports__light-bg {
  background-color: #ffffff; /* Auxiliary brand color / white background */
  color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

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

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff; /* White text for hero section */
  /* No fixed font-size, relying on weight, line-height, and color for hierarchy */
}

.page-sports__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for contrast */
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  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, border-color 0.3s ease;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0; /* Primary brand color */
}

.page-sports__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: left;
}

.page-sports__paragraph strong {
  color: #EA7C07; /* Highlight keywords */
}

/* Image Grid / Content Images */
.page-sports__image-grid {
  margin: 30px auto;
  max-width: 1000px;
  text-align: center;
}

.page-sports__grid-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-sports__benefits-list,
.page-sports__registration-list,
.page-sports__promotions-list,
.page-sports__security-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle background for dark sections */
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  font-size: 1.05em;
  line-height: 1.5;
}

.page-sports__light-bg .page-sports__list-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  color: #333333;
}

.page-sports__dark-bg .page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__list-item strong {
  color: inherit; /* Inherit color from parent */
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__faq-item[open] {
  border-color: #26A9E0;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #26A9E0;
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__faq-item[open] .page-sports__faq-question .page-sports__faq-toggle {
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  text-align: left;
}

.page-sports__faq-answer p {
  margin-bottom: 0; /* Remove extra margin for paragraphs inside answer */
}

/* Remove default marker for details/summary */
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__section-title {
    font-size: 2em;
  }

  .page-sports__sub-title {
    font-size: 1.5em;
  }

  .page-sports__hero-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: 2em; /* Smaller font size for mobile H1 */
  }

  .page-sports__intro-text {
    font-size: 1em;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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: 12px 20px;
  }

  .page-sports__section {
    padding: 40px 0;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-sports__sub-title {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-sports__paragraph {
    font-size: 0.95em;
  }

  .page-sports__list-item {
    font-size: 0.9em;
    padding: 12px;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__image-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.8em;
  }

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