/* style/faq.css */

.page-faq {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#121212), so text should be light */
  background-color: transparent; /* Main content background will be transparent to show body background */
}

/* Fixed header offset */
.page-faq__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

.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;
  overflow: hidden;
  background-color: #1a1a1a; /* Slightly darker than body for visual separation */
}

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

.page-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  line-height: 1.2;
}

.page-faq__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-faq__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Make background image subtle */
}

.page-faq__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #26A9E0; /* Brand color for section titles */
}

.page-faq__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-faq__faq-section {
  padding: 60px 0;
  background-color: #121212; /* Consistent with body background */
}

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

.page-faq__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  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: rgba(255, 255, 255, 0.05); /* Even lighter transparent white for question background */
  transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-faq__faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: #ffffff;
}

.page-faq__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

.page-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding for collapsed state */
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

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

.page-faq__faq-answer p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

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

/* Button styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
  font-size: 1.1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-faq__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-faq__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 15px; /* Spacing for multiple buttons */
}

.page-faq__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-faq__image-container {
  margin-top: 20px;
  text-align: center;
}

.page-faq__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensures max-width works as expected */
  margin: 0 auto; /* Center the image */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-faq__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
  }

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

  .page-faq__intro-text {
    font-size: 1em;
  }

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

  .page-faq__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-faq__faq-question h3 {
    font-size: 1.1em;
  }

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

  .page-faq__faq-item.active .page-faq__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Responsive images */
  .page-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-faq__section,
  .page-faq__card,
  .page-faq__container,
  .page-faq__hero-image-wrapper,
  .page-faq__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Responsive buttons */
  .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-left: 0 !important; /* Remove left margin for stacking */
    margin-bottom: 10px; /* Add bottom margin for stacking */
  }

  .page-faq__hero-content .page-faq__btn-primary {
    margin-bottom: 20px; /* Keep some space below the hero button */
  }

  .page-faq__faq-answer .page-faq__btn-secondary {
    margin-top: 15px;
  }
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-faq__content-image {
  min-width: 200px;
  min-height: 200px;
}
/* Ensure no CSS filter is used for images */
.page-faq img {
  filter: none;
}