/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light background */
  background: var(--background-color, #ffffff); /* Assuming light body background from shared.css */
  line-height: 1.6;
}

.page-sports__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-sports__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, relying on body for header offset */
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__hero-content {
  margin-bottom: 30px;
  order: 2; /* Content below image on desktop, above on mobile */
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
  order: 1; /* Image above content on desktop, below on mobile */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* CTA Buttons */
.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

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

.page-sports__btn-secondary {
  background: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

.page-sports__btn-link {
  background: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 16px;
}

.page-sports__btn-link:hover {
  background: #017439;
  color: #ffffff;
}

.page-sports__cta-container {
  text-align: center;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Features Section */
.page-sports__features-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

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

.page-sports__feature-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-sports__feature-icon {
  width: 100%; /* Ensure images are not icons */
  height: auto;
  max-width: 250px; /* Example max-width for feature images */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #555555;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 20px;
}

.page-sports__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__category-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-sports__category-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__category-title {
  font-size: 24px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__category-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  background: #eaf7ed; /* Light green background */
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 10px;
  margin-bottom: 60px;
}

.page-sports__live-betting-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__live-betting-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

.page-sports__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__promo-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

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

.page-sports__guide-step {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__step-text {
  font-size: 16px;
  color: #555555;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* Responsive styles */
@media (min-width: 1024px) {
  .page-sports__hero-section {
    flex-direction: row;
    text-align: left;
    gap: 40px;
    padding-bottom: 80px;
  }
  .page-sports__hero-content {
    flex: 1;
    margin-bottom: 0;
    order: 1;
  }
  .page-sports__hero-image-wrapper {
    flex: 1;
    margin-bottom: 0;
    order: 2;
  }
  .page-sports__hero-cta-buttons {
    justify-content: flex-start;
  }
  .page-sports__live-betting-section {
    flex-direction: row;
    gap: 40px;
    text-align: left;
  }
  .page-sports__live-betting-content {
    flex: 1;
    margin-bottom: 0;
  }
  .page-sports__live-betting-image-wrapper {
    flex: 1;
  }
}

@media (max-width: 1023px) {
  .page-sports__section-title {
    font-size: 28px;
  }
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__section-title {
    font-size: 24px;
    padding-top: 30px;
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-sports__hero-section {
    padding: 10px 15px 40px;
  }
  .page-sports__hero-title {
    font-size: 32px;
  }
  .page-sports__hero-description {
    font-size: 16px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section {
    padding: 40px 15px;
  }

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

  .page-sports__feature-card,
  .page-sports__category-card,
  .page-sports__promo-card,
  .page-sports__guide-step {
    padding: 20px;
  }

  .page-sports__feature-title,
  .page-sports__category-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 20px;
  }

  .page-sports__feature-text,
  .page-sports__category-text,
  .page-sports__promo-text,
  .page-sports__step-text {
    font-size: 15px;
  }

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