/* style/sports.css */

/* Base styles for the page content wrapper */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom background color */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-sports__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient for dark sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #F5F7FA; /* Custom light background */
  color: #333333;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any background elements if layered */
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff; /* White text for dark hero */
}

.page-sports__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for description */
}

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

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

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

/* General Section Styling */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-sports__paragraph {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto; /* Center images */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__image--centered {
  max-width: 600px;
}

/* Features Section */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-sports__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

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

.page-sports__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Promotions Section */
.page-sports__promo-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 30px;
}

.page-sports__promo-card .page-sports__image {
  margin: 0;
  border-radius: 0;
}

.page-sports__promo-content {
  padding: 30px;
  text-align: center;
}

.page-sports__promo-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-sports__promo-description {
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: #333333;
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FF5A4F;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-sports__step-description {
  font-size: 1rem;
  color: #f0f0f0;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* General mobile padding */
  .page-sports__hero-section,
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Hero Section */
  .page-sports__main-title {
    font-size: 2rem;
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
  }

  /* Images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }

  /* Sections and Containers */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video (if present, though not in this HTML, keeping for completeness based on rules) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Promo card */
  .page-sports__promo-card {
    flex-direction: column;
  }
  .page-sports__promo-content {
    padding: 20px;
  }
  .page-sports__promo-title {
    font-size: 1.5rem;
  }
  .page-sports__promo-description {
    font-size: 0.95rem;
  }

  /* Guide steps */
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.8rem;
  }
  .page-sports__section-title {
    font-size: 1.6rem;
  }
  .page-sports__hero-description {
    font-size: 0.95rem;
  }
}