.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  background-color: #f0f8ff; /* Light background for hero section */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure hero image is large enough */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #26A9E0;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-sports__hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-sports__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

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

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

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

.page-sports__introduction-section,
.page-sports__advantages-section,
.page-sports__events-section,
.page-sports__faq-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__betting-types-section,
.page-sports__guide-section,
.page-sports__tips-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-sports__introduction-section .page-sports__section-title,
.page-sports__advantages-section .page-sports__section-title,
.page-sports__events-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: #26A9E0;
}

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

.page-sports__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: inherit; /* Inherit color from parent section */
}

.page-sports__text-block a {
  color: inherit;
  text-decoration: underline;
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__list,
.page-sports__numbered-list,
.page-sports__tips-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__list-item,
.page-sports__numbered-list .page-sports__list-item,
.page-sports__tips-list .page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: inherit;
}

.page-sports__betting-types-section .page-sports__list-item,
.page-sports__guide-section .page-sports__list-item,
.page-sports__tips-section .page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__list-item:hover {
  transform: translateY(-5px);
}

.page-sports__list-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.page-sports__list-description {
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
}

.page-sports__numbered-list {
  counter-reset: my-counter;
}

.page-sports__numbered-list .page-sports__list-item {
  position: relative;
  padding-left: 60px;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__numbered-list .page-sports__list-item::before {
  counter-increment: my-counter;
  content: counter(my-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.page-sports__numbered-list .page-sports__list-item a {
  color: #26A9E0;
  text-decoration: underline;
}

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

.page-sports__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333;
  min-height: 200px; /* Ensure cards are large enough */
}

.page-sports__feature-card:hover {
  transform: translateY(-8px);
}

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

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

.page-sports__event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__event-item {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__event-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__event-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__event-description {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555555;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f7f7f7;
  list-style: none; /* For details summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-sports__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-sports__faq-answer p {
  margin-top: 10px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -80px;
    padding: 30px;
  }
}

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

  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-sports__hero-content {
    margin-top: -60px;
    padding: 20px;
    max-width: calc(100% - 30px); /* Adjust for padding */
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__introduction-section,
  .page-sports__advantages-section,
  .page-sports__events-section,
  .page-sports__faq-section,
  .page-sports__betting-types-section,
  .page-sports__guide-section,
  .page-sports__tips-section {
    padding: 50px 0;
  }

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

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

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__list-item,
  .page-sports__numbered-list .page-sports__list-item {
    padding: 15px;
    margin-bottom: 10px;
  }

  .page-sports__numbered-list .page-sports__list-item::before {
    left: 15px;
    top: 15px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  .page-sports__numbered-list .page-sports__list-item {
    padding-left: 50px;
  }

  .page-sports__list-title {
    font-size: 1.1rem;
  }

  .page-sports__feature-card {
    padding: 20px;
  }

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

  .page-sports__event-item {
    padding: 15px;
  }

  .page-sports__event-title {
    font-size: 1.1rem;
  }

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

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

  .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-section,
  .page-sports__betting-types-section,
  .page-sports__advantages-section,
  .page-sports__guide-section,
  .page-sports__events-section,
  .page-sports__tips-section,
  .page-sports__faq-section,
  .page-sports__features-grid,
  .page-sports__event-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure hero-content does not exceed viewport */
  .page-sports__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Override for elements that might have negative margins or other width-breaking styles */
  .page-sports__hero-image-wrapper,
  .page-sports__content-area {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-sports__hero-image-wrapper img {
    border-radius: 0 !important; /* Remove border-radius for full width */
  }
  .page-sports__content-image {
    border-radius: 0 !important; /* Remove border-radius for full width */
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
  .page-sports__hero-content {
    margin-top: -40px;
  }
  .page-sports__hero-image {
    min-height: 250px;
  }
}