/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  background-color: #08160F;
  color: #F2FFF6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Ensure content areas are readable */
.page-sports p, .page-sports li {
  color: #F2FFF6;
}

.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__section:nth-of-type(even) {
  background-color: #0A4B2C; /* Deep Green for alternating sections */
}

.page-sports__heading {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size constraint */
  color: #F2C14E; /* Gold for main headings */
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #A7D9B8; /* Secondary text color */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: 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 image height */
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 30px 20px;
  text-align: center;
  background: rgba(8, 22, 15, 0.7); /* Background for text, matching body background */
  border-radius: 10px;
  margin-top: -80px; /* Pull content up slightly over image for visual flow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem); /* H1 font size constraint */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
}

.page-sports__hero-description {
  font-size: 1.2rem;
  color: #F2FFF6; /* Main Text */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-sports__btn-secondary:hover {
  background: #F2C14E;
  color: #08160F; /* Dark background color */
  border-color: #F2C14E;
}

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

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

.page-sports__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-sports__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styles */
.page-sports__card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__card-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-text {
  color: #A7D9B8;
  font-size: 1rem;
}

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

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__guide-item {
  background-color: #11271B;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  border: 1px solid #2E7A4E;
}

.page-sports__guide-step-title {
  font-size: 1.4rem;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-sports__guide-item p {
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-sports__guide-item .page-sports__btn-secondary {
  margin-left: 0;
  margin-top: 10px;
}

/* Features Section */
.page-sports__feature-item {
  background-color: #11271B;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E;
}

.page-sports__feature-title {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-text {
  color: #A7D9B8;
  font-size: 1rem;
}

.page-sports__feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Mobile App Section */
.page-sports__app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__app-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

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

.page-sports__app-benefits li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #F2FFF6;
}

.page-sports__app-benefits li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #2AD16F; /* Green checkmark */
  font-weight: bold;
}

.page-sports__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

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

/* FAQ Section */
.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: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6;
  cursor: pointer;
  background-color: #11271B;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider color for hover */
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  font-weight: normal;
  margin-left: 15px;
  color: #57E38D; /* Glow color */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

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

/* Conclusion Section */
.page-sports__conclusion .page-sports__description {
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
  }
  .page-sports__heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }
  .page-sports__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }
  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 15px; /* Space between stacked buttons */
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__grid {
    grid-template-columns: 1fr;
  }
  .page-sports__grid--2-col,
  .page-sports__grid--3-col {
    grid-template-columns: 1fr;
  }
  .page-sports__card {
    padding: 20px;
  }
  .page-sports__card-title {
    font-size: 1.4rem;
  }
  .page-sports__guide-item {
    padding: 20px;
  }
  .page-sports__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-sports__app-text,
  .page-sports__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-sports__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image/video/button specific overrides */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}