/* style/sports.css */

/* Base styles for the page content */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from shared.css, explicitly setting for clarity */
}

.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: 20px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  min-height: 600px;
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
  overflow: hidden;
  gap: 40px;
}

.page-sports__hero-content {
  flex: 1;
  padding-left: 20px;
  max-width: 600px;
  z-index: 1;
}

.page-sports__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.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: #a00606;
  border-color: #a00606;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-sports__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 20px;
  z-index: 0;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Sections */
.page-sports__advantages-section,
.page-sports__offerings-section,
.page-sports__guide-section,
.page-sports__faq-section {
  padding: 80px 0;
}

.page-sports__promotions-section,
.page-sports__security-section,
.page-sports__cta-bottom-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
}

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

.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__feature-text,
.page-sports__light-bg .page-sports__offering-title,
.page-sports__light-bg .page-sports__offering-text,
.page-sports__light-bg .page-sports__guide-step-title,
.page-sports__light-bg .page-sports__guide-step-text,
.page-sports__light-bg .page-sports__faq-question-title,
.page-sports__light-bg .page-sports__faq-answer p {
  color: #333333;
}

.page-sports__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-sports__dark-bg .page-sports__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

/* Features Grid */
.page-sports__features-grid,
.page-sports__promo-cards-grid,
.page-sports__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__security-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__dark-bg .page-sports__feature-card,
.page-sports__dark-bg .page-sports__promo-card,
.page-sports__dark-bg .page-sports__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__feature-card .page-sports__feature-title,
.page-sports__dark-bg .page-sports__feature-card .page-sports__feature-text,
.page-sports__dark-bg .page-sports__promo-card .page-sports__promo-title,
.page-sports__dark-bg .page-sports__promo-card .page-sports__promo-text,
.page-sports__dark-bg .page-sports__security-item .page-sports__security-title,
.page-sports__dark-bg .page-sports__security-item .page-sports__security-text {
  color: #ffffff;
}

.page-sports__feature-card:hover,
.page-sports__promo-card:hover,
.page-sports__security-item:hover {
  transform: translateY(-10px);
}

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

.page-sports__security-icon {
  max-width: 150px;
  margin-bottom: 15px;
}

.page-sports__feature-title,
.page-sports__promo-title,
.page-sports__security-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__feature-text,
.page-sports__promo-text,
.page-sports__security-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-sports__video-overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay-button {
  opacity: 1;
  visibility: visible;
}

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

.page-sports__offering-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__offering-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: bold;
}

.page-sports__offering-text {
  font-size: 1em;
  line-height: 1.5;
}

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.page-sports__guide-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__guide-step-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__guide-step-text {
  font-size: 1em;
  margin-bottom: 20px;
}

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

.page-sports__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  font-weight: bold;
  color: #017439;
}

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

.page-sports__faq-question-title {
  margin: 0;
  font-size: 1.2em;
  color: #017439;
}

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

.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-out, padding 0.3s ease-out;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-sports__faq-answer p {
  margin: 0;
  color: #333333;
}

/* Bottom CTA Section */
.page-sports__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
}

.page-sports__cta-bottom-section .page-sports__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px);
  }

  .page-sports__hero-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .page-sports__hero-image-wrapper {
    padding: 20px;
    justify-content: center;
  }

  .page-sports__main-title {
    font-size: 2.8em;
  }

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

  .page-sports__cta-buttons {
    justify-content: center;
  }
}

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

  .page-sports__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-sports__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__main-title {
    font-size: 2.2em;
  }

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

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

  .page-sports__section-description {
    font-size: 0.95em;
  }

  .page-sports__features-grid,
  .page-sports__promo-cards-grid,
  .page-sports__security-grid,
  .page-sports__offerings-grid,
  .page-sports__guide-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__promo-card,
  .page-sports__security-item,
  .page-sports__offering-card,
  .page-sports__guide-item,
  .page-sports__faq-item {
    padding: 20px;
  }

  .page-sports__feature-image,
  .page-sports__promo-image,
  .page-sports__security-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-wrapper {
    margin-top: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .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;
    padding-right: 15px;
  }

  .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;
    flex-direction: column !important;
    gap: 10px;
    overflow: hidden !important;
  }

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

  .page-sports__faq-question-title {
    font-size: 1.1em;
  }
}