/* 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: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

/* Utility container for consistent spacing */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-sports__section-description--light {
  color: #f0f0f0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

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

.page-sports__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808; /* Use register/login color for border */
}

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

.page-sports__btn-secondary--large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

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

/* Card styles */
.page-sports__card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for dark body */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text for dark background */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(1, 116, 57, 0.7)); /* Dark overlay with brand color */
  z-index: 2;
}

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

.page-sports__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Feature Section */
.page-sports__feature-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Ensure dark background for consistency */
}

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

.page-sports__feature-heading {
  font-size: 1.8rem;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
}

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

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  background-color: #017439; /* Brand color background */
  text-align: center;
}

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

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

.page-sports__video-caption {
  color: #f0f0f0;
  font-size: 1rem;
  margin-top: 15px;
}

/* Sports Variety Section */
.page-sports__sports-variety-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-sports__image-gallery {
  text-align: center;
  margin-bottom: 50px;
}

.page-sports__gallery-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center the image */
}

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

.page-sports__sports-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__category-title {
  font-size: 1.6rem;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__sports-category ul {
  list-style: none;
  padding: 0;
}

.page-sports__sports-category li {
  color: #f0f0f0;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-sports__sports-category li::before {
  content: '•';
  color: #017439;
  position: absolute;
  left: 0;
}

/* Odds Analysis Section */
.page-sports__odds-analysis-section {
  padding: 80px 0;
  background-color: #017439;
}

.page-sports__content-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-sports__column-text {
  flex: 1;
  color: #ffffff;
}

.page-sports__column-text--light {
  color: #ffffff;
}

.page-sports__column-heading {
  font-size: 2rem;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 20px;
}

.page-sports__column-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-sports__column-text li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-sports__column-text li strong {
  color: #FFFF00; /* Custom font color for emphasis */
}

.page-sports__column-text li::before {
  content: '✓';
  color: #FFFF00; /* Custom font color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-sports__column-image {
  flex: 1;
  text-align: center;
}

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

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

.page-sports__guide-step {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-sports__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  border: 3px solid #FFFF00; /* Custom font color for border */
}

.page-sports__step-heading {
  font-size: 1.8rem;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 15px;
}

.page-sports__step-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Strategy Section */
.page-sports__strategy-section {
  padding: 80px 0;
  background-color: #017439;
}

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

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

.page-sports__promo-card {
  text-align: center;
}

.page-sports__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto; /* Center the image */
  margin-right: auto; /* Center the image */
}

.page-sports__promo-title {
  font-size: 1.8rem;
  color: #FFFF00; /* Custom font color */
  margin-bottom: 10px;
}

.page-sports__promo-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #017439;
}

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

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFFF00; /* Custom font color */
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  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: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

.page-sports__faq-answer .page-sports__faq-image {
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  background-color: #017439;
  text-align: center;
}

.page-sports__cta-container {
  max-width: 900px;
}

.page-sports__cta-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__cta-title--light {
  color: #ffffff;
}

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

.page-sports__cta-description--light {
  color: #f0f0f0;
}

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

/* Image and Column Layouts */
.page-sports__content-columns {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 3rem;
  }
  .page-sports__hero-description {
    font-size: 1.1rem;
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
  .page-sports__column-heading {
    font-size: 1.6rem;
  }
  .page-sports__content-columns {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__column-image {
    order: -1; /* Image first on smaller screens */
  }
  .page-sports__column-text ul {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-sports__hero-title {
    font-size: 2.2rem;
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-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__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__section-title {
    font-size: 1.8rem;
  }
  .page-sports__section-description {
    font-size: 0.95rem;
  }
  .page-sports__feature-grid,
  .page-sports__guide-steps,
  .page-sports__promotions-grid,
  .page-sports__sports-list {
    grid-template-columns: 1fr;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile video section */
  }
  .page-sports__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Content area image rules for mobile */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__container,
  .page-sports__feature-section,
  .page-sports__video-section,
  .page-sports__sports-variety-section,
  .page-sports__odds-analysis-section,
  .page-sports__guide-section,
  .page-sports__strategy-section,
  .page-sports__promotions-section,
  .page-sports__live-betting-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-title {
    font-size: 2rem;
  }
  .page-sports__cta-description {
    font-size: 1rem;
  }
  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8rem;
  }
  .page-sports__hero-description {
    font-size: 0.9rem;
  }
  .page-sports__section-title {
    font-size: 1.5rem;
  }
  .page-sports__cta-title {
    font-size: 1.8rem;
  }
  .page-sports__feature-heading,
  .page-sports__column-heading,
  .page-sports__step-heading,
  .page-sports__promo-title {
    font-size: 1.4rem;
  }
  .page-sports__category-title {
    font-size: 1.3rem;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-sports__dark-bg {
  color: #ffffff; /* Deep background color */
}

.page-sports__light-bg {
  color: #333333; /* Light background color */
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Specific contrast for buttons */
.page-sports__btn-primary {
  background: #C30808;
  color: #FFFF00;
}

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

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