:root{
    --primaryColor:#d2d3ce;
    --middleColor:#bfb08c;
    --helperColor:#B29414;
    --lightHelper:#F0ECE3;
    --transparentColor:#af847494;
    --shadow:#f0ece39f;
   /* --------------------------------- */
    --whatsappColor:#25D366;
    --white:#ffff;
    --blue: #1877F2;
    --green: #25D366;
    --gray:  #f8f8f8;
}


.toggle-submenu {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primaryColor);
}

/* ----------- div that contain the dropdown ------------------ */

.dropdown {  
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
   background-color:#212529;
   color: var(--primaryColor); 
    list-style: none;
    padding: 0;
    margin: 0;
    width: 220px;
    display: none; 
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(128, 128, 128, 0.356);
    text-align: start;
    z-index: 9999;
}
.dropdown-menu li{
    display: flex;
    /* flex-direction: column;
    gap: 20px;
    padding: 0px 20px; */
}
.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);
    font-weight: 500;
    display: inline-block;
}

.dropdown-menu li :last-child{
 margin-bottom: 10px;
}
.has-submenu.has-submenu-open .dropdown-menu {
    display: block;
}
/* =============================================== */
.toggle-submenu-decore {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--primaryColor);
}

.has-submenu-decore.has-submenu-open-decore .dropdown-menu-decore {
    display: grid;
}

.dropdown-decore {
    position: relative;
    display: inline-block;
}

.dropdown-menu-decore {
    position: absolute;
    top: 100%;
    right: 0;

    background-color:#212529ea;
    color: var(--primaryColor); 
    list-style: none;
    width: 45rem;

    display: none; 
    padding:0px 10px;

    grid-template-columns: repeat(2, minmax(250px ,1fr));
    gap: 10px;

    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(128, 128, 128, 0.356);
    text-align: start;
    z-index: 9999;
}


.dropdown-menu-decore li{
 width: fit-content;
 text-align: start;
 direction: rtl;
 background: url('../../IMG/logo.png') no-repeat right top;
 padding-right: 30px; /* مسافة بين الصورة والنص */
 background-size: 20px 20px; /* حجم الصورة */
}

.dropdown-menu-decore li a { 
    text-decoration: none;
    transition: 0.3s ease-in;
    border-bottom: 1px solid var(--helperColor);
    font-weight: 500;
    display: inline-block;
    
}


.dropdown-menu-decore li :last-child{
 margin-bottom: 10px;
}

/* ================================ */

.toggle-submenu-finishing {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--primaryColor);
}

.has-submenu-finishing.has-submenu-open-finishing .dropdown-menu-finishing {
    display: grid;
}
    
/* ----------------------------------------------- */
.dropdown-finishing {
    
    position: relative;
    display: inline-block;
   
}
.dropdown-menu-finishing {
    position: absolute;
    top: 100%;
    right: 0;

    background-color:#212529ea;
    color: var(--primaryColor); 
    list-style: none;
    width: 35rem;

    display: none; 
    padding:0px 10px;

    grid-template-columns: repeat(2, minmax(250px ,1fr));
    gap: 10px;

    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(128, 128, 128, 0.356);
    text-align: start;
    z-index: 9999;
}
.dropdown-menu-finishing li{
    width: fit-content;
    text-align: start;
    direction: rtl;
    background: url('../../IMG/logo.png') no-repeat right top;
    padding-right: 30px;
    background-size: 20px 20px; 
}
.dropdown-menu-finishing li a { 
    text-decoration: none;
    transition: 0.3s ease-in;
    border-bottom: 1px solid var(--helperColor);
    font-weight: 500;
    display: inline-block;
    
}

.dropdown-menu-finishing li a span i{
    color: var(--helperColor);
}
.dropdown-menu-finishing li :last-child{
 margin-bottom: 10px;
}

/* --------------------------------------- */

#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: #212529;


}
nav{
   
    background-color: #212529;
    box-shadow: 0px 20px 30px rgba(128, 128, 128, 0.493); 
    position: sticky;
    z-index: 999;
    padding-top: 0px;
      
}

.navigation {
    background-color: #212529;
    height: auto;
    color: var(--primaryColor);
    box-shadow: 0px 3px 5px var(--shadow); 
    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 {
    /* width: 100%; */
    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);
}

.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: #212529;
        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 transparent;
        border-image: linear-gradient(135deg, var(--helperColor), var(--middleColor)) 1;
    }
/* ================================= */
    .dropdown-menu-finishing {
        width: 100%;
        overflow-y: auto;
        box-sizing: border-box;
        scrollbar-width: none; 
        max-height:250px;
        flex-direction:column ;
        gap: 10px;
    }

    .dropdown-menu-finishing li a{
        border: none;
    }

    .dropdown-menu-finishing li {
        background-size: 15px 15px; 
        width: fit-content;
    }

    .has-submenu-finishing.has-submenu-open-finishing .dropdown-menu-finishing {
        display: flex;
    }

/* ================================= */

    .dropdown-menu-decore {
        width: 100%;
        overflow-y: auto;
        box-sizing: border-box;
        scrollbar-width: none; 
        max-height:250px;
        flex-direction:column ;
        gap: 10px;
    }

    .dropdown-menu-decore li a{
        border: none;
    }

    .dropdown-menu-decore li {
        background-size: 15px 15px; 
        width: fit-content;
    }

    .has-submenu-decore.has-submenu-open-decore .dropdown-menu-decore {
        display: flex;
    }

   /* ================================= */

    .logo img {
        height: 55px;
    }

  
}