/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-sports__text-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #f0f0f0;
}

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

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

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

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  font-weight: 600;
}

.page-sports__btn-link:hover {
  text-decoration: underline;
}

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

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

/* Color contrast specific styles */
.page-sports__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #222222; /* Lighter background for contrast sections */
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit hero image height */
  margin-bottom: 30px;
}

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

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.page-sports__description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
}

.page-sports__intro-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: left;
}

/* Video Section */
.page-sports__video-section {
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__video-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-sports__video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 0 auto;
  background-color: #000;
}

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

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

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

.page-sports__category-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  min-height: 450px;
}

.page-sports__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-sports__category-card .page-sports__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-sports__category-card p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__feature-item .page-sports__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__feature-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: guide-counter;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__guide-list li {
  position: relative;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px 30px 25px 70px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: left;
}

.page-sports__guide-list li::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.page-sports__guide-list li strong {
  color: #ffffff;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  min-height: 400px;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-sports__promo-card .page-sports__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-sports__promo-card p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

/* Why Choose Us Section */
.page-sports__why-choose-us {
  padding: 80px 0;
}

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

.page-sports__advantage-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__advantage-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  display: block;
  margin-bottom: 20px;
}

.page-sports__advantage-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__advantage-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

/* News Updates Section */
.page-sports__news-updates {
  padding: 80px 0;
}

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

.page-sports__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  min-height: 450px;
}

.page-sports__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
}

.page-sports__news-card .page-sports__card-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-sports__news-card .page-sports__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__news-card .page-sports__card-title a:hover {
  text-decoration: underline;
}

.page-sports__news-date {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-sports__news-card p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
}

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

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

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid transparent;
}

.page-sports__faq-qtext {
  flex-grow: 1;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

/* Remove default details marker */
.page-sports__faq-item > summary {
  list-style: none;
}
.page-sports__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Final CTA Section */
.page-sports__final-cta {
  padding: 80px 0;
  text-align: center;
}

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

  .page-sports__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-sports__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-sports__hero-image {
    max-height: 400px;
    margin-bottom: 20px;
  }

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* Body handles header offset, this is decorative */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-wrapper,
  .page-sports__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__category-card,
  .page-sports__feature-item,
  .page-sports__promo-card,
  .page-sports__advantage-item,
  .page-sports__news-card {
    padding: 20px;
    min-height: auto;
  }

  .page-sports__category-image,
  .page-sports__promo-image,
  .page-sports__news-image {
    height: 180px;
  }

  .page-sports__guide-list li {
    padding: 20px 20px 20px 60px;
    font-size: 1rem;
  }

  .page-sports__guide-list li::before {
    left: 15px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-sports__faq-question {
    padding: 15px;
    font-size: 1rem;
  }

  .page-sports__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95rem;
  }
}