/* style/sports.css */
/* body background is handled by shared.css: var(--background-color) which is #0A0A0A */
/* Therefore, text should be light, #FFF6D6 */

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

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

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and content */
  border-radius: 10px;
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-sports__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

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

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for bright button */
  border: none;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-sports__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B; /* Glow */
}

.page-sports__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #FFD36B; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

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

/* Video Section */
.page-sports__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, not --header-offset */
  background-color: #0A0A0A; /* Background */
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 30px;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-sports__video-description {
  font-size: 1.1rem;
  max-width: 800px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF6D6;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 20px;
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
}

.page-sports__dark-section {
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6;
}

.page-sports__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.page-sports__card-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
}

.page-sports__card-text {
  font-size: 1rem;
  color: #FFF6D6;
}

/* Sports Markets Section */
.page-sports__markets-section {
  padding: 80px 20px;
  background-color: #111111; /* Card BG - slightly lighter for contrast */
  color: #FFF6D6;
}

.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__sport-item {
  background: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__sport-name {
  font-size: 1.4rem;
  color: #FFD36B; /* Glow */
  padding: 15px 10px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.page-sports__live-betting-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-sports__live-betting-content .page-sports__section-title,
.page-sports__live-betting-content .page-sports__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-sports__live-betting-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 20px;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.page-sports__step-item {
  background: #0A0A0A; /* Background */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-sports__step-title {
  font-size: 1.4rem;
  color: #FFD36B; /* Glow */
  margin-bottom: 10px;
}

.page-sports__step-text {
  font-size: 1rem;
  color: #FFF6D6;
}

.page-sports__guide-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Promo Section */
.page-sports__promo-section {
  padding: 80px 20px;
  color: #FFF6D6;
}

.page-sports__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 50px;
}

.page-sports__promo-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Partners Section */
.page-sports__partners-section {
  padding: 80px 20px;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

.page-sports__partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for partner logos */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  align-items: center;
}

.page-sports__partner-logo {
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  object-fit: contain;
  filter: brightness(0.8) grayscale(100%); /* Slightly dim and grayscale */
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.page-sports__partner-logo:hover {
  filter: brightness(1) grayscale(0%);
  opacity: 1;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 20px;
  color: #FFF6D6;
}

.page-sports__faq-items {
  max-width: 900px;
  margin: 0 auto 50px;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: #0A0A0A; /* Background */
  color: #FFD36B; /* Glow */
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: 1px solid #3A2A12; /* Border */
}

.page-sports__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom: none;
}

.page-sports__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

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

.page-sports__faq-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 80px 20px;
  text-align: center;
  background-color: #111111; /* Card BG */
  color: #FFF6D6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__live-betting-section {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-betting-content,
  .page-sports__live-betting-image {
    min-width: unset;
    width: 100%;
    max-width: 800px; /* Constrain image on larger tablets */
  }

  .page-sports__live-betting-content .page-sports__section-title,
  .page-sports__live-betting-content .page-sports__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-title {
    font-size: 2.2rem;
  }

  .page-sports__section-title {
    font-size: 2rem;
  }

  .page-sports__hero-description,
  .page-sports__section-description,
  .page-sports__video-description {
    font-size: 1rem;
  }

  .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: 12px 20px;
    font-size: 1rem;
  }

  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons-final,
  .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;
    flex-direction: column;
    gap: 15px;
  }

  /* Images and Video responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-image,
  .page-sports__card-image,
  .page-sports__sport-image,
  .page-sports__live-betting-image,
  .page-sports__step-image,
  .page-sports__partner-logo,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure images scale proportionally */
    box-sizing: border-box !important;
  }

  /* Video container responsiveness */
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__video-section,
  .page-sports__features-section,
  .page-sports__markets-section,
  .page-sports__live-betting-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__partners-section,
  .page-sports__faq-section,
  .page-sports__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-sports__partner-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Adjust for smaller screens */
    gap: 10px;
  }

  .page-sports__partner-logo {
    width: 100% !important; /* Allow small logos to scale within grid */
    height: auto !important;
    max-width: 120px; /* Max size for smaller screens */
  }
}

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

  .page-sports__section-title {
    font-size: 1.6rem;
  }

  .page-sports__feature-cards,
  .page-sports__sports-grid,
  .page-sports__guide-steps,
  .page-sports__promo-cards {
    grid-template-columns: 1fr;
  }
}