/* style/sports.css */
.page-sports {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  overflow: hidden;
  min-height: 600px;
  isolation: isolate; /* Create new stacking context */
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for better text contrast */
}

/* General Section Styles */
.page-sports__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* Default for dark background sections */
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

.page-sports__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__category-title,
.page-sports__light-bg .page-sports__promotion-title,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__faq-question h3 {
  color: #017439; /* Brand primary for titles on light background */
}

.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__category-text,
.page-sports__light-bg .page-sports__promotion-text,
.page-sports__light-bg .page-sports__step-text,
.page-sports__light-bg .page-sports__faq-answer p {
  color: #333333; /* Dark text for light background */
}

/* Features Section */
.page-sports__features-grid,
.page-sports__categories-grid,
.page-sports__promotions-grid,
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__feature-icon,
.page-sports__category-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none; /* Ensure no filter on content images */
}

.page-sports__feature-title,
.page-sports__category-title,
.page-sports__promotion-title,
.page-sports__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-text,
.page-sports__category-text,
.page-sports__promotion-text,
.page-sports__step-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 30px;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
  filter: none; /* Ensure no filter on video */
}

.page-sports__video-cta {
  text-align: center;
  margin-top: 40px;
}

/* App Section */
.page-sports__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-sports__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no filter on app image */
}

.page-sports__app-text {
  flex: 2;
  min-width: 300px;
}

.page-sports__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__app-features li {
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-sports__icon-check {
  color: #FFFF00; /* Custom font color for checkmark */
  margin-right: 10px;
  font-size: 1.3em;
  font-weight: bold;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px;
}

.page-sports__faq-answer p {
  margin-bottom: 15px;
  color: #333333;
}

.page-sports__faq-answer a {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

/* CTA Full Width */
.page-sports__cta-full {
  text-align: center;
  margin-top: 50px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px;
    min-height: 500px;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-sports__dark-bg,
  .page-sports__light-bg {
    padding: 50px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Image and Video responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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,
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__app-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  
  /* Specific padding-top for hero/video section */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports__app-image {
    max-width: 80% !important;
    margin: 0 auto;
  }
  .page-sports__app-text {
    min-width: unset;
    width: 100%;
  }

  .page-sports__faq-question h3 {
    font-size: 1.1em;
  }
  .page-sports__faq-answer p {
    font-size: 0.95em;
  }

  .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-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-buttons,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__hero-section {
    padding: 40px 10px;
  }
  .page-sports__dark-bg,
  .page-sports__light-bg {
    padding: 40px 0;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-sports__features-section .page-sports__feature-icon,
.page-sports__categories-section .page-sports__category-image,
.page-sports__app-section .page-sports__app-image {
  min-width: 200px;
  min-height: 200px;
}

/* Remove filter from general content images as per instruction */
.page-sports img:not(.page-sports__hero-image) { /* Hero image can have filter for background effect */
  filter: none;
}

.page-sports__icon-check::before {
  content: '\2713'; /* Unicode checkmark */
  display: inline-block;
  margin-right: 5px;
}