.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-sports__hero-content-wrapper {
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Pull content up slightly over the image for better flow, but not overlapping text on image */
  padding: 0 20px;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-sports__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Section Titles and Descriptions */
.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-sports__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* About Section */
.page-sports__about-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  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-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-sports__feature-item:hover {
  transform: translateY(-10px);
}

.page-sports__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Enhance visibility on dark background */
}

.page-sports__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-sports__feature-text {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-sports__category-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-sports__category-card:hover {
  transform: translateY(-10px);
}

.page-sports__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.page-sports__category-card:hover .page-sports__category-image {
  filter: brightness(1);
}

.page-sports__category-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 20px 20px 10px 20px;
  color: #017439;
}

.page-sports__category-text {
  font-size: 0.95rem;
  color: #e0e0e0;
  padding: 0 20px 20px 20px;
  line-height: 1.5;
}

.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Why Choose Us Section */
.page-sports__why-choose-us {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-sports__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__advantage-text {
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
}

/* CTA Banner */
.page-sports__cta-banner {
  padding: 80px 0;
  background: linear-gradient(90deg, #017439 0%, #005a2d 100%);
  text-align: center;
  color: #ffffff;
}

.page-sports__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-sports__cta-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-sports__cta-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #017439;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 15px 20px 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.03);
}

/* More Games Section */
.page-sports__more-games-section {
  padding: 60px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-sports__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-sports__game-card:hover {
  transform: translateY(-10px);
}

.page-sports__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.page-sports__game-card:hover .page-sports__game-image {
  filter: brightness(1);
}

.page-sports__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 15px 20px 5px 20px;
  color: #017439;
}

.page-sports__game-description {
  font-size: 0.9rem;
  color: #e0e0e0;
  padding: 0 20px 15px 20px;
  line-height: 1.5;
}

/* General image styling for content area */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-content-wrapper {
    margin-top: -80px;
  }
  .page-sports__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  }
  .page-sports__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO Section */
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-sports__hero-content-wrapper {
    margin-top: -60px; /* Adjust pull-up for mobile */
    padding: 0 15px;
  }
  .page-sports__hero-title {
    font-size: 2.2rem; /* Fixed smaller font size for mobile H1 */
    margin-bottom: 15px;
  }
  .page-sports__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  /* General Buttons */
  .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__button-group,
  .page-sports__hero-cta-buttons,
  .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;
    flex-direction: column;
  }

  /* Product/Category/Game Showcase Sections */
  .page-sports__categories-grid,
  .page-sports__games-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
    padding: 0 15px;
  }
  .page-sports__category-card,
  .page-sports__game-card,
  .page-sports__feature-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-sports__category-image,
  .page-sports__game-image {
    height: 200px; /* Maintain aspect ratio or fixed height */
  }

  /* General Images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports__container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Other Content Modules */
  .page-sports__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-sports__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-sports__advantage-list {
    padding: 0 15px;
  }
  .page-sports__advantage-title {
    font-size: 1.25rem;
  }
  .page-sports__advantage-text {
    font-size: 0.9rem;
  }
  .page-sports__cta-banner {
    padding: 50px 15px;
  }
  .page-sports__cta-title {
    font-size: 2rem;
  }
  .page-sports__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-sports__faq-list {
    padding: 0 15px;
  }
  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-sports__faq-answer {
    font-size: 0.9rem;
    padding: 10px 15px 15px 15px;
  }
}

/* Color Contrast Safeguards */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff; /* Deep dark background, light text */
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Lighter dark background, light text */
  color: #ffffff;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark backgrounds */
  color: #ffffff;
}

.page-sports p,
.page-sports li {
  color: #e0e0e0; /* Slightly off-white for body text for readability */
}

.page-sports__btn-primary {
  background: #C30808;
  color: #FFFF00;
}

.page-sports__btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border-color: #017439;
}

.page-sports__cta-banner {
  background: linear-gradient(90deg, #017439 0%, #005a2d 100%);
  color: #ffffff;
}

/* No filter properties to change image colors */
.page-sports__hero-image {
  filter: brightness(0.7); /* Allowed for darkening, not color change */
}
.page-sports__feature-icon {
  filter: brightness(1.2); /* Allowed for enhancing, not color change */
}
.page-sports__category-image,
.page-sports__game-image {
  filter: brightness(0.8); /* Allowed for darkening, not color change */
}
.page-sports__category-card:hover .page-sports__category-image,
.page-sports__game-card:hover .page-sports__game-image {
  filter: brightness(1); /* Allowed for brightening, not color change */
}