/* style/sports.css */
.page-sports {
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  font-family: Arial, sans-serif;
}

.page-sports__bg-dark {
  background-color: #000000;
  color: #ffffff;
}

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

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports__section-title--light {
  color: #ffffff;
}

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

.page-sports__text-content--light {
  color: #f0f0f0;
}

.page-sports__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-sports__btn--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-sports__btn--register:hover {
  background-color: transparent;
  color: #FFFFFF;
}

.page-sports__btn--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-left: 15px;
}

.page-sports__btn--login:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-sports__btn--download,
.page-sports__btn--claim {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-sports__btn--download:hover,
.page-sports__btn--claim:hover {
  background-color: transparent;
  color: #FCBC45;
}

.page-sports__btn--secondary {
  background-color: transparent;
  color: #FCBC45;
  border: 2px solid #FCBC45;
  margin-left: 15px;
}

.page-sports__btn--secondary:hover {
  background-color: #FCBC45;
  color: #000000;
}

.page-sports__center-button {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
  border-radius: 10px;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-actions .page-sports__btn {
  margin: 10px;
}

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

.page-sports__feature-card,
.page-sports__event-card,
.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-sports__feature-image,
.page-sports__event-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__feature-title,
.page-sports__event-title,
.page-sports__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #FCBC45;
}

.page-sports__feature-description,
.page-sports__event-description,
.page-sports__promo-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-sports__guide-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.page-sports__guide-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  background-color: #FCBC45;
  color: #000000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-sports__guide-step-title {
  font-size: 1.5em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-sports__guide-step-description {
  font-size: 1.1em;
  color: #333333;
}

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

.page-sports__app-content {
  flex: 1;
  min-width: 300px;
}

.page-sports__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-sports__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-sports__app-feature-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-sports__app-feature-item::before {
  content: '✓';
  color: #FCBC45;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* FAQ Section */
.page-sports__faq-accordion {
  margin-top: 30px;
}

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

.page-sports__accordion-header {
  background-color: #000000;
  color: #ffffff;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-sports__accordion-header:hover,
.page-sports__accordion-header.active {
  background-color: #1a1a1a;
}

.page-sports__accordion-content {
  padding: 0 25px;
  background-color: #ffffff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__accordion-content p {
  padding-top: 15px;
  padding-bottom: 15px;
  margin: 0;
  color: #333333;
}

/* CTA Section */
.page-sports__cta-content {
  text-align: center;
}

.page-sports__cta-actions .page-sports__btn {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__app-layout {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__text-content {
    font-size: 1em;
  }
  .page-sports__guide-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-sports__guide-item::before {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-sports__hero-actions .page-sports__btn,
  .page-sports__cta-actions .page-sports__btn,
  .page-sports__btn--login,
  .page-sports__btn--secondary {
    margin-left: 0;
    margin-top: 10px;
    display: block;
    width: 100%;
  }
  
  /* Critical: Ensure images are responsive and don't overflow */
  .page-sports img {
    max-width: 100%;
    height: auto;
  }
  .page-sports__container {
    overflow-x: hidden;
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px);
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}

/* Ensure content images are not small */
.page-sports img:not(.shared-header img):not(.shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}

.page-sports__feature-image, .page-sports__event-image, .page-sports__app-image {
  min-width: 200px;
  min-height: 200px;
}