﻿/* CSS by Danish */
.whole-page-wrapper,
.whole-page-wrapper-public-guest {
    margin-bottom: 0 !important;
}

.browser-css-padding-class {
    padding-top: 0 !important;
}

.padded-container {
    overflow: visible !important;
}

body.scroll-lock {
    overflow: hidden;
}

#wrapper {
    position: relative;
}

.logo-block img {
    max-height: 80px !important;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.hd-open #wrapper.sidebar-left:before,
.hd-open #wrapper.sidebar-right:before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

#header {
    height: 120px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between !important;
    position: relative;
}

#header .hd-container {
    height: 120px;
    max-width: 1320px;
    padding: 0 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-left #header .hd-container,
.sidebar-right #header .hd-container {
    max-width: 100%;
}

#header #main-menu.close {
    opacity: 1 !important;
}

#header #main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#header #main-menu > ul {
    display: flex;
    align-items: center;
}

#header #main-menu > ul > li {
    margin-left: 30px;
}

#header #main-menu > ul > li:first-child {
    margin-left: 0;
}

#header #main-menu > ul > li > a {
    display: flex;
    align-items: center;
}

#header #main-menu ul li,
#header #main-menu ul li a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    font-weight: normal;
    text-shadow: none !important;
}

#header .dropdown-block:hover > a,
#header #main-menu ul li a:hover {
    color: #ad140e !important;
}

.dropdown-block {
    position: relative;
}

.dropdown-block > a:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill=\'none\'><path fill-rule="evenodd" clip-rule="evenodd" d="M2.55806 6.29544C2.46043 6.19781 2.46043 6.03952 2.55806 5.94189L3.44195 5.058C3.53958 4.96037 3.69787 4.96037 3.7955 5.058L8.00001 9.26251L12.2045 5.058C12.3021 4.96037 12.4604 4.96037 12.5581 5.058L13.4419 5.94189C13.5396 6.03952 13.5396 6.19781 13.4419 6.29544L8.17678 11.5606C8.07915 11.6582 7.92086 11.6582 7.82323 11.5606L2.55806 6.29544Z" fill="%23000"/></svg>') no-repeat center;
    mask-size: contain;
    background-color: currentColor;
    margin-left: 4px;
    margin-bottom: 2px;
    transition: transform 0.3s ease-in-out;
}

@media only screen and (min-width: 992px) {
    #header .dropdown-block .sub-menu {
        position: absolute;
        top: 100%;
        left: -12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .5s ease, transform .5s ease;
        background: rgba(255, 255, 255, 0.9);
        padding: 4px 12px 12px 0 !important;
        z-index: 9;
    }

    #header .dropdown-block:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #header .dropdown-block:hover > a:after {
        transform: rotate(180deg);
    }

    #header .dropdown-block .sub-menu li a {
        color: #203b7e !important;
        display: inline-block;
        padding: 8px 12px 0;
        white-space: nowrap;
    }
}

/* Button Menu */
.btn-menu {
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    /*background-color: #F8F8F8;*/
    margin: 0px;
    padding: 0;
    position: absolute;
    top: calc(50% - 16px);
    left: 24px;
    z-index: 9;
}

.sidebar-left .btn-menu,
.sidebar-right .btn-menu {
    display: flex;
}

.sidebar-inner .btn-menu {
    display: none;
}

.btn-menu span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    position: relative;
    display: block;
    transition: all 0.2s ease-in-out;
    margin: 3px 0;
    border-radius: 20px;
}

.hd-open .btn-menu span {
    opacity: 0;
}

    .hd-open .btn-menu span:first-child {
        opacity: 1;
        -webkit-transform: rotate(-45deg) translate(-6px, 6px);
        transform: rotate(-45deg) translate(-6px, 7px);
    }

    .hd-open .btn-menu span:last-child {
        opacity: 1;
        -webkit-transform: rotate(45deg) translate(-6px, -7px);
        transform: rotate(45deg) translate(-6px, -7px);
    }

