/* style/sports.css */

/* Base Styles for page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Assuming body background is black from shared.css */
}

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

/* First content module spacing to account for fixed header */
.page-sports__hero-section {
  padding-top: 120px; /* Desktop spacing */
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 100px; /* Mobile spacing */
  }
}

/* Section Titles */
.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for titles */
}

.page-sports__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  background: linear-gradient(135deg, #0A2463, #000000); /* Dark blue to black gradient */
  color: #ffffff;
  padding-bottom: 80px;
}

.page-sports__hero-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-sports__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-sports__btn-primary {
  background-color: #FFD700;
  color: #0A2463;
  border-color: #FFD700;
}

.page-sports__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

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

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-sports__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Light and Dark Backgrounds for Contrast */
.page-sports__light-bg {
  background-color: #f0f0f0;
  color: #333333; /* Dark text for light background */
}

.page-sports__dark-bg {
  background-color: #0A2463;
  color: #ffffff; /* Light text for dark background */
}

/* Overview Section */
.page-sports__overview-section {
  padding: 80px 0;
}

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

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

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

.page-sports__feature-icon {
  margin-bottom: 20px;
  height: 120px; /* Fixed height for image container */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-sports__feature-icon img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0A2463;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #555555;
}

/* Betting Types Section */
.page-sports__betting-types-section {
  padding: 80px 0;
  background-color: #0A2463;
}

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

.page-sports__betting-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: background-color 0.3s ease;
}

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

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

.page-sports__betting-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 30px;
}

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

.page-sports__guide-step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0A2463;
}

.page-sports__guide-item p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #555555;
}

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

.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);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__promo-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Tips Section */
.page-sports__tips-section {
  padding: 80px 0;
}

.page-sports__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 30px;
}

.page-sports__tip-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-sports__tip-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0A2463;
}

.page-sports__tip-item p {
  font-size: 16px;
  color: #555555;
}

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

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: #ffffff;
}

.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: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

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

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #ffffff;
}

/* Call to Action Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0A2463;
}

.page-sports__cta-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

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

  .page-sports__cta-title {
    font-size: 34px;
  }
}

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

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

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

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

  .page-sports__btn-primary, .page-sports__btn-secondary {
    width: 100%;
    max-width: 300px;
  }

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

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

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

  .page-sports__features-grid,
  .page-sports__betting-grid,
  .page-sports__promo-grid,
  .page-sports__tips-list,
  .page-sports__guide-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__feature-card,
  .page-sports__betting-card,
  .page-sports__guide-item,
  .page-sports__promo-card,
  .page-sports__tip-item {
    padding: 25px;
  }

  .page-sports__feature-title,
  .page-sports__betting-title,
  .page-sports__guide-step-title,
  .page-sports__promo-title,
  .page-sports__tip-title {
    font-size: 20px;
  }

  .page-sports__feature-text,
  .page-sports__betting-text,
  .page-sports__guide-item p,
  .page-sports__promo-text,
  .page-sports__tip-item p {
    font-size: 15px;
  }

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

  .page-sports__faq-question h3 {
    font-size: 16px;
  }

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

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

  .page-sports__cta-title {
    font-size: 30px;
  }

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

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__feature-icon {
    padding-left: 0;
    padding-right: 0;
  }
}