/* style/sports.css */

/* Base styles for page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Header offset is handled by body in shared.css, so main sections start with small top padding */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0 0%, #1A7BBF 100%); /* Brand color gradient */
}

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

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

.page-sports__description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__highlight {
  color: #FFFFFF;
  font-weight: bold;
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff; /* Default text color for content areas on dark body background */
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
}

.page-sports__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

/* Grid for popular sports */
.page-sports__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent background for cards */
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sports__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles */
}

.page-sports__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1; /* Allow text to grow and push content down */
}

/* Features Grid */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__feature-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  height: 100%;
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__feature-description {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-sports__guide-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  color: #ffffff;
}

.page-sports__guide-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__guide-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* Promotions List */
.page-sports__promo-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-sports__promo-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

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

.page-sports__promo-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  position: relative;
  user-select: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
}

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

/* Dark background section specific styles */
.page-sports__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

.page-sports__final-cta {
  padding-bottom: 80px;
}

/* Color Contrast Fixes (as per prompt) */
.page-sports__contrast-fix {
  color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    padding: 50px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-sports__description {
    font-size: 1rem;
  }

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

  .page-sports__text-block {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

  /* Images responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsiveness */
  .page-sports__hero-image-wrapper,
  .page-sports__grid-container,
  .page-sports__card,
  .page-sports__features-grid,
  .page-sports__feature-item,
  .page-sports__guide-list,
  .page-sports__guide-item,
  .page-sports__promo-list,
  .page-sports__promo-item,
  .page-sports__faq-list,
  .page-sports__faq-item,
  .page-sports__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    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__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-sports__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }
  
  /* Ensure no horizontal scroll for any content */
  .page-sports {
    overflow-x: hidden;
  }
}