/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: #0a0a0a; /* Ensure section has a background for contrast */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 900px;
  padding: 0 20px;
  color: #ffffff;
}

.page-sports__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

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

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

.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__item-title,
.page-sports__light-bg .page-sports__item-description,
.page-sports__light-bg .page-sports__step-title,
.page-sports__light-bg .page-sports__step-description,
.page-sports__light-bg .page-sports__app-description {
  color: #333333;
}

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

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

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

.page-sports__grid-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__light-bg .page-sports__grid-item {
  background-color: #f9f9f9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

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

.page-sports__item-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-sports__light-bg .page-sports__item-title {
  color: #26A9E0;
}

.page-sports__item-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__light-bg .page-sports__item-description {
  color: #555555;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.3em;
  font-weight: 600;
  padding: 15px 20px 0;
  color: #ffffff;
}

.page-sports__card-description {
  font-size: 0.95em;
  padding: 10px 20px 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

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

.page-sports__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__step-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__step-description {
  font-size: 1em;
  color: #555555;
}

.page-sports__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__inline-link:hover {
  color: #1a8cc7;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-sports__btn-large {
  min-width: 200px;
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-sports__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-sports__app-text {
  flex: 1 1 500px;
  color: #333333;
}

.page-sports__app-description {
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #555555;
}

.page-sports__app-image-wrapper {
  flex: 1 1 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.1);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__conclusion-text {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-sports__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-sports__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }
  
  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-sports__hero-content {
    padding: 0 15px;
  }

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

  .page-sports__container {
    padding: 0 15px;
  }

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

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

  .page-sports__app-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__app-text,
  .page-sports__app-image-wrapper {
    flex: 1 1 auto;
    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__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between buttons if multiple */
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__hero-image-wrapper,
  .page-sports__feature-image,
  .page-sports__card-image,
  .page-sports__app-image-wrapper,
  .page-sports__card,
  .page-sports__grid-item,
  .page-sports__step-item,
  .page-sports__app-text,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-sports__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }

  .page-sports__btn-large {
    font-size: 1em;
    padding: 12px 20px;
  }
}