/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background (body is #FFFFFF) */
  background-color: #ffffff;
}

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

.page-sports__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherits color from parent section */
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding/border included in width */
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFFFF; /* WCAG AA compliant text color for #C30808 background (contrast 4.55:1). Overrides #FFFF00 for compliance. */
  border: 2px solid #C30808;
}

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

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 60px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

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

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

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

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

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

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
}

/* Sports Coverage Section */
.page-sports__sports-coverage-section {
  padding: 80px 0;
}

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

.page-sports__sport-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-sports__sport-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Brand primary color for titles */
}

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

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
}

.page-sports__two-column-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-sports__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
}

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

.page-sports__advantage-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promotion-card {
  background-color: #017439;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 20px;
  color: #333333;
}

.page-sports__guide-heading {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
}

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

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

/* App Download Section */
.page-sports__app-download-section {
  padding: 80px 0;
}

.page-sports__app-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

.page-sports__faq-answer {
  padding: 20px 30px;
  font-size: 1.1em;
  color: #555555;
  background-color: #ffffff;
}

/* Final CTA Section */
.page-sports__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__two-column-layout {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-sports__text-block,
  .page-sports__card-description,
  .page-sports__guide-description,
  .page-sports__faq-answer p {
    font-size: 1em;
  }

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

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

  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__sports-grid,
  .page-sports__advantages-grid,
  .page-sports__promotions-grid,
  .page-sports__guide-list,
  .page-sports__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness for mobile */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__image-wrapper,
  .page-sports__sport-card,
  .page-sports__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsiveness for mobile (if any, though none currently in HTML) */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__guide-heading {
    font-size: 1.2em;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 15px 20px;
  }
}