:root {
  --prime1: #305948;
  --prime2: #db6f42;
  --prime3: #9bbf6e;

  --textcolor: #5a5e5c;
}
* {
  font-family: "Rubik", arial, sans-serif;
}
body {
  background-color: #f5f7f6;
}
.container {
  min-width: 82%;
}
.page-content-body {
  min-height: unset;
}
h1 {
  font-size: calc(2.75vw + 16px);
  font-weight: 700;
}
.breadcrumbs {
  padding-inline-end: 1rem;
  display: flex;
  font-size: 1.35rem;

  @media (max-width: 991px) {
    margin-top: 1.5rem;
    margin-bottom: 0;
    justify-content: flex-start;
  }
}

.breadcrumbs a {
  color: #fff;
  padding-inline: 0.25rem;
}
.breadcrumbs ul > li:after {
  color: #ff4000;
}
.mobile-navigation .content {
  height: auto;
}
div[class^="root-page"] > .container-fluid {
  width: 82%;

  @media (max-width: 991px) {
    width: 96%;
  }
}

div.department {
  overflow-x: clip;
  margin-top: 4.5rem;
}
.contact {
  color: var(--prime1);
  width: 100%;
  margin-bottom: 15rem;

  & a {
    color: var(--prime2);
  }

  & > .row {
    margin-right: auto;
    margin-left: 5rem;
    padding: 3.5rem;
    width: 82%;
    background-color: #fff;
    border-radius: 2rem;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  }
  & .row > div:first-child {
    display: flex;
  }
  & .inner {
    margin-right: auto;
    padding-left: 5rem;
  }
  & h2 {
    color: var(--prime2);
    font-weight: 900;
    font-size: calc(2.5vw + 16px);
    position: relative;
  }
  & h2::after {
    content: "";
    position: relative;
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--prime3);
    right: 0;
    bottom: -5rem;
  }

  & .wrap > div {
    line-height: 1.2;
    font-size: 1.3rem;
    padding-block: 1rem;
    border-bottom: 2px solid #efefef;
    display: flex;
    gap: 1rem;

    & > span {
      display: block;
    }
  }
  & .wrap > div:last-child {
    border-bottom: none;
  }

  &::after {
    content: "";
    position: absolute;
    height: 510px;
    width: 640px;
    bottom: -246px;
    right: -35px;
    z-index: 0;
    background-size: cover;
    background-image: var(--contact-bg);
  }
}
.fin {
  position: relative;
  width: 100%;
  z-index: 5;
}

