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

.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-sports__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  min-height: 500px;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

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

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-sports__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Categories Grid */
.page-sports__categories-grid,
.page-sports__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-sports__category-card,
.page-sports__promotion-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

.page-sports__category-image,
.page-sports__promotion-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-sports__all-promos-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Live Betting Section */
.page-sports__live-betting-content,
.page-sports__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

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

.page-sports__image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__live-betting-image,
.page-sports__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-sports__guide-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0;
}

.page-sports__guide-step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__guide-step-description {
  font-size: 15px;
  color: #555555;
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  margin-top: 30px;
}

.page-sports__video-wrapper .page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.page-sports__video-link {
  display: block;
  cursor: pointer;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
}

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

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

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

.page-sports__faq-toggle {
  font-size: 24px;
  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 25px;
  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 to contain content */
  padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__section-title {
    font-size: 30px;
  }
}

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

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

  .page-sports__hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }

  .page-sports__hero-content {
    max-width: 100%;
    margin-top: 30px;
  }

  .page-sports__hero-title {
    font-size: 32px;
  }

  .page-sports__hero-description {
    font-size: 16px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    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__section-title {
    font-size: 28px;
  }

  .page-sports__section-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-sports__categories-grid,
  .page-sports__promotions-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__live-betting-content,
  .page-sports__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__image-column {
    order: -1; /* Image above text on mobile */
  }

  .page-sports__category-image,
  .page-sports__promotion-image {
    height: auto;
    max-height: 200px; /* Adjust for smaller screens */
  }

  .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__introduction-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__mobile-app-section,
  .page-sports__video-section,
  .page-sports__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__video-wrapper {
    padding-bottom: 56.25%; /* Ensure 16:9 aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-buttons,
  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
    flex-direction: column;
  }

  .page-sports__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
}