/* style/sports.css */

/* General page styling */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color); /* Matches body background if shared.css uses it */
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-sports__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__section-description--white {
  color: #f0f0f0;
}

.page-sports__light-bg {
  background-color: #ffffff; /* Explicitly light background for contrast */
  color: #333333;
}

.page-sports__dark-bg {
  background-color: #26A9E0; /* Primary brand color as dark background */
  color: #ffffff;
}

/* Button styles */
.page-sports__cta-button,
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
}

.page-sports__cta-button {
  background: #EA7C07; /* Login color for main CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
  margin-top: 30px;
}

.page-sports__cta-button:hover {
  background: #d46f06; /* Darken #EA7C07 by 10% */
  border-color: #d46f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin-top: 20px;
}

.page-sports__btn-primary:hover {
  background: #2197cc; /* Darken #26A9E0 by 10% */
  border-color: #2197cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-sports__btn-primary--white:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: #2197cc; /* Darken #26A9E0 by 10% */
}

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

.page-sports__btn-secondary:hover {
  background: #f0f0f0;
  color: #2197cc; /* Darken #26A9E0 by 10% */
  border-color: #2197cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-sports__link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__link:hover {
  text-decoration: underline;
}

/* Image styling */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  filter: none; /* Ensure no filter on images */
}

/* Ensure content area images are not too small */
.page-sports__section img,
.page-sports__feature-card img,
.page-sports__promotion-card img,
.page-sports__step-card img {
  min-width: 200px;
  min-height: 200px;
}

.page-sports__image-wrapper {
  margin: 30px auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__image-wrapper--center {
  max-width: 800px; /* Example max-width for specific images */
}

/* HERO Section */
.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: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f0f0f0; /* Light background for hero section */
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-section img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-sports__hero-content h1 {
  font-size: 48px;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-sports__hero-content p {
  font-size: 20px;
  color: #333333;
  margin-bottom: 20px;
}

/* Intro Section */
.page-sports__intro-section {
  background-color: #ffffff;
  color: #333333;
}

/* Features Section */
.page-sports__features-section {
  background-color: #26A9E0; /* Primary color as background */
  color: #ffffff;
}

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

.page-sports__feature-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-sports__feature-card .page-sports__card-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__feature-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-sports__feature-card .page-sports__image-wrapper {
  margin: 15px 0;
}

.page-sports__feature-card img {
  border-radius: 8px;
}

/* Categories Section */
.page-sports__categories-section {
  background-color: #f9f9f9;
  color: #333333;
}

.page-sports__category-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-sports__category-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__category-item .page-sports__category-name {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__category-item p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
}

/* Get Started Section */
.page-sports__get-started-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-sports__step-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__step-card .page-sports__card-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__step-card p {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__promotion-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__promotion-card .page-sports__card-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__promotion-card p {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  flex-grow: 1;
}

.page-sports__promotion-card .page-sports__image-wrapper {
  margin: 15px 0;
}

.page-sports__promotion-card img {
  border-radius: 8px;
}

.page-sports__call-to-action-text {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 500;
}

/* Security Section */
.page-sports__security-section {
  background-color: #000000; /* Dark background for security */
  color: #ffffff;
}

.page-sports__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__security-item {
  font-size: 17px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-sports__security-item::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-sports__security-assurance {
  margin-top: 40px;
  font-size: 18px;
  font-style: italic;
}

/* Support Section */
.page-sports__support-section {
  background-color: #f9f9f9;
  color: #333333;
}

.page-sports__contact-methods {
  margin-top: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-sports__contact-item {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-sports__contact-item::before {
  content: '•';
  color: #26A9E0;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333; /* Ensure contrast */
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Floating Buttons */
.page-sports__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-sports__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__floating-btn--register {
  background-color: #26A9E0; /* Primary color */
}

.page-sports__floating-btn--register:hover {
  background-color: #2197cc; /* Darken #26A9E0 by 10% */
}

.page-sports__floating-btn--login {
  background-color: #EA7C07; /* Login color */
}

.page-sports__floating-btn--login:hover {
  background-color: #d46f06; /* Darken #EA7C07 by 10% */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content h1 {
    font-size: 42px;
  }
  .page-sports__hero-content p {
    font-size: 18px;
  }
  .page-sports__section-title {
    font-size: 32px;
  }
  .page-sports__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__hero-content {
    padding: 15px;
  }

  .page-sports__hero-content h1 {
    font-size: 32px;
  }

  .page-sports__hero-content p {
    font-size: 16px;
  }

  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-sports__section-title {
    font-size: 28px;
  }

  .page-sports__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
  }

  .page-sports__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 5px; /* Small padding to prevent edge-to-edge for some images */
  }

  /* Cards responsive */
  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__promotion-card,
  .page-sports__step-card {
    padding: 20px;
    text-align: center;
    align-items: center; /* Center content in cards for mobile */
  }

  .page-sports__feature-card p,
  .page-sports__promotion-card p,
  .page-sports__step-card p {
    text-align: center;
  }

  .page-sports__category-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__category-item {
    padding: 20px;
  }

  .page-sports__security-list,
  .page-sports__contact-methods {
    padding: 0 15px;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-sports__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  /* Floating Buttons Responsive */
  .page-sports__floating-buttons {
    flex-direction: row; /* Horizontal for mobile to save vertical space */
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    justify-content: space-around;
    gap: 5px;
  }

  .page-sports__floating-btn {
    flex: 1;
    width: auto;
    height: 45px;
    font-size: 14px;
    border-radius: 22px;
    padding: 0 10px; /* Adjust padding for smaller buttons */
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    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;
    margin-left: auto;
    margin-right: auto;
  }
}