/* style/sports.css */

/* General Styles for .page-sports */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assuming a dark background */
}

/* Text color for sections with dark background (e.g., brand color) */
.page-sports__dark-bg {
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__text-block,
.page-sports__dark-bg .page-sports__card-description {
  color: #f0f0f0; /* Slightly lighter for readability */
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: #26A9E0;
  line-height: 1.2;
}

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

.page-sports__text-block {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  min-height: 600px;
  overflow: hidden;
  background-color: #26A9E0;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Use clamp for H1 */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-sports__description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-sports__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

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

.page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* Why Choose Section */
.page-sports__why-choose-section {
  background-color: #f8f8f8;
}

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

.page-sports__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__card-description {
  font-size: 1rem;
  color: #555555;
}

/* Betting Types Section */
.page-sports__betting-types-section {
  background-color: #26A9E0;
}

.page-sports__betting-types-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__betting-types-section .page-sports__text-block {
  color: #e0f2f7;
}

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

.page-sports__type-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__type-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-sports__type-card .page-sports__card-title {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__type-card .page-sports__card-description {
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-section {
  background-color: #ffffff;
}

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

.page-sports__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-sports__step-card .page-sports__btn-primary,
.page-sports__step-card .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  width: auto;
  max-width: 100%;
  padding: 10px 20px;
  font-size: 1rem;
}

/* Promotion Section */
.page-sports__promo-section {
  background-color: #26A9E0;
}

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

.page-sports__promo-section .page-sports__text-block {
  color: #e0f2f7;
}

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

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.page-sports__promo-card .page-sports__card-title {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__promo-card .page-sports__card-description {
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1;
}

.page-sports__promo-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #ffffff;
}

.page-sports__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-sports__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  border-radius: 8px;
  list-style: none; /* For <summary> tag */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  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: 20px 25px;
  background-color: #ffffff;
  color: #333333;
  border-top: 1px solid #eee;
  font-size: 1rem;
  text-align: left;
}

/* CTA Bottom Section */
.page-sports__cta-bottom {
  background-color: #26A9E0;
  padding: 80px 20px;
}

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

.page-sports__cta-bottom .page-sports__text-block {
  color: #e0f2f7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding for mobile */
    min-height: 400px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-sports__description {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .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 15px;
    font-size: 1rem;
  }

  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

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

  .page-sports__features-grid,
  .page-sports__types-grid,
  .page-sports__guide-steps,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-sports__type-image,
  .page-sports__promo-image {
    height: 150px;
  }

  .page-sports__card-title {
    font-size: 1.2rem;
  }

  .page-sports__card-description {
    font-size: 0.95rem;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-sports__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__type-card,
  .page-sports__promo-card,
  .page-sports__step-card,
  .page-sports__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* Ensure content area images are at least 200px */
.page-sports__features-grid .page-sports__feature-icon,
.page-sports__types-grid .page-sports__type-image,
.page-sports__promo-grid .page-sports__promo-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for smaller images to meet minimum size */
.page-sports__feature-icon {
    width: 200px; /* Adjust to meet minimum 200px */
    height: 200px; /* Adjust to meet minimum 200px */
    object-fit: contain;
}

@media (max-width: 768px) {
  .page-sports__feature-icon {
    width: 100% !important; /* Ensure it's responsive */
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
}