/* style/faqs.css */
.page-faqs {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* inherited from shared.css body background */
}

.page-faqs__hero-section {
  position: relative;
  padding: var(--header-offset, 120px) 20px 60px; /* Adjust for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  min-height: 500px;
  box-sizing: border-box;
}

.page-faqs__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-faqs__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

.page-faqs__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-faqs__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-faqs__btn-primary,
.page-faqs__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

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

.page-faqs__btn-primary:hover {
  background: #005f2f;
  border-color: #005f2f;
}

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

.page-faqs__btn-secondary:hover {
  background: #f0f0f0;
  color: #005f2f;
  border-color: #005f2f;
}

.page-faqs__video-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* A slightly lighter dark background for this section */
  text-align: center;
}

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

.page-faqs__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-faqs__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-faqs__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px;
  border-radius: 8px;
}

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

.page-faqs__video-caption {
  font-size: 0.95em;
  color: #cccccc;
  margin-top: 10px;
}

.page-faqs__content-area {
  padding: 60px 0;
  background-color: #0d0d0d; /* Dark background for the main content area */
}

.page-faqs__accordion-section {
  padding-bottom: 80px;
}

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

.page-faqs__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.page-faqs__faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-faqs__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faqs__faq-item.active .page-faqs__faq-question {
  border-bottom: none;
}

.page-faqs__faq-heading {
  font-size: 1.25em;
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.page-faqs__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-faqs__faq-item.active .page-faqs__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-faqs__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

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

.page-faqs__faq-answer p {
  margin-bottom: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-faqs__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-faqs__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

.page-faqs__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #017439; /* Brand color as background */
  color: #ffffff;
}

.page-faqs__dark-section .page-faqs__section-title,
.page-faqs__dark-section .page-faqs__section-description {
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-faqs__hero-title {
    font-size: 2.8em;
  }
  .page-faqs__hero-description {
    font-size: 1.1em;
  }
  .page-faqs__section-title {
    font-size: 2em;
  }
  .page-faqs__faq-heading {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-faqs__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset */
    padding-bottom: 40px;
    min-height: 400px;
  }
  .page-faqs__hero-title {
    font-size: 2.2em;
  }
  .page-faqs__hero-description {
    font-size: 1em;
  }
  .page-faqs__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-faqs__btn-primary,
  .page-faqs__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-faqs__video-section,
  .page-faqs__content-area,
  .page-faqs__cta-section {
    padding: 40px 0;
  }

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

  .page-faqs__section-title {
    font-size: 1.8em;
  }
  .page-faqs__section-description {
    font-size: 0.95em;
  }
  .page-faqs__faq-question {
    padding: 15px 20px;
  }
  .page-faqs__faq-heading {
    font-size: 1em;
  }
  .page-faqs__faq-answer {
    padding: 0 20px;
  }
  .page-faqs__faq-item.active .page-faqs__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Image responsive rules */
  .page-faqs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Video responsive rules */
  .page-faqs video,
  .page-faqs__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-faqs__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-faqs__hero-title {
    font-size: 1.8em;
  }
  .page-faqs__hero-description {
    font-size: 0.9em;
  }
  .page-faqs__section-title {
    font-size: 1.5em;
  }
  .page-faqs__faq-heading {
    font-size: 0.9em;
  }
  .page-faqs__faq-toggle {
    font-size: 1.5em;
  }
}