/* =========================
   Shared FAQs section
   ========================= */

.template-faqs {
  padding: 80px 0;
}

.template-faqs__accordion {
  width: 100%;
}

.template-faqs__item {
  padding: 0;
  border: 3px solid #262626;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #ffffff;
}

.template-faqs__question {
  width: 100%;
  padding: 24px 50px 24px 24px;
  border: 0;
  text-align: left;
  position: relative;
  cursor: pointer;
  font-family: "Gilroy", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  background: #262626;
  color: #ffff;
}

.template-faqs__item.is-open .template-faqs__question {
  background: #f99f1c;
  color: #ffffff;
}

.template-faqs__question-text {
  display: block;
}

.template-faqs__icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
}

.template-faqs__icon::before,
.template-faqs__icon::after {
  content: "";
  position: absolute;
  transition: transform 200ms cubic-bezier(0.645, 0.045, 0.355, 1);
}

.template-faqs__question .template-faqs__icon::before,
.template-faqs__question .template-faqs__icon::after {
  background: #ffffff;
}

.template-faqs__item.is-open .template-faqs__icon::before,
.template-faqs__item.is-open .template-faqs__icon::after {
  background: #ffffff;
}

.template-faqs__icon::before {
  width: 16px;
  height: 2px;
  top: 7px;
  left: 0;
}

.template-faqs__icon::after {
  width: 2px;
  height: 16px;
  top: 0;
  left: 7px;
}

.template-faqs__item.is-open .template-faqs__icon::after {
  transform: scaleY(0);
}

.template-faqs__answer {
  background: none !important;
}

.template-faqs__answer-inner {
  padding: 50px;
}

.template-faqs__answer-inner p:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}

.template-faqs__answer-inner,
.template-faqs__answer-inner p {
  color: #515151;
  font-size: 18px;
  line-height: 30px;
}

/* Open state */

.template-faqs__item.is-open {
  border-color: #f99f1c;
}

.template-faqs__item.is-open .template-faqs__question {
  background: #f99f1c;
  color: #ffffff;
}

.template-faqs__item.is-open .template-faqs__icon::before,
.template-faqs__item.is-open .template-faqs__icon::after {
  background: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
  .template-faqs {
    padding: 60px 0;
  }

  .template-faqs__question {
    font-size: 20px;
    padding: 20px 44px 20px 20px;
  }

  .template-faqs__answer-inner {
    padding: 30px;
  }
}

@media (max-width: 575px) {
  .template-faqs__question {
    font-size: 18px;
  }

  .template-faqs__answer-inner {
    padding: 24px 20px;
  }
}
