:root {
  --prime1: #132d78;
  --prime2: #132d78;
}

.faq {
  margin: 0 auto;
  border: 1px solid var(--prime1);
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  transition: all 0.5s ease-in-out; 
}

@media (max-width: 991px) {
  .faq:first-of-type {
    margin-top: 0;
  }
}

.faq > a {
  color: inherit;
  text-decoration: none;
}

.faq.opened h3 {
  margin: 0;
}

h2.faq-h2 {
  font-size: 28px;
}

.faq-h3 {
  position: relative;
  border: 0 !important;
  padding: 15px 20px;
  font-size: 1.25rem;
  transition: all 0.5s ease-in-out;
}

.rich-content h3.faq-h3 {
  color: inherit;
  margin: 0 !important;
  font-weight: normal !important;
  position: relative;
  border-radius: 10px;
}

.rich-content a:hover h3.faq-h3 {
  border-radius: 10px; 
  color: #fff;
  background: var(--prime1);
}

.rich-content a:hover h3.faq-h3:before {
  color: var(--prime1);
  background: #fff;
}

@media (max-width: 991px) {
  .rich-content h3.faq-h3 {
    font-size: 1.3rem;
  }
}

.faq.opened .faq-h3 {
  color: #fff;
  background: var(--prime1);
}

.faq-h3:before {
  content: "\2b";
  font-family: "FontAwesome";
  background: var(--prime1);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;

  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);

  border: 2px solid var(--prime1);
  width: 28px;
  height: 28px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq.opened .faq-h3:before {
  content: "\f00c";
  font-size: 14px;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 2px solid var(--prime1);
  color: var(--prime1);
}

.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;
}