/* style/faq.css */
.page-faq {
  color: #ffffff; /* Default light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-faq__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f); /* Gradient with brand color */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  box-sizing: border-box;
}

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

.page-faq__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Custom font color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.1em;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-faq__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-3px);
}

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

.page-faq__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-3px);
}

.page-faq__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #0a0a0a; /* Dark background matching body */
  box-sizing: border-box;
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom font color for section titles */
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  background-color: #000;
}

.page-faq__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-faq__video-caption {
  color: #ffffff;
  font-size: 1em;
  margin-top: 15px;
}

.page-faq__content-area {
  background-color: #0a0a0a; /* Dark background matching body */
  padding: 60px 0;
  box-sizing: border-box;
  color: #ffffff; /* Light text for dark background */
}

.page-faq__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #FFFF00; /* Custom font color for question */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: #005f2f;
}

.page-faq__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
  line-height: 1.4;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Custom font color for toggle */
}

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

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #ffffff; /* Light text for answer content */
  background-color: rgba(255, 255, 255, 0.05); /* Lighter transparent background for answer */
  font-size: 1.05em;
  line-height: 1.7;
}

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

.page-faq__faq-answer p {
  margin-bottom: 15px;
  color: inherit;
}

.page-faq__faq-answer ol,
.page-faq__faq-answer ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: inherit;
}

.page-faq__faq-answer li {
  margin-bottom: 8px;
  color: inherit;
}

.page-faq__image-inline {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-faq__text-link {
  color: #FFFF00; /* Custom link color for better visibility */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-faq__text-link:hover {
  color: #e00b0b; /* Hover color for links */
}

.page-faq__final-cta {
  text-align: center;
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background matching body */
  color: #ffffff;
  box-sizing: border-box;
}

.page-faq__outro-text {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-faq__main-title {
    font-size: 2.8em;
  }
  .page-faq__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-faq__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-faq__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-faq__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
  }
  .page-faq__video-section {
    padding: 40px 15px;
  }
  .page-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-faq__content-area {
    padding: 40px 0;
  }
  .page-faq__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-faq__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-faq__faq-answer {
    padding: 15px 20px;
  }
  .page-faq__faq-item,
  .page-faq__video-wrapper,
  .page-faq__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq video,
  .page-faq__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faq__video-section,
  .page-faq__video-container,
  .page-faq__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}