.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--primary-color); /* Inherits from shared.css, which is #0A2239 */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #e0e0e0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: 0; /* Assumes shared.css handles body padding-top: var(--header-offset) */
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0A2239, #1a3a5a); /* Dark background with subtle gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-sports__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.page-sports__hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
  z-index: 1;
}

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

.page-sports__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
  margin-right: 15px;
}

.page-sports__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
  transform: translateY(-2px);
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__cta-buttons--center {
  justify-content: center;
}

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-sports__intro-section .page-sports__section-title {
  color: #0A2239;
}

.page-sports__intro-section .page-sports__section-description {
  color: #555555;
}

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

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

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

.page-sports__feature-icon {
  width: 100%; /* Max width 100% */
  height: auto;
  max-width: 150px; /* Adjust icon size */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A2239;
}

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

/* Sports Types Section */
.page-sports__sports-types-section {
  padding: 80px 0;
  background-color: #0A2239; /* Dark background */
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: #1a3a5a; /* Slightly lighter dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__sport-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-sports__sport-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  padding: 20px 20px 10px 20px;
}

.page-sports__sport-text {
  font-size: 16px;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-sports__advantages-section .page-sports__section-title {
  color: #0A2239;
}

.page-sports__advantages-section .page-sports__section-description {
  color: #555555;
}

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

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

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

.page-sports__advantage-icon {
  width: 100%;
  height: auto;
  max-width: 120px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__advantage-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A2239;
}

.page-sports__advantage-text {
  font-size: 16px;
  color: #555555;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #0A2239; /* Dark background */
  color: #ffffff;
}

.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-color: #1a3a5a; /* Slightly lighter dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-sports__promo-text {
  font-size: 16px;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.page-sports__guide-section .page-sports__section-title {
  color: #0A2239;
}

.page-sports__guide-section .page-sports__section-description {
  color: #555555;
}

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

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

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

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #FFD700;
  color: #0A2239;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A2239;
}

.page-sports__step-text {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #0A2239; /* Dark background */
  color: #ffffff;
}

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

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

/* FAQ default state - answer 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;
  color: #555555;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, large value to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

.page-sports__faq-question:hover {
  background: #2e527a;
  border-color: #3f6897;
}

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

/* Question title style */
.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click event */
  color: #FFD700;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Rotate to form 'x' or use '-' */
}

/* General dark/light background classes for contrast safety */
.page-sports__dark-bg {
  background-color: #0A2239;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__advantage-title,
.page-sports__light-bg .page-sports__step-title {
  color: #0A2239;
}

.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__advantage-text,
.page-sports__light-bg .page-sports__step-text {
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
  .page-sports__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-sports__hero-section {
    padding-top: 0 !important; /* Ensure no double padding on mobile */
    padding-bottom: 40px;
  }
  .page-sports__hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
  .page-sports__hero-title {
    font-size: 32px;
  }
  .page-sports__hero-description {
    font-size: 16px;
  }
  .page-sports__hero-image-wrapper {
    min-width: unset;
    justify-content: center;
  }
  .page-sports__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Section Padding */
  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__advantages-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }

  /* Section Titles/Descriptions */
  .page-sports__section-title {
    font-size: 26px;
  }
  .page-sports__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Intro Features */
  .page-sports__intro-features {
    gap: 20px;
  }
  .page-sports__feature-title {
    font-size: 20px;
  }
  .page-sports__feature-text {
    font-size: 15px;
  }

  /* Sports Grid */
  .page-sports__sports-grid {
    gap: 20px;
  }
  .page-sports__sport-title {
    font-size: 20px;
  }
  .page-sports__sport-text {
    font-size: 15px;
  }
  .page-sports__sport-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Advantages Grid */
  .page-sports__advantages-grid {
    gap: 20px;
  }
  .page-sports__advantage-title {
    font-size: 20px;
  }
  .page-sports__advantage-text {
    font-size: 15px;
  }
  .page-sports__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotions Grid */
  .page-sports__promotions-grid {
    gap: 20px;
  }
  .page-sports__promo-title {
    font-size: 20px;
  }
  .page-sports__promo-text {
    font-size: 15px;
  }
  .page-sports__promo-image {
    height: 150px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Guide Steps */
  .page-sports__guide-steps {
    gap: 20px;
  }
  .page-sports__step-title {
    font-size: 20px;
  }
  .page-sports__step-text {
    font-size: 15px;
  }

  /* Buttons */
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    margin-right: 0;
    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;
  }

  /* FAQ */
  .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;
  }
  /* Ensure all images within page-sports are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__advantages-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}