/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text 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 {
  padding: 60px 0;
  text-align: center;
}

.page-sports__dark-section {
  background-color: #1f1f1f; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-sports__heading {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-sports__sub-heading {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  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: 600;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  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: #1e87b8;
  border-color: #1e87b8;
}

.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-size: 1em;
}

.page-sports__btn-link:hover {
  text-decoration: underline;
  color: #1e87b8;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Using aspect-ratio for modern browsers, or padding-bottom hack */
  aspect-ratio: 16 / 9;
  max-height: 1080px;
  overflow: hidden;
}

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

.page-sports__hero-content {
  position: relative; /* Ensure content is above any potential overlay, below image */
  z-index: 2;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__description {
  font-size: clamp(1.1em, 2vw, 1.3em);
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-sports__intro-section .page-sports__container {
  text-align: left;
}

/* Game Types Section */
.page-sports__game-types-section .page-sports__container {
  text-align: center;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-sports__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Guide Section */
.page-sports__guide-section .page-sports__container {
  text-align: left;
}

.page-sports__ordered-list {
  list-style-type: none;
  counter-reset: guide-counter;
  padding: 0;
  margin-top: 30px;
}

.page-sports__ordered-list li {
  counter-increment: guide-counter;
  margin-bottom: 30px;
  position: relative;
  padding-left: 60px;
  text-align: left;
}

.page-sports__ordered-list li::before {
  content: counter(guide-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
}

/* Advantages Section */
.page-sports__advantages-section .page-sports__container {
  text-align: center;
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-sports__feature-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* News & Events Section */
.page-sports__news-events-section .page-sports__container {
  text-align: center;
}

.page-sports__news-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-sports__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-sports__news-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 700;
  flex-grow: 1;
}

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

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

.page-sports__news-meta {
  font-size: 0.85em;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.page-sports__news-excerpt {
  font-size: 0.9em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__container {
  text-align: left;
}

.page-sports__faq-list {
  margin-top: 30px;
}

.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-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  position: relative;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: 30px;
  }

  .page-sports__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

  .page-sports__description {
    font-size: clamp(1em, 1.8vw, 1.2em);
  }

  .page-sports__heading {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 0;
  }

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

  .page-sports__hero-section {
    padding-top: 10px !important;
  }

  .page-sports__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }

  .page-sports__main-title {
    font-size: clamp(2em, 6vw, 2.5em);
  }

  .page-sports__description {
    font-size: clamp(0.95em, 2.5vw, 1.1em);
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-sports__grid-3-col,
  .page-sports__grid-2-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card,
  .page-sports__feature-item,
  .page-sports__news-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-sports__ordered-list li {
    padding-left: 50px;
  }

  .page-sports__ordered-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
  }

  .page-sports__faq-item summary {
    font-size: 1.05em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
  }

  .page-sports__description {
    font-size: clamp(0.9em, 3vw, 1em);
  }

  .page-sports__heading {
    font-size: clamp(1.6em, 5vw, 2em);
  }

  .page-sports__paragraph {
    font-size: 0.9em;
  }
}