/* Main container */
.faq-page {
  display: grid;
  grid-template-columns: 420px minmax(200px, 770px);
  -moz-column-gap: 50px;
  column-gap: 50px;
  max-width: 1440px;
  width: 100%;
  padding: 50px 100px 100px;
  margin: auto;
  position: relative;
}
.faq-page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: -1;
  background: var(--white);
  transition: padding 0.3s ease;
  overflow: hidden;
}
/* content left side*/
.faq-page .caption-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  gap: 10px;
  background-color: var(--blue-2);
  width: 68px;
  height: 35px;
  color: var(--blue-1);
  border-radius: 30px;
}
.faq-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-title a {
  color: var(--blue-1);
}
.faq-title a:hover {
  text-decoration: underline;
}
/* content right side */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: gap 0.3s ease;
}
/* Dropdown menu */
.faq-item {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color 0.3s ease;
}
.faq-item .btn-4 {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.faq-item .btn-4:hover {
  opacity: 0.5;
}
.faq-item .btn-4::after {
  content: url(../../icons/faq-plus.svg);
  display: inline-block;
  height: 24px;
  width: 24px;
  transition: transform 0.3s ease, content 0.3s ease;
}
.faq-item.active .btn-4::after {
  content: url(../../icons/faq-minus.svg);
  height: 24px;
  width: 24px;
}
.faq-item .body-2 {
  overflow: hidden;
  opacity: 0;
  max-height: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.faq-item.active {
  border: 1px solid var(--blue-1);
  gap: 16px;
}
.faq-item.active .body-2 {
  color: var(--grey-1);
  max-height: 500px;
  opacity: 1;
}
/* bg wrapper */
.image-wrapper-faq {
  position: absolute;
  top: 300px;
  left: -350px;
  width: 700px;
  height: 600px;
  z-index: -1;
  transform: scaleX(-1) rotate(70deg);
  transition: bottom 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}
.image-wrapper-faq img {
  width: 100%;
  height: 100%;
}
.faq-section-bottom {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1000px) {
  .faq-page {
    display: flex;
    flex-direction: column;
  }
  .image-wrapper-faq {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: none;
  }
  .faq-title {
    padding-bottom: 30px;
  }
}
@media (max-width: 767px) {
  .faq-page {
    padding: 50px 20px 50px;
  }
  .faq-list {
    gap: 8px;
  }
  .faq-item .btn-4::after {
    transform: scale(0.833);
  }
  .faq-item .btn-4:hover {
    opacity: 1;
  }
}
