#site-navigation{
    background-color: #145633;
    display: flex;
    min-height: 80px;
    align-items: center;
    padding: 0 1.5rem;
}
.nav-link{
    padding: 0.6rem;
    font-weight: 700;
    color: #FFF;
    font-size:0.75rem!important;
}
#menu-main li.menu-item-has-children.active{
    background-color: #FFF!important;
}
#menu-main>li.menu-item-has-children.active a:not(.dropdown-item),
#menu-main>li.menu-item-has-children.active .dropdown-item.active{
    color: #D26200!important;
}

#menu-main{
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 0.2rem;
}
#menu-main li{
   border-radius: 5px;
   transition: all 0.3s ease;
}
#menu-main li a{
    color: #FFF;
}
.dropdown:hover>.dropdown-menu {
    display: block;
}
.box-nav{
    width: 100%;
}
#menu-main li:nth-last-child(3){
    margin-left: auto;
}

#menu-main li:nth-last-child(3),
#menu-main li:nth-last-child(2),
#menu-main li:nth-last-child(1){
    background-color: #D26200;
    font-weight: 700;
    padding: 0 0.5rem;
    margin-right:1rem;    
}
/*Drop down menu*/
.dropdown-item{
    color:#1A1A1A!important;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
}
.dropdown-item.active, .dropdown-item:active{
    color: #D26200!important;
    background-color: transparent!important;
}
.dropdown-item:hover, .dropdown-item:focus{
    color: #D26200!important;
    background-color: transparent!important;
}
.dropdown-menu a:not(:last-child){
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.navbar-toggler{
   display: block;
   margin-left: auto;
}
.navbar-toggler i{
    color: #FFF;
}
.open-dropdown{
    display:none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
}
/* footer */
footer
{
    background-color: #145633;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    /*min-height: 80px;*/
    flex-wrap: wrap;
				margin-top:auto;
}
footer p
{
    margin: 0;
}
.footer-text
{
    font-size: 0.8rem;
    font-weight: 700;
    color: #FFF;
    line-height: 0;
}
.imgefx-badge
{
    margin-left: auto;
}
.footer-text-container
{
    display: flex;
    align-items: center;
}
footer .site-info
{
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    gap:2rem;
}
.footer-menu ul
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.social-media
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.footer-menu ul
{
    padding: 0;
}
.footer-menu
{
    display: flex!important;
    align-items: center;
    justify-content: center;
}
.footer-menu a
{
    color: #FFF;
    font-size: 0.8rem;
    font-weight: 700;
}
.footer-app-social
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* end footer */
.dropdown-menu {
    display: none; /* Hide by default */
}

.dropdown-menu.show {
    display: block; /* Show when the 'show' class is added */
}
.social-media img
{
    cursor: pointer;
}
#menu-main li:nth-last-child(4) a
{
    background-color: #10462a;
    transition: all 0.3s ease;
    border-radius: 6px;
}
#menu-main li:nth-last-child(4) a:hover
{
    background-color: #FFF;
    color: #D26200;
}
.new-par-baked-bagels-nav
{
    background-color: #D26200;
    padding: 0.2rem 0.4rem;
    margin-right: 0.3rem;
    color: #FFF;
    border-radius: 15px;
    font-size: 0.6rem;
    font-weight: 700;
}
/*Responsive*/
@media only screen and (max-width: 1510px)
{
    #menu-main
    {
        padding-left: 0.5rem!important;
    }
    .nav-link
    {
        font-size: 0.75rem!important;
        padding: 0.7rem;
    }
    #menu-main li:nth-last-child(3), #menu-main li:nth-last-child(2), #menu-main li:nth-last-child(1)
    {
        margin-right: 0.2rem;
        padding: 0;
    }  
}
@media only screen and (max-width: 1250px)
{
    .box-logo,
    .box-logo img
    {
        width: 100px;
    } 
    .nav-link, .dropdown-item
    {
        font-size: 0.6rem!important;
    }
    #menu-main li:nth-last-child(3), #menu-main li:nth-last-child(2), #menu-main li:nth-last-child(1)
    {
        margin-right: 0.2rem;
        padding: 0;
    }  
    .nav-link
    {
        padding: 0.5rem;
    }
}
@media only screen and (max-width: 1200px)
{
    .box-logo,
    .box-logo img
    {
        width: 100px;
    } 
    #menu-main li:nth-last-child(3), #menu-main li:nth-last-child(2), #menu-main li:nth-last-child(1)
    {
        margin-right: 0.2rem;
        padding: 0;
    }
    #menu-main li:nth-last-child(3) a, #menu-main li:nth-last-child(2) a, #menu-main li:nth-last-child(1) a
    {
        font-size: 0.7rem;
    }
    .footer-app-social
    {
        width: 100%;
        justify-content: center;
    }
    footer .site-info
    {
        gap: 1rem;
    }
}
@media only screen and (min-width: 992px)
{
			footer
    {
        min-height: 80px;
    }
}
@media only screen and (max-width: 992px)
{
    .dropdown-toggle::after
    {
        display: none;
    }
    #menu-main
    {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    footer
    {
        padding: 1.5rem;
    }
    .footer-text-container
    {
        width: 100%;
        justify-content: center;
    }
    .footer-text
    {
        line-height: 1;
    }
    .collapse:not(.show) {
        display: block;
    }
    .box-nav{
        transition: all 0.3s ease;
    }
    #menu-main
    {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }
    #nav-menu {
        padding: 1rem 0 1rem 0;
        position: fixed;
        top: 0;
        right: -250px; /* Adjust according to your menu width */
        width: 250px; /* Adjust according to your menu width */
        height: 100%;
        background-color: #FFF; /* Menu background color */
        transition: right 0.5s ease; /* Change duration and type of transition */
        z-index: 1000;
    }
    #nav-menu.open::before{
        content: "X";
        display: block;
        position: absolute;
        top: 1rem;
        left:-26px;
        border-radius: 5px;
        width: 30px;
        height: 30px;
        background-color: #FFF;
        color: #145633;
        z-index: 1;
        display:flex;
        font-size: 1rem;
        font-weight: 700;
        align-items: center;
        justify-content: center;
    }
    ul#menu-main{
        padding-left: 1rem;
    }
    #menu-main li:not(:nth-last-child(5)),#menu-main li:nth-last-child(4) a {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
        border-radius: 0;
    }
    #menu-main li:not(:nth-last-child(4)) a{
        color: #000;
        font-size: 0.8rem;
    }
    #menu-main li:nth-last-child(3)
    {
        margin-left:0;
    }
    #menu-main li:nth-last-child(3) a,
    #menu-main li:nth-last-child(2) a,
    #menu-main li:nth-last-child(1) a{
        color: #FFF;    
    }
    #menu-main li:nth-last-child(3),
    #menu-main li:nth-last-child(2),
    #menu-main li:nth-last-child(1){
        width: 100%;
    }
    #nav-menu.open {
        right: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add a nice shadow */
    }
    .dropdown-menu
    {
        width: 100%;
    }
    .imgefx-badge
    {
        display: flex;
        width: 100%;
        justify-content: center;
        order:4;
        margin-left: inherit;
    }
    .footer-menu
    {
        width: 100%;
        justify-content: center;
    }
    .open-dropdown {
        display: block;
        position: absolute;
        right: 15px;
        top: 5px;
        color: #CCC;
        z-index: 10;
    }
    .sub-menu
    {
        border-radius: 0;
    }
    
    .menu-item-has-children {
        position: relative;
    }
    
    .dropdown-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 15px;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    .dropdown-menu.show {
        display: block;
        max-height: 1000px;
        transition: max-height 0.5s ease-in;
    }
    
    /* Prevent hover behavior on mobile */
    .dropdown:hover > .dropdown-menu {
        display: none;
    }
    
    .dropdown:hover > .dropdown-menu.show {
        display: block;
    }
    
    /* Nested submenus styling */
    .dropdown-menu .dropdown-menu {
        padding-left: 10px;
        border-left: 1px solid rgba(0,0,0,0.1);
    }
}
@media only screen and (max-width: 590px)
{
    .footer-menu ul li
    {
       padding: 0.4rem 0!important;
    }
    .footer-text
    {
        line-height: 1;
    }
    .footer-menu ul
    {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
}