/* Page Header */
.page-header {
  height: 590px;
  margin-top: 79px;
  background-repeat: no-repeat;
  background-position: left;
  background-size: cover;
  position: relative;
  z-index: 1;
  display: flex;
  width: 90%;
  margin-inline: auto;
  border-radius: 0 0 70px 70px;
  border: 10px solid #fff;
  color: #fff;
  box-shadow:
    rgba(0, 0, 0, 0.25) 0px 54px 55px,
    rgba(0, 0, 0, 0.12) 0px -12px 30px,
    rgba(0, 0, 0, 0.12) 0px 4px 6px,
    rgba(0, 0, 0, 0.17) 0px 12px 13px,
    rgba(0, 0, 0, 0.09) 0px -3px 5px;

  & .container {
    position: relative;
    z-index: 3;
  }
}
.page-header-title {
  width: 100%;
  display: flex;
  align-items: center;
}
.page-header::after {
  content: "";
  position: absolute;
  background: linear-gradient(
    to left,
    oklch(from #002318 l c h / 0.7),
    transparent
  );
  z-index: 0;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  border-radius: 0 0 60px 60px;
}

.page-content {
  position: relative;
  background: transparent;
  max-width: inherit;
  margin-bottom: 0;
  box-shadow: none;
  width:100%;
}

.page-content-head {
  background: oklch(from var(--prime1) l c h / 0.9);
  border-radius: 0 0 70px 70px;
  color: #fff;
  padding: 2rem 1rem;
  position: relative;
  width: 100%;
  margin-top: auto;
  z-index: 1;

  @media (max-width: 991px) {
    padding: 1rem;
    border-radius: 0 0 30px 30px;
  }
}

.rich-content {
  font-size: 1.25rem;
}
.rich-content h2 {
  color: var(--prime1);
  font-weight: 700;
  font-size: calc(1.8vw + 16px);
  margin-bottom: 0.25rem;
}
.rich-content > p[style*="text-align: center"] {
  font-size: calc(0.55vw + 16px);
  padding-inline: 5rem;
  padding-top: 5rem;

  @media (max-width: 767px) {
    padding-inline: 1rem;
    padding-top: 0;
  }
}
.sub-pages-nav.department:not(.with-icons) {
  margin-block: 5rem;

  & ul {
    display: flex;
    flex-wrap: wrap;
    /* css hack safari */
    align-items: stretch;
  }

  & li {
    /* css hack safari */
    display: flex;
    flex-direction: column;
    /* end css hack safari */
    flex: 1 0 100%;
    max-width: 25%;
    margin-bottom: 5rem;
    min-height: 0;
  }

  & li > div {
    border-radius: 1.75rem;
    background-color: #fff;
    padding: 0.7rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    /* css hack safari */
    height: 100%;
  }

  & ul li a {
    box-shadow: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 1rem;
    /* css hack safari */
    height: 100%;

    &:hover {
      border: 2px solid var(--prime2);
      border-right: 2px solid var(--prime2);
      text-decoration: none;
    }
  }

  & .icon {
    background-color: #fff;
    z-index: 2;
    margin-top: -6.5rem;
    padding: 2rem;
    display: block;
    width: 160px;
    height: 160px;
    border-radius: 100vw;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  }

  & img {
    width: 100%;
    max-width: 100%;
  }

  & span + span {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--prime1);
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
  }

  & a:hover {
    & span + span {
      color: var(--prime2);
    }
  }
}
.sub-pages-nav.with-pic ul {
  margin-block: 5rem;
}

.sub-pages-nav.with-pic li {
  aspect-ratio: 1;
}
.sub-pages-nav.with-pic a {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100%;
}
.sub-pages-nav.with-pic .grade {
  background: linear-gradient(
    180deg,
    rgba(18, 189, 221, 0) 0%,
    rgb(22 115 125) 100%
  );
  position: absolute;
  margin: auto;
  inset: 0;
  filter: drop-shadow();
}
.sub-pages-nav.with-pic a {
  text-align: right;
  display: flex;
  overflow: hidden;
  position: relative;
  background-size: 100% 100%;
  aspect-ratio: 1;
}
.sub-pages-nav.with-pic a .info {
  position: relative;
  margin: auto;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sub-pages-nav.with-pic .name {
  line-height: normal;
  font-size: calc(0.87vw + 16px);
  font-weight: 500;
  position: relative;
  padding-bottom: 2rem;
  position: relative;
  transition: all 0.52s ease;
  line-height: 1;
  overflow-y: hidden;
  bottom: 0;
}

.sub-pages-nav.with-pic .name::after {
  top: 1rem;
  position: relative;
  content: "";
  width: 100px;
  height: 1px;
  border-radius: 5px;
  background-color: #ffbf00;
  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 (min-width: 992px) {
  .sub-pages-nav.with-pic a:hover {
    background-size: 120% 120%;
  }
  .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;
  }
}
.sub-pages-nav.with-pic .read-more {
  color: #ffbf00;
}

.socials {
  padding-right: 10rem;
  display: flex;
  position: relative;
  margin-top: -1.5rem;
  gap: 10px;
  z-index: 9;

  @media (max-width: 991px) {
    padding-right: 2rem;
  }
}

.iconbtn {
  float: right;
  height: 30px;
  color: #fff;
  margin-left: 0.15rem;
  border-radius: 100vw;
  height: 50px;
  width: 50px;
  padding: 5px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0);
  transition: all 0.2s ease;
  background-size: cover;

  @media (max-width: 991px) {
    height: 40px;
    width: 40px;
  }
}

.sub-pages-nav.with-icons ul {
  display: flex;
  flex-wrap: wrap;
  color: var(--text);
  justify-content: center;
}

