/* style/sports.css */

/* Root variables and base styles will be in shared.css */

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color from custom palette */
  background-color: var(--bg-color); /* Background from custom palette */
}

.page-sports__dark-bg {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Custom main text color */
}

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Custom main text color */
}

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

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #F2FFF6; /* Custom main text color */
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-sports__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Custom secondary text color */
}

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

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

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #F2FFF6; /* Custom main text color */
  border: none;
}

.page-sports__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green from button gradient */
  border: 2px solid #2AD16F; /* Green from button gradient */
}

.page-sports__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6; /* Custom main text color */
  transform: translateY(-2px);
}

.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 */
  background-color: #08160F;
}

.page-sports__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: #11271B; /* Custom card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__video-link {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  cursor: pointer;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-sports__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #A7D9B8; /* Custom secondary text color */
  text-align: center;
}

.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #08160F;
}

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

.page-sports__feature-card {
  background-color: #11271B; /* Custom card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom border color */
}

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

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Ensure images are not too small */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom main text color */
}

.page-sports__feature-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-sports__bet-types {
  padding: 60px 20px;
  background-color: #08160F;
}

.page-sports__bet-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
}

.page-sports__bet-type-card {
  background-color: #11271B; /* Custom card background */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-sports__bet-type-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F2FFF6; /* Custom main text color */
}

.page-sports__bet-type-description {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-sports__how-to-guide {
  padding: 60px 20px;
  background-color: #08160F;
}

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

.page-sports__guide-step {
  background-color: #11271B; /* Custom card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-sports__step-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6; /* Custom main text color */
}

.page-sports__step-description {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-sports__promotions {
  padding: 60px 20px;
  background-color: #08160F;
}

.page-sports__promotion-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
}

.page-sports__promotion-item {
  background-color: #11271B; /* Custom card background */
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #F2FFF6; /* Custom main text color */
  border-left: 5px solid #2AD16F; /* Green from button gradient */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #08160F;
}

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

.page-sports__faq-item {
  background-color: #11271B; /* Custom card background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Custom border color */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Custom main text color */
  background-color: #11271B; /* Custom card background */
  border-bottom: 1px solid #1E3A2A; /* Custom divider color */
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-sports__faq-question::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2AD16F; /* Green from button gradient */
}

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

.page-sports__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom secondary text color */
}

.page-sports__call-to-action {
  padding: 80px 20px;
  text-align: center;
  background-color: #0A4B2C; /* Custom deep green color */
  border-radius: 0 0 10px 10px; /* Rounded bottom corners if it's the last section */
}

/* Image and Video Responsive Styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 60vh;
    padding-top: 10px !important;
  }

  .page-sports__hero-content {
    padding: 15px;
  }

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

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-sports__section-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is small decorative */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__content-area,
  .page-sports__bet-types,
  .page-sports__how-to-guide,
  .page-sports__promotions,
  .page-sports__faq-section,
  .page-sports__call-to-action {
    padding: 30px 15px;
  }

  .page-sports__features-grid,
  .page-sports__bet-type-cards,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__bet-type-card,
  .page-sports__guide-step {
    padding: 20px;
  }

  .page-sports__feature-icon {
    max-width: 150px; /* Adjust for smaller screens */
    min-width: 150px;
    min-height: 150px;
  }

  .page-sports__feature-title {
    font-size: 1.3rem;
  }

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

  .page-sports__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Ensure all images are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-sports__hero-image-wrapper,
  .page-sports__feature-card,
  .page-sports__bet-type-card,
  .page-sports__guide-step,
  .page-sports__promotion-item,
  .page-sports__faq-item,
  .page-sports__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-image {
    filter: brightness(0.5); /* Slightly brighter for better visibility on small screens */
  }
}