.page-wrapper > .row > div:last-child {
  border-right: none;
}
.box > div:first-child {
  display: flex;
  gap: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.box .title {
  display: flex;
  flex-direction: column;
  margin-top: auto;

  & span {
    font-size: calc(0.75vw + 16px);
    line-height: 1;
    position: relative;
    padding-bottom: 3rem;
  }
  & span::after {
    content: "";
    bottom: -1.35rem;
    position: relative;
    display: block;
    width: 50px;
    border-radius: 5px;
    height: 3px;
    background-color: var(--prime2);
  }
}
.box > div:first-child h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0;
}
/* .box .pic img {
  background-color: #f3f3f3;
  width: 100%;
  max-width: 120px;
} */
.page-content {
  background-color: transparent;
}
.colorful {
  margin-block: 4rem;
  font-size: calc(1.215vw + 16px);
  width: 100%;
}
.contact-info .mobile {
  display: flex;
}
.divider {
  height: 2px;
  background-color: var(--prime1);
  width: 70%;
  margin-bottom: 1rem;
}
.page-content-body-side {
  position: relative;
  padding-inline: 2.5rem;
  border-right: var(--prime1-light) 1px solid;
}
.page-content-body-side::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 1px;
  width: 100%;
  background-color: var(--prime1-light);
}
.page-content-body-side > div {
  position: relative;
}
.page-content-body-side > div:not(:first-of-type) {
  border-top: 1px solid var(--prime1-light);
  padding-block: 2rem;
}

.page-content-body-side > div:not(.box) h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  margin: 0 0 2rem 0;
}
.colorful ~ div {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}
.page-content-body-side .box + div p {
  font-weight: 700;
  margin: 0;
  padding: 0;
}
.page-content-body-side .box + div p span {
  font-weight: bold;
  margin-left: 1rem;
  margin-bottom: 2rem;
  width: 47px;
  display: inline-flex;
}

.rich-content .btn-primary,
.rich-content a.btn-primary .rich-content .btn.btn-primary {
  background-color: var(--prime1);
  border-color: var(--prime1);
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 1.2rem;
  margin: 1.5rem;
}

.page-content-body-side .icon {
  position: relative;
  height: 59px;
  width: 59px;
  z-index: 1;

  & img {
    width: 50px;
  }
}

.sub-pages-nav a .icon {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sub-pages-nav a img {
  max-width: 100%;
  max-height: 70px;
  position: relative;
  margin-bottom: 1rem;
}

.sub-pages-nav a .icon img {
  width: 52px;
  position: relative;
  opacity: 0.7;
}
.img-fluid.contact {
  display: block;
  max-width: 100px;
  height: 100px;
  object-fit: cover;
  object-position: center;
}

.magnificPopup-gallery a {
  border: none;
}

/* START OF GRID */
.sub-pages-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 -1rem;
  display: flex;
  flex-wrap: wrap;
  /* display: grid;
  grid-template-columns: repeat(3, 1fr); */
}

