/*
=======================
1 Header
=======================
 */

header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #FFF;
    z-index: 99;
}

header#transparent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    z-index: 99;
}

.header-container {
    /*padding-top: 15px;*/
    /*padding-bottom: 15px;*/
    border-bottom: 1px solid #d9d9d9;

}

header#transparent .header-container {
    border: none;
}

#main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

#main-menu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;

}

#main-menu li a {
    font-size: 14px;
    color: #243e49;
    font-weight: 600;
    text-decoration-line: none;
    padding: 15px 20px;
    margin: 0 10px;
    position: relative;
    line-height: 70px;
}

#transparent #main-menu li a {
    color: #FFF;
}

#transparent #main-menu li a:hover,
#transparent #main-menu li a:focus,
#transparent #main-menu li.current-menu-parent a,
#transparent #main-menu .sub-menu li a:hover,
#transparent #main-menu .sub-menu li a:focus,
#transparent #main-menu .sub-menu li.current-menu-item a {
    color: #ffcb5b;
}

#transparent #main-menu li a:hover::after,
#transparent #main-menu li a:focus::after,
#transparent #main-menu li.current-menu-item a {
    color: #ffcb5b;
}

#transparent #main-menu li.menu-item-has-children.current-menu-parent a::after {
    color: #ffcb5b;
}

#transparent #main-menu li a::before,
#transparent #main-menu li a:before {
    display: none;
}

.sub-menu li a {
    display: block;
    width: 100%;
    text-align: left;
}

#main-menu li.menu-item-has-children a:after {
    display: block;
    position: absolute;
    right: 0;
    top: 15px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
    color: #a1adb1;
    font-size: 8px;
    background-size: cover;
    background-repeat: no-repeat;
    height: 8px;
    width: 11px;
}

#transparent #main-menu li.menu-item-has-children a:after {
    color: #77bac1;
}

#main-menu li a:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;

    width: 100%;
    background-color: #ffcb5b;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    left: 0;
    height: 0;
    -webkit-transition: .3s ease-out;
    -moz-transition: .3s ease-out;
    -o-transition: .3s ease-out;
    transition: .3s ease-out;

}

#main-menu li a:hover::before,
#main-menu li a:focus::before,
#main-menu li.current_page_item a::before,
#main-menu li.current-menu-parent a::before {
    height: 6px;
}

#right-menu {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 0 0;
    margin: 0;
}

#right-menu li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#right-menu li a {
    color: #000;
    opacity: .5;
    text-decoration-line: none;
    padding: 0 10px;
}

#right-menu li:first-of-type a {
    font-size: 20px;
}

#transparent #right-menu li a {
    color: #77bac1;
    opacity: 1;
}


#transparent #right-menu li a:hover,
#transparent #right-menu li a:focus {
    color: #ffcb5b;
}

#right-menu li a:hover,
#right-menu li a:focus {
    color: #ffcb5b;
}

#menu li#menu-item-1202 {
    border-bottom: none;
}

#menu li#menu-item-1202 a:hover,
#menu li#menu-item-1202 a:focus,
#right-menu li:last-of-type a:hover,
#right-menu li:last-of-type a:focus {
    border-color: #ffcb5b;
}

#menu li#menu-item-1201 a:hover,
#menu li#menu-item-1201 a:focus {
    color: #ffcb5b;
}

#menu li#menu-item-1202 a:hover i,
#menu li#menu-item-1202 a:focus i,
#right-menu li:last-of-type a:hover i,
#right-menu li:last-of-type a:focus i {
    color: #ffcb5b;
}

#menu li#menu-item-1202 a,
#right-menu li:last-of-type a {
    font-size: 11px;
    line-height: 11px;
    color: #243e49;
    font-weight: 700;
    opacity: 1;
    border: 2px solid #77b9c1;
    border-radius: 5px;
    padding: 13px;
    padding-left: 20px;
    text-transform: uppercase;
    margin-left: 10px;
}

