/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg); /* Inherited from shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #FFC107; /* Accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__btn-primary {
  background-color: #FFC107;
  color: #1A237E;
  border: 2px solid #FFC107;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #FFC107;
  color: #1A237E;
}

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 100px 0;
  overflow: hidden;
  color: #ffffff;
  background-color: #1A237E; /* Explicitly dark section */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

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

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

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

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__feature-item p {
  color: #e0e0e0;
}

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

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 0;
  background-color: #1A237E; /* Dark section */
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-sports__sport-card h3 {
  font-size: 1.6em;
  color: #FFC107;
  margin: 20px 0 10px;
}

.page-sports__sport-card p {
  padding: 0 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-sports__sport-card .page-sports__btn-link {
  margin-top: auto;
  padding-bottom: 20px;
  display: block;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

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

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

.page-sports__text-block p {
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-sports__image-block {
  flex: 1;
  text-align: center;
}

.page-sports__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #1A237E;
  color: #ffffff;
}

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

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__promotion-title {
  font-size: 1.6em;
  color: #FFC107;
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-sports__promotion-card p {
  padding: 0 20px 20px;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-sports__promotion-card .page-sports__btn-link {
  margin-top: auto;
  padding-bottom: 20px;
  display: block;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFC107;
  color: #1A237E;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-sports__step-title {
  font-size: 1.8em;
  color: #FFC107;
  margin-bottom: 15px;
}

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

.page-sports__guide-image {
  display: block;
  margin: 50px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #1A237E;
  color: #ffffff;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  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 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFC107;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

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

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

.page-sports__faq-answer a {
  color: #FFC107;
  text-decoration: underline;
}

.page-sports__faq-answer a:hover {
  color: #e0a800;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-sports__cta-content {
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__content-flex {
    flex-direction: column;
  }
  .page-sports__text-block, .page-sports__image-block {
    flex: none;
    width: 100%;
  }
  .page-sports__image-responsive {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .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__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
    padding: 0 15px;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Responsive images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__hero-image,
  .page-sports__sport-image,
  .page-sports__promotion-image,
  .page-sports__image-responsive,
  .page-sports__guide-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Responsive containers */
  .page-sports__hero-section,
  .page-sports__about-section,
  .page-sports__popular-sports-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-sports__feature-item, .page-sports__sport-card, .page-sports__promotion-card, .page-sports__step-item {
    padding: 20px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__feature-title,
  .page-sports__sport-title,
  .page-sports__promotion-title,
  .page-sports__step-title {
    font-size: 1.4em;
  }
}