/* style/sports.css */

/* Base Styles */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-sports__section {
  padding: 60px 0;
}

.page-sports__section-title {
  font-size: 2.5em;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__card--dark {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-sports__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
}

.page-sports__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-sports__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn--secondary {
  background: transparent;
  color: #2AD16F; /* Green from gradient */
  border: 2px solid #2AD16F;
}

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

.page-sports__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  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.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-sports__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #F2FFF6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Video Section */
.page-sports__section--video {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #08160F;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 30px;
  border-radius: 10px;
}

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

.page-sports__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #F2FFF6;
  font-size: 1.8em;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  border-radius: 10px;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay-link {
  opacity: 1;
}

/* Intro Section */
.page-sports__section--intro {
  background-color: #08160F;
}

.page-sports__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Popular Sports Section */
.page-sports__section--popular-sports {
  background-color: #08160F;
}

.page-sports__image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-sports__image--center {
  margin-left: auto;
  margin-right: auto;
}

.page-sports__sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* How-to-Bet Section */
.page-sports__section--how-to-bet {
  background-color: #08160F;
}

.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-sports__step-card .page-sports__card-title {
  font-size: 1.3em;
  color: #57E38D; /* Glow */
}

/* Advantages Section */
.page-sports__section--advantages {
  background-color: #08160F;
}

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

/* Strategies Section */
.page-sports__section--strategies {
  background-color: #08160F;
}

.page-sports__strategies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

/* FAQ Section */
.page-sports__section--faq {
  background-color: #08160F;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #11271B; /* Card BG */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-sports__faq-question:hover {
  background-color: #1E3A2A; /* Divider */
}

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

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

.page-sports__faq-answer {
  padding: 20px;
  padding-top: 0;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left: 1px solid #2E7A4E;
  border-right: 1px solid #2E7A4E;
  border-bottom: 1px solid #2E7A4E;
  color: #A7D9B8;
  font-size: 0.95em;
}

/* Details open state for FAQ */
details[open] > summary.page-sports__faq-question {
  background-color: #1E3A2A;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Conclusion Section */
.page-sports__section--conclusion {
  background-color: #08160F;
  text-align: center;
}

.page-sports__conclusion-text {
  font-size: 1.15em;
  color: #A7D9B8;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__grid,
  .page-sports__sports-grid,
  .page-sports__steps-grid,
  .page-sports__features-grid,
  .page-sports__strategies-list {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .page-sports__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

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

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

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

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

  .page-sports__hero-image-wrapper,
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-wrapper,
  .page-sports__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* 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 {
    padding-top: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile button responsiveness */
  .page-sports__btn,
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  .page-sports__faq-item,
  .page-sports__intro-card,
  .page-sports__sport-card,
  .page-sports__step-card,
  .page-sports__feature-item,
  .page-sports__strategy-item {
    padding: 20px;
  }

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

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