/* Side Navigation */

/* global */

.pages-nav ul {
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.pages-nav a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding: 1.25rem 0 1.25rem 15px;
  font-size: 1.25rem;
}

.pages-nav li {
  position: relative;
}
.pages-nav > ul > li::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(var(--prime2RGB), 0.09);
}
.pages-nav li:after {
  font-family: "FontAwesome";
  content: "\f104";
  position: absolute;
  top: 0.75rem;
  left: 5px;
  color: var(--text);
  font-size: 1.4rem;
}
.pages-nav li.on:after {
  color: var(--prime2);
}

.pages-nav li:last-child {
  border-bottom: 0;
}

.pages-nav li > span {
  display: block;
  position: relative;
  /*padding-right: 30px;*/
}

.pages-nav a:hover,
.pages-nav a:focus,
.pages-nav a.on {
  color: var(--prime1);
}

.pages-nav a.on {
  font-weight: bold;
}

/* sub levels */

.pages-nav li.on > ul {
  display: block;
}

.pages-nav li > ul {
  display: none;
  margin-right: 7px;
}

/* toggle menu button */

.pages-nav button {
  position: absolute;
  top: 0;
  right: 0;

  font-family: "FontAwesome";
  font-style: normal;

  width: 25px;
  height: 100%;

  padding: 5px;
  background: none;
  border: 0;
  color: #56bcaf;

  display: none;
}

.pages-nav button:before {
  content: "\f053";
}

.pages-nav button.opened:before {
  content: "\f078";
}

.pages-nav button.no-sub-menu {
  font-size: 80%;
  padding-top: 2px;

  display: none;
}

.pages-nav button.no-sub-menu:before {
  content: "\f1db";
}

.pages-nav button.external-link:before {
  content: "\f08e";
}

/* Side Title */

aside {
  background: #fff;
  margin-bottom: 1.5rem;
  margin-top: 5rem;
  box-shadow: none;
  border-radius: 0;
}

aside nav {
  position: relative;
  border-radius: 0;
  padding-inline: 4rem;

  @media (max-width: 1500px) {
    padding-inline: 3px;
  }
}
aside nav::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 0;
  border-right: 2px solid rgba(var(--prime2RGB), 0.09);
  height: 100%;
  width: 1px;
}
.pages-nav-title {
  color: var(--prime1);
  font-weight: bold;
  font-size: 2rem;
  margin: 0;
  padding: 3rem 1.25rem 1rem 0.25rem;
  position: relative;
  font-weight: 900;
}

@media (max-width: 991px) {
  aside {
    display: none;
  }
  .pages-nav > ul > li::before {
    width: 100%;
  }
}

/** PIC nav **/
.container:has(.with-pic) {
  max-width: 100%;
  min-width: 100%;
  width: 100%;
}
.sub-pages-nav.with-pic ul {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.sub-pages-nav.with-pic li {
  aspect-ratio: 1;
  flex: 1 0 45%;
  max-width: 45%;
}

.sub-pages-nav.with-pic .grade {
  background: linear-gradient(
    160deg,
    rgba(18, 189, 221, 0) 0%,
    rgba(5, 37, 125, 0.9) 100%
  );
  position: absolute;
  margin: auto;
  inset: 0;
  filter: drop-shadow();
  transition: all 0.2s ease;
}
.sub-pages-nav.with-pic a {
  background-position: center;
  height: 100%;
  text-align: right;
  display: flex;
  overflow: hidden;
  position: relative;
  background-size: cover;
  aspect-ratio: 1;
  padding: 1rem;
}
.sub-pages-nav.with-pic a .info {
  position: relative;
  margin: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sub-pages-nav.with-pic .name {
  display: block;
  line-height: normal;
  font-size: calc(0.87vw + 16px);
  font-weight: 500;
  position: relative;
  padding-bottom: 3rem;
  position: relative;
  transition: all 0.52s ease;
  line-height: 1;
  overflow-y: hidden;
  bottom: 0;
}

.sub-pages-nav.with-pic .name::after {
  top: 0.57rem;
  position: relative;
  content: "";
  width: 100px;
  height: 1px;
  border-radius: 5px;
  background-color: var(--prime2);
  display: block;
}
.sub-pages-nav.with-pic p {
  line-height: 1.1;
  transition: all 0.52s ease;
  overflow-y: clip;
  position: absolute;
  font-size: calc(0.1vw + 16px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  transform: translateY(180px);
  padding-inline-end: 1.5rem;
}
.sub-pages-nav.with-pic p.hasText {
  max-height: 120px;
}
@media (max-width: 1199px) {
  .sub-pages-nav.with-pic li {
    aspect-ratio: unset;
    flex: 1 0 47%;
    max-width: 47%;
    min-height: 200px;
  }
  .sub-pages-nav.with-pic a {
    aspect-ratio: unset;
  }
}
@media (min-width: 992px) {
  .sub-pages-nav.with-pic a:hover {
    text-decoration: none;
  }
  .sub-pages-nav.with-pic a:hover .grade {
    background: linear-gradient(
      180deg,
      rgba(18, 189, 221, 0) 0%,
      rgba(2, 23, 80, 1) 100%
    );
  }
  .sub-pages-nav.with-pic a:hover p {
    opacity: 1;
    transform: translateY(1rem);
  }
  .sub-pages-nav.with-pic a:hover .name {
    bottom: 0;
  }
  .sub-pages-nav.with-pic a:has(.hasText):hover .name {
    bottom: 95px;
  }
}

@media (max-width: 767px) {
  .sub-pages-nav.with-pic li {
    flex: 1 0 100%;
    max-width: 100%;
  }
}
