/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a requires light text */
  background-color: #0a0a0a; /* Ensure consistency, though body background is from shared */
}

.page-sports__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FF4500;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #cccccc;
}

.page-sports__sub-title {
  font-size: 1.8em;
  color: #FF4500;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #1E90FF;
  border: none;
  padding: 10px 0;
  text-decoration: underline;
}

.page-sports__btn-link:hover {
  color: #0a70e0;
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: left;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Ensure text readability */
  border-radius: 10px;
}

.page-sports__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FF4500;
}

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

.page-sports__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-sports__hero-button {
  min-width: 220px;
}

/* Features Section */
.page-sports__features-section,
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__guide-section,
.page-sports__faq-section,
.page-sports__cta-download {
  padding: 80px 0;
}

.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__card {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
}

.page-sports__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__feature-title {
  font-size: 1.8em;
  color: #FF4500;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  font-size: 1em;
  color: #cccccc;
}

/* Categories Section */
.page-sports__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__category-title {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.page-sports__category-link {
  color: #1E90FF;
  text-decoration: none;
}

.page-sports__category-link:hover {
  text-decoration: underline;
  color: #FF4500;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-sports__live-betting-text {
  flex: 1;
}

.page-sports__live-betting-video-wrapper {
  flex: 1;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
  cursor: pointer;
}

.page-sports__live-betting-button {
  margin-top: 20px;
}

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

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Minimum size requirement */
}

.page-sports__promotion-title {
  font-size: 1.6em;
  margin-bottom: 10px;
}

.page-sports__promotion-link {
  color: #FF4500;
  text-decoration: none;
}

.page-sports__promotion-link:hover {
  text-decoration: underline;
  color: #1E90FF;
}

.page-sports__cta-promotions {
  text-align: center;
  margin-top: 50px;
}

.page-sports__full-width-button {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

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

.page-sports__step-item {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-sports__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FF4500;
  margin-bottom: 15px;
}

.page-sports__step-title {
  font-size: 1.8em;
  color: #1E90FF;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #2a2a2a;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #FF4500;
}

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

.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: #cccccc;
}

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

.page-sports__faq-answer p {
  margin: 0;
  color: #cccccc;
}

/* CTA Download Section */
.page-sports__cta-download {
  text-align: center;
  padding: 100px 0;
  background-color: #1E90FF;
  color: #ffffff;
}

.page-sports__cta-download .page-sports__section-title {
  color: #ffffff;
}

.page-sports__cta-download .page-sports__section-description {
  color: #e0e0e0;
  margin-bottom: 40px;
}

.page-sports__cta-download .page-sports__btn-primary {
  background-color: #FF4500;
  border-color: #FF4500;
}

.page-sports__cta-download .page-sports__btn-primary:hover {
  background-color: #e63e00;
  border-color: #e63e00;
}

/* Responsive Design */
@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: 2.2em;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
  }
  .page-sports__live-betting-video-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-content {
    max-width: 100%;
    padding: 15px;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-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__feature-grid,
  .page-sports__category-grid,
  .page-sports__promotion-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-sports__sub-title {
    font-size: 1.5em;
  }
  .page-sports__card,
  .page-sports__step-item {
    padding: 20px;
  }
  .page-sports__faq-question {
    padding: 15px;
  }
  .page-sports__faq-title {
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
  .page-sports__features-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__cta-download {
    padding: 50px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Image, Video, Container Responsive Rules */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-sports__hero-image-wrapper {
    position: relative;
    height: 250px;
    margin-bottom: 20px;
  }
  .page-sports__hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .page-sports__live-betting-video-wrapper {
    padding-bottom: 75%; /* More suitable for mobile vertical orientation (4:3) or adjust as needed */
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
}