/* style/sports.css */

/* Custom Colors */
:root {
  --page-sports-bg: #08160F;
  --page-sports-card-bg: #11271B;
  --page-sports-text-main: #F2FFF6;
  --page-sports-text-secondary: #A7D9B8;
  --page-sports-border: #2E7A4E;
  --page-sports-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-sports-glow: #57E38D;
  --page-sports-gold: #F2C14E;
  --page-sports-divider: #1E3A2A;
  --page-sports-deep-green: #0A4B2C;
}

.page-sports {
  color: var(--page-sports-text-main); /* Ensure light text on dark body background */
  background-color: var(--page-sports-bg);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-sports__hero-section,
.page-sports__features-section,
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__getting-started-section,
.page-sports__faq-section,
.page-sports__responsible-gambling-section,
.page-sports__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-sports-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description,
.page-sports__section-description {
  font-size: 1.1rem;
  color: var(--page-sports-text-secondary);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-cta-buttons,
.page-sports__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-sports__btn-primary {
  background: var(--page-sports-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--page-sports-text-main);
  border: 2px solid var(--page-sports-deep-green);
}

.page-sports__btn-secondary:hover {
  background: var(--page-sports-deep-green);
  color: #ffffff;
}

.page-sports__btn-link {
  background: var(--page-sports-deep-green);
  color: var(--page-sports-text-main);
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-sports__btn-link:hover {
  background: var(--page-sports-glow);
  color: var(--page-sports-bg);
}

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

.page-sports__btn-center {
  margin: 40px auto 0 auto;
  display: block;
  max-width: 300px;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-sports-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

/* Grid Layouts */
.page-sports__features-grid,
.page-sports__categories-grid,
.page-sports__promotions-grid,
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-sports__feature-card,
.page-sports__category-card,
.page-sports__promo-card,
.page-sports__step-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__feature-card:hover,
.page-sports__category-card:hover,
.page-sports__promo-card:hover,
.page-sports__step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-sports__feature-image,
.page-sports__category-image,
.page-sports__promo-image,
.page-sports__step-image {
  width: 100%;
  height: 250px; /* Consistent height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--page-sports-deep-green);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  color: var(--page-sports-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__card-text {
  font-size: 1rem;
  color: var(--page-sports-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Video Section */
.page-sports__live-betting-section {
  background-color: var(--page-sports-deep-green);
  padding: 60px 20px;
  border-radius: 15px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure width is 100% for desktop as well */
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer; /* Indicate clickable */
  max-width: 100%; /* Ensure video fits its container */
  height: auto; /* Maintain aspect ratio */
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: var(--page-sports-card-bg);
  border: 1px solid var(--page-sports-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-sports-text-main);
  background-color: var(--page-sports-deep-green);
  border-bottom: 1px solid var(--page-sports-divider);
  list-style: none; /* For <details> summary */
}

.page-sports__faq-question::-webkit-details-marker { /* For <details> summary */
  display: none;
}

.page-sports__faq-question:hover {
  background-color: var(--page-sports-glow);
  color: var(--page-sports-bg);
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--page-sports-text-secondary);
  line-height: 1.7;
  background-color: var(--page-sports-card-bg);
  border-top: 1px solid var(--page-sports-divider);
}

.page-sports__responsible-gambling-section {
  background-color: var(--page-sports-bg);
  border-top: 1px solid var(--page-sports-divider);
  margin-top: 50px;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__getting-started-section,
  .page-sports__faq-section,
  .page-sports__responsible-gambling-section,
  .page-sports__final-cta-section {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__getting-started-section,
  .page-sports__faq-section,
  .page-sports__responsible-gambling-section,
  .page-sports__final-cta-section {
    padding: 40px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-content {
    padding: 15px;
  }

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

  .page-sports__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-sports__hero-cta-buttons,
  .page-sports__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .page-sports__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: 10px !important;
  }

  .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;
  }

  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
    height: 0 !important;
  }

  .page-sports__feature-image,
  .page-sports__category-image,
  .page-sports__promo-image,
  .page-sports__step-image {
    height: auto;
  }

  .page-sports__card-title {
    font-size: 1.3rem;
  }

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

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