/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff; /* Default body background is white */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

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

.page-sports__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__text-block strong {
  color: #017439;
  font-weight: bold;
}

.page-sports__text-block--light strong {
  color: #FFFF00; /* Yellow for emphasis on dark background */
}

/* 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 space for fixed header */
  background: linear-gradient(135deg, #017439, #005a2d); /* Darker green gradient */
  color: #ffffff;
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-sports__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button--register, .page-sports__cta-button--login {
  background: #C30808; /* Custom Register/Login button color */
  color: #FFFFFF; /* White text for WCAG AA contrast */
}

.page-sports__cta-button--register:hover, .page-sports__cta-button--login:hover {
  background: #a10707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--primary {
  background: #017439;
  color: #ffffff;
}

.page-sports__cta-button--primary:hover {
  background: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-sports__cta-button--secondary:hover {
  background: #f0f0f0;
  color: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* General Section Styles */
.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

/* Introduction Section */
.page-sports__introduction-section {
  padding: 80px 0;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background: #f9f9f9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__feature-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-sports__feature-description {
  font-size: 16px;
  color: #555555;
}

/* Quick Access Section */
.page-sports__quick-access-section {
  padding: 80px 0;
}

.page-sports__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.page-sports__quick-link-button {
  display: block;
  padding: 18px 25px;
  background: #C30808; /* Register/Login style for quick links */
  color: #ffffff; /* White text for contrast */
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__quick-link-button:hover {
  background: #a10707;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Core Services Section */
.page-sports__core-services-section {
  padding: 80px 0;
}

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

.page-sports__service-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-sports__service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #017439;
  padding: 20px 25px 10px;
}

.page-sports__card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-sports__card-link {
  display: inline-block;
  padding: 12px 25px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 25px 25px;
  transition: background-color 0.3s ease;
}

.page-sports__card-link:hover {
  background: #005a2d;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  padding: 20px 25px 10px;
}

.page-sports__promo-description {
  font-size: 16px;
  color: #555555;
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-sports__promo-button {
  display: inline-block;
  padding: 12px 25px;
  background: #C30808; /* Register/Login style for promo buttons */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 25px 25px;
  transition: background-color 0.3s ease;
}

.page-sports__promo-button:hover {
  background: #a10707;
}

/* Security & Support Section */
.page-sports__security-support-section {
  padding: 80px 0;
}

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

.page-sports__info-item {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__info-title {
  font-size: 20px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__info-description {
  font-size: 16px;
  color: #555555;
}

.page-sports__contact-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.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;
  padding: 0 25px;
  opacity: 0;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #017439; /* Darker background for questions */
  color: #ffffff;
  border: 1px solid #005a2d;
  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: #005a2d;
  border-color: #004d26;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff; /* Ensure white text on dark green */
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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 {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff;
}

/* Latest News Section */
.page-sports__latest-news-section {
  padding: 80px 0;
}

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

.page-sports__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-sports__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-sports__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-sports__news-title {
  font-size: 22px;
  font-weight: bold;
  padding: 20px 25px 10px;
}

.page-sports__news-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__news-title a:hover {
  color: #005a2d;
}

.page-sports__news-excerpt {
  font-size: 16px;
  color: #555555;
  padding: 0 25px 15px;
  flex-grow: 1;
}

.page-sports__news-date {
  font-size: 14px;
  color: #888888;
  padding: 0 25px 20px;
  display: block;
}

.page-sports__view-all-news-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
  .page-sports__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-sports__feature-title, .page-sports__card-title, .page-sports__promo-title, .page-sports__info-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 20px 15px;
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .page-sports__cta-button, .page-sports__quick-link-button, .page-sports__promo-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-sports__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-sports__features-grid, .page-sports__quick-links-grid, .page-sports__services-grid, .page-sports__promotions-grid, .page-sports__info-grid, .page-sports__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__feature-item img, .page-sports__service-card img, .page-sports__promo-card img, .page-sports__news-card img {
    height: auto;
    max-height: 200px; /* Limit height for smaller screens */
  }
  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
    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;
  }
  .page-sports__news-title, .page-sports__promo-title, .page-sports__card-title, .page-sports__feature-title, .page-sports__info-title {
    font-size: 18px;
  }
  .page-sports__news-excerpt, .page-sports__promo-description, .page-sports__card-description, .page-sports__feature-description, .page-sports__info-description {
    font-size: 15px;
  }
}