/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f9fa; /* Inherited from body, but explicitly set for clarity */
}

/* Dark background sections */
.page-sports__dark-bg {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Text Main for dark backgrounds */
}

/* Light background sections/cards */
.page-sports__light-bg {
  background-color: #11271B; /* Card B G for cards/elements on dark background */
  color: #F2FFF6; /* Text Main for dark backgrounds */
}

.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;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F; /* Background for hero */
  color: #F2FFF6;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  z-index: 2;
  max-width: 800px;
  margin-bottom: 30px;
}

.page-sports__main-title {
  font-size: clamp(2.2em, 5vw, 3.2em); /* Clamp for responsive H1 */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #F2FFF6;
}

.page-sports__description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #A7D9B8;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay effect */
}

/* General Section Styles */
.page-sports__section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6; /* Default for dark sections */
}

.page-sports__text-main {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #333333; /* Default for light sections */
}

.page-sports__text-secondary {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #A7D9B8; /* Text Secondary for dark sections */
}

/* Advantages Section */
.page-sports__advantages-section .page-sports__section-title {
  color: #F2FFF6;
}

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

.page-sports__feature-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-sports__card-text {
  font-size: 1em;
  color: #A7D9B8;
}

/* Popular Sports Section */
.page-sports__popular-sports-section .page-sports__section-title {
  color: #11A84E; /* Use main color for title on light background */
}

.page-sports__popular-sports-section .page-sports__text-main {
  color: #333333;
}

.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: #11271B; /* Card B G */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

/* Guide Section */
.page-sports__guide-section .page-sports__section-title {
  color: #F2FFF6;
}

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

.page-sports__step-card {
  background-color: #11271B; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border color */
}

/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title {
  color: #11A84E; /* Main color for title on light background */
}

.page-sports__promotions-section .page-sports__text-main {
  color: #333333;
}

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

.page-sports__promotion-card {
  background-color: #11271B; /* Card B G */
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #F2FFF6;
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-sports__cta-promotions {
  margin-top: 50px;
}

/* Download App Section */
.page-sports__download-app-section .page-sports__section-title {
  color: #F2FFF6;
}

.page-sports__app-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__app-feature {
  text-align: center;
  max-width: 200px;
  color: #A7D9B8;
}

.page-sports__app-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__app-text {
  font-size: 1.1em;
  color: #A7D9B8;
}

.page-sports__cta-download {
  margin-top: 50px;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #f8f9fa; /* Light background */
}

.page-sports__faq-section .page-sports__section-title {
  color: #11A84E; /* Main color for title on light background */
}

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

.page-sports__faq-item {
  background-color: #11271B; /* Card B G */
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
}

.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-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color for toggle */
}

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

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary for answer */
}

/* Conclusion Section */
.page-sports__conclusion-section .page-sports__section-title {
  color: #F2FFF6;
}

.page-sports__cta-final {
  margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }
  .page-sports__description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    padding: 40px 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-sports__description {
    font-size: 1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__section {
    padding: 50px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__step-card,
  .page-sports__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__app-features {
    flex-direction: column;
    gap: 20px;
  }
  .page-sports__app-feature {
    max-width: 100%;
  }
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sports__faq-item summary {
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px 15px;
  }

  /* Ensure video responsiveness (if any video elements were present) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
  }
}