header {
    position: fixed;
    height: 100vh;
    width: 190px;
    top: 30px;
    z-index: 100;
}

header img.mobile {
    display: none;
}
header .desktop {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
header .desktop svg:first-of-type {
    transition: .3s all ease-in-out;
}
header .desktop:hover svg:first-of-type {
    transform: scale(1.05);
    transition: .3s all ease-in-out;
}
header .desktop svg path {
    fill: #353332;
}
.main_header {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    height: 100%;
    align-items: start;
}

.main_menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: 140%;
}

.main_menu ul {
    margin-left: 0;
    padding-left: 20px;
    list-style: none;
}

.main_menu li {
    /* gap: 15px; */
    position: relative;
    display: flex;
    flex-direction: column;
}



.main_menu li::before {
    content: "";
    width: 10px;
    height: 10px;
    display: block;
    background-size: 10px 10px;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 10px;
    left: -15px;
    transform: translateY(-50%);
    transition: .3s all ease-in-out;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'><path d='M5.3837 1.19435C6.13159 2.63287 7.31037 3.80906 8.75065 4.55596L8.75479 5.33305C7.3113 6.08403 6.1294 7.26347 5.38301 8.70087H4.62159C3.87416 7.25599 2.69396 6.07348 1.24911 5.32408L1.24842 4.55596C2.69235 3.80586 3.86846 2.63105 4.61468 1.19366L5.3837 1.19435Z' stroke='%23353332'/></svg>");
}

.main_menu li:hover::before {
    transition: .3s all ease-in-out;
    background-image: url("data:image/svg+xml;utf8,<svg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4.60273 7.37722L5.39672 7.37779C5.81353 6.48694 6.53741 5.76391 7.4334 5.3435L7.42873 4.54636C6.53622 4.12876 5.81539 3.40877 5.39729 2.51731L4.60331 2.51674C4.1865 3.4076 3.46671 4.12654 2.57071 4.54695L2.57129 5.33999C3.46379 5.7576 4.18463 6.47759 4.60273 7.36904L4.60273 7.37722Z' fill='%23000000'/></svg>");}
/* .main_menu li:has(.sub-menu:hover)::before {
    transition: .3s all ease-in-out;
    background-image: url("data:image/svg+xml;utf8,<svg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M4.60273 7.37722L5.39672 7.37779C5.81353 6.48694 6.53741 5.76391 7.4334 5.3435L7.42873 4.54636C6.53622 4.12876 5.81539 3.40877 5.39729 2.51731L4.60331 2.51674C4.1865 3.4076 3.46671 4.12654 2.57071 4.54695L2.57129 5.33999C3.46379 5.7576 4.18463 6.47759 4.60273 7.36904L4.60273 7.37722Z' fill='%23CCC4C0'/></svg>");
} */
.main_menu li:last-of-type:before {
    top: 53%;
} 

/* .main_menu li svg {
    position: absolute;
    top: 40%;
    left: -15px;
    transform: translateY(-50%);
    transition: .5s all ease-in-out;
} */
.main_menu li.expand::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5' fill='none'><path d='M2.03206 4.85964L2.82604 4.86021C3.24285 3.96936 3.96673 3.24633 4.86272 2.82592L4.85805 2.02879C3.96555 1.61118 3.24471 0.891193 2.82661 -0.000264414L2.03263 -0.000837021C1.61582 0.890018 0.896029 1.60896 3.48099e-05 2.02937L0.000608044 2.82241C0.893116 3.24002 1.61395 3.96001 2.03205 4.85147L2.03206 4.85964Z' fill='%23353332'/></svg>");
    transition: .5s all ease-in-out;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 5px 5px;
    position: absolute;
    top: 12px;
    left: -15px;
    transform: translateY(-50%);
}

/* .main_menu li.expand svg {
    top: 12px;
    transition: .5s all ease-in-out;
} */
.main_menu li svg.dark {
    top: 10px;
    left: -12px;
    transition: .5s all ease-in-out;
}

.main_menu li.active svg.light {
    display: none;
}

.main_menu .sub-menu {
    position: relative;
    height: 100%;
    opacity: 1;
    padding: 0 0 0 10px;
    transition: .5s all ease-in-out;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding-bottom: 12px;
}

.main_menu li .sub-menu::after {
    content: "";
    width: 1px;
    height: 100%;
    padding: 2px 0;
    opacity: 0.5;
    display: block;
    position: absolute;
    left: -10.5px;
    top: 0;
    background-color: var(--text-dark);
    transition: .5s all ease-in-out;
}
.main_menu li.menu-item-28::before {
    top: 45%;
}

.main_menu li:last-of-type:after {
    display: none;
}

.main_menu li.expand::after {
    height: 86%;
    transition: .5s all ease-in-out;
}



.main_menu li  a {
    opacity: 1;
    transition: opacity .3s ease-in-out;
}

.main_menu li  a.fade_out {
    opacity: .5;
    transition: opacity .3s ease-in-out;
}

.main_menu li:has(> a.fade_out)::before {
  opacity: 1 !important;
}