#right-menu li:last-of-type a i {
    padding-left: 10px;
    color: #77b9c1;
}

.sub-menu {
    position: absolute;
    top: 80px;
    /*margin-top: 67px;*/
    width: 200px;
    left: 0;
    padding: 0;
    background: #FFF;
    border: 1px solid #d9d9d9;
    border-top: 2px solid #ffcb5b;
    display: none;
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
    z-index: 10;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
    -moz-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
    box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
}

header#transparent .sub-menu {
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
}
.sub-menu .sub-menu{
    position: absolute;
    top: 0;
    /*margin-top: 67px;*/
    width: 200px;
    left: 100%;
    padding: 0;
    background: #FFF;
    border: 1px solid #d9d9d9;
    border-top: 2px solid #ffcb5b;
    display: none;
    -webkit-transition: .4s ease-out;
    -moz-transition: .4s ease-out;
    -o-transition: .4s ease-out;
    transition: .4s ease-out;
    z-index: 10;
    -webkit-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
    -moz-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
    box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
}
header#transparent .sub-menu .sub-menu {
    -webkit-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
    -moz-box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, .4);
}
.sub-menu li {
    padding: 10px;
    text-align: left;
}

#main-menu .sub-menu li a::before {
    display: none;
}

#main-menu .sub-menu li a {
    line-height: 20px;
    padding: 0;
    margin: 0;
}

#main-menu li.menu-item-has-children .sub-menu a:after {
    display: none;
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

#main-menu .sub-menu li a:hover {
    color: #ffcb5b;
}

#transparent #main-menu .sub-menu li a {
    color: #243e49;
}

#mobile-menu-wrapper {
    display: none;
}

@media (max-width: 1340px) {
    #main-menu li a {
        padding: 15px;
    }
}

@media (max-width: 1250px) {
    #logo-wrapper {
        flex-basis: 20%;
        width: 20%;
    }

    #menu-wrapper {
        max-width: 55%;
        flex-basis: 55%;
    }

    #right-menu li a {
        padding: 0 5px;
    }
}

@media (max-width: 1140px) {
    #main-menu li a {
        padding: 15px 10px;
    }

    #main-menu li.menu-item-has-children a::after {
        right: -6px;
    }

    #right-menu-wrapper {
        display: none;
    }

    #menu-wrapper {
        flex-basis: 75%;
        max-width: 75%;
    }

    #logo-wrapper {
        flex-basis: 25%;
        max-width: 25%;
    }
}

