/* style/sports.css */

/* --- General Styles --- */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default background for the main content area */
}

.page-sports__dark-bg {
  background-color: #017439; /* Main brand color */
  color: #FFFFFF; /* White text for dark background */
}

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

.page-sports__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* H1/H2 font size clamp */
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439; /* Brand color for titles on light background */
  line-height: 1.2;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__sub-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #017439;
}

.page-sports__description,
.page-sports__text-block,
.page-sports__section-description,
.page-sports__card-text,
.page-sports__list-item {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333333;
}

.page-sports__dark-bg .page-sports__description,
.page-sports__dark-bg .page-sports__text-block,
.page-sports__dark-bg .page-sports__section-description,
.page-sports__dark-bg .page-sports__card-text,
.page-sports__dark-bg .page-sports__list-item {
  color: #FFFFFF;
}

.page-sports__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-sports__numbered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

/* --- 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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-sports__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

.page-sports__large-cta {
  font-size: 1.1rem;
  padding: 15px 30px;
  margin-top: 20px;
}

/* --- Hero Section --- */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* Slightly dim the image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size clamp */
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Enhance readability on image */
}

.page-sports__hero-content .page-sports__description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* --- Video Section --- */
.page-sports__video-section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video container */
  margin: 0 auto 30px;
  background-color: #000; /* Fallback for video background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-sports__video {
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
  cursor: pointer; /* Indicate clickable */
}

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

/* --- Content Area --- */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-sports__card {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
}

.page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
  padding: 0 15px;
}

.page-sports__card-text {
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1; /* Make text block grow to fill space */
}

.page-sports__card .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- FAQ Section --- */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-sports__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #017439;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #e6f7ed; /* Lighter green background when open */
}

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

/* Native details element styling */
.page-sports__faq-item summary {
  list-style: none; /* Remove default marker */
}
.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* For Webkit browsers */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(0deg); /* +/- icon handled by JS */
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  background-color: #FFFFFF;
  color: #333333;
  font-size: 1rem;
  line-height: 1.7;
}

.page-sports__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* --- CTA Banner --- */
.page-sports__cta-banner {
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background-image: linear-gradient(to right, #017439, #028a49); /* Gradient with brand color */
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-sports__cta-content {
  max-width: 800px;
  color: #FFFFFF;
}

.page-sports__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-sports__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__cta-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    padding: 15px;
  }
  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__hero-content .page-sports__description {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* General mobile padding */
  .page-sports__hero-section,
  .page-sports__video-section,
  .page-sports__content-area,
  .page-sports__cta-banner,
  .page-sports__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__card-image {
    height: 200px !important; /* Adjust card image height for mobile */
  }

  /* Video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important; /* Inner video wrapper doesn't need side padding */
    padding-right: 0 !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  /* Buttons responsiveness */
  .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 !important; /* Add padding to buttons themselves */
    padding-right: 15px !important;
  }
  .page-sports__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-sports__cta-buttons > a {
    margin: 0 auto; /* Center buttons when stacked */
  }

  /* Text adjustments */
  .page-sports__main-title {
    font-size: 2rem;
  }
  .page-sports__hero-content .page-sports__description {
    font-size: 1rem;
  }
  .page-sports__section-title {
    font-size: 1.6rem;
  }
  .page-sports__sub-title {
    font-size: 1.3rem;
  }
  .page-sports__cta-title {
    font-size: 1.8rem;
  }

  /* Grid layout for cards */
  .page-sports__grid {
    grid-template-columns: 1fr; /* Single column for cards */
  }
  .page-sports__card {
    padding-bottom: 15px;
  }
  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 15px;
  }
}