.header {
    position: relative;
    z-index: 2000;
    width: 100%;
    height: 95px;
    display: flex;
    align-items: center;
    transition: transform .6s cubic-bezier(0.87, 0, 0.13, 1);
}
.header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-main {
    position: relative;
    z-index: 50000;
    width: 82px;
    height: 38px;
    display: block;
    overflow: hidden;
    text-indent: -99999999px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../img/design/logo-main-bic.svg);
    background-size: cover;
}
.header.sticky {
    position: fixed;
    background: #FFF;
}
.navlink {
    font-size: 16px;
    color: #683665;
    margin: 0 15px;
}
.navtop {
    position: relative;
    z-index: 50000;
    display: flex;
    gap: 20px;
    justify-content: end;
    align-items: center;
}
.language {
    display: flex;
    gap: 15px;
    align-items: center;
}
.language a {
    position: relative;
    font-size: 16px;
    color: #BD89BA;
}
.language a.active {
    color: #683665;
    text-decoration: underline;
}
.language a:hover {
    color: #683665;
}
.language a:after {
    content:'';
    display: inline-flex;
    width: 1px;
    height: 12px;
    position: absolute;
    top: 6px;
    right: -8px;
    background: #BD89BA;
}
.language a:last-of-type:after {
    display: none;
}
.nav-mobile {
    display: none;
}
.header-absolute {
    position: fixed;
    top: 0;
    background: transparent;
}
.panel-menu .language {
    display: none;
}
.panel-dropdown {
    display: none;
}
.navsub li {
    position: relative;
    margin-bottom: 12px;
    line-height: normal;
}
.level-3 li {
    line-height: normal;
    margin-bottom: 10px;
}
@-webkit-keyframes fadeinout {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes fadeinout {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.panel-reservation {
    display: none;
    position: absolute;
    right: 0;
    width: 175px;
}
.panel-reservation ul {
    margin-top: 10px;
    padding: 15px;
    
    border-radius: 10px;
    background: #FBFBFB;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}
.panel-reservation ul li {
    margin-bottom: 6px;
}
.panel-reservation ul li a {
    position: relative;
    display: inline;
    transition: all .3s ease-in-out;
    background-image: linear-gradient(#683665 calc(100% - 0.5em),#683665 0.5em);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.panel-reservation ul li a:hover {
    color: #683665;
    background-size: 100% 1px;
}
.navtop-reservation:hover .panel-reservation {
    display: block;
}
.navback, .navsub-back {
    display: none!important;
}

/* Footer */
.footer {
    padding: 50px 0;
    color: #FFF;
    background: #BD89BA;
}
.footer-grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr;
}
.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    font-size: 20px;
}
.footer-social a:hover {
    opacity: 80%;
}
.navfooter li {
    position: relative;
    margin: 12px 0;
    line-height: 110%;
}
.navfooter li a {
    position: relative;
    font-size: 14px;
    line-height: 120%;
    color: #FFF;
}
.navfooter li a::after {
    background: none repeat scroll 0 0 transparent;
    content: "";
    display: block;
    width: 0;
    height: 1px;
    bottom: 0;
    position: absolute;
    left: 50%;
    background: #fff;
    transition: width .4s ease 0s, left .4s ease 0s;
}
.navfooter li a:hover::after {
    width: 100%;
    left: 0;
}
.copyright {
    font-size: 14px;
    color: #FFF;
}

.footer-logo img {
    display: inline-block;
    vertical-align: top;
    width: auto;
    height: 48px;
}

@media (min-width: 1200px) { 

    /* Header */
    .nav-hidden {
        display: none;
    }
    .panel-menu {
        width: 100%;
        position: absolute;
        display: flex;
        justify-content: center;
        left: 0;
    }
   .navmain .container {
        width: 800px;
        margin: 0 auto;
    }
    .navmain > ul {
        width: 800px;
        display: flex;
        justify-content: space-between;
    }
    .navmain > ul li a {
        position: relative;
        display: inline;
        transition: all .3s ease-in-out;
        background-image: linear-gradient(#683665 calc(100% - 0.5em),#683665 0.5em);
        background-repeat: no-repeat;
        background-size: 0 1px;
        background-position: 0 100%;
        transition: background-size 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    .navmain > ul li a:hover, .navmain ul > li.nav-dropdown:hover .navlink, .level-2 li.current a {
        color: #683665;
        background-size: 100% 1px;
    }
    .navmain > ul li.nav-dropdown:hover .panel-dropdown {
        z-index: 2000;
        display: block;
        pointer-events: all;
        -webkit-animation: fadeinout 0.3s ease-in;
        animation: fadeinout 0.3s ease-in;
    }
    .level-2-dropdown li.current:after {
        font-family: 'icon-font-ibc';
        content: "\e902";
        font-size: 12px;
        position: absolute;
        right: 0;
        top: 50%;
        margin-top: 1px;
        transform: translateY(-50%);
    }
    
    .navlink {
        line-height: 95px;
    }
    .panel-grid {
        display: grid;
        grid-gap: 40px;
        grid-template-columns: 250px 1fr;
    }
    .nav-multi-col-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .panel-dropdown {
        position: absolute;
        width: 100%;
        top: 95px;
        left: 0;
        padding: 30px 0;
        background: #FBFBFB;
    }
    .header-absolute .navlink, .header-absolute .language a {
        color: #FFF;
    }
    .header-absolute .language a:after {
        background: #FFF;
    }
    .header-absolute .logo-main {
        background-image: url(../img/design/logo-main-bic-w.svg);
    }
    .header-absolute li:hover .navlink, .header-absolute .navlink:hover {
        color: #FFF!important;
    }
    .header-absolute .navlink {
        background-image: linear-gradient(#FFF calc(100% - 0.5em),#FFF 0.5em);
    }
    /* header sticky */
    .header.sticky .logo-main {
        background-image: url(../img/design/logo-main-bic.svg);
    }
    .header.sticky .navlink {
        color: #683665!important;
    }
    .header.sticky li:hover .navlink, .header.sticky .navlink:hover {
        color: #683665!important;
    }
    .header.sticky .navlink {
        background-image: linear-gradient(#683665 calc(100% - 0.5em),#683665 0.5em);
    }
    .header.sticky .language a {
        color: #BD89BA!important;
    }
    .header.sticky .language a:after {
        background: #BD89BA;
    }
    .navtab-content {
        display: none;
    }
    .navtab-content.current {
        display: block;
    }
}

@media (min-width: 992px) { 
        
    /* Footer */
    .footer {
        padding: 80px 0;
    }
    .footer-grid {
        display: grid;
        grid-gap: 50px;
        grid-template-columns: 2fr repeat(2, 1fr);
    }
    .footer-logo {
        grid-row: span 2;
    }
}

@media (max-width: 1199.98px) { 
    /* Header */
    .header {
        height: 50px;
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
    }
    .logo-main {
        width: 52px;
        height: 24px;
        background-size: contain;
    }
    .language {
        display: none;
    }
    .panel-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 4004;
        padding-top: 60px;
        display: none;
        background: #FFF;
        -webkit-animation: fadeinout 0.3s ease-in;
        animation: fadeinout 0.3s ease-in;
    }
    .navtop .btn.nav-dropdown-reservation {
        font-family: 'athitiregular';
        font-size: 16px;
        padding: 0!important;
        color: #BE88BB;
        background: transparent;
    }
    .panel-reservation ul {
        padding: 12px;
        margin-top: 15px;
    }
    .nav-mobile {
        display: block;
        position: absolute;
        z-index: 4000000;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .nav-open .panel-menu  {
        display: block;
        -webkit-animation: fadeinout 0.3s ease-in;
        animation: fadeinout 0.3s ease-in;
    }
    .panel-menu .language {
        position: relative;
        z-index: 12200;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
    }
    .panel-menu .language span {
        font-size: 16px;
    }
    .language-item {
        display: flex;
        gap: 15px;
    }
    .language-item a {
        font-size: 16px;
    }
    .navmain {
        height: 100%;
        margin-top: 30px
    }
    .level-1 > li {
        margin-bottom: 15px;
    }
    .navlink {
        font-size: 18px;
        color: #BD89BA;
    }
    .language {
        height: 65px;
        background: #FBFBFB;
    }
    .panel-dropdown, .level-3 {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        padding-top: 155px;
        height: 100%;
        background: #FFF;
        -webkit-animation: fadeinout 0.3s ease-in;
        animation: fadeinout 0.3s ease-in;
    }
    .level-3 li {
        padding: 0 15px;
    }
    .navback, .navsub-back {
        display: flex!important;
        align-items: center;
        gap: 5px;
        font-size: 16px;
        color: #BD89BA;
        margin-bottom: 15px;
    }
    .navback:before, .navsub-back:before  {
        font-family: 'icon-font-ibc';
        content: "\e901";
        font-size: 12px;
    }
    .navabout.active ~ .panel-dropdown, .navservice.active ~ .panel-dropdown {
        display: block;
        -webkit-animation: fadeinout 0.3s ease-in;
        animation: fadeinout 0.3s ease-in;
    }
    .navtab-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    .navtab-content {
        display: none;
    }
    .navtab-content.current {
        display: block;
    }
    .navtab-ivf.active {
        display: block;
    }
    .navtab-cryo.active {
        display: block;
    } 
    .navsub li.active + .navtab-content {
        display: block;
    }
}

@media (max-width: 991.98px) {  

    /* Footer */
    .footer-logo, .copyright, .copyright, .footer-social {
        grid-column: span 2;
    }
    .footer-logo img {
        height: 36px;
    }
}