@media (max-width: 991.8px) {
    body.menu {
        overflow: hidden;
    }

    header .header-container {
        height: 80px !important;
    }

    .header-container {
        padding: 10px 15px;
    }

    header#transparent .header-container {
        padding-top: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #d9d9d9;
        background-color: #FFF;
    }


    #menu-wrapper {
        display: none;
    }

    #logo-wrapper {
        flex-basis: 50%;
        max-width: 50%;
    }

    #logo-wrapper img {
        width: 320px;
    }

    #mobile-menu-wrapper {
        display: flex;
    }

    nav {
        width: 100%;
        position: relative;
    }

    #menuToggle {
        display: block;
        position: absolute;
        top: -10px;
        right: 25px;

        z-index: 1;

        -webkit-user-select: none;
        user-select: none;
    }

    #menuToggle a {
        text-decoration: none;
        color: #232323;

        transition: color 0.3s ease;
    }

    #menuToggle a:hover {
        color: #000;
    }


    #menuToggle input {
        display: block;
        width: 40px;
        height: 32px;
        position: absolute;
        top: -7px;
        left: -5px;

        cursor: pointer;

        opacity: 0; /* hide this */
        z-index: 2; /* and place it over the hamburger */

        -webkit-touch-callout: none;
    }

    /*
     * Just a quick hamburger
     */
    #menuToggle span {
        display: block;
        width: 30px;
        height: 3px;
        margin-bottom: 5px;
        position: relative;
        background: #000;
        border-radius: 3px;
        z-index: 1;
        transform-origin: 4px 0px;

        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0),
        opacity 0.55s ease;
    }

    #menuToggle span:first-child {
        transform-origin: 0% 0%;
    }

    #menuToggle span:nth-last-child(2) {
        transform-origin: 0% 100%;
    }

    /*
     * Transform all the slices of hamburger
     * into a crossmark.
     */
    #menuToggle input:checked ~ span {
        opacity: 1;
        transform: rotate(45deg) translate(-2px, -1px);
        background: #ffcb5b;
    }

    /*
     * But let's hide the middle one.
     */
    #menuToggle input:checked ~ span:nth-last-child(3) {
        opacity: 0;
        transform: rotate(0deg) scale(0.2, 0.2);
    }

    /*
     * Ohyeah and the last one should go the other direction
     */
    #menuToggle input:checked ~ span:nth-last-child(2) {
        transform: rotate(-45deg) translate(0, -1px);
    }

    /*
     * Make this absolute positioned
     * at the top left of the screen
     */
    #menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        padding: 50px 0;
        padding-top: 10px;
        background: #FFF;
        list-style-type: none;
        -webkit-font-smoothing: antialiased;
        /* to stop flickering of text in safari */
        transform-origin: 0% 0%;
        transform: translate(100%, 0);
        transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        border-top: 2px solid #ffcb5b;
        -webkit-transition: .4s ease-out;
        -moz-transition: .4s ease-out;
        -o-transition: .4s ease-out;
        transition: .4s ease-out;
        z-index: 10;
        -webkit-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
        -moz-box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
        box-shadow: 2px 2px 5px 0px rgba(176, 176, 176, 1);
    }

    .small-header #menu {
        top: 0;
    }

    #menu:after {
        content: "";
        display: block;
        width: 200px;
        height: 50px;
        position: absolute;
        bottom: 20px;
        letter-spacing: 0;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0 auto;
        background-size: contain;
        background-repeat: no-repeat;
        left: 50%;
        transform: translate(-50%);
    }

    #menu {
        padding-top: 0;
        top: 80px;
        width: 230px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        height: calc(100vh - 80px);

    }

    #menu li {
        padding: 15px 25px;
        flex-basis: 100%;
        text-align: center;
        border-bottom: 1px solid #b8d9dc;
        position: relative;
    }

    #menu li a {
        font-size: 14px;
        color: #243e49;
        font-weight: 600;
        text-align: left;
        display: block;
        text-decoration-line: none;
        position: relative;
    }

    #menu li a:hover,
    #menu li a:focus {
        text-decoration-line: none;
    }

    .sub-menu-toggle::after {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f105";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
    }

    #menu li a.close-sub {
        text-align: left;
    }

    #menu li a.close-sub::after {
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        content: "\f104";
        display: block;
        position: absolute;
        top: 0;
        left: -10px;
    }

    /*
     * And let's slide it in from the left
     */
    #menuToggle input:checked ~ ul {
        transform: none;
    }

    .sub-menu,
    .sub-menu .sub-menu{
        position: fixed;
        top: 80px;
        width: 230px;
        /*width: 100%;*/
        height: calc(100vh - 80px);
        right: 0;
        left: auto;
        display: block;
        ransform-origin: 0% 0%;
        transform: translateX(100%);
        list-style-type: none;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .sub-menu .sub-menu{
        top: 0;
    }

    .sub-menu.visible {
        transform: translateX(0);
    }
}

@media (max-width: 767.8px) {
    #logo-wrapper {
        flex-basis: 75%;
        max-width: 75%;
    }

    #mobile-menu-wrapper {
        width: 25%;
        flex-basis: 25%;
        max-width: 25%;
    }
}

@media (max-width: 480px) {
    header .header-container {
        height: 70px !important;
    }

    #menu,
    .sub-menu {
        top: 70px;
        height: calc(100vh - 70px);

    }
}
