.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); /* From shared.css, assumed dark */
}

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

.page-sports__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
}

.page-sports__hero-description span {
    font-weight: bold;
    color: #FFFF00;
}

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

.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section (dark/light) */
}

.page-sports__introduction-section,
.page-sports__benefits-section,
.page-sports__live-betting-section,
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__game-types-section,
.page-sports__guide-section,
.page-sports__promotions-section,
.page-sports__cta-section {
  padding: 80px 0;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__text-block span {
    font-weight: bold;
}

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

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

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

.page-sports__card {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439;
}

.page-sports__benefit-item {
  background: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__benefit-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439;
}

.page-sports__benefit-item p,
.page-sports__card p {
  font-size: 1em;
  color: #555555;
}

.page-sports__benefit-item span,
.page-sports__card span {
    font-weight: bold;
    color: #017439;
}

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

.page-sports__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  background-color: #e0f2f1; /* Light green background for number */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.page-sports__step-item p {
  color: #555555;
  margin-bottom: 20px;
}

.page-sports__step-item span {
    font-weight: bold;
    color: #017439;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width calculation */
}

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

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

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

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

.page-sports__step-button {
    width: 100%;
    max-width: 200px;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 40px;
  display: block;
  object-fit: cover;
}

.page-sports__content-with-image {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-sports__text-content {
  flex: 1;
}

.page-sports__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-sports__image-responsive {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #e0f2f1; /* Light green background */
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #c8e6e3;
}

.page-sports__faq-title {
    margin: 0;
    color: inherit;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px !important;
  padding-top: 0 !important;
}

.page-sports__faq-answer p {
    margin-bottom: 0;
}

.page-sports__faq-answer span {
    font-weight: bold;
    color: #017439;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

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

  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__cta-button {
    width: 100% !important;
    max-width: 300px !important; /* Max width for buttons on mobile */
    margin: 0 auto;
    display: block;
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-sports__container {
    padding: 15px;
  }

  .page-sports__introduction-section,
  .page-sports__benefits-section,
  .page-sports__live-betting-section,
  .page-sports__faq-section,
  .page-sports__game-types-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__cta-section {
    padding: 60px 0;
  }

  .page-sports__grid-3-cols,
  .page-sports__grid-2-cols,
  .page-sports__grid-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card,
  .page-sports__benefit-item,
  .page-sports__step-item {
    padding: 25px;
  }

  .page-sports__content-with-image {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__text-content {
    order: 2;
  }

  .page-sports__image-wrapper {
    order: 1;
    margin-bottom: 20px;
  }

  .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__button-group,
  .page-sports__image-wrapper,
  .page-sports__content-with-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-sports__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    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-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }
  
  .page-sports__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}