/* style/sports.css */

/* Base styles for the page */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text on dark background */
  background-color: var(--bg-dark); /* Inherited from shared.css */
}

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

.page-sports__dark-bg {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
}

.page-sports__dark-section {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
}

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-sports__hero-content-wrapper {
  padding: 40px 0;
  width: 100%; /* Ensure content wrapper takes full width */
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Text Blocks */
.page-sports__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  text-align: justify;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary,
.page-sports__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Color */
  color: #ffffff;
  border: none;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4); /* Custom Glow color */
}

.page-sports__btn-secondary {
  background: transparent;
  color: #57E38D; /* Custom Glow color */
  border: 2px solid #2E7A4E; /* Custom Border color */
}

.page-sports__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1); /* Custom Glow color with opacity */
  transform: translateY(-2px);
}

.page-sports__btn-tertiary {
  background-color: #11A84E; /* Main color */
  color: #ffffff;
  border: none;
}

.page-sports__btn-tertiary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn-link {
  background: transparent;
  color: #57E38D; /* Custom Glow color */
  border: 1px solid #2E7A4E; /* Custom Border color */
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 5px;
}

.page-sports__btn-link:hover {
  background: rgba(87, 227, 141, 0.1); /* Custom Glow color with opacity */
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Card Styles */
.page-sports__card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #1E3A2A; /* Custom Divider */
}

.page-sports__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 1.5rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-sports__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
}

/* Sports Categories Grid */
.page-sports__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  border: 1px solid #1E3A2A; /* Custom Divider */
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-sports__feature-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-sports__feature-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-sports__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button Color */
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Custom Glow color */
}

.page-sports__step-title {
  font-size: 1.4rem;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-sports__step-description {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1; /* Ensure descriptions take up equal space */
}

/* Promotions Section */
.page-sports__promotion-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin: 40px auto;
  display: block;
  object-fit: cover;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border: 1px solid #1E3A2A; /* Custom Divider */
  border-radius: 12px;
  overflow: hidden;
  background-color: #11271B; /* Custom Card BG */
  color: #F2FFF6; /* Custom Text Main */
}

.page-sports__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #0A4B2C; /* Custom Deep Green */
  color: #F2FFF6; /* Custom Text Main */
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-question:hover {
  background-color: #11A84E; /* Main color on hover */
}

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate + to become X or - */
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  border-top: 1px solid #1E3A2A; /* Custom Divider */
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-image-wrapper {
    max-height: 500px;
  }
}

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

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

  .page-sports__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-sports__text-block,
  .page-sports__card-description,
  .page-sports__feature-description,
  .page-sports__step-description,
  .page-sports__faq-answer {
    font-size: 0.95rem;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-tertiary,
  .page-sports__btn-link {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    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__hero-section {
    padding-bottom: 40px;
  }
  
  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }

  .page-sports__sport-card,
  .page-sports__feature-item,
  .page-sports__step-item {
    padding: 20px;
  }

  .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__hero-image-wrapper,
  .page-sports__hero-content-wrapper,
  .page-sports__promotion-image,
  .page-sports__faq-item {
    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;
  }

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

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

  .page-sports__guide-steps {
    grid-template-columns: 1fr;
  }

  .page-sports__grid-layout {
    grid-template-columns: 1fr;
  }

  .page-sports__features-grid {
    grid-template-columns: 1fr;
  }
}