/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__subsection-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-sports__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* Color Contrast Fixes */
.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff; /* White text on brand primary color */
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text on white background */
}

/* 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: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-sports__btn-primary--small, .page-sports__btn-secondary--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

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

.page-sports__cta-buttons--center {
  justify-content: center;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-sports__video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-sports__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 2;
}

.page-sports__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
  text-align: center;
}

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

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

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

/* Sports Types Section */
.page-sports__sports-types-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__sports-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-sports__sports-item {
  background-color: #f9f9f9;
  color: #333333;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-sports__sports-icon {
  width: 100%; /* Ensure images fill card width, min 200px */
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__sports-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-sports__live-betting-image {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sports__bullet-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  color: #ffffff;
}

.page-sports__list-icon {
  color: #ffffff;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

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

.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: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

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

.page-sports__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
}

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

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

.page-sports__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* For details summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-sports__faq-answer p {
  margin: 0;
  text-align: justify;
}

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

.page-sports__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
  }
  .page-sports__live-betting-image {
    min-width: unset;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-sports__feature-grid, .page-sports__sports-list, .page-sports__promo-grid, .page-sports__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-sports__feature-card, .page-sports__sports-item, .page-sports__promo-card, .page-sports__step-card {
    padding: 20px;
  }
  .page-sports__video, .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    position: relative !important; /* Adjust for mobile flow */
    transform: none !important;
  }
  .page-sports__hero-overlay {
    position: relative !important;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay for mobile */
    padding: 30px 15px;
    height: auto;
  }
  .page-sports__hero-section {
    flex-direction: column;
    height: auto;
    padding-bottom: 40px;
  }
  .page-sports__video-wrapper {
    height: 250px;
  }

  /* Ensure content area images are not too small */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__video-wrapper,
  .page-sports__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 15px;
  }
}