@font-face {
    font-family: AvenirNext;
    src: url(/assets/fonts/avenir-next/AvenirNextLTPro-Regular.otf);
}

@font-face {
    font-family: Poppins;
    src: url(/assets/fonts/Poppins-Font-2/Poppins-Regular.ttf);
}

@font-face {
    font-family: Titillium;
    src: url(/assets/fonts/Titillium/TitilliumWeb-Regular.ttf);
}


/* Preheader styles */

.preheader-text {
    font-family: Poppins;
    font-weight: 400;
    font-size: 14px;
    font-style: normal;
    color: #322E2E;
    margin: 0px;
}

.preheader-link {
    text-decoration: none;
    color: inherit;
}

.preheader-link:hover {
    color: #008D9A;
}

nav{
    background: #fff;
}

.vl {
    border-left: 1px solid #8C8C8C;
    height: 10px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.preheader {
    background: #fff;
    border-bottom: .5px solid #8C8C8C;
}
.display-flex {
    display: flex;
}

.ml-auto {
    margin-left: auto;
}
.mr-auto {
    margin-right: auto;
}

.flex-grow-1 {
    flex-grow: 1;
}

.preheader-user {
    width: 28px;
    height: 28px;
    /* border: .7px solid #000000; */
    border-radius: 50%;
    display: inline-block;
    text-align: center;
}

.preheader-user > img {
    width: 100%;
}

/* Header styles */

.header-link {

    font-family: Poppins;
    font-weight: 500;
    font-size: 16px;
    font-style: normal;
    line-height: 28px;
    color: #322E2E;
}

.nav-link:focus, .nav-link:hover {
    color: #008D9A !important;
}

.nav-item > .active {
    color: #008D9A ;
}

.search input {
    background-color: #FDFDFC;
    background-color: rgba(255, 255, 255, .9);
    box-shadow: inset 1px 1px 0 0 rgba(0, 0, 0, .14);
    font-weight: 400;
    font-size: .9em;
    padding: .8em 1em .7em;
    color: #252424;
  }
  .search input {
    display: none;
  }

.search-button {
    display: flex;
    text-decoration: none;
}

.search-button > .fa {
    margin: auto;
}

.navbar-nav {
    justify-content: space-between;
    min-width: 60%;
}

@media only screen and (max-width: 992px) {
    .desktop-options{
        display: none;
    }
    
    .mobile-options {
        display: inherit;
    }

    .groups-menu, .dropdown-sub-2, .dropdown-sub-1 {
        border: none;
    }
}

.groups-menu, .dropdown-sub-2, .dropdown-sub-1 {
    border-radius: 0px;
}

@media only screen and (max-width: 418px) {
    .preheader-part-1{
        display: none;
    }
    .preheader-part-2{
        margin-right: auto;
    }
}


@media only screen and (min-width: 993px) {
    .desktop-options{
        display: inherit;
    }
    
    .mobile-options {
        display: none;
    }
}

a:hover {
    color: #0a58ca;
}

/* when scroll down */
.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    animation: smoothScroll 1s forwards;
  }
  @keyframes smoothScroll {
      0% {
        transform: translateY(-40px);
      }
      100% {
          transform: translateY(0px);
      }
  }

/* when scroll top  */

.ess-header{
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    animation: smoothTopScroll 1s forwards;
}
@keyframes smoothTopScroll {
    0% {
    transform: translateY(-40px);
    }
    100% {
        transform: translateY(0px);
    }
}

.dropdown-item:hover{
    padding-left: .7rem;
    border-left: .3rem solid #008D9A;
    color: #008D9A;
}

.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0rem; 
}


 /*  Logi modal */
.login-modal-title {
    font-family: Titillium;
    font-weight: 400;
    font-size: 21px;
    font-style: normal;
    line-height: 32px;
    text-align: center;
    color: #322E2E;
}

.login-modal-label {
    font-family: Titillium;
    font-weight: 400;
    font-size: 16px;
    font-style: normal;
    line-height: 32px;
    color: #322E2E;
}

.login-modal-remember {
    font-family: Titillium;
    font-weight: 300;
    font-size: 13px;
    font-style: normal;
    line-height: 13px;
    color: #444141;
}

.login-modal-forgot {
    font-family: Titillium;
    font-weight: 300;
    font-size: 13px;
    font-style: normal;
    line-height: 25px;
    color: #000;
    text-align: right;
}

.login-modal-forgot > a {
    text-decoration: none;
}

.login-modal-forgot > a:hover {
    text-decoration: underline;
    color: #008D9A;
}

.login-modal {
    padding: 3rem;
    border-radius: 0px;
}

input {
    font-family: Titillium;
}

.login-input {
    border-radius: 0px;
    background: #F2F5F7;
}

