/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: var(--Background, #F5F7FA); /* Inherit from shared.css */
}

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

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

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

.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

.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;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: 40px;
}

.page-sports__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* H1 title with clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-category,
.page-sports__btn-promo,
.page-sports a[class*="button"],
.page-sports a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-sports__features-section,
.page-sports__live-betting-section,
.page-sports__guide-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Light background */
}

.page-sports__dark-section {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 60px 0;
}

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

.page-sports__feature-card {
  background: #ffffff;
  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;
  min-height: 350px;
}

.page-sports__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__feature-title {
  font-size: 1.5em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-description {
  font-size: 1em;
  color: #333333;
}

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

.page-sports__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-sports__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__category-title {
  font-size: 1.3em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 15px;
}

.page-sports__category-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-sports__btn-category {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  align-self: center;
  width: fit-content;
}

.page-sports__btn-category:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__live-betting-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__live-betting-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__live-betting-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #333333;
}

.page-sports__live-betting-list li {
  font-size: 1.1em;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.page-sports__list-icon {
  color: #E53935;
  font-weight: bold;
  font-size: 1.5em;
  margin-right: 10px;
}

.page-sports__promotions-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.page-sports__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promo-title {
  font-size: 1.4em;
  color: #E53935;
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 15px;
}

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

.page-sports__btn-promo {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  align-self: center;
  width: fit-content;
}

.page-sports__btn-promo:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-sports__guide-step {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
  min-height: 200px;
}

.page-sports__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #E53935;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
}

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

.page-sports__step-description {
  font-size: 1em;
  color: #333333;
}

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

.page-sports__faq-item {
  background: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #E53935;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* For details/summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #E53935;
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-sports__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-bottom-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsiveness */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Card general styles */
.page-sports__card {
  background: #ffffff; /* Card background */
  color: #333333; /* Text Main */
  border: 1px solid #E0E0E0; /* Border */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

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

  .page-sports__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-top: 20px;
  }

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

  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-category,
  .page-sports__btn-promo,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .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-image,
  .page-sports__category-image,
  .page-sports__promo-image,
  .page-sports__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    box-sizing: border-box !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-sports__live-betting-content {
    gap: 20px;
  }

  .page-sports__live-betting-image {
    max-width: 100%;
  }

  .page-sports__live-betting-list li {
    font-size: 1em;
  }

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

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

  .page-sports__cta-bottom-description {
    font-size: 1.1em;
  }

  .page-sports__dark-section,
  .page-sports__light-bg {
    padding: 40px 0;
  }
}