.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

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

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

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

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

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

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Dim image to make text readable */
}

.page-sports__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for titles */
}

.page-sports__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-sports__features-section, 
.page-sports__sports-types-section, 
.page-sports__how-to-start-section, 
.page-sports__integration-section, 
.page-sports__video-section, 
.page-sports__faq-section, 
.page-sports__cta-bottom-section {
  padding: 80px 0;
}

.page-sports__features-grid, 
.page-sports__sports-grid, 
.page-sports__tips-grid, 
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-sports__feature-card, 
.page-sports__sport-card, 
.page-sports__tip-card, 
.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-card:hover, 
.page-sports__sport-card:hover, 
.page-sports__tip-card:hover, 
.page-sports__step-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__feature-icon, 
.page-sports__sport-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-sports__step-number {
  background-color: #FFD700;
  color: #1A73E8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-sports__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-sports__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #1A73E8;
  border: 2px solid #FFD700;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A73E8;
}

.page-sports__btn--large {
  padding: 18px 40px;
  font-size: 1.1em;
}

.page-sports__btn--inverted {
  background-color: #1A73E8;
  color: #FFD700;
  border-color: #1A73E8;
}

.page-sports__btn--inverted:hover {
  background-color: #145aa8;
  border-color: #145aa8;
  color: #FFD700;
}

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

.page-sports__dark-section .page-sports__section-title, 
.page-sports__dark-section .page-sports__section-intro, 
.page-sports__dark-bg .page-sports__card-title, 
.page-sports__dark-bg .page-sports__card-description {
  color: #ffffff;
}

.page-sports__tips-section .page-sports__section-title, 
.page-sports__tips-section .page-sports__section-intro {
  color: #ffffff;
}

.page-sports__tips-section .page-sports__tip-card {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__integration-section {
  background-color: var(--dark-bg);
}

.page-sports__integration-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-sports__integration-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

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

.page-sports__integration-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-sports__paragraph {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-sports__video-section {
  background-color: rgba(26, 115, 232, 0.2);
  padding-top: 80px; /* Adjust if header offset is already applied to main */
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 50px;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__faq-list {
  margin-top: 50px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1A73E8;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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 25px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-sports__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-sports__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  color: #1A73E8;
}

.page-sports__cta-bottom-section .page-sports__section-title, 
.page-sports__cta-bottom-section .page-sports__section-intro {
  color: #1A73E8;
}

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

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  .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__features-section, 
  .page-sports__sports-types-section, 
  .page-sports__how-to-start-section, 
  .page-sports__tips-section, 
  .page-sports__integration-section, 
  .page-sports__video-section, 
  .page-sports__faq-section, 
  .page-sports__cta-bottom-section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-intro {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__feature-card, 
  .page-sports__sport-card, 
  .page-sports__tip-card, 
  .page-sports__step-item {
    padding: 20px;
  }
  .page-sports__feature-icon, 
  .page-sports__sport-image, 
  .page-sports__integration-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__integration-content {
    flex-direction: column;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}