.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

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

.page-sports__section-title {
  color: #26A9E0;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-sports__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #EA7C07;
  border-radius: 2px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Desktop header offset */
  box-sizing: border-box;
}

.page-sports__video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-sports__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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: 900px;
  padding: 20px;
}

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

.page-sports__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

/* Introduction Section */
.page-sports__introduction-section,
.page-sports__betting-types-section,
.page-sports__guide-section,
.page-sports__features-section,
.page-sports__responsible-gambling-section,
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

/* Dark sections */
.page-sports__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-sports__dark-section .page-sports__section-title::after {
  background-color: #ffffff;
}

.page-sports__dark-section .page-sports__text-block {
  color: #f0f0f0;
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 0;
}

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

.page-sports__sport-card,
.page-sports__type-card,
.page-sports__promo-card,
.page-sports__tip-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-sports__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

.page-sports__sport-card .page-sports__btn-secondary,
.page-sports__promo-card .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

/* Betting Types Section */
.page-sports__type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Guide Section */
.page-sports__guide-list,
.page-sports__feature-list,
.page-sports__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-list li,
.page-sports__feature-list li,
.page-sports__responsible-list li {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__list-title {
  color: #26A9E0;
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Promotions Section */
.page-sports__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Features Section */
.page-sports__feature-list li p {
  margin-top: 10px;
}

/* Tips Section */
.page-sports__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Responsible Gambling Section */
.page-sports__responsible-list li {
  border-left-color: #EA7C07;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
}

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

.page-sports__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  box-sizing: border-box;
}

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

.page-sports__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    min-height: 450px;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports__introduction-section,
  .page-sports__popular-sports-section,
  .page-sports__betting-types-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__features-section,
  .page-sports__tips-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section {
    padding: 60px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__sports-grid,
  .page-sports__type-grid,
  .page-sports__promo-grid,
  .page-sports__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__sport-card,
  .page-sports__type-card,
  .page-sports__promo-card,
  .page-sports__tip-card {
    padding: 20px;
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__card-title {
    font-size: 1.5em;
  }
  .page-sports__text-block,
  .page-sports__card-text,
  .page-sports__faq-answer p {
    font-size: 1em;
  }
  .page-sports__guide-list li,
  .page-sports__feature-list li,
  .page-sports__responsible-list li {
    padding: 20px;
  }
  .page-sports__list-title {
    font-size: 1.3em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    padding: 12px 20px;
  }

  /* Force responsive images and videos */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper,
  .page-sports__container,
  .page-sports__sport-card,
  .page-sports__type-card,
  .page-sports__promo-card,
  .page-sports__tip-card,
  .page-sports__faq-item,
  .page-sports__cta-buttons,
  .page-sports__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-sports__hero-content {
    padding: 15px;
  }
  .page-sports__faq-question,
  .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}