.header {
    padding: 3rem 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    width: 20%;
}

.logo img {
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.header.bgcolor .logo img {
    max-width: 80px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--maincolor);
    border-radius: 4px;
    transition: 0.4s;
    position: absolute;
}

.menu-toggle span:nth-child(1) {
    top: 6px;
    width: 30px;

}

.menu-toggle span:nth-child(2) {
    top: 13px;
    left: 0;

}

.menu-toggle span:nth-child(3) {
    top: 20px;
    width: 30px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
}

nav {
    display: flex;
    gap: 2rem;
    width: 60%;
    text-align: center;
    justify-content: center;
}

.header.bgcolor {
    background-color: var(--basecolor);
    padding: 1rem 2rem;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.contact-btn {
    width: 20%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    text-align: left;

}

.card-icon-content {
    margin: 25px 0 0 0;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--maincolor);
    padding: 0 0 15px 0;
    transition: color 0.3s;
    font-size: 18px;
    font-weight: 500;

}

nav a:hover {
    color: var(--maincolor);
}

nav li ul {
    position: absolute;
    top: 34px;
    left: -300px;
    display: none;
    background: #fff;
    padding: 2rem;
    /*     flex-direction: column; */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    min-width: 300px;
    transition: all 0.3s ease;
    border-radius: 30px;
    overflow: inherit;

}

nav li ul li a {
    font-size: 1.1em;
    color: #000 !important;
    font-weight: 600;

}

nav li:hover > ul {
    display: flex;
    gap: 0;
}

nav li ul li {
    margin-bottom: 0;
    position: relative;
    padding: 10px;
    width: 100%;
}

nav li ul li li {
    padding: 0 0 2px 0;

}

nav li ul li:last-child {
    margin-bottom: 0;
}

nav li ul li:nth-child(odd) {
    background-color: transparent;

}

nav li ul li:nth-child(even) {
    background-color: transparent;

}

nav li ul li:nth-child(even) a {
    color: var(--basecolor);
}

ul.sub-menu ul.sub-menu li a {
    color: #000 !important;
    font-size: 15px;
    font-weight: 500;
}

nav li ul li ul {
    left: 0;
    top: 0;
    left: 0;
    display: none;
    position: relative;
    display: block;
    width: 100%;

}

nav li ul li:hover > ul {
    display: flex;
    left: 0;
    gap: inherit;
    z-index: 2;
}

ul.sub-menu ul.sub-menu {
    width: 45% !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    box-shadow: none !important;
    flex-direction: row;
    padding: 5px 0 0 0;
}

.arrow {
    margin-left: 5px;
    font-size: 0.7rem;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.open > a > .arrow {
    transform: rotate(-90deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--basecolor);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 0 0 2rem;
        align-items: flex-start;
        gap: 0;
        transition: right 0.4s ease-in-out;
        overflow-y: auto;
    }

    nav.open {
        right: 0;
    }

    nav a {
        padding: 0 0 8px 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    nav li {
        width: 100%;
    }

    nav li > a {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav li ul {
        display: block;
        flex-direction: column;
        padding-left: 1rem;
        animation: slideDown 0.3s ease forwards;
        text-align: left;
    }

    nav li.open > ul {
        display: flex;
    }

    nav li ul li ul {
        position: relative;
        left: auto;
        top: auto;
    }

    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }

        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav li ul {
        position: relative;
        top: 0;
    }
}

li.menu-item-has-children {
    position: relative
}

li.menu-item-has-children::before {
    content: "";
    display: inline-block;
    margin-right: 6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    right: -20px;
    position: absolute;
    bottom: 8px;
}

li.menu-item-has-children > ul li::before {
    display: none;
}

.contact-btn a.slide-bg-btn {
    font-size: 18px;
}

nav li ul::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -8px;
    width: 16px;
    height: 8px;
    clip-path: polygon(50% 0, 0% 100%, 100% 100%);
    background: white;
}
.logo img {
    max-width: 150px;
}