/* style/sports.css */

/* Body background is #1a1a2e (dark) from shared.css, so use light text. */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Rely on body background from shared.css */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body already handles header offset */
  text-align: center;
  background-color: #1a1a2e; /* Ensure dark background for hero */
  color: #ffffff;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 10; /* Ensure content is above image if any layering occurs */
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-sports__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__btn-primary.login-btn {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

.page-sports__btn-primary.login-btn:hover {
  background-color: #c46406;
  border-color: #c46406;
}

.page-sports__section {
  padding: 80px 20px;
  text-align: center;
  color: #ffffff; /* Default light text for sections */
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-sports__dark-section .page-sports__section-title {
  color: #ffffff;
}

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

.page-sports__text-block {
  font-size: 1.05rem;
  margin-bottom: 25px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-sports__dark-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
}

.page-sports__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
  line-height: 1.3;
}

.page-sports__card-description {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
  flex-grow: 1;
}

.page-sports__numbered-list,
.page-sports__bullet-list {
  list-style-position: inside;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 0;
  color: #f0f0f0;
}

.page-sports__numbered-list li,
.page-sports__bullet-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-sports__numbered-list li strong,
.page-sports__bullet-list li strong {
  color: #26A9E0;
}

.page-sports__guide a,
.page-sports__tips a,
.page-sports__security a,
.page-sports__faq a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__guide a:hover,
.page-sports__tips a:hover,
.page-sports__security a:hover,
.page-sports__faq a:hover {
  color: #1f8ac2;
}

.page-sports__cta-buttons--center {
  margin-top: 50px;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px; /* Consistent image height for promo cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sports__security-features {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
}

.page-sports__security-features li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
  font-size: 1.05rem;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-sports__security-features li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  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.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

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

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

.page-sports__conclusion {
  padding-bottom: 100px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }
  .page-sports__card-image {
    height: 200px;
  }
  .page-sports__promo-image {
    height: 150px;
  }
  .page-sports__section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }
  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  .page-sports__text-block,
  .page-sports__numbered-list li,
  .page-sports__bullet-list li,
  .page-sports__security-features li,
  .page-sports__card-description,
  .page-sports__faq-answer p {
    font-size: 0.95rem;
  }
  .page-sports__card-title {
    font-size: 1.2rem;
  }
  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-sports__faq-toggle {
    font-size: 1.2rem;
  }

  /* Mobile image responsiveness */
  .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__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  /* Mobile button responsiveness */
  .page-sports__cta-button,
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
  }
  .page-sports__cta-buttons--center .page-sports__btn-primary,
  .page-sports__cta-buttons--center .page-sports__btn-secondary {
    width: calc(100% - 30px) !important;
    margin: 0 auto;
  }
}