/* style/sports.css */

/* --- Global styles for page-sports scope --- */
.page-sports {
  background-color: var(--bg-color, #08160F); /* Main background from custom colors */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on wider elements */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-sports__text-block {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-small {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-top: 20px;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green, #0A4B2C); /* Fallback background for hero */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Limit hero image height */
  object-fit: cover;
  display: block;
  margin-bottom: 40px; /* Space between image and content */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-sports__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1;
}

.page-sports__main-title {
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2.2em, 4vw, 3.5em); /* Example clamp for responsive H1 */
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure button minimum width */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure button does not overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: var(--text-main, #F2FFF6); /* White text on dark button */
  border: none;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--text-main, #F2FFF6); /* White text on transparent button */
  border: 2px solid var(--border-color, #2E7A4E); /* Custom border color */
}

.page-sports__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

/* --- About Section & Dark Sections --- */
.page-sports__dark-section {
  background-color: var(--card-bg, #11271B); /* Dark background for these sections */
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
  padding: 60px 0;
}

.page-sports__about-section .page-sports__text-block {
  text-align: left;
}


/* --- Categories Section --- */
.page-sports__categories-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F); /* Consistent background */
}

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

.page-sports__card {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__card-image {
  width: 100%;
  height: 220px; /* Fixed height for card images */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
  padding: 0 15px;
}

/* --- Bet Types Section --- */
.page-sports__bet-types-section {
  padding: 60px 0;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--glow-color, #57E38D); /* Highlight with glow color */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: left;
}

.page-sports__list-item strong {
  color: var(--text-main, #F2FFF6);
}

/* --- Live Betting Section --- */
.page-sports__live-betting-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-sports__image-margin-top {
  margin-top: 60px;
}

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

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

.page-sports__promo-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-sports__promo-title {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__promo-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* --- Guide Section --- */
.page-sports__guide-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for steps */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--gold-color, #F2C14E); /* Use gold for step titles */
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Tips Section --- */
.page-sports__tips-section {
  padding: 60px 0;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color, #08160F);
}

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

.page-sports__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  outline: none;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Hide default marker */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
}

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: left;
}

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

.page-sports__faq-answer a {
  color: var(--glow-color, #57E38D);
  text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-sports__final-cta-section {
  padding: 80px 0;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Adjust H1 for smaller screens */
    padding: 0 10px;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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: 12px 20px;
  }

  .page-sports__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-sports__text-block {
    font-size: 1em;
  }

  .page-sports__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-sports__card-image,
  .page-sports__promo-image,
  .page-sports__image-full-width,
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  
  /* Video responsiveness (if any, though this page has none) */
  .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-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  .page-sports__steps-grid {
    grid-template-columns: 1fr;
  }

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

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

/* --- Color Contrast Safeguards --- */
/* Body background is dark, so default text is light. */
/* Explicitly setting text colors based on section backgrounds for clarity */

.page-sports__dark-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
}

.page-sports__light-bg {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for contrast against main bg */
  color: var(--text-secondary, #A7D9B8);
}

/* Ensure all links have sufficient contrast */
.page-sports a {
  color: var(--glow-color, #57E38D); /* Using glow color for general links */
  text-decoration: none;
}
.page-sports a:hover {
  text-decoration: underline;
}

/* Ensure images do not use filter */
.page-sports img {
  filter: none !important; /* Absolutely no filter */
}

/* Content area images CSS dimensions */
.page-sports__card-image,
.page-sports__promo-image,
.page-sports__image-full-width {
  /* These are already set to min 200px in HTML width/height and CSS object-fit/height */
  /* And max-width: 100% for responsiveness */
  /* The min-width/height ensures they don't go below 200px */
}