/* style/sports.css */

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

.page-sports__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-sports__list-highlight {
  color: #26A9E0;
}

/* Color Contrast Specifics */
.page-sports__dark-bg {
  background-color: #111;
  color: #ffffff;
}

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

.page-sports__light-bg .page-sports__section-subtitle,
.page-sports__light-bg .page-sports__text-block,
.page-sports__light-bg .page-sports__list-highlight {
  color: #555555;
}

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

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  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: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

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

.page-sports__hero-actions .page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 20px;
}

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

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

/* Features Section */
.page-sports__features-section,
.page-sports__how-to-start-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 80px 0;
}

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

.page-sports__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #555555;
}

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

.page-sports__image-wrapper {
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

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

.page-sports__grid-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__grid-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-sports__step-number {
  font-size: 2.5em;
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-sports__step-title {
  font-size: 1.5em;
  color: #333333;
  margin-bottom: 10px;
}

.page-sports__step-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-sports__step-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__step-link:hover {
  text-decoration: underline;
}

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

.page-sports__live-betting-flex {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-sports__live-betting-content {
  flex: 1;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #f0f0f0;
  font-size: 1.1em;
}

.page-sports__live-betting-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-sports__live-betting-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

.page-sports__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__promo-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-sports__promo-cta {
  margin-top: 60px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333333;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

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

.page-sports__faq-title {
  font-size: 1.1em;
  margin: 0;
  color: #333333;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  text-align: left;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px 20px 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  color: #555555; /* Ensure text color is dark for light background */
}

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

/* Image and Video Responsive */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-sports video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__cta-button-group,
  .page-sports__hero-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-sports__section-subtitle {
    font-size: 1em;
  }

  .page-sports__features-section,
  .page-sports__sports-types-section,
  .page-sports__how-to-start-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 50px 0;
  }

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

  .page-sports__live-betting-flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-sports__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__promo-image {
    height: auto;
  }

  .page-sports__faq-item {
    margin: 0 15px 15px 15px;
  }

  .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 20px 15px;
  }

  .page-sports__feature-item,
  .page-sports__step-item,
  .page-sports__promo-item {
    padding: 20px;
  }

  /* Ensure content area images are not smaller than 200px */
  .page-sports__content-area img,
  .page-sports__sports-types-section img,
  .page-sports__live-betting-section img,
  .page-sports__promotions-section img {
    min-width: 200px;
    min-height: 200px;
  }

  /* Override for any selectors that might target img in content sections */
  .page-sports__hero-section img,
  .page-sports__sports-types-section img,
  .page-sports__how-to-start-section img,
  .page-sports__live-betting-section img,
  .page-sports__promotions-section img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* For any container that has images, ensure it handles overflow */
  .page-sports__image-wrapper,
  .page-sports__live-betting-image-wrapper,
  .page-sports__promo-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__grid-content {
    gap: 20px;
  }
}