/* style/sports.css */

/* Base Styles for the Sports Page */
.page-sports {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background color, derived from body's shared background */
}

/* Section Common Styles */
.page-sports__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure no overflow issues */
}

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

.page-sports__section-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H2 */
  color: #FFD36B; /* Glow color for titles */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* Card Styles */
.page-sports__card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFF6D6;
}

/* Button Styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-sports__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.3);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFD36B; /* Glow color for secondary button text */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-sports__btn-secondary:hover {
  background-color: #FFD36B;
  color: #111111; /* Dark text on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.3);
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 600px; /* Limit width on desktop */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
}

.page-sports__video-container {
  width: 100%;
  max-width: 1200px; /* Max width for desktop video */
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(255, 211, 107, 0.2);
}

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

.page-sports__video-link {
  display: block; /* Make the link cover the video */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Ensure link is clickable over video */
}

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 40px;
  text-align: center;
  z-index: 2; /* Ensure content is above video if any overlap */
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 4em); /* Responsive H1 font size */
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  max-width: 700px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

/* Why Choose Section */
.page-sports__why-choose {
  background-color: #0A0A0A;
}

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

.page-sports__feature-item {
  padding: 40px;
  text-align: center;
}

.page-sports__feature-icon {
  width: 250px; /* Display size for feature images */
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.6em;
  color: #FFD36B;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.6;
}

/* Categories Section */
.page-sports__categories {
  background-color: #0A0A0A;
}

.page-sports__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-sports__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
}

.page-sports__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-sports__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
}

.page-sports__category-name {
  font-size: 1.1em;
  color: #FFD36B;
  font-weight: bold;
}

/* Live Betting Section */
.page-sports__live-betting {
  background-color: #0A0A0A;
}

.page-sports__live-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

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

.page-sports__live-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-sports__live-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Betting Guide Section */
.page-sports__betting-guide {
  background-color: #0A0A0A;
}

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

.page-sports__guide-block {
  padding: 40px;
}

.page-sports__guide-subtitle {
  font-size: 1.8em;
  color: #FFD36B;
  margin-bottom: 25px;
  font-weight: bold;
}

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

.page-sports__guide-list li {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #FFF6D6;
}

.page-sports__guide-list li strong {
  color: #FFD86A;
}

.page-sports__guide-list li::before {
  content: '✓';
  color: #FFD36B;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Promotions Section */
.page-sports__promotions {
  background-color: #0A0A0A;
}

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

.page-sports__promo-card {
  padding: 0; /* Remove padding from card as image will take space */
  overflow: hidden;
  text-align: center;
}

.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__promo-title {
  font-size: 1.5em;
  color: #FFD36B;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-sports__promo-card .page-sports__promo-text {
  font-size: 1em;
  color: #FFF6D6;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-sports__promo-card .page-sports__btn-primary {
  margin-top: auto; /* Push button to bottom */
  margin-bottom: 20px;
}

/* Partners Section */
.page-sports__partners {
  background-color: #0A0A0A;
}

.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}

.page-sports__partner-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 147px; /* 127px image height + 2*10px padding */
  width: 187px; /* 167px image width + 2*10px padding */
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-sports__partner-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.2);
}

.page-sports__partner-item img {
   /* Fixed size for partner game images */
   /* Fixed size for partner game images */
  object-fit: contain;
}

/* FAQ Section */
.page-sports__faq {
  background-color: #0A0A0A;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  padding: 0; /* FAQ card itself has no padding */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: #FFD36B;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.1); /* Subtle hover for dark background */
}

.page-sports__faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  font-weight: bold;
  color: #FFD36B;
}

.page-sports__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD36B;
  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 30px; /* Initial padding 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #111111; /* Card BG color */
  border-left: 1px solid #3A2A12;
  border-right: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

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

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #FFF6D6;
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-sports__cta-final .page-sports__section-description {
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__features-grid,
  .page-sports__promo-grid,
  .page-sports__guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .page-sports__partners-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for tablet */
  }

  .page-sports__guide-grid {
    grid-template-columns: 1fr; /* Stack guide blocks on smaller tablets */
  }
}

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

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

  .page-sports__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }

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

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .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;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Buttons container mobile adaptation */
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* Video responsive */
  .page-sports__video-container {
    padding-bottom: 66.66%; /* 3:2 aspect ratio for mobile video, or 16:9 if preferred */
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__live-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-sports__live-content {
    flex-direction: column;
  }

  .page-sports__partners-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
    padding-left: 15px;
    padding-right: 15px;
  }
}