/* style/sports.css */
/* 
 * Body background is #1a1a2e (dark), so default text color should be light (#ffffff).
 * This ensures good contrast as per WCAG AA standards.
 */
.page-sports {
  color: #ffffff; /* Default text color for the page content */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Highlight for keywords */
.page-sports .highlight {
  color: #FFFF00; /* Yellow for keyword highlight */
  font-weight: bold;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #017439; /* Primary brand color for hero background */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-sports__hero-content {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.page-sports__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive section title */
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff; /* Default for dark background */
}

.page-sports__light-bg .page-sports__section-title {
  color: #017439; /* For sections with light background */
}

/* Text Blocks */
.page-sports__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
a.page-sports__btn-primary,
a.page-sports__btn-secondary,
a.page-sports__btn-inline,
a.page-sports__btn-register,
a.page-sports__btn-login {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-sports__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

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

.page-sports__btn-inline {
  background-color: transparent;
  color: #017439;
  border: 1px solid #017439;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

.page-sports__btn-inline:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Custom button colors */
.page-sports__btn-register {
  background-color: #C30808; /* Red for Register */
  color: #FFFF00; /* Yellow font for Register */
  border-color: #C30808;
}
.page-sports__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #FFFF00;
}

.page-sports__btn-login {
  background-color: #C30808; /* Red for Login */
  color: #FFFF00; /* Yellow font for Login */
  border-color: #C30808;
}
.page-sports__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #FFFF00;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-sports__final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Section Backgrounds */
.page-sports__dark-bg {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

/* Introduction Section */
.page-sports__introduction-section .page-sports__text-block {
  color: #333333;
}
.page-sports__introduction-section .page-sports__image-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}
.page-sports__introduction-section .page-sports__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.page-sports__introduction-section .page-sports__image-caption {
  font-style: italic;
  color: #555555;
  text-align: center;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.page-sports__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__card-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__guide-item {
  background-color: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 20px 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #333333;
}

.page-sports__guide-item:last-child {
  margin-bottom: 0;
}

.page-sports__guide-step-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__guide-step-description {
  font-size: 1em;
  color: #555555;
}

/* Promotions Section */
.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-sports__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Why Choose Section */
.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__feature-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__feature-description {
  font-size: 0.95em;
  color: #555555;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

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

.page-sports__faq-item[open] > .page-sports__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}
.page-sports__faq-answer p {
  margin-bottom: 10px;
}
.page-sports__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding-bottom: 80px;
}
.page-sports__cta-final-section .page-sports__section-title {
  margin-bottom: 20px;
}
.page-sports__cta-final-section .page-sports__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

  .page-sports__hero-title {
    font-size: 2.2em;
  }

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

  .page-sports__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  a.page-sports__btn-primary,
  a.page-sports__btn-secondary,
  a.page-sports__btn-inline,
  a.page-sports__btn-register,
  a.page-sports__btn-login {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__card-grid,
  .page-sports__promo-grid,
  .page-sports__feature-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__guide-item,
  .page-sports__promo-card,
  .page-sports__feature-item,
  .page-sports__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images and Videos Responsive */
  .page-sports img,
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__hero-image-wrapper,
  .page-sports__image-content,
  .page-sports__promo-image,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}