/* style/sports.css */

/* Base Styles */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

.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: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Fixes */
.page-sports__dark-bg {
  background-color: #017439;
  color: #ffffff; /* White text on dark green background */
}

.page-sports__dark-bg .page-sports__section-title {
  color: #ffffff;
}

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #C30808; /* Custom color for Register/Login */
  border: 2px solid #C30808;
}

.page-sports__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFF00; /* Custom font color for Register/Login */
}

.page-sports__btn-link {
  display: inline-block;
  padding: 8px 15px;
  margin-top: 15px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

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

.page-sports__btn-text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-sports__btn-text-link:hover {
  color: #005a2e;
}

.page-sports__center-buttons {
  text-align: center;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  flex: 1;
  padding: 0 40px;
  max-width: 600px;
  z-index: 1;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: left;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  text-align: left;
  line-height: 1.5;
}

.page-sports__hero-buttons {
  display: flex;
  gap: 20px;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 40px;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

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

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

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

.page-sports__feature-card {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

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

.page-sports__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

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

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

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

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  position: relative;
}

.page-sports__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 0;
}

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

.page-sports__sport-card {
  text-align: center;
  padding: 20px;
}

/* 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-bottom: 40px;
}

.page-sports__promo-card {
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

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

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0fdf5;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-question:hover {
  background-color: #e6f7eb;
}

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

.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: #555555;
}

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

.page-sports__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

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

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

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

/* Responsive Styles */

/* Desktop */
@media (min-width: 1024px) {
  .page-sports__hero-content {
    padding-left: 80px;
  }
  .page-sports__hero-image-wrapper {
    padding-right: 80px;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-sports__hero-content {
    max-width: 100%;
    padding: 0;
    margin-bottom: 40px;
  }

  .page-sports__hero-title,
  .page-sports__hero-description {
    text-align: center;
  }

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

  .page-sports__hero-image-wrapper {
    padding-right: 0;
    max-width: 800px;
  }

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

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__features-grid,
  .page-sports__guide-steps,
  .page-sports__sports-grid,
  .page-sports__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px);
    min-height: auto;
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__intro-section,
  .page-sports__features-section,
  .page-sports__betting-guide-section,
  .page-sports__popular-sports-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 50px 0;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__features-section,
  .page-sports__betting-guide-section,
  .page-sports__popular-sports-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__cta-section,
  .page-sports__guide-steps,
  .page-sports__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-content {
    padding: 0;
  }

  .page-sports__hero-image-wrapper {
    padding: 0;
  }

  .page-sports__faq-question,
  .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 15px 25px;
  }

  .page-sports__content-area {
    padding: 20px 0;
  }
}