:root {
  --faqPrimaryColor: var(--prime1);
}

.faq {
  margin: 0 auto;
  border: 1px solid var(--faqPrimaryColor);
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  -o-transition: 0.5s;
  -ms-transition: 0.5s;
  -moz-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

@media (max-width: 991px) {
  .faq:first-of-type {
    margin-top: 0;
  }
}

.faq > a {
  color: inherit;
  text-decoration: none;
}

.faq.opened {
}

.faq.opened h3 {
  margin: 0;
}

.faq-h3 {
  border: 0 !important;
  padding: 15px 20px;
  font-size: 1.5rem;
}

.rich-content h3.faq-h3 {
  color: inherit;
  margin: 0 !important;
  font-weight: normal !important;
  position: relative;
}

.rich-content a:hover h3.faq-h3 {
  background: #f1f1f1;
  border-radius: 8px;
}

@media (max-width: 991px) {
  .rich-content h3.faq-h3 {
    font-size: 1.3rem;
  }
}

.rich-content .faq.opened h3.faq-h3 {
  color: #fff;
  background: var(--faqPrimaryColor);
  font-weight: bold !important;
  border-radius: 8px;
}

.faq-h3:before {
  content: "\f128";
  font-family: "FontAwesome";
  padding-left: 0.5rem;
  background: #fff;
  padding: 0px;
  color: #ffffff;
  font-size: 20px;
  position: absolute;
  right: -12px;
  top: 17px;
  line-height: 40px;
  background: var(--faqPrimaryColor);
  border: 2px solid var(--faqPrimaryColor);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq.opened .faq-h3:before {
  content: "\f00c";
  font-size: 14px;
  background: #fff;
  border: 2px solid var(--faqPrimaryColor);
  color: var(--faqPrimaryColor);
}

.faq .answer {
  display: none;
  padding: 30px;
}
/**/

.faq-search:after {
  content: "";
  display: block;
  clear: both;
}

.faq-search label {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #f1f1f1;
  font-size: 1.2rem;
  border-radius: 0 5px 5px 0;
}

.faq-search input {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1.2rem;
  width: 250px;
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.faq-search button {
  float: right;
  display: block;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #3977ad;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 5px 0 0 5px;
}

.faq.opened .answer main .faq-h3:before {
  content: "\f128";
  font-family: "FontAwesome";
  padding-left: 0.5rem;
}

.faq.opened .answer main {
  background-color: rgb(from var(--faqPrimaryColor) r g b / 0.25);
  padding: 1rem;
  border-radius: 21px;
}
/*.faq.opened .answer main .faq {*/
/*  background-color: rgb(from var(--faqPrimaryColor) r g b / 0.25);*/
/*  border-radius: 50px;*/
/*  padding: 0.25rem 1rem;*/
/*}*/
.faq.opened .answer main .faq.opened {
  border-radius: 10px;
}
.faq.opened .answer main .faq.opened .faq-h3:before {
  content: "\f00c";
}
.faq.opened .answer main .faq.opened strong {
  font-size: calc(0.5vw + 16px);
}
#content .sub-pages-nav:not(.with-icons) a {
  padding: 1rem;
  border-right: 20px solid var(--faqPrimaryColor);
}