@media only screen and (max-width: 1200px) {
    .sidebar-inner .btn-menu {
        display: flex !important;
    }

    .sidebar-inner .container__menu {
        display: none !important;
    }
}

@media only screen and (max-width: 992px) {

    /* .hd-open #wrapper.sidebar-left:before,
    .hd-open #wrapper.sidebar-right:before {
        z-index: 3;
    } */

    .btn-menu {
        display: flex !important;
    }

    .site-container {
        margin-top: 90px !important;
    }

    #header {
        /* position: fixed;
        z-index: 9; */
        height: 90px;
        padding: 0;
    }

    .logo-block {
        width: 100%;
        height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 9;
        padding: 0 24px;
    }

    .logo-block img {
        max-height: 66px !important;
    }

    /**** Mobile Menu CSS ****/
    #header #main-menu > ul {
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: -6vh;
        z-index: -1;
        background-color: #203b7e;
        overflow: auto;
        max-height: calc(100vh - 90px);
        opacity: 0;
        -webkit-transition-property: top, background-color, opacity;
        -webkit-transition-duration: 0.3s;
        -webkit-transition-timing-function: linear;
        -moz-transition-property: top, background-color, opacity;
        -moz-transition-duration: 0.3s;
        -moz-transition-timing-function: linear;
        -ms-transition-property: top, background-color, opacity;
        -ms-transition-duration: 0.3s;
        -ms-transition-timing-function: linear;
        -o-transition-property: top, background-color, opacity;
        -o-transition-duration: 0.3s;
        -o-transition-timing-function: linear;
        transition-property: top, background-color, opacity;
        transition-duration: 0.3s;
        transition-timing-function: linear;
    }

    .hd-open #header #main-menu > ul {
        top: 100%;
        opacity: 1;
        z-index: 5;
    }

    #header .dropdown-block .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        padding: 0 !important;
        transform: none;
    }

    #header #main-menu > ul > li {
        margin: 0;
    }

    #header #main-menu > ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #203b7e;
        padding: 8px 12px;
    }

    #header #main-menu > ul li li {
        border-top: 1px solid rgba(255, 255, 255, 0.9);
    }

    #header #main-menu .dropdown-block > a:hover,
    #header #main-menu .dropdown-block:hover > a {
        color: #fff !important;
        background-color: #203b7e !important;
    }
}

/* Sidebar Menu */
.sidebar-left .wrapper,
.sidebar-right .wrapper {
    max-width: 100% !important;
}

.sidebar-left .header-background,
.sidebar-right .header-background {
    position: relative;
    z-index: 1;
}

.sidebar-left .logo-block,
.sidebar-right .logo-block {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 9;
}

.sidebar-menu {
    width: 0;
    padding: 0;
    position: fixed;
    top: 120px;
    bottom: 0;
    overflow-x: hidden;
    transition: 0.5s;
    z-index: 9;
}

.sidebar-right .sidebar-menu {
    right: 0;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.hd-open .sidebar-menu {
    width: 260px;
}

.sidebar-menu #main-menu.close {
    float: none !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

.sidebar-menu #main-menu ul {
    width: 260px;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.sidebar-menu #main-menu ul > li a {
    width: 100%;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.sidebar-menu #main-menu ul > li li a {
    /* font-size: 18px; */
    padding: 12px 40px;
    color: #203b7e;
    background-color: #c9c9c9;
}

.sidebar-menu #main-menu ul > li a:hover {
    color: #fff !important;
    background-color: #ad140e !important;
}


@media only screen and (max-width: 992px) {
    /* .sidebar-right #header .hd-container {
        justify-content: flex-start;
    } */

    /* .sidebar-right .btn-menu {
        left: auto;
        right: 24px;
    } */

    .sidebar-menu {
        top: 90px;
    }
}

.position-right {
    left: auto !important;
    right: 24px !important;
}

.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}
