/* 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: transparent; /* Body background handled by shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for large screens */
  overflow: hidden;
  position: relative;
  z-index: 0;
  margin-bottom: 30px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-sports__main-title {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Sections */
.page-sports__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-sports__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

.page-sports__feature-icon, .page-sports__promo-icon, .page-sports__security-icon {
  width: 100%; /* Ensure images are responsive within card */
  max-width: 200px; /* Max size for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__feature-title, .page-sports__promo-title, .page-sports__type-title, .page-sports__security-title, .page-sports__guide-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__feature-text, .page-sports__promo-text, .page-sports__type-text, .page-sports__security-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-sports__cta-block {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__cta-block p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #f0f0f0;
}

/* Live Betting Section */
.page-sports__live-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__live-text {
  flex: 1;
  min-width: 300px;
  color: #f0f0f0;
}

.page-sports__live-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.page-sports__live-video-wrapper {
  flex: 1;
  min-width: 400px;
  max-width: 800px;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  width: 100%; /* Desktop width must be 100% with max-width */
  box-sizing: border-box;
}

.page-sports__live-video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Security Section */
.page-sports__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__security-item {
  text-align: center;
  color: #ffffff;
}

.page-sports__security-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
  object-fit: contain;
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__guide-step ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
  text-align: left;
  color: #f0f0f0;
}

.page-sports__guide-step ol li {
  margin-bottom: 10px;
}

.page-sports__guide-step .page-sports__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter card for FAQ */
  color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* For details tag, hide default marker */
.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-sports__faq-item summary {
  list-style: none;
}

/* Conclusion Section */
.page-sports__conclusion {
  text-align: center;
  padding-bottom: 80px;
}

.page-sports__conclusion .page-sports__section-intro {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2.2rem;
  }
  .page-sports__live-content {
    flex-direction: column;
  }
  .page-sports__live-video-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__hero-section,
  .page-sports__dark-section,
  .page-sports__light-bg {
    padding: 40px 0;
  }

  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
  }

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

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__live-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__hero-section {
    padding-top: 10px !important;
  }

  /* Mobile video responsiveness */
  .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;
  }

  /* Ensure text is readable on mobile */
  .page-sports p,
  .page-sports li,
  .page-sports__feature-text,
  .page-sports__promo-text,
  .page-sports__type-text,
  .page-sports__security-text,
  .page-sports__hero-description {
    font-size: 0.95rem;
  }

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

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

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.8rem;
  }
  .page-sports__feature-title, .page-sports__promo-title, .page-sports__type-title, .page-sports__security-title, .page-sports__guide-title {
    font-size: 1.4rem;
  }
}