/* style/sports.css */

/* Base styles for page-sports, assuming a white body background */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for default white body background */
  background-color: #f8f8f8; /* A very light background to give some depth, but still light */
  line-height: 1.6;
}

/* Sections that use the custom dark background */
.page-sports__hero-section,
.page-sports__introduction,
.page-sports__betting-types,
.page-sports__advantages,
.page-sports__guide,
.page-sports__featured-events,
.page-sports__security-policy,
.page-sports__promotions,
.page-sports__faq,
.page-sports__conclusion {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-sports__introduction p,
.page-sports__betting-types p,
.page-sports__advantages p,
.page-sports__guide p,
.page-sports__featured-events p,
.page-sports__security-policy p,
.page-sports__promotions p,
.page-sports__faq p,
.page-sports__conclusion p {
  color: #A7D9B8; /* Custom Text Secondary for paragraph text */
}

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

.page-sports__heading {
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 30px;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

/* Card styles */
.page-sports__card {
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-sports__card-title {
  color: #F2FFF6; /* Custom Text Main */
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-sports__card-text {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 15px;
  flex-grow: 1;
}

/* Buttons */
.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.page-sports__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
}

.page-sports__btn-text {
  color: #2AD16F;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  margin-top: 10px;
  display: inline-block;
}

.page-sports__btn-text:hover {
  color: #57E38D; /* Glow color for hover */
  text-decoration: underline;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Align content to top of hero image */
  overflow: hidden;
  min-height: 500px;
  padding-bottom: 60px; /* Space for content below image */
  background-color: #08160F; /* Fallback for image loading */
  padding-top: 10px; /* Small top padding for hero section */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  max-height: 700px; /* Limit hero image height */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 100px 20px 40px; /* Adjusted padding for top-aligned content */
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.6) 50%, rgba(8, 22, 15, 0.3) 100%); /* Gradient for text readability */
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color */
}

.page-sports__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
  max-width: 700px;
  color: #A7D9B8;
}

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

/* Grid layout for cards */
.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-sports__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__list-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.page-sports__list-item .page-sports__list-title {
  color: #F2FFF6;
  font-size: 20px;
  margin-bottom: 10px;
}

.page-sports__list-item p {
  color: #A7D9B8;
}

.page-sports__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-top: 30px;
}

.page-sports__ordered-list .page-sports__list-item {
  background-color: transparent;
  border: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-sports__ordered-list .page-sports__list-item .page-sports__list-title {
  color: #57E38D; /* Glow color for step titles */
  font-size: 20px;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-sports__cta-center .page-sports__btn-primary,
.page-sports__cta-center .page-sports__btn-secondary {
  margin: 0 10px;
}

/* FAQ styles */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* 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-weight: 600;
  font-size: 18px;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #2E7A4E;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    max-height: 600px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    min-height: 350px;
    padding-bottom: 30px;
  }

  .page-sports__hero-image {
    max-height: 400px;
  }

  .page-sports__hero-content {
    padding-top: 60px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-sports__hero-description {
    font-size: clamp(15px, 3vw, 18px);
  }

  .page-sports__heading {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-sports__cta-buttons .page-sports__btn-primary,
  .page-sports__cta-buttons .page-sports__btn-secondary {
    width: 100%;
    margin: 0;
    padding: 15px 20px;
  }

  .page-sports__section,
  .page-sports__container {
    padding: 40px 15px;
  }

  /* Force responsive for images */
  .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,
  .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;
  }
  
  .page-sports__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }

  .page-sports__cta-center .page-sports__btn-primary,
  .page-sports__cta-center .page-sports__btn-secondary {
    width: calc(100% - 30px); /* Account for padding */
    margin-bottom: 10px;
  }

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

  .page-sports__faq-answer {
    padding: 0 20px 15px;
    font-size: 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-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;
  }
}