.page-sports-how-to-play {
  padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
}

.page-sports-how-to-play__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-sports-how-to-play__hero-section {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  background-color: #0A0A0A;
}

.page-sports-how-to-play__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px;
  object-fit: cover;
  display: block;
}

.page-sports-how-to-play__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -80px; /* Pull content slightly over the image for visual flow, but not obscuring */
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.2);
}

.page-sports-how-to-play__main-title {
  color: #FFD36B;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.4);
  max-width: 100%;
  text-wrap: balance;
  /* No fixed font-size, rely on responsive scaling and other properties */
}

.page-sports-how-to-play__intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-sports-how-to-play__cta-button,
.page-sports-how-to-play__secondary-cta-button,
.page-sports-how-to-play__view-all-faq-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
}

.page-sports-how-to-play__cta-button:hover,
.page-sports-how-to-play__secondary-cta-button:hover,
.page-sports-how-to-play__view-all-faq-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
}

.page-sports-how-to-play__section-title {
  color: #F2C14E;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-sports-how-to-play__introduction-section,
.page-sports-how-to-play__basic-rules-section,
.page-sports-how-to-play__betting-types-section,
.page-sports-how-to-play__tips-section,
.page-sports-how-to-play__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-sports-how-to-play__introduction-section p,
.page-sports-how-to-play__basic-rules-section p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports-how-to-play__content-image {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
}

.page-sports-how-to-play__rule-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-sports-how-to-play__rule-list li {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 70px;
}

.page-sports-how-to-play__rule-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #F2C14E;
  color: #111111;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.page-sports-how-to-play__list-title {
  color: #FFD36B;
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

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

.page-sports-how-to-play__type-card,
.page-sports-how-to-play__tip-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports-how-to-play__type-card:hover,
.page-sports-how-to-play__tip-item:hover {
  transform: translateY(-5px);
}

.page-sports-how-to-play__card-image,
.page-sports-how-to-play__tip-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

.page-sports-how-to-play__card-title,
.page-sports-how-to-play__tip-title {
  color: #FFD36B;
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-sports-how-to-play__type-card p,
.page-sports-how-to-play__tip-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF6D6;
  margin-bottom: 20px;
}

.page-sports-how-to-play__card-link {
  display: inline-block;
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #F2C14E;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-sports-how-to-play__card-link:hover {
  color: #FFD36B;
  border-color: #FFD36B;
}

.page-sports-how-to-play__secondary-cta-button {
  margin-top: 50px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-sports-how-to-play__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports-how-to-play__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports-how-to-play__faq-question {
  color: #FFD36B;
  font-size: 1.2em;
  padding: 20px 25px;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-sports-how-to-play__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.05);
}

.page-sports-how-to-play__faq-question::after {
  content: '+';
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E;
  transition: transform 0.3s ease;
}

.page-sports-how-to-play__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-sports-how-to-play__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-sports-how-to-play__faq-answer.active {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 25px 20px;
}

.page-sports-how-to-play__faq-answer p {
  margin: 0;
  line-height: 1.6;
  color: #FFF6D6;
}

.page-sports-how-to-play__view-all-faq-button {
  margin-top: 50px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports-how-to-play__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-sports-how-to-play__main-title {
    font-size: 2.2em;
  }

  .page-sports-how-to-play__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports-how-to-play__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-sports-how-to-play__main-title {
    font-size: 1.8em;
  }

  .page-sports-how-to-play__intro-text {
    font-size: 1em;
  }

  .page-sports-how-to-play__section-title {
    font-size: 1.8em;
  }

  .page-sports-how-to-play__types-grid,
  .page-sports-how-to-play__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports-how-to-play__rule-list li {
    padding: 20px;
    padding-left: 60px;
  }

  .page-sports-how-to-play__rule-list li::before {
    left: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.1em;
  }

  .page-sports-how-to-play__cta-button,
  .page-sports-how-to-play__secondary-cta-button,
  .page-sports-how-to-play__view-all-faq-button {
    padding: 12px 25px;
    font-size: 0.95em;
  }

  /* Ensure all images within content area are responsive and do not overflow */
  .page-sports-how-to-play img {
    max-width: 100%;
    height: auto;
  }

  .page-sports-how-to-play__container {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports-how-to-play__main-title {
    font-size: 1.5em;
  }

  .page-sports-how-to-play__section-title {
    font-size: 1.5em;
  }

  .page-sports-how-to-play__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }
}