#faq-page {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

.bg-faq {
  min-height: 100vh;
  position: relative;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 5rem 0 0 0;
  padding: 8rem 0 0 0;
  z-index: 1;
}

.bg-faq h1 {
  font-size: clamp(1.5rem, 6vw, 2.3rem);
  color: var(--secondary-color);
  text-align: start;
  font-weight: bold;
  line-height: 0.8;
}

.bg-faq span {
  display: inline-block;
  font-size: clamp(0.7rem, 4vw, 1.2rem);
  text-align: start;
  font-weight: bold;
  padding-bottom: 0.9rem;
  color: var(--secondary-color);
}

.bg-faq .text-welcome {
  font-size: clamp(0.6rem, 4vw, 1rem);
  text-align: start;
  color: var(--secondary-color);
  width: 49%;
  line-height: 1.3;
}

.accordion-collapse {
  transition: height 0.3s ease;
}

.bg-faq.fixed-bg {
  background-attachment: fixed;
  background-position: center center;
}

.faq-section {
  max-width: 85%;
  margin: 20px auto 50px auto;
  padding: 20px;
}

.faq-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.faq-question .icon {
  transition: transform 0.3s ease;
  font-weight: bold;
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 0;
}

.faq-answer p {
  margin: 10px 0;
  font-size: 1rem;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* enough for content */
  padding: 10px 0;
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
  content: "–";
}

/* media query */

@media (max-width: 468px) {
  .bg-faq h1 {
    line-height: 1.7rem;
  }

  .bg-faq .text-welcome {
    width: 100%;
  }

  .faq-section {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
  }

  .faq-question {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    padding: 5px 0;
  }

  .faq-answer p {
    font-size: 0.8rem;
  }
}
