/* style/sports.css */

/* Base styles 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: #000; /* Assuming body background is black from shared.css */
}

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-sports__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-sports__text-block {
  font-size: 16px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-sports__highlight {
  color: #ffd700; /* Gold color for highlights */
  font-weight: bold;
}

/* Color contrast classes */
.page-sports__dark-section .page-sports__section-title,
.page-sports__dark-section .page-sports__section-subtitle,
.page-sports__dark-section .page-sports__text-block,
.page-sports__dark-section h3 {
  color: #ffffff; /* White text on dark background */
}

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-subtitle,
.page-sports__light-bg .page-sports__text-block,
.page-sports__light-bg h3 {
  color: #333333; /* Dark text on light background */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #007bff; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #007bff;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #007bff;
  color: #ffffff;
}

.page-sports__btn-link {
  background-color: #28a745; /* Secondary brand color */
  color: #ffffff;
  border: none;
  padding: 10px 20px;
}

.page-sports__btn-link:hover {
  background-color: #218838;
}

.page-sports__btn-small {
  padding: 8px 18px;
  font-size: 14px;
}

.page-sports__btn-large {
  padding: 15px 30px;
  font-size: 18px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: 120px; /* Fixed header spacing for desktop */
  padding-bottom: 80px;
  background: linear-gradient(to right, #001f4d, #003366);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  overflow: hidden;
}

.page-sports__hero-content {
  max-width: 600px;
  text-align: center;
  z-index: 1;
  padding: 20px;
  box-sizing: border-box;
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-cta .page-sports__btn-primary {
  margin-right: 15px;
}

.page-sports__hero-image-wrapper {
  flex-shrink: 0;
  margin-left: 40px;
  max-width: 500px;
  z-index: 1;
}

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

/* Intro Section */
.page-sports__intro-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Darker background for contrast */
  color: #ffffff;
}

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

.page-sports__intro-section .page-sports__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Featured Sports Section */
.page-sports__featured-sports {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

.page-sports__featured-sports .page-sports__section-title,
.page-sports__featured-sports .page-sports__section-subtitle {
  color: #333333;
}

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

.page-sports__sport-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-sports__sport-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #007bff;
}

.page-sports__sport-description {
  font-size: 15px;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #555555;
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

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

.page-sports__advantage-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__advantage-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffd700;
}

/* How to Bet Section */
.page-sports__how-to-bet {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-sports__how-to-bet .page-sports__section-title,
.page-sports__how-to-bet .page-sports__section-subtitle {
  color: #333333;
}

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

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

.page-sports__step-number {
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #007bff;
}

.page-sports__step-item .page-sports__text-block {
  color: #555555;
  flex-grow: 1;
}

.page-sports__step-item .page-sports__btn-primary {
  margin-top: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 20px;
  color: #ffd700;
}

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

.page-sports__promo-card .page-sports__btn-primary {
  margin: 0 20px 20px;
}

/* Security and Customer Service Section */
.page-sports__security-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-sports__security-section .page-sports__section-title {
  color: #333333;
}

.page-sports__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-sports__security-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__security-text .page-sports__text-block {
  color: #555555;
}

.page-sports__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  color: #555555;
}

.page-sports__contact-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-sports__contact-list strong {
  color: #333333;
}

.page-sports__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

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

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0 0 5px 5px;
  color: #f0f0f0; /* Light text for answer */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-sports__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #ffffff; /* White text for question */
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffd700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff;
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  text-align: center;
  color: #333333;
}

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

.page-sports__cta-final .page-sports__text-block {
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    flex-direction: column;
    padding-bottom: 50px;
  }

  .page-sports__hero-content {
    margin-bottom: 40px;
    margin-right: 0;
  }

  .page-sports__hero-image-wrapper {
    margin-left: 0;
    max-width: 700px;
  }

  .page-sports__hero-title {
    font-size: 42px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__sports-grid,
  .page-sports__advantages-grid,
  .page-sports__steps-grid,
  .page-sports__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-sports__security-content {
    flex-direction: column;
    gap: 30px;
  }
}

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

  .page-sports__hero-section {
    padding-top: 100px; /* Fixed header spacing for mobile */
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: 32px;
  }

  .page-sports__hero-description {
    font-size: 16px;
  }

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

  .page-sports__hero-cta .page-sports__btn-primary {
    margin-right: 0;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-sports__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__intro-section,
  .page-sports__featured-sports,
  .page-sports__advantages-section,
  .page-sports__how-to-bet,
  .page-sports__promotions-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-final {
    padding: 40px 0;
  }

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

  .page-sports__sport-image,
  .page-sports__promo-image {
    height: 200px;
  }

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

  .page-sports__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }

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

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

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

  /* Mobile image responsive adaptation */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__hero-image-wrapper,
  .page-sports__sports-grid,
  .page-sports__advantage-item,
  .page-sports__step-item,
  .page-sports__promo-card,
  .page-sports__security-image-wrapper,
  .page-sports__faq-list,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}