/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text for dark body background */
  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;
}

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

.page-sports__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-sports__inline-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__inline-link:hover {
  color: #EA7C07;
}

/* Color Contrast Handling */
.page-sports__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 0;
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__card-title,
.page-sports__light-bg .page-sports__text-block,
.page-sports__light-bg .page-sports__feature-list li {
  color: #333333;
}

/* Buttons */
.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;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Hero Section */
.page-sports__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  display: flex;
  align-items: center;
  min-height: 600px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-section .page-sports__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-sports__hero-content {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.page-sports__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-align: left;
}

.page-sports__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-align: left;
}

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

.page-sports__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

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

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

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

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-card .page-sports__card-title {
  color: #26A9E0;
  font-size: 1.5rem;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-sports__feature-card p {
  color: #555555;
}

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

/* Betting Types Section */
.page-sports__bet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.page-sports__bet-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-sports__bet-type-card .page-sports__card-title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.page-sports__bet-type-card p {
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-sports__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow click on video */
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
  opacity: 1;
  pointer-events: auto;
}

.page-sports__video-cta {
  z-index: 2;
  pointer-events: auto;
}

.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-list li {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__feature-list li strong {
  color: #26A9E0;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding-bottom: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-sports__promo-card .page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__card-title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-sports__promo-card p {
  color: #f0f0f0;
  flex-grow: 1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__btn-secondary {
  margin: 0 auto;
  max-width: calc(100% - 30px);
}

/* Safety Section */
.page-sports__safety-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__safety-list li {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__safety-list li strong {
  color: #26A9E0;
}

.page-sports__safety-section .page-sports__btn-primary {
  margin-top: 30px;
}

/* How-To Section */
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EA7C07;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 4px solid #26A9E0; /* Outline with primary color */
}

.page-sports__step-card .page-sports__card-title {
  color: #ffffff;
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-sports__step-card p {
  color: #f0f0f0;
  flex-grow: 1;
}

.page-sports__step-card .page-sports__btn-secondary {
  margin-top: 20px;
  max-width: calc(100% - 30px);
}

.page-sports__download-cta {
  margin-top: 50px;
  text-align: center;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  border-top: 1px solid #e0e0e0;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  transition: color 0.3s ease;
}

.page-sports__faq-question:hover {
  color: #26A9E0;
}

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  flex-grow: 1;
  color: inherit;
}

.page-sports__faq-toggle {
  font-size: 2rem;
  line-height: 1;
  margin-left: 20px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  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; /* Sufficiently large value */
  padding: 15px 15px 20px 0;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  text-align: left;
}

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

.page-sports__cta-footer-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-footer-section .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__cta-footer-section .page-sports__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3rem;
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@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;
    min-height: auto;
    text-align: center;
  }

  .page-sports__hero-section .page-sports__container {
    flex-direction: column;
  }

  .page-sports__hero-content,
  .page-sports__hero-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-sports__hero-title {
    font-size: 2.2rem;
    text-align: center;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-sports__dark-bg,
  .page-sports__light-bg {
    padding: 60px 0;
  }

  .page-sports__feature-card,
  .page-sports__bet-type-card,
  .page-sports__promo-card,
  .page-sports__step-card {
    padding: 20px;
  }

  .page-sports__feature-icon {
    max-height: 150px;
  }

  .page-sports__video-wrapper {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-sports__promo-image {
    height: 180px;
  }

  .page-sports__faq-question {
    font-size: 1.1rem;
  }

  .page-sports__faq-answer p {
    font-size: 0.95rem;
  }

  .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;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8rem;
  }
  .page-sports__section-title {
    font-size: 1.5rem;
  }
  .page-sports__hero-description {
    font-size: 0.9rem;
  }
  .page-sports__faq-question h3 {
    font-size: 1rem;
  }
  .page-sports__faq-toggle {
    font-size: 1.8rem;
  }
  .page-sports__promo-card .page-sports__promo-image {
    height: 150px;
  }
}