/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--bg-color, #08160F); /* Default background color from custom palette */
}

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

.page-sports__dark-bg {
  background-color: var(--bg-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

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

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--glow-color, #57E38D);
  border-radius: 2px;
}

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

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-sports__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

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

.page-sports__description {
  font-size: 1.2em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 40px;
}

.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: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
  text-align: center;
}

/* Sports Categories & Bet Types Grid */
.page-sports__sports-categories,
.page-sports__bet-types {
  padding: 80px 0;
  text-align: center;
}

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

.page-sports__card {
  background-color: var(--card-bg-color, #11271B); /* Custom card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
  color: var(--text-main-color, #F2FFF6);
  padding-bottom: 20px;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

.page-sports__card-text {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-sports__card-link {
  display: inline-block;
  background-color: var(--deep-green-color, #0A4B2C);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.page-sports__card-link:hover {
  background-color: var(--main-color, #11A84E);
}

/* Benefits Section */
.page-sports__benefits-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-sports__benefit-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-sports__benefit-icon {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
}

.page-sports__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 10px;
}

.page-sports__benefit-text {
  font-size: 0.95em;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__guide-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-sports__guide-step-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-sports__guide-text {
  font-size: 1em;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Promo Section */
.page-sports__promo-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 40px auto;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-sports__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__promo-item {
  font-size: 1.1em;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.page-sports__promo-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--glow-color, #57E38D);
  font-weight: bold;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__faq-list {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
}

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

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

.page-sports__faq-question {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-sports__faq-qtext {
  color: var(--text-main-color, #F2FFF6);
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--glow-color, #57E38D);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

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

/* Bottom CTA Section */
.page-sports__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

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

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

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset, small padding for hero */
  }

  .page-sports__cta-buttons {
    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: 12px 20px;
  }

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

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__card-image,
  .page-sports__promo-image {
    min-width: unset;
    min-height: unset;
    height: auto;
  }

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

  .page-sports__intro-section,
  .page-sports__sports-categories,
  .page-sports__bet-types,
  .page-sports__benefits-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__faq-section,
  .page-sports__cta-bottom {
    padding: 40px 0;
  }

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

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

  /* Ensure content area images are not smaller than 200px */
  .page-sports__card-image, .page-sports__promo-image {
    width: 100%; /* Will scale down from HTML width/height */
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min size even with auto scaling */
    min-height: 200px;
  }
}

/* Image CSS dimensions for content areas - must not be smaller than 200px */
.page-sports__hero-image,
.page-sports__card-image,
.page-sports__promo-image {
  /* These are already defined with width: 100% and object-fit: cover for responsiveness */
  /* HTML width/height attributes define the aspect ratio for CLS */
  /* CSS ensures they don't get smaller than 200px where applicable */
  min-width: 200px;
  min-height: 200px;
}

/* Additional specific overrides for images in content areas to ensure min 200px */
/* The following rules ensure that any image within .page-sports that could be selected */
/* will not be displayed smaller than 200px, respecting the 'content display image' rule */
.page-sports__grid img,
.page-sports__promo-section img {
  width: auto; /* Allow image to scale, but respect min-width/height */
  height: auto;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}