/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-sports__paragraph--center {
  text-align: center;
}

.page-sports__highlight {
  color: #FFFF00; /* Custom color for highlight */
}

.page-sports__keyword {
  font-weight: bold;
  color: #FFFF00; /* Custom color for keywords */
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  box-sizing: border-box;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text contrast */
}

.page-sports__hero-cta {
  margin-top: 30px;
}

/* Buttons */
.page-sports__btn-primary {
  display: inline-block;
  background: #017439; /* Primary brand color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #017439;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

.page-sports__btn-register {
  display: inline-block;
  background: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #C30808;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

/* Info Section */
.page-sports__info-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Darker background for contrast */
  color: #f0f0f0;
}

/* Content Area */
.page-sports__content-area {
  padding: 60px 0;
  background-color: var(--dark-bg-1); /* Inherit from shared, likely dark */
  color: #f0f0f0;
}

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

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight for card titles */
}

.page-sports__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__card--light {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__card--light .page-sports__card-title {
  color: #017439; /* Primary color for light card titles */
}

.page-sports__card--light .page-sports__card-text {
  color: #333333;
}

/* Images within content */
.page-sports__image-container {
  margin: 40px auto;
  text-align: center;
}

.page-sports__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

/* Ordered/Unordered Lists */
.page-sports__ordered-list, .page-sports__unordered-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__ordered-list li, .page-sports__unordered-list li {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid #017439;
  color: #f0f0f0;
}

.page-sports__list-title {
  font-size: 1.3em;
  color: #FFFF00; /* Highlight for list titles */
  margin-bottom: 10px;
}

.page-sports__list-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Promo Guide Section */
.page-sports__promo-guide-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-sports__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Advantages Section */
.page-sports__advantages-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-sports__advantages-section .page-sports__section-title {
  color: #ffffff;
}

/* Video Section */
.page-sports__video-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
  color: #f0f0f0;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px; /* Max width for video */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d;
  color: #f0f0f0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  color: #e0e0e0;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
  color: #f0f0f0;
}

.page-sports__container--center {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }

  .page-sports__hero-description {
    font-size: 1.1em;
  }

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

@media (max-width: 768px) {
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-sports__hero-content {
    order: 2;
    margin-top: 30px;
  }

  .page-sports__hero-image-wrapper {
    order: 1;
    position: relative;
    height: 300px;
    width: 100%;
  }

  .page-sports__hero-image {
    position: relative;
  }

  .page-sports__hero-title {
    font-size: 2.5em;
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

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

  .page-sports__paragraph {
    font-size: 1em;
    text-align: left;
  }

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

  .page-sports__card {
    padding: 20px;
  }

  .page-sports__ordered-list li, .page-sports__unordered-list li {
    padding: 20px;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-register {
    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__video-section,
  .page-sports__promo-guide-section,
  .page-sports__advantages-section,
  .page-sports__faq-section,
  .page-sports__info-section,
  .page-sports__content-area,
  .page-sports__conclusion-section {
    padding: 40px 0;
  }

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

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

  .page-sports__image-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* General image rules to prevent small icons and ensure minimum size */
.page-sports img:not(.page-sports__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Ensure no filter on images */
.page-sports img {
  filter: none; /* Reset any potential filter */
}

/* Specific filter for hero image to darken */
.page-sports__hero-image {
  filter: brightness(0.6);
}