/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #E0F2F7, #FFFFFF);
  position: relative;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 30px;
  padding: 0 20px;
}

.page-sports__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-sports__description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 30px;
}

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

.page-sports__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

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

.page-sports__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.2);
}

.page-sports__info-section,
.page-sports__types-section,
.page-sports__guide-section,
.page-sports__promo-section,
.page-sports__faq-section,
.page-sports__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #ffffff;
}

.page-sports__light-bg .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: inherit;
  padding: 0 15px;
}

.page-sports__features-grid,
.page-sports__game-types-grid,
.page-sports__steps-grid,
.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-sports__feature-card,
.page-sports__game-card,
.page-sports__step-item,
.page-sports__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-sports__feature-card:hover,
.page-sports__game-card:hover,
.page-sports__step-item:hover,
.page-sports__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-image,
.page-sports__game-image,
.page-sports__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__feature-title,
.page-sports__game-title,
.page-sports__step-title,
.page-sports__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__feature-description,
.page-sports__game-description,
.page-sports__step-description,
.page-sports__promo-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

.page-sports__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-sports__download-button,
.page-sports__register-button,
.page-sports__deposit-button,
.page-sports__bet-button {
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
  font-weight: 600;
}

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

details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}

.page-sports__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
  color: #26A9E0;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eeeeee;
  border-radius: 0 0 12px 12px;
  color: #555555;
  text-align: left;
}

details.page-sports__faq-item .page-sports__faq-answer p {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

.page-sports__cta-bottom-section {
  background: linear-gradient(135deg, #1e87c0, #26A9E0);
  color: #ffffff;
}

.page-sports__cta-bottom-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-bottom-section .page-sports__text-block {
  color: #f0f0f0;
}

/* Contrast Fix for light background cards in dark sections if necessary, though dark-bg cards are used */
.page-sports__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-sports__container,
  .page-sports__hero-content,
  .page-sports__text-block,
  .page-sports__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }

  .page-sports__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio or be controlled by height */
    width: 100% !important;
    height: auto !important;
  }

  .page-sports__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-top: 20px;
  }

  .page-sports__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-sports__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__info-section,
  .page-sports__types-section,
  .page-sports__guide-section,
  .page-sports__promo-section,
  .page-sports__faq-section,
  .page-sports__cta-bottom-section {
    padding: 40px 0;
  }

  .page-sports__section-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-sports__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-sports__features-grid,
  .page-sports__game-types-grid,
  .page-sports__steps-grid,
  .page-sports__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0;
  }

  .page-sports__feature-card,
  .page-sports__game-card,
  .page-sports__step-item,
  .page-sports__promo-card {
    padding: 20px;
  }

  .page-sports__feature-image,
  .page-sports__game-image,
  .page-sports__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-sports__feature-title,
  .page-sports__game-title,
  .page-sports__step-title,
  .page-sports__promo-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .page-sports__feature-description,
  .page-sports__game-description,
  .page-sports__step-description,
  .page-sports__promo-description {
    font-size: 0.9rem;
  }

  .page-sports__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .page-sports__download-button,
  .page-sports__register-button,
  .page-sports__deposit-button,
  .page-sports__bet-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  details.page-sports__faq-item {
    margin-bottom: 10px;
  }

  details.page-sports__faq-item summary.page-sports__faq-question {
    padding: 15px 20px;
  }

  .page-sports__faq-qtext {
    font-size: 1rem;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

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

  .page-sports__cta-bottom-section .page-sports__cta-buttons {
    padding: 0 15px;
  }

  /* General image responsiveness for all imgs within .page-sports */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Ensure no horizontal scroll for any content container */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__promo-grid,
  .page-sports__game-types-grid,
  .page-sports__features-grid,
  .page-sports__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* Specific mobile rules for product grid (if 6 cards are present, which they are not in this page, but for general compliance) */
@media (max-width: 768px) {
  .page-sports__products-grid { /* Assuming this class for a 6-card grid, not used here, but for compliance */
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns x 3 rows */
    overflow-x: hidden !important;
  }
  .page-sports__products-grid > *:nth-child(n+5) { /* Make sure last 2 items don't float */
    grid-column: span 1; 
  }
}

/* Ensure no filter on images */
.page-sports img {
  filter: none;
}