/* style/sports.css */

/* Base styles and typography for the page-sports scope */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-subtitle {
  font-size: 1.2em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__card-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__highlight {
  color: #FFFF00; /* Highlight color for keywords */
  font-weight: bold;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0 60px; /* Adjusted for content and image */
  text-align: center;
  overflow: hidden;
  min-height: 600px;
  box-sizing: border-box;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for better text contrast */
}

.page-sports__hero-title {
  font-size: 3.8em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
  font-size: 1.4em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

.page-sports__cta-buttons--center {
  margin-top: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-sports__btn-primary:hover {
  background-color: #e01a1a;
  border-color: #e01a1a;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-sports__btn-small {
  padding: 10px 25px;
  font-size: 1em;
}

.page-sports__btn-large {
  padding: 18px 45px;
  font-size: 1.2em;
}

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
}

.page-sports__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-sports__text-block p {
  margin-bottom: 15px;
  color: #e0e0e0;
  font-size: 1.05em;
}

.page-sports__image-wrapper {
  text-align: center;
}

.page-sports__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-sports__feature-card {
  background-color: rgba(1, 116, 57, 0.15); /* Main color with transparency */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(1, 116, 57, 0.5);
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 400px; /* Ensure images are not tiny icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-sports__feature-card p {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Bet Types Section */
.page-sports__bet-types-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-sports__type-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__type-card p {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.page-sports__step-item {
  background-color: rgba(1, 116, 57, 0.2);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(1, 116, 57, 0.5);
}

.page-sports__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__step-item p {
  color: #e0e0e0;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__tip-block {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
}

.page-sports__tip-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-sports__tip-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sports__tip-block li {
  color: #e0e0e0;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05em;
}

.page-sports__tip-block li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #017439; /* Use brand color for bullet */
}

/* Promotions Section */
.page-sports__promo-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__promo-image {
  width: 100%;
  max-width: 600px; /* Ensure images are not tiny icons */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-sports__promo-card p {
  color: #e0e0e0;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__promo-note {
  color: #aaaaaa;
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-sports__faq-item {
  background-color: rgba(1, 116, 57, 0.15);
  border: 1px solid #017439;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #02944b;
}

.page-sports__faq-heading {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  color: #e0e0e0;
  font-size: 1em;
}

.page-sports__faq-answer .page-sports__btn-primary {
  margin-top: 20px;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-sports__conclusion-text {
  font-size: 1.15em;
  color: #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

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

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

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

  .page-sports__content-image {
    margin-top: 30px;
  }
}

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

  .page-sports__hero-section {
    padding: 80px 0 40px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-sports__about-section,
  .page-sports__features-section,
  .page-sports__bet-types-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section {
    padding: 50px 0;
  }

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

  .page-sports__content-grid,
  .page-sports__features-grid,
  .page-sports__bet-type-grid,
  .page-sports__guide-steps,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__content-image,
  .page-sports__feature-icon,
  .page-sports__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

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

  .page-sports__tip-block {
    padding: 20px;
  }

  .page-sports__tip-title {
    font-size: 1.4em;
  }

  .page-sports__tip-block li {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }

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

  .page-sports__card-title {
    font-size: 1.3em;
  }

  .page-sports__btn-large {
    font-size: 1em;
    padding: 12px 30px;
  }
}

/* Ensure images within content areas are not smaller than 200px */
.page-sports__content-area img,
.page-sports__text-block img,
.page-sports__features-grid img,
.page-sports__promo-grid img {
  min-width: 200px;
  min-height: 200px;
  width: auto; /* Allow natural width if not full-width */
  height: auto;
}

/* Override for specific small images if any, but ensure minimum size */
/* This rule ensures content images don't get shrunk below 200px by accident */
.page-sports img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-sports img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Still enforce min-width for content images */
    min-height: 200px !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;
    overflow-x: hidden;
  }
  
  /* Ensure buttons wrap if they are in a flex container */
  .page-sports__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Consistent with common fragment */
  }
}