/* style/sports.css */

/* General styling for the sports page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color, #0D0D0D); /* Assuming --black-color is dark */
  padding-top: 0; /* Handled by hero section or shared CSS */
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-sports__hero-title {
  font-size: 4.2em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Section Titles and Descriptions */
.page-sports__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Sections with light background */
.page-sports__intro-section,
.page-sports__live-betting,
.page-sports__guide,
.page-sports__cta-final {
  background-color: #ffffff; /* Explicit white background */
  color: #333333; /* Dark text for light background */
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__live-betting .page-sports__section-title,
.page-sports__guide .page-sports__section-title,
.page-sports__cta-final .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__intro-section .page-sports__section-description,
.page-sports__live-betting .page-sports__section-description,
.page-sports__guide .page-sports__section-description,
.page-sports__cta-final .page-sports__section-description,
.page-sports__intro-section .page-sports__content-paragraph,
.page-sports__live-betting .page-sports__content-paragraph,
.page-sports__guide .page-sports__content-paragraph,
.page-sports__cta-final .page-sports__content-paragraph {
  color: #555555;
}

/* Sections with dark background (e.g., brand primary color) */
.page-sports__sport-categories,
.page-sports__promotions,
.page-sports__faq-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for brand primary color background */
}

.page-sports__sport-categories .page-sports__section-title,
.page-sports__promotions .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__sport-categories .page-sports__section-description,
.page-sports__promotions .page-sports__section-description,
.page-sports__faq-section .page-sports__section-description {
  color: #f0f0f0;
}

/* Feature Grid (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: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__feature-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

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

.page-sports__category-card {
  background-color: rgba(255, 255, 255, 0.15); /* Lighter on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-sports__category-card .page-sports__card-title {
  color: #ffffff;
}

.page-sports__category-card .page-sports__card-text {
  color: #f0f0f0;
}

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

.page-sports__feature-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

/* 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.15);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__promo-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__promo-card .page-sports__card-title {
  color: #ffffff;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-sports__promo-card .page-sports__card-text {
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__cta-promotions {
  text-align: center;
  margin-top: 60px;
}

/* Guide Section */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-sports__guide-list li {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 50px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover/active */
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 20px;
  color: #ffffff; /* White text for FAQ questions */
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  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: #ffffff; /* White text for FAQ answers */
}

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

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

.page-sports__cta-final .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__cta-final .page-sports__section-description {
  color: #555555;
}

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

/* Buttons */
.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

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

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

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

.page-sports__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  max-width: 300px;
}

/* Responsive Styles */

/* All images basic responsive styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video basic responsive styles (if any) */
.page-sports video,
.page-sports__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video containers (if any) */
.page-sports__video-section,
.page-sports__video-container,
.page-sports__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons basic responsive styles */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

/* Button containers */
.page-sports__cta-buttons,
.page-sports__button-group,
.page-sports__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex; /* For multiple buttons */
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px; /* Spacing between buttons */
  justify-content: center; /* Center buttons */
}

@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3.5em;
  }
  .page-sports__hero-description {
    font-size: 1.3em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__section-description {
    font-size: 1.1em;
  }
  .page-sports__container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.5em !important;
  }
  .page-sports__hero-description {
    font-size: 1.1em !important;
  }
  .page-sports__section-title {
    font-size: 2em !important;
  }
  .page-sports__section-description,
  .page-sports__content-paragraph,
  .page-sports p,
  .page-sports li {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }
  
  .page-sports__container {
    padding: 20px 15px !important; /* Adjust padding for mobile */
  }

  .page-sports__intro-section,
  .page-sports__sport-categories,
  .page-sports__live-betting,
  .page-sports__promotions,
  .page-sports__guide,
  .page-sports__faq-section,
  .page-sports__cta-final {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Images responsiveness for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Videos responsiveness for mobile (if any) */
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsiveness for mobile */
  .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; /* Ensure buttons take full width */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__feature-icon,
  .page-sports__promo-image {
    height: 150px; /* Adjust image height for smaller screens */
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__faq-question h3 {
    font-size: 1.1em;
  }
}