.sub-pages-nav.with-icons li {
  flex: 1 0 30%;
  max-width: 33%;
  margin-block: 2rem;

  @media (max-width: 1200px) {
    flex: 1 0 40%;
    max-width: 40%;
  }
  @media (max-width: 600px) {
    flex: 1 0 100%;
    max-width: 100%;
  }
}

.footer {
  box-shadow: none;
}
.page-header .overlay,
.overlay {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(1, 16, 129, 0.67) 100%
  );
  position: absolute;
  margin: auto;
  inset: 0;
  height: inherit;
  border-radius: 30px;
}

.address {
  margin-top: 9rem;
  display: flex;
  flex-wrap: wrap;

  & > * {
    transition: all 0.2s ease;
  }

  a,
  .ico {
    color: var(--text);
    flex: 1 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    span {
      text-align: center;
    }
    &:hover {
      text-decoration: none;
      i {
        color: var(--site1);
      }
    }
  }
  i {
    font-size: 4rem;
    color: var(--site2);
  }
  div.ico {
    border-right: 1px solid #cdcdcd;
    border-left: 1px solid #cdcdcd;
    span {
      max-width: 55%;
      @media (max-width: 991px) {
        max-width: 90%;
      }
    }
  }
  p {
    font-size: 1.3rem;
    margin: 10px;
    font-weight: 700;
  }
  a:last-of-type {
    margin: 5rem auto;
    padding: 0.2rem 0.7rem;
    flex-direction: row-reverse;
    justify-content: center;
    border: 2px solid var(--site2);
    border-radius: 100vw;
    flex: 1 0 100%;
    max-width: 375px;
    p {
      font-size: 1.5rem;
      font-weight: 400;
    }
    i {
      color: var(--text);
      font-size: 2.5rem;
    }
    span {
      display: none;
    }
    &:hover {
      background-color: var(--site1);
      color: #fff;
      i {
        color: var(--site2);
      }
    }
  }

  @media (max-width: 767px) {
    flex-direction: column;
    margin-block-start: 3rem;
    margin-block-end: 0;

    a,
    div.ico {
      margin-block: 1rem;
      border: none;
      i {
        font-size: 2rem;
      }
    }
    a:last-of-type {
      p {
        text-align: center;
        font-size: 1.2rem;
      }
    }
  }
}

.page-wrapper {
  position: relative;
}
.side-container {
  position: relative;
}
.side {
  top: 8rem;
  background-color: var(--site1);
  color: #fff;
  border-radius: 0 20px 20px 0;
  padding: 2rem;
  position: absolute;
  left: 0;
  height: auto;
  z-index: 9;
  font-size: 1.5rem;
  max-width: 500px;
  a {
    display: block;
    padding-block: 1rem;
    color: var(--site2);
  }

  @media (max-width: 991px) {
    top: 0rem;
    position: relative;
    margin: auto;
    border-radius: 20px;
    max-width: 90%;
  }
}

@media (max-width: 1500px) {
  .contact {
    &::after {
      height: 400px;
      width: 500px;
      right: 0;
    }
  }
}

@media (max-width: 991px) {
  .sub-pages-nav {
    margin-block: 2.5rem;
  }
  .page-content-body {
    padding-top: 0;
  }
  .page-header {
    margin-top: -2rem;
    height: 360px;
  }
  .sub-pages-nav.department:not(.with-icons) {
    padding: 1rem;
    & .icon {
      width: 120px;
      height: 120px;
    }
    & li {
      max-width: 50%;
    }
  }
  .contact {
    &::after {
      height: 280px;
      width: 350px;
    }
  }

  .contact {
    padding-inline: 1rem;
    & .wrap {
      padding-top: 1rem;
    }
    & .wrap > div {
      flex-direction: column;
    }
    & h2 {
      font-size: calc(6vw + 16px);
    }
    & h2::after {
      bottom: -1rem;
    }
    & .inner {
      margin: auto;
      padding: 1rem;
    }
    & > .row {
      width: 100%;
      margin-inline: auto;
    }
  }
}
