:root {
    --primaryColor: black;
    --middleColor: #826C5F;
    --helperColor: #BD8256;
    --lightHelper: #EFE6DD;
    --hrColor: rgba(255, 235, 205, 0.671);
    --transparentColor: rgba(255, 235, 205, 0.548);
    --shadow: rgba(189, 188, 188, 0.514);
    /* --------------------------------- */
    --whatsappColor: #25D366;
    --white: #ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray: #f8f8f8;
}

.toggle-submenu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primaryColor);
}

.has-submenu.has-submenu-open .dropdown-menu {
    display: grid;
}


#top-bar.sticky {
    position: fixed;
    top: 0px;
    z-index: 999;
    width: 100%;
    margin: auto;
    box-shadow: 0px 20px 30px rgba(128, 128, 128, 0.493);
    background-color: var(--white);

}


nav {

    background-color: var(--white);
    box-shadow: 0px 20px 30px rgba(128, 128, 128, 0.493);
    position: sticky;
    z-index: 999;
    padding-top: 0px;
}

.navigation {
    background-color: var(--white);
    height: auto;
    color: var(--primaryColor);
    box-shadow: 0px 20px 30px rgba(128, 128, 128, 0.493);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 0px;
    border-radius: 0px 0px 10px 10px;
    transition: all 0.5s ease;
    z-index: 999;
}

.navigation-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 58px;
}

.pages {
    display: flex;
    flex-direction: row;
    gap: 30px;
    transition: right 0.3s ease-in-out;
}

.pages a {
    text-decoration: none;
    color: var(--primaryColor);
    font-weight: bold;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primaryColor);
}

/* ----------- div that contain the dropdown ------------------ */

.dropdown {

    position: relative;
    display: inline-block;

}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0px;
    left: 0px;
    background-color: var(--white);
    color: var(--middleColor);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 650px;

    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-content: center;
    align-items: center;
    justify-content: center;
    /* padding: 10px; */


    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(128, 128, 128, 0.356);
    text-align: start;
    z-index: 9999;

}

.dropdown-menu li {
    width: 100%;
    margin: auto;
    color: var(--middleColor);
    /* display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0px 20px; */

    /* padding: 0px 20px; */
    /* width:30%; */
}

.dropdown-menu li a {
    padding: 5px 10px;
    /* padding to increase its own height . using height directly doesnot affect on it */
    text-decoration: none;
    transition: 0.3s ease-in;
    border-bottom: 1px solid var(--helperColor);
    color: #444;
    font-weight: 500;
    display: inline-block;

}

.dropdown-menu li a:hover {
    text-shadow: 10px 10px 8px var(--shadow);
    color: var(--primaryColor);
}

.dropdown-menu li :last-child {
    margin-bottom: 10px;
}


.pages.is-open {
    right: 0;
    visibility: visible;
    display: flex;
}

.menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--brown);
}

.close-container {
    margin-top: 10px;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--brown);
    background-color: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    align-self: flex-end;
}


.close-btn {
    font-size: 40px;
    font-weight: bold;
    color: var(--brown);
}

/* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ */

@media (max-width: 992px) {

    .navigation {
        justify-content: space-between;

        margin: 0px;
    }

    .pages {
        display: none;
        flex-direction: column;
        gap: 30px;
        text-align: start;


        right: -270px;
        position: fixed;
        top: 0px;


        width: 270px;
        height: 100vh;

        background-color: var(--white);
        box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.8);
        padding: 20px;

        overflow-y: auto;
        box-sizing: border-box;
        scrollbar-width: none;
        transition: right 0.3s ease-in-out;
        z-index: 999;

    }

    .navigation .pages.is-open .close-container {
        display: flex;
        right: 0;
    }

    .menu-btn {
        display: block;
    }

    .pages::-webkit-scrollbar {
        display: none;
    }


    .dropdown-menu {
        width: 100%;
    }

    .dropdown-menu li a {
        border-bottom: 1px solid var(--helperColor);

    }

    .logo img {

        /* width:50% ; */
        height: 55px;
    }

    .company-name {
        display: none;
    }


    .has-submenu.has-submenu-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white);
        color: var(--middleColor);
        list-style: none;
        padding: 0;
        margin: 0;
        width: 220px;
        /* display: none;  */


        /* display: none;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        align-content: center;
        align-items: center;
        justify-content: center; */


        /* padding: 10px; */


        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(128, 128, 128, 0.356);
        text-align: start;
        z-index: 9999;


        max-height: 300px;

        overflow-y: auto;
        box-sizing: border-box;
        scroll-behavior: smooth;
    }

  

    .dropdown-menu li {
        width: 90%;
        margin: auto;
        /* display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0px 20px; */

        /* padding: 0px 20px; */
        /* width:30%; */
    }
}