.sub-pages-nav ul > li {
  position: relative;
  padding: 0.5rem;
  flex: 1 1 45%;
  max-width: 45%;
  min-width: 200px;
  @media (max-width: 1580px) {
    flex: 1 1 45%;
    max-width: 45%;
  }
  @media (max-width: 1150px) {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.sub-pages-nav a {
  display: block;
  color: inherit;
  font-size: 1.3rem;
  border: none;
  padding: 2px;
  border-radius: 0;
  background-color: #f8fce2;
}
.sub-pages-nav li a {
  position: relative;
  display: flex;
  border-width: 2px;
}
.sub-pages-nav li a .fa-external-link {
  color: var(--prime4);
  font-size: 0.8rem;
  margin-top: 7px;
  position: absolute;
  left: 0.5rem;
}
.sub-pages-nav li a:hover {
  border-color: #a0a0a0;
  box-shadow: 0 0 9px rgba(172, 172, 172, 0.2);
  .arrow {
    inset-inline-end: 9px;
    color: #a0a0a0;
  }
}
.sub-pages-nav a .icon {
  position: relative;
  border-radius: 0;
  padding: 0;
  width: 5px;
}
.sub-pages-nav a > span {
  display: table-cell;
  vertical-align: middle;
  padding: 0.75rem 0.75rem;
  width: 98%;

  @media (max-width: 387px) {
    white-space: normal;
    overflow: hidden;
    text-overflow: initial;
  }
}
.sub-pages-nav li:nth-child(5n + 1) a {
  border-color: var(--prime2);
}
.sub-pages-nav li:nth-child(5n + 2) a {
  border-color: var(--prime2);
}
.sub-pages-nav li:nth-child(5n + 3) a {
  border-color: var(--prime2);
}
.sub-pages-nav li:nth-child(5n + 4) a {
  border-color: var(--prime2);
}
.sub-pages-nav li:nth-child(5n + 5) a {
  border-color: #f4733d;
}
.sub-pages-nav .arrow {
  font-family: "FontAwesome";
  font-style: normal;
  float: left;
  margin-right: 10px;
  color: #b6b6b6;
  position: absolute;
  inset-inline-end: 15px;
  transition: all 0.2s ease-out;
}

@media (max-width: 991px) {
  .sub-pages-nav ul > li {
    width: 100%;
  }
  .sub-pages-nav.with-icons ul > li {
    flex: 0 0 100%;
  }
}
/* END OF GRID */

main[role="main"] {
  & > .rich-content:first-of-type {
    width: 96.5%;
    padding-block: 1rem;
    border-top: 1px solid var(--prime1-light);
    border-bottom: 1px solid var(--prime1-light);

    & h2 {
      color: var(--prime1);
      font-size: calc(1.2vw + 16px);
    }
  }
}

.rich-content .faq {
  position: relative;
  border-radius: 0;
  border: none;
  border: none;
}
.rich-content .faq::after {
  content: "";
  position: absolute;
  bottom: -16px;
  height: 1px;
  width: 100%;
  right: 0;
  background-color: var(--prime1-light);
}
.rich-content .faq:last-child::after {
  content: none;
}
.rich-content .faq-h2 {
  display: none;
}
.rich-content .faq-h3:before {
  content: "\f055";
  border: none;
  background: white;
  color: var(--prime1-light);
  top: 22px;
}
.rich-content .faq.opened .faq-h3:before {
  content: "\f057";
  color: var(--prime1-light);
  border: none;
}
.rich-content h3.faq-h3 {
  color: var(--prime1);
  font-weight: 700;
  font-size: calc(0.925vw + 16px);
}
.rich-content a:hover h3.faq-h3 {
  color: var(--prime1-light);
}
.rich-content .faq.opened h3.faq-h3 {
  background: transparent;
  color: var(--prime1);
}
.rich-content a:hover h3.faq-h3 {
  color: var(--prime1-light);
  background-color: transparent;
}

.faq ul li::marker {
  font-size: 2rem;
  color: var(--prime2);
}
.faq .answer {
  font-size: 1.2rem;
}
.sub-pages-nav ul > li::after {
  content: none !important;
}
.sub-pages-nav.with-icons a {
  border-width: 2px;
}
.sub-pages-nav.with-icons a .icon {
  min-height: 70px;
  object-fit: contain;
}
.sub-pages-nav a > span {
  white-space: normal;
}
.sub-pages-nav.with-icons ul {
  margin: 0;
  align-items: stretch;
}

.page-gallery-slick {
  & .slick-slide {
    margin-inline: 1rem;
  }
}

[dir="rtl"] .slick-next {
  left: -10px;
}
[dir="rtl"] .slick-prev {
  right: -10px;
}

@media (max-width: 991px) {
  .box .title {
    padding-top: 2rem;
  }
  .page-content-body-side {
    padding-inline: 0.5rem;
    border-right: none;
  }
  .page-content-body-side .icon {
    display: none;
    & img {
      display: none;
    }
  }
  .page-content-body-side::after {
    content: none;
  }
}
