/* 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;
  border-bottom: 2px solid #eee;
}
.pages-nav > ul > li::before {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(var(--prime2RGB), 0.09);
}
.pages-nav li:nth-of-type(even) {
  border-bottom: 2px solid rgb(from var(--prime2) r g b / 0.12);
}
.pages-nav li:nth-of-type(odd) {
  border-bottom: 2px solid rgb(from var(--prime2b) r g b / 0.12);
}
.pages-nav li:after {
  font-family: "FontAwesome";
  content: "\f104";
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 5px;
  color: var(--prime2);
  font-size: 1.4rem;
}
.pages-nav li:nth-of-type(even):after {
  color: var(--prime2);
}
.pages-nav li:nth-of-type(odd):after {
  color: var(--prime2b);
}

.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(--prime2);
}

.pages-nav a.on {
  font-weight: bold;
}

/* sub levels */

.pages-nav li.on > ul {
  display: block;
}

.pages-nav li > ul {
  display: none;
  margin-inline-start: 7px;
}

/* toggle menu button */

.pages-nav button {
  position: absolute;
  top: 0;
  inset-inline-start: 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 {
  /*margin-top: 5rem;
  padding-top: 2rem;*/
  /* padding-right: 2rem; */
  padding-inline-start: 2rem;
  padding-bottom: 1rem;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  z-index: 2;
}

aside nav {
  position: relative;
  border-radius: 0;
  /* padding-right: 1.5rem; */
  padding-inline-start: 1.5rem;

  & ul {
    position: relative;
    z-index: 1;
    &::after {
      /* content: "";
      position: absolute;
      left: -35%;
      top: -28px;
      width: 145%;
      height: 111%;
      border-radius: 0 50px 50px 0;
      box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
      z-index: -1; */
    }

    &::after {
      content: "";
      position: absolute;
      inset-inline-end: -1.75rem;
      top: 0;
      /* border-left: 2px solid #eee; */
      background: linear-gradient(
        180deg,
        var(--color-blue),
        var(--color-green),
        var(--color-gold)
      );
      height: 100%;
      width: 2px;
    }
  }

  @media (max-width: 1500px) {
    padding-inline: 3px;
  }
}
aside nav::after {
  content: "";
  content: none;
  position: absolute;
  /* right: -1rem; */
  inset-inline-start: -1rem;
  top: 0;
  /* border-right: 2px solid rgb(from var(--prime2) r g b / 0.09); */
  border-inline-start: 2px solid rgb(from var(--prime2) r g b / 0.09);
  height: 100%;
  width: 1px;
}
.pages-nav-title {
  color: var(--prime2b);
  font-size: calc(2vw + 16px);
  margin: 0;
  padding: 3rem 1.25rem 1rem;
  position: relative;
  z-index: -1;
}

@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 {
  flex: 1 0 30%;
  max-width: 30%;
}

.sub-pages-nav.with-pic .grade {
  background: linear-gradient(
    181deg,
    rgba(18, 189, 221, 0) 0%,
    rgb(5 37 125 / 78%) 100%
  );
  position: absolute;
  height: 55%;
  bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  filter: drop-shadow();
  transition: all 0.2s ease;
}
.sub-pages-nav.with-pic a {
  background-position: center;
  height: 100%;
  /* text-align: right; */
  text-align: start;
  display: flex;
  overflow: hidden;
  position: relative;
  background-size: cover;
  aspect-ratio: 5 / 4;
  padding: 1rem 1rem 0;
}
.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;
  font-size: calc(0.25vw + 16px);
  font-weight: 500;
  padding-bottom: 1rem;
  position: relative;
  transition: all 0.52s ease;
  line-height: 1;
  overflow-y: hidden;
  bottom: 0;
  min-height: 57px;
}

/*.sub-pages-nav.with-pic .name::after {*/
/*  position: absolute;*/
/*    content: "";*/
/*    width: 100px;*/
/*    height: 1px;*/
/*    border-radius: 5px;*/
/*    background-color: #fff;*/
/*    display: block;*/
/*    bottom: 0;*/
/*}*/
/*.sub-pages-nav.with-pic a:hover .name:after{*/
/*    background-color:var(--prime4);*/
/*}*/
.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 {
    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;
  }
}

@media (max-width: 767px) {
  .sub-pages-nav.with-pic li {
    flex: 1 0 100%;
    max-width: 100%;
  }
}
