/* style/sports.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--bg-color); /* Matches custom background color */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 18px;
  color: var(--text-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-sports__dark-bg {
  background-color: var(--bg-color);
  color: var(--text-main-color);
}

.page-sports__light-bg {
  background-color: #11271B; /* Using card-bg for light section to ensure contrast with text-main */
  color: var(--text-main-color);
}

.page-sports__card {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
}

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

.page-sports__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for desktop */
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content-wrapper {
  position: relative; /* Ensure content is above any background effects */
  z-index: 10; /* Ensure content is on top */
  text-align: center;
  padding: 40px 0;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the bottom of the image for visual flow */
}

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-sports__description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-sports__intro-section {
  padding: 60px 20px;
}

.page-sports__intro-section p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 17px;
  color: var(--text-main-color);
  text-align: justify;
}

/* Betting Types Section */
.page-sports__betting-types-section {
  padding: 60px 20px;
}

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

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

/* Advantages Section */
.page-sports__advantages-section {
  padding: 60px 20px;
}

.page-sports__advantage-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 60px 20px;
}

.page-sports__step-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-sports__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: var(--card-bg-color);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.page-sports__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-sports__guide-step-image {
  width: 300px;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__step-content {
  flex-grow: 1;
}

.page-sports__step-content p {
  line-height: 1.6;
  color: var(--text-secondary-color);
}

/* Leagues Section */
.page-sports__leagues-section {
  padding: 60px 20px;
}

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

.page-sports__league-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__more-leagues-cta {
  text-align: center;
  margin-top: 40px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 60px 20px;
}

.page-sports__promotion-card {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-bottom: 30px;
  align-items: center;
  padding: 30px;
}

.page-sports__promotion-card:last-child {
  margin-bottom: 0;
}

.page-sports__promotion-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promotion-content {
  flex-grow: 1;
  text-align: left;
}

.page-sports__promotion-content .page-sports__card-title {
  margin-top: 0;
  text-align: left;
}

.page-sports__promotion-content p {
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-sports__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  background-color: var(--deep-green-color);
  user-select: none;
  list-style: none; /* For details tag */
}

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

.page-sports__faq-question:hover {
  background-color: rgba(var(--deep-green-color), 0.8);
}

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary-color);
  background-color: rgba(var(--card-bg-color), 0.7);
}

/* Final CTA Section */
.page-sports__cta-final {
  padding: 60px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content-wrapper {
    margin-top: -100px;
  }
  .page-sports__promotion-card {
    flex-direction: column;
  }
  .page-sports__promotion-image {
    width: 100%;
  }
  .page-sports__promotion-content {
    text-align: center;
  }
  .page-sports__promotion-content .page-sports__card-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }
  .page-sports__hero-content-wrapper {
    margin-top: -50px;
    padding: 20px 0;
  }
  .page-sports__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-sports__description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-sports__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-sports__section-description {
    font-size: 16px;
  }
  
  /* General Image/Video/Container/Button Responsive */
  .page-sports img,
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
  .page-sports__cta-button,
  .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 {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
  .page-sports__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  /* Specific image size overrides to ensure minimum 200px on mobile */
  .page-sports__betting-card-image,
  .page-sports__advantage-icon,
  .page-sports__league-logo {
    width: 200px !important;
    height: 200px !important;
    object-fit: contain;
  }
  .page-sports__guide-step-image {
    width: 100% !important;
    height: auto !important;
    max-width: 250px !important; /* Limit width for image in step */
    margin: 0 auto 20px auto; /* Center image */
  }

  /* Guide Section */
  .page-sports__step-item {
    flex-direction: column !important;
    text-align: center;
  }
  .page-sports__step-item:nth-child(even) {
    flex-direction: column !important;
  }

  /* Promotions Section */
  .page-sports__promotion-card {
    flex-direction: column;
    padding: 20px;
  }
  .page-sports__promotion-image {
    width: 100%;
    height: auto;
  }
  .page-sports__promotion-content {
    text-align: center;
  }
  .page-sports__promotion-content .page-sports__card-title {
    text-align: center;
  }

  /* FAQ Section */
  .page-sports__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    font-size: 15px;
    padding: 10px 20px 15px;
  }
}