.login-check {
    border-radius: 0px !important;
    transition: all 1s ease;
}

.groups-menu a {
    text-decoration: none;
    color: #322E2E;
}

.groups-menu a:hover {
    text-decoration: none;
    color: #008D9A;
}

.ess-dropdown .dropdown-menu {
    background: #fff;
    color: #fff;
    position: relative;
    z-index: 10;
    top: 3rem;
}

.ess-dropdown .dropdown-menu .dropdown-item {
    color: #E5E5E5;
}

.ess-dropdown .dropdown-menu .dropdown-item:hover {
    color: #000;
}

.ess-dropdown .dropdown-menu::before{
    content: ' ';
    display : inline-block;
    height : 0;
    width : 0;
    border-right : 18px solid transparent;
    border-bottom : 32px solid #000;
    border-left : 18px solid transparent;
    position: absolute;
    left: 20%;
    transform: translateX(-50%);
    top: -1rem;
    z-index: -1;
}


/* Mobile drawer */

.mobile-drawer {
    display: none;
}

.l-navbar {
    position: fixed;
    top: 0;
    width: auto;
    height: 100vh;
    background-color: var(--first-color);
    padding: 0px 0px;
    transition: .5s;
    z-index: var(--z-fixed);
    left: -100%;
    display: none;
}

.nav-drawer {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    overflow-y: scroll;
}

.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 1rem;
    border: none
}

.nav .accordion-button {
    padding: .5rem 1rem;
}

.nav .accordion-item {
    border: 0px;
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--white-color)
}

.nav_logo-name {
    color: var(--white-color);
    font-weight: 700
}

.nav_link, .nav .accordion-button {
    position: relative;
    color: var(--first-color-light);
    transition: .3s;
    text-decoration: none;
}

.nav_link:hover, .nav .accordion-button:hover {
    background: rgba(0, 141, 154, 0.3);
    padding-left: .5rem;
    border-left: .5rem solid #008D9A;
    color: #008D9A;
}

.nav_icon {
    font-size: 1.25rem
}

.show {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.active {
    color: var(--white-color)
}

.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--white-color)
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 992px) {

    .header_img img {
        width: 45px
    }

    .l-navbar {
        /* left: -100%; */
        padding: 1rem 1rem 0 0;
        /* display: none; */
    }


    .show {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
    }
}

#drawer-bg{
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    transition: .5s;
}

.nav .accordion-button {
    padding-left: 2rem;
}

.nav .accordion-button:hover {
    padding-left: 1.5rem;
}

.drawer-menu {
    list-style: none;
    padding-left: 0px;
}

.user-dropdown .dropdown-item {
    color: white;
}

.user-dropdown .dropdown-item:hover {
    color: #008D9A;
}


.navbar .megamenu{ padding: 1rem; }

/* ============ desktop view ============ */
@media all and (min-width: 992px) {

  .navbar .has-megamenu{position:static!important;}
  .navbar .megamenu{left:0; right:0; width:100%; margin-top:0;  }

}	
/* ============ desktop view .end// ============ */

/* ============ mobile view ============ */
@media(max-width: 991px){
  .navbar.fixed-top .navbar-collapse, .navbar.sticky-top .navbar-collapse{
    overflow-y: auto;
      max-height: 90vh;
      margin-top:10px;
  }
}

.navbar .has-megamenu ul {
    top: 5rem;
    padding-top: 2rem;
    padding-left: 0px;
    padding-bottom: 0px;
    padding-right: 0px;


    border-radius: 0pt;
    border: none;
    background-color: transparent !important;
}

.navbar .has-megamenu ul div {
    
    background-color: #000;
    /* padding-bottom: 2rem; */
}

.navbar .has-megamenu ul::before {
    content: unset;
}

.navbar .megamenu-div {
    padding: 2rem 0px;
}

.megamenu-div .megamenu-link {
    text-transform: uppercase;
}

.navbar .megamenu-div .text-description {
    padding: 1rem;

    font-family: Titillium;
    font-weight: 300;
    font-size: 14px;
    font-style: normal;
    line-height: 14px;
    color: rgba(255, 255, 255, 0.7);
    padding-bottom: 0px;

    /* Hidde text */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
            line-clamp: 4; 
    -webkit-box-orient: vertical;
    cursor: pointer;
}

.navbar .megamenu-div .megamenu-link {
    padding: 0px 1rem;
    color: #fff;
}

.navbar .megamenu-div:hover .megamenu-link {
    color: #008D9A;
    text-decoration: underline;
}

.navbar .megamenu-div:hover .text-description {
    color: #fff;
}

.has-megamenu .show::after {
    transform: rotate(180deg);
}

.has-megamenu:hover .nav-link::after {
    transform: rotate(180deg);
}
