/* style/sports.css */

/* Global styles for the page-sports scope */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Inherit from body */
}

/* Fixed navigation bar spacing for the first content section */
.page-sports__intro-section {
  padding-top: 120px; /* Desktop spacing */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #B22222, #800000); /* Dark red gradient */
  color: #ffffff;
}

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

.page-sports__main-heading {
  font-size: 3.2em;
  font-weight: 700;
  color: #FFD700; /* Gold for main heading */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__secondary-heading {
  font-size: 2.2em;
  font-weight: 600;
  color: #FFD700; /* Gold for secondary headings */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  text-align: justify;
  color: #ffffff;
}

.page-sports__link {
  color: #FFD700; /* Gold for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-sports__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__image-wrapper--small {
  margin: 20px auto;
  border-radius: 8px;
}

.page-sports__main-image,
.page-sports__card-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%;
}

.page-sports__why-choose-section,
.page-sports__betting-tips-section,
.page-sports__faq-section,
.page-sports__latest-news-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark gray for sections */
  color: #ffffff;
}

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

.page-sports__feature-card,
.page-sports__tip-card,
.page-sports__news-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__feature-card:hover,
.page-sports__tip-card:hover,
.page-sports__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 15px;
  text-align: center;
}

.page-sports__promotion-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #B22222, #FFD700);
  color: #ffffff;
}

.page-sports__promotion-cta-section .page-sports__secondary-heading {
  color: #ffffff;
}

.page-sports__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #B22222; /* Dark red text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 30px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background-color: #ffffff;
  color: #B22222;
  transform: translateY(-3px);
}

.page-sports__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 12px 25px;
  border: 2px solid #FFD700;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

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

/* FAQ styles */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to ensure content is visible */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Latest News styles */
.page-sports__news-card {
  text-align: left;
  padding: 25px;
}

.page-sports__news-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-sports__news-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__news-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-sports__news-date {
  font-size: 0.9em;
  color: #999999;
  display: block;
  margin-top: 15px;
}

.page-sports__view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__main-heading {
    font-size: 2.8em;
  }

  .page-sports__secondary-heading {
    font-size: 2em;
  }

  .page-sports__feature-card,
  .page-sports__tip-card,
  .page-sports__news-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-sports__intro-section {
    padding-top: 100px !important; /* Mobile spacing */
    padding-bottom: 40px;
  }

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

  .page-sports__main-heading {
    font-size: 2em;
    text-align: left;
  }

  .page-sports__secondary-heading {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: left;
  }

  .page-sports__paragraph {
    font-size: 1em;
  }

  .page-sports__features-grid,
  .page-sports__tips-grid,
  .page-sports__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__tip-card,
  .page-sports__news-card {
    padding: 20px;
  }

  .page-sports__card-title {
    font-size: 1.4em;
  }

  .page-sports__promotion-cta-section {
    padding: 50px 0;
  }

  .page-sports__btn-primary {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
  }

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

  .page-sports__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-sports__faq-answer {
    padding: 0 20px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }

  .page-sports__news-title {
    font-size: 1.2em;
  }

  /* Ensure all images are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-sports__image-wrapper,
  .page-sports__image-wrapper--small {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}