/* style/sports.css */

/* Base Styles */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Ensure body padding-top is handled by shared.css, not here */

/* Section Styling */
.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
}

.page-sports__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-sports__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__description,
.page-sports__dark-bg .page-sports__feature-title,
.page-sports__dark-bg .page-sports__feature-text,
.page-sports__dark-bg .page-sports__sport-title,
.page-sports__dark-bg .page-sports__sport-text,
.page-sports__dark-bg .page-sports__promotion-title,
.page-sports__dark-bg .page-sports__promotion-text,
.page-sports__dark-bg .page-sports__security-title,
.page-sports__dark-bg .page-sports__security-text {
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

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

.page-sports__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 40px;
}

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

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

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__hero-section .page-sports__description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-sports__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure image is large enough, min 200px */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

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

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

/* Popular Sports Section */
.page-sports__popular-sports-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-sports__sport-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

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

.page-sports__sport-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__guide-step {
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-sports__step-text {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-sports__promotion-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

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

.page-sports__promotion-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__all-promotions-cta {
  margin-top: 20px;
}

/* App Section */
.page-sports__app-section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__app-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  gap: 40px;
}

.page-sports__app-image-wrapper {
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-sports__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__app-text-content {
  text-align: left;
  flex: 1;
}

.page-sports__app-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__app-benefits li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-sports__app-download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Security & Support Section */
.page-sports__security-support-section {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.page-sports__security-card,
.page-sports__support-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__security-image,
.page-sports__support-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

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

.page-sports__security-text,
.page-sports__support-text {
  font-size: 1em;
  color: #666666;
}

.page-sports__contact-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-sports__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6ff;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: #26A9E0;
}

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

/* Details tag specific styling for FAQ */
.page-sports__faq-item summary {
  list-style: none;
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #d8edff;
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-sports__app-content {
    flex-direction: row;
    text-align: left;
  }
  .page-sports__app-image-wrapper {
    order: 2; /* Image on right for desktop */
  }
  .page-sports__app-text-content {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-sports__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-sports__section-title {
    font-size: 2em;
  }

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

  .page-sports__cta-buttons,
  .page-sports__app-download-buttons,
  .page-sports__contact-cta {
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Override desktop margin */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section,
  .page-sports__features-section,
  .page-sports__popular-sports-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__app-section,
  .page-sports__security-support-section,
  .page-sports__faq-section {
    padding: 40px 15px;
  }

  /* Mobile image responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-image-wrapper,
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__guide-steps,
  .page-sports__promotions-grid,
  .page-sports__app-content,
  .page-sports__security-support-grid,
  .page-sports__faq-list,
  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__guide-step,
  .page-sports__promotion-card,
  .page-sports__app-image-wrapper,
  .page-sports__security-card,
  .page-sports__support-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding */
  }

  .page-sports__sport-image,
  .page-sports__promotion-image {
    height: auto !important; /* Allow auto height for mobile */
  }

  .page-sports__app-benefits li {
    font-size: 1em;
  }

  .page-sports__app-image {
    height: auto;
  }
}