/* style/sports.css */
/* Body background color is #0D0E12 from shared.css, which is dark. Text colors should be light. */

.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background: #0D0E12; /* Background color from custom palette */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly with image for visual appeal, but text is below image block */
  padding: 40px;
  background: rgba(13, 14, 18, 0.85); /* Slightly transparent dark background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid #A84F0C; /* Border color */
}

.page-sports__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  width: auto;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-sports__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-sports__btn-secondary:hover {
  background: #2a2d36;
  color: #FFB04D;
  border-color: #FFB04D;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

/* General Section Styling */
.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

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

/* Dark background sections */
.page-sports__dark-bg {
  background-color: #0D0E12; /* Background color */
  color: #FFF3E6;
  padding: 80px 0;
}

/* Light background sections (for contrast) */
.page-sports__light-bg {
  background-color: #17191F; /* Card BG, still dark but lighter than main background */
  color: #FFF3E6;
  padding: 80px 0;
}

/* Card Styling */
.page-sports__card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.3);
}

.page-sports__card h3 {
  color: #FFA53A; /* Auxiliary color */
  font-size: 1.5em;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-sports__card p {
  color: #FFF3E6;
  font-size: 1em;
}

/* Feature Section */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* How to Get Spins Section */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(255, 140, 26, 0.5);
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 20px;
}

/* League Section */
.page-sports__league-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-sports__league-title {
  color: #FFA53A;
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* Tips Section */
.page-sports__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__tip-title {
  color: #FFA53A;
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

.page-sports__faq-item {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-sports__faq-item[open] {
  box-shadow: 0 5px 20px rgba(255, 140, 26, 0.3);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: #FFF3E6;
  background-color: #17191F; /* Card BG */
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  color: #FFA53A;
  border-bottom-color: #A84F0C;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FFA53A;
}

.page-sports__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.5;
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Bottom Section */
.page-sports__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #17191F; /* Card BG */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -100px;
    padding: 30px;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: -80px;
    padding: 20px;
    width: calc(100% - 30px); /* Adjust for padding */
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-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__section-title {
    font-size: 1.8em;
    padding-top: 30px;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-sports__dark-bg,
  .page-sports__light-bg {
    padding: 50px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__feature-grid,
  .page-sports__steps-grid,
  .page-sports__league-cards-grid,
  .page-sports__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Mobile image and video responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-sports__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}

/* Ensure no filter is applied to images */
.page-sports img {
  filter: none; /* Explicitly remove any potential filter */
}

/* Ensure content area images meet min size requirements */
.page-sports__feature-icon,
.page-sports__league-image {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}