/* css for collapsable menu  */
    /* Style the menu item */
.menu_icon {
    cursor: pointer;
    font-size: 18px;
    /* color: #fef6e4; */
    margin: 0;
    margin-left: 20px;
    padding: 0;
    line-height: 18px;
    line-height: 30px;
  }

li.menu_icon {
    position: relative;
    display: inline-block;
    padding: 1px;
    /* color: #fef6e4; */
    cursor: pointer;
}
li.menu_icon:hover {
    color: #FFFFAA;
}

li.menu_icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    /* background-color: #FFFFAA;  */
    transition: width .3s, left .3s;
    transform: translateX(-50%);
}

li.menu_icon:hover::after {
    width: 100%;
    /* color: #FFFFAA; */
}

nav ul.header-menu li:nth-last-child(1) {
    display: none;
 }

 @media only screen and (max-width: 1024px) {
    nav ul.header-menu li:nth-last-child(2) {
        display: none;
     }
    
    nav ul.header-menu li:nth-last-child(1) {
        display: inline-block;
     }

}

@media only screen and (max-width: 800px) {
        nav ul.header-menu li:nth-last-child(3) {
            display: none;
         }
}

@media only screen and (max-width: 600px) {
    nav ul.header-menu li:nth-last-child(4) {
        display: none;
     }
 
}

@media only screen and (max-width: 550px) {
    nav ul.header-menu li:nth-last-child(5) {
        display: none;
     }
    
     
}

@media only screen and (max-width: 550px) {
    .header-content {
        display: flex;
        justify-content: flex-end; /* Align menu items to the right */
      }
      
    nav li {
        margin-left: 10px; /* Adjust spacing between menu items */
      }
    
    nav ul.header-menu li:nth-child(n) {
        display: flex;
      }
    nav ul.header-menu li:nth-last-child(1) {
        display: none;
     }      
}


/* */
    /* Hide the nested menu by default */
.nested-menu {
    display: none;
    /* right: 0; Right-align the dropdown menu */
    padding-left: 20px;
    z-index: 1;
    text-align: right;
}
  
      /* Style the nested menu items */
.nested-menu a {
    display: block;
    padding: 2px;
    /* width: auto; */
    text-decoration: none;
    /* border: 1px solid #fdfbfb; */
    /* color: #fef6e4; */
}
@media only screen and (min-width: 1024px) {
    .nested-menu {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    ul.nested-menu li {
        display: none;
    }
    ul.nested-menu li:nth-last-child(1) { 
        display: block; 
    }  
}

@media only screen and (max-width: 800px) {
    ul.nested-menu li:nth-last-child(2) {
        display: block; 
    }  
}

@media only screen and (max-width: 600px) {
    ul.nested-menu li:nth-last-child(3) {
        display: block; 
    }     
}

@media only screen and (max-width: 550px) {
    ul.nested-menu li:nth-last-child(4) {
        display: block; 
    }
     
}