/* .main_menu .sub-menu {
    height: 0;
    opacity: 0;
    padding: 0;
    transition: .5s all ease-in-out;
}  

.main_menu .sub-menu.active {
    height: 190px;
    opacity: 1;
    padding: 0 0 13px 0;
    transition: .5s all ease-in-out;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */


.main_menu li:nth-child(2) .sub-menu.active, .main_menu li:nth-child(3) .sub-menu.active {
    height: 90px;
}
.main_menu li.expand:nth-child(2)::after, .main_menu li.expand:nth-child(3)::after {
    height: 80%;
}

.main_menu .sub-menu li svg {
    display: none;
}
.main_menu .sub-menu li a {
    line-height: 30px;
}
.main_menu .sub-menu li::after {
    display: none;
}

.main_menu .sub-menu li::before {
    display: none;
}

header .mobile_burger {
    display: none;
}

header .mobile_close_btn {
    display: none;
}

.lang_switcher {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 5px 0 0 20px;
}

.lang_switcher li::before,
.lang_switcher li::after {
    display: none;
}

.lang_switcher li.lang-item-el::before {
    content: "/";
    width: 10px;
    height: 100%;
    display: block;
    color: var(--text-dark);
    background-image: none;
    left: -12px;
}
.main_menu .lang_switcher li a.fade_out {
    opacity: 1;
}

@media (min-width: 993px) {
.main_header {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column;
    height: 100%;
    align-items: start;
    gap: calc(100vh - 85%);
}
}
@media (min-width: 933px) and (max-width: 1100px) {
header {
    left: 10px;
}
}
@media (min-width: 933px) and (max-width: 1500px) {
.main_header {
    gap: calc(100vh - 85% - 90px) !important;
}
}
@media (max-width: 992px) {
    header {
        position: sticky;
        height: 75px;
        width: 100%;
        top: 0px;
        background: transparent;
        /* padding-left: 10px; */
    }

    header .desktop {
        display: none;
    }

    header img.mobile {
        display: block;
        position: relative;
        /* z-index: 100; */
        margin: 12px 0 0 10px;
    }

    header img.mobile.out {
        transition: transform 0.3s ease;
    }

    header img {
        width: 100%;
        height: 100%;
        max-width: 70px;
        max-height: 70px;
    }

    .main_header {
        flex-direction: row;
        align-items: center;
        padding: 0 20px;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 75px;
        width: 100%;
        padding-top: 10px;
        background: transparent;
   
    }

    header .dark_arrow_btn_link {
        display: none;
    }

    .main_menu ul {
        padding-left: 0;
        margin-top: 20px;
    }

    .main_menu .sub-menu {
        height: 100%;
        opacity: 1;  
    }

    .main_menu li::before {
        display: none;
    }

    .main_menu li svg {
        display: none;
    }

    .main_menu li::after {
        display: none;
    }

    header .mobile_burger {
        padding: 8px 8px 5px 8px;
        border: 1px solid #353332;
        border-radius: 3px;
        cursor: pointer;
        display: flex;
        color: #353332;
        font-family: var(--font);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; 
    }

    header .mobile_close_btn {
        display: flex;
        width: fit-content;
        padding: 8px;  
        border: 1px solid var(--text-dark);
        border-radius: 500px;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 10px;
        z-index: 100;
    }

    .main_menu {
        transform: translateX(-120%);
        height: 100vh;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: var(--bg);
        z-index: 10;
        transition: .5s all ease-in-out;
        padding-bottom: 5rem;
    }

    .main_menu.show {
        transform: translateX(0%);
        overflow: scroll !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        transition: .5s all ease-in-out;
    }

    .main_menu.show::-webkit-scrollbar {
        display: none;
    }

    .main_menu a {
        width: fit-content !important;
        margin: 0 auto;
    }

    .main_menu li a {
        color: var(--text-dark);
        font-family: var(--font);
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
    }

    .main_menu li.menu-item-has-children a:first-of-type {
        margin-bottom: 32px;
    }
    

    .main_menu .sub-menu li a {
        font-size: 36px;
        line-height: normal;
    }

    .main_menu .sub-menu.active, 
    .main_menu .sub-menu {
        padding-bottom: 48px !important;
        /* gap: 32px; */
        padding-left: 0;
    }

    .lang_switcher {
        flex-direction: column;
        gap: 32px;
        padding: 80px 0 0 0;
    }

    .lang_switcher a {
        font-size: 0 !important;
        line-height: 0;
    }

    .lang_switcher a[hreflang="en-US"]::after,
    .lang_switcher a[hreflang="en"]::after {
        content: "English";
        color: var(--text-dark);
        font-family: var(--font);
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
    }

    .lang_switcher a[hreflang="el"]::after {
        content: "Ελληνικά";
        font-size: 14px;
        line-height: normal;
        color: var(--text-dark);
        font-family: var(--font);
        font-size: 28px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
    }

    .lang_switcher li.lang-item-el::before {
        display: none;
    }

    .lang_switcher .lang-item a {
        opacity: 0.5;
    }

    .lang_switcher .current-lang a {
        opacity: 1;
    }
}    