/* style/faq.css */
.page-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but good to be explicit for main content */
}

.page-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  background: linear-gradient(135deg, #1A2B4C, #0A1C3D);
  color: #ffffff;
  overflow: hidden;
}

.page-faq__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-faq__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.8;
}

.page-faq__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  overflow: hidden;
}

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(50%);
}

.page-faq__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #f0f0f0; /* Light text for content area */
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-faq__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-faq__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #cccccc;
}

.page-faq__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-faq__faq-item {
  background-color: #2b2b2b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a3a3a;
}

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

.page-faq__faq-question:hover {
  background-color: #2e4a7a;
}

.page-faq__question-title {
  margin: 0;
  color: inherit;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

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

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

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

.page-faq__link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-block;
  margin-right: 15px;
}

.page-faq__link:hover {
  color: #ffe066;
  text-decoration: underline;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  margin: 10px 10px 10px 0; /* Adjusted margin for button spacing */
}

.page-faq__btn-primary {
  background-color: #FFD700;
  color: #1A2B4C;
  border: 2px solid #FFD700;
}

.page-faq__btn-primary:hover {
  background-color: #ffe066;
  border-color: #ffe066;
}

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

.page-faq__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2B4C;
}

.page-faq__cta-section {
  background: linear-gradient(135deg, #0A1C3D, #1A2B4C);
  padding: 50px 30px;
  text-align: center;
  border-radius: 8px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-title {
  font-size: 2.2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-faq__cta-description {
  font-size: 1.1em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

/* Ensure images are responsive and not smaller than 200px in content area */
.page-faq img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-faq__hero-section {
    padding: 60px 15px;
  }

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

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

  .page-faq__hero-image-wrapper {
    opacity: 0.1;
  }

  .page-faq__content-area {
    padding: 30px 15px;
  }

  .page-faq__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-faq__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-faq__faq-question {
    padding: 18px 20px;
    font-size: 1.05em;
  }

  .page-faq__faq-answer {
    padding: 15px 20px;
  }

  .page-faq__cta-section {
    padding: 40px 15px;
  }

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

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

  .page-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-faq__btn-primary,
  .page-faq__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0;
  }
  
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
  }
  
  .page-faq__hero-image {
    filter: grayscale(80%) !important; /* Adjust filter for better contrast on mobile */
  }

  .page-faq__section,
  .page-faq__card,
  .page-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-faq__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }
}