/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-sports__dark-bg {
  background-color: #1A2E47;
  color: #ffffff;
}

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

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-cta-buttons,
.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #1A2E47;
  border: 2px solid #FFD700;
}

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

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

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

.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #1A2E47;
}

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

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

.page-sports__intro-section,
.page-sports__odds-section,
.page-sports__esports-section,
.page-sports__guide-section,
.page-sports__mobile-section,
.page-sports__security-section,
.page-sports__cta-section {
  padding: 60px 0;
}

.page-sports__features-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 0;
}

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

.page-sports__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-sports__dark-bg .page-sports__card {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size for content images */
}

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

.page-sports__dark-bg .page-sports__card-title {
  color: #FFD700;
}

.page-sports__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  text-align: justify;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-sports__list-ordered {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-sports__list-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  text-align: justify;
}

.page-sports__image-wrapper {
  margin: 40px auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

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

/* FAQ Section */
.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  margin: 0;
  color: #FFD700;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.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;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-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.8em;
  }

  .page-sports__intro-section,
  .page-sports__odds-section,
  .page-sports__esports-section,
  .page-sports__guide-section,
  .page-sports__mobile-section,
  .page-sports__security-section,
  .page-sports__cta-section,
  .page-sports__features-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }

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

  .page-sports__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__image-wrapper,
  .page-sports__video-wrapper,
  .page-sports__card,
  .page-sports__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__video-wrapper {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has proper padding */
  }

  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }

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

  .page-sports__paragraph,
  .page-sports__list-item {
    font-size: 0.95em;
  }
}