header .logo {
    max-width: 200px;
    position: relative;
    isolation: isolate;
}

header~main {
    margin-top: 130px !important;
}

header {
    position: relative;
    position: fixed;
    top: 0px;
    left: 50%;
    width: 100%;
    /* max-width: 1350px; */
    z-index: 999;
    transition: 0.5s;
    background-image: linear-gradient(to bottom, #f0f0f0, #f0f0f0);
    background-size: 100% 100%;
    background-position: bottom center;
    transform: translateX(-50%);
    border-radius: 10px;
}

header.white {
    /* transform: translateX(-50%) translateY(0px); */
    /* width: 100%; */
    /* border-radius: 0px; */
    /* max-width: 100%; */
}

header a.active {
    color: var(--clr-primary);
    font-weight: 800;
    /* background-image: linear-gradient(to top, currentColor, currentColor);
    background-size: 100% 1px;
    background-position: center bottom;
    background-repeat: no-repeat; */
}


header a {
    color: var(--clr-text-dark);
    transition: .3s;
    font-size: 14px;
    width: max-content;
}

header.white a:not(.primary-btn) {
    color: var(--clr-text-dark);
}

header.white a.active {
    color: var(--clr-secondary);
}

header a:not(.primary-btn):is(:hover, :focus) {
    color: var(--clr-primary);
}

header.white a:not(.primary-btn):is(:hover, :focus) {
    color: var(--clr-secondary);
}

header .drop-down:has(.active)>a {
    color: var(--clr-primary);
}

header.white .drop-down:has(.active)>a {
    color: var(--clr-secondary);
}

.header-sec {
    position: relative;
}

.header-sec .topbar {
    position: absolute;
    bottom: 100%;
    right: 3rem;
    background-color: white;
    clip-path: polygon(1rem 0, calc(100% - 1rem) 0, 100% 100%, 0 100%);
}

.body-fixed {
    position: fixed;
}

@media (width >=1200px) {
    header {
        padding-block: 20px;
    }

    .drop-down {
        position: relative;
    }

    .drop-down:is(:hover, :focus, :focus-within)>a {
        color: var(--clr-primary);
    }

    header.white .drop-down:is(:hover, :focus, :focus-within)>a {
        color: var(--clr-secondary);
    }

    .drop-down::before {
        content: "";
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 30px;
    }

    .drop-down-links {
        position: absolute;
        width: max-content;
        background-color: white;
        opacity: 0;
        transform: translateY(100px);
        transition: 0.3s;
        pointer-events: none;
        border-radius: 10px;
        /* filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)); */
    }

    .drop-down-links .drop-down .drop-down-links {
        left: 100%;
    }

    .drop-down.drop-down-2 .drop-down-links {
        position: absolute;
        width: max-content;
        background-color: white;
        opacity: 0;
        top: -15px;
        transform: translateX(100px);
        transition: 0.3s;
        pointer-events: none;
        border-radius: 10px;
        /* filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.2)); */
    }

    .drop-down-2::before {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        width: 100px;
        height: 100%;
    }



    .drop-down-links::before {
        position: absolute;
        content: '';
        bottom: calc(100% - 3px);
        left: 20px;
        width: 30px;
        height: 15px;
        background-color: white;
        clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    }

    .drop-down.drop-down-2 .drop-down-links::before {
        position: absolute;
        content: '';
        top: 10px;
        left: auto;
        bottom: auto;
        right: 100%;
        width: 15px;
        height: 30px;
        background-color: white;
        clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
    }

    .drop-down.drop-down-2 .drop-down-links::after {
        position: absolute;
        content: '';
        top: 0;
        left: auto;
        bottom: auto;
        right: 100%;
        width: 40px;
        height: 100%;
    }


    .drop-down-links a {
        color: var(--clr-text-dark);
    }

    .drop-down-links a:hover {
        color: var(--clr-secondary) !important;
    }

    .drop-down-links li {
        transition: 0.3s;
        position: relative;
    }

    .drop-down-links li::before {
        content: "";
        position: absolute;
        right: 100%;
        top: 50%;
        transform: translateX(-10px) translateY(-50%);
        width: 20px;
        height: 20px;
        background-image: url(https://api.iconify.design/material-symbols:chevron-right-rounded.svg?color=%23334e94);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: 0.3s;
    }

    .drop-down-links li:is(:hover, :focus) {
        transform: translateX(10px);
    }

    .drop-down-links li:is(:hover, :focus)::before {
        transform: translateX(0px) translateY(-50%);
        opacity: 1;
    }

    .drop-down:hover>.drop-down-links {
        opacity: 1;
        transform: translateY(40px);
        pointer-events: all;
    }

    .drop-down.drop-down-2:hover .drop-down-links {
        opacity: 1;
        transform: translateX(60px);
        pointer-events: all;
    }
}

@media (width < 1200px) {


    .drop-down {
        position: relative;
    }

    .toggler {
        position: absolute;
        top: -5px;
        right: 20px;
        width: 30px;
        height: 30px;
        background-color: var(--clr-secondary);
        -webkit-mask-image: url(https://api.iconify.design/material-symbols:keyboard-arrow-down-rounded.svg);
        -webkit-mask-size: contain;
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-image: url(https://api.iconify.design/material-symbols:keyboard-arrow-down-rounded.svg);
        mask-size: contain;
        mask-position: center;
        mask-repeat: no-repeat;
        z-index: 10;
        transition: .5s;
    }

    .logo {
        max-width: 150px;
    }



    header {
        background: white;
        height: 80px;
        border-radius: 0px;
        /* transform: translateX(-50%) translateY(0px); */
        width: 100%;
    }

    header a {
        color: var(--clr-text-dark);
        transition: .3s;
        font-size: 16px;
    }

    header a:not(.primary-btn):is(:hover, :focus) {
        color: var(--clr-secondary);
    }

    header nav[aria-expanded="true"] {
        transform: translateX(-100%);
    }

    header nav {
        display: none !important;
        overflow-y: auto;
        position: fixed;
        /* background-color: var(--clr-text-light); */
        background-color: white;
        top: 60px;
        left: 100%;
        width: 100%;
        max-width: 600px;
        height: calc(100vh - 60px);
        z-index: 9999;
        transition: .3s ease-out;
    }

    .drop-down .toggler[aria-expanded="false"]+.drop-down-links {
        display: none !important;
    }

    .drop-down-links li {
        position: relative;
    }

    .drop-down-links li::before {
        content: "";
        position: absolute;
        right: 100%;
        top: 2px;
        transform: translateX(-10px);
        width: 20px;
        height: 20px;
        background-image: url(https://api.iconify.design/material-symbols:chevron-right-rounded.svg?color=%23334e94);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .drop-down>.toggler[aria-expanded="true"] {
        transform: rotate(180deg);
    }

    .menu {
        width: 30px;
        height: 30px;
        border: none;
        background-color: transparent;
        background-image: url(https://api.iconify.design/gg:menu-right.svg?color=%23ff9934), url(https://api.iconify.design/material-symbols:close-rounded.svg?color=%23ff9934);
        background-size: contain;
        background-position: left 50% center, left 30px center;
        background-repeat: no-repeat;
        transition: .3s;
    }

    .menu.open {
        background-position: left -30px center, left 50% center;
    }
}