/* style/sports.css */

/* General Body/Page Styles - Light background for body, dark text */
.page-sports {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #f8f8f8; /* Inherited from body, but explicitly set for clarity */
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #11A84E; /* Brand color for titles */
  font-weight: bold;
}

.page-sports__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #22C768; /* Auxiliary color for sub-titles */
  font-weight: bold;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Default text color */
}

/* Theme-specific dark/light background sections */
.page-sports__hero-section,
.page-sports__popular-sports-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  background-color: #08160F; /* Dark background */
  color: #F2FFF6; /* Text Main for dark background */
}

.page-sports__features-section,
.page-sports__how-to-start-section,
.page-sports__security-section {
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text for light background */
}

/* Overrides for titles/text on dark backgrounds */
.page-sports__hero-section .page-sports__main-title,
.page-sports__popular-sports-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-title {
  color: #F2C14E; /* Gold for titles on dark background */
}

.page-sports__hero-section .page-sports__description,
.page-sports__popular-sports-section .page-sports__text-block,
.page-sports__promotions-section .page-sports__text-block,
.page-sports__faq-section .page-sports__faq-answer {
  color: #A7D9B8; /* Text Secondary for text on dark background */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, then content padding */
  overflow: hidden;
  background: linear-gradient(180deg, #11A84E 0%, #0A4B2C 100%); /* Dark green gradient */
}

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

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

.page-sports__hero-content {
  max-width: 900px;
  padding: 0 15px;
  text-align: center;
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 1px;
}

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

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

.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: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text on dark green button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Gold text */
  border: 2px solid #F2C14E; /* Gold border */
}

.page-sports__btn-secondary:hover {
  background-color: #F2C14E;
  color: #08160F; /* Dark background color for text on hover */
  transform: translateY(-2px);
}

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

.page-sports__card {
  background-color: #ffffff; /* White card background for light sections */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card specific styles for dark sections */
.page-sports__popular-sports-section .page-sports__card,
.page-sports__promotions-section .page-sports__card,
.page-sports__faq-section .page-sports__faq-item {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
  border: 1px solid #2E7A4E; /* Border color */
}

.page-sports__popular-sports-section .page-sports__card-title,
.page-sports__promotions-section .page-sports__card-title {
  color: #F2FFF6; /* Text Main for card title on dark card background */
}

.page-sports__popular-sports-section .page-sports__card-text,
.page-sports__promotions-section .page-sports__card-text {
  color: #A7D9B8; /* Text Secondary for card text on dark card background */
}

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

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

.page-sports__card-title {
  font-size: 1.5em;
  color: #11A84E; /* Brand color for card titles on light background */
  margin-bottom: 10px;
}

.page-sports__card-text {
  font-size: 1em;
  color: #555555; /* Default text color on light cards */
}

/* Popular Sports Section */
.page-sports__sport-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* How To Start Section */
.page-sports__step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-sports__step-icon-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__step-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.page-sports__step-title {
  font-size: 1.3em;
  color: #11A84E; /* Brand color */
  margin-bottom: 10px;
}

.page-sports__step-text {
  color: #555555;
}

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

.page-sports__card-link {
  display: inline-block;
  margin-top: 15px;
  color: #2AD16F; /* Lighter green for links */
  text-decoration: none;
  font-weight: bold;
}

.page-sports__card-link:hover {
  text-decoration: underline;
  color: #57E38D; /* Glow color on hover */
}

/* Security Section */
.page-sports__grid--two-col {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  text-align: left;
}

.page-sports__security-item {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-sports__security-item .page-sports__sub-title {
  color: #11A84E; /* Brand color */
}

.page-sports__security-item .page-sports__text-block {
  color: #555555;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-sports__faq-item {
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-item[open] {
  padding-bottom: 15px; /* Add padding when open */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F; /* Lighter green */
}

.page-sports__faq-answer {
  padding: 0 25px;
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px; /* Arbitrary large value */
  padding-top: 10px;
  padding-bottom: 15px;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
    max-height: 2000px; /* For details tag */
    padding-top: 10px;
    padding-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__sub-title {
    font-size: 1.5em;
  }
  .page-sports__description {
    font-size: 1.1em;
  }
  .page-sports__grid--two-col {
    grid-template-columns: 1fr;
  }
}

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

  .page-sports__section {
    padding: 40px 0;
  }

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

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

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

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

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

  .page-sports__hero-section {
    padding: 10px 0 40px 0;
  }

  /* Images 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__hero-image-wrapper,
  .page-sports__sport-list,
  .page-sports__promo-grid,
  .page-sports__step-list,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-sports__hero-image-wrapper, .page-sports__hero-image {
    margin-bottom: 20px;
  }

  .page-sports__hero-content {
    padding: 0;
  }

  .page-sports__faq-question,
  .page-sports__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Small top padding for sections, body handles main offset */
  .page-sports__hero-section,
  .page-sports__video-section {
    padding-top: 10px !important;
  }
}