/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height to prevent excessive image size */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-sports__hero-content {
  position: absolute;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  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; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b6;
}

.page-sports__section {
  padding: 60px 20px;
  overflow: hidden;
}

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

.page-sports__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__dark-bg {
  background-color: #0a0a0a; /* Body background from shared */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__paragraph {
  color: #333333;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-sports__light-bg .page-sports__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promo-image,
.page-sports__info-icon {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 6px;
  object-fit: cover;
}

.page-sports__feature-title,
.page-sports__category-title,
.page-sports__promo-title,
.page-sports__info-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__category-title,
.page-sports__light-bg .page-sports__promo-title,
.page-sports__light-bg .page-sports__info-title {
  color: #26A9E0;
}

.page-sports__feature-text,
.page-sports__category-text,
.page-sports__promo-text,
.page-sports__info-text {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1; /* Allow text to grow and push buttons to bottom */
}

.page-sports__sub-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-top: 15px;
  font-size: 0.95em;
}

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

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

.page-sports__guide-item {
  display: flex;
  flex-direction: column;
}

.page-sports__guide-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-sports__guide-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__guide-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}

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

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

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color for FAQ question */
  border-radius: 8px;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-answer .page-sports__btn-primary {
  margin-top: 15px;
}

.page-sports__conclusion-section {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-sports__hero-content {
    max-width: 80%;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: clamp(1.6em, 4.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-sports__hero-content {
    position: static;
    background-color: rgba(0, 0, 0, 0.7); /* Ensure readability */
    border-radius: 0;
    width: 100%;
    padding: 20px;
    margin-top: 20px;
  }
  .page-sports__hero-image-wrapper {
    max-height: 50vh;
  }

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

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

  /* Buttons responsiveness */
  .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;
    margin-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-container,
  .page-sports__guide-item .page-sports__btn-primary,
  .page-sports__guide-item .page-sports__btn-secondary {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* FAQ items */
  .page-sports__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-sports__feature-grid,
  .page-sports__sport-category-grid,
  .page-sports__promo-grid,
  .page-sports__info-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-sports__section-title {
    font-size: clamp(1.4em, 5.5vw, 2em);
  }
}