.menu-container {
    position: relative;
}

.menu-toggle {
    cursor: pointer;
    font-size: 30px;
    display: none; /* Hidden by default, shown in mobile */
}

nav {
    display: flex;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
	font-family: 'Poppins ', sans-serif;
	font-size: 18px;
	font-weight: bold;
	text-transform: uppercase
}

nav ul li a {
    display: block;
     padding-left: 8px;
	padding-right: 8px;
	padding-top: 15px;
	padding-bottom: 15px;
	
    color: white;
    text-decoration: none;
    position: relative; /* Add relative positioning for arrow */
	font-family: 'Poppins ', sans-serif;
	font-size: 14px;
	font-weight: bold
}

.arrow {
    margin-left: 10px; /* Space between text and arrow */
    transition: transform 0.3s ease; /* Animation for arrow rotation */
    display: inline-block; /* Allow transformation */
    transform: rotate(210deg); /* Default position - arrow down */
}

nav ul li a:hover .arrow {
    transform: rotate(270deg); /* Arrow points up on hover */
}
/*
.submenu {
    
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #ffffff;
    z-index: 1000;
	transition: 1s
}

nav ul li:hover .submenu {
    display: block; 
}
*/
.submenu {
    display: block; /* Allow transitions to work */
    max-height: 0; /* Hidden by default */
    overflow: hidden; /* Prevent content overflow */
    opacity: 0; /* Hidden by default */
    transition: max-height 0.4s ease, opacity 0.4s ease; /* Smooth transition */
    background-color: #ffffff; /* Submenu background */
	 position: absolute;
	border-radius: 5px;
	width: auto

}

.menu ul li:hover .submenu {
    max-height: 200px; /* Maximum height of submenu (adjust as needed) */
    opacity: 1; /* Fully visible */
    transition: max-height 0.4s ease, opacity 0.4s ease; /* Smooth transition */
}
.submenu li a{
	color: #000000 !important;
}
.namemob{
	display: none
}
@media screen  and (max-width: 500px) {
    .menu-toggle {
        display: block; /* Show toggle on mobile */
		position: absolute;
		top: -50px;
		right: 10px;
		z-index: 10;
		float: right;
		color: #ffffff
    }

    nav {
        position: fixed;
        top: 0px;
        left: -80%; /* Start hidden offscreen */
        height: 100%;
        width: 80%;
        background-color: #2ca4dd;
        transition: left 0.3s ease;
		
    }
	.maro{
		margin-top: 80px
	}
	.namemob{
		display: block;
		width: 100%;
		height: 100px;
		background-color: #276b8c;
		margin-left: 0%;
		
		line-height: 40px;
		font-size: 21px;color: #ffffff;
		font-family: 'Poppins ', sans-serif;
	}
    nav.active {
        left: 0; /* Slide in */
    }

    nav ul {
        flex-direction: column;
		width: 90%;
		float: left;
		text-align: left
    }

    nav ul li {
        width: 100%;
		border-bottom: solid #ffffff 1px;
		margin-left: 20px
    }

nav ul li a {
    display: block;
    padding: 0px;
	padding-top: 15px;
	padding-bottom: 15px;
    color: #FFFFFF;
    text-decoration: none;
    position: relative; /* Add relative positioning for arrow */
	width: 100%
}
    .submenu {
        position: static; /* Change position for mobile */
        display: none; /* Keep submenus hidden */
    }

    nav ul li.active .submenu {
        display: block; /* Show submenu on click */
        transition: max-height 0.3s ease;
		
		width: 100%;
    }
	
}
@media screen and (min-width: 505px) and (max-width: 1100px){
	.menu-container {
    position: relative;
		background-color: aqua;
		width: 100%;
}
	.menu-toggle {
        display: block; /* Show toggle on mobile */
		position: absolute;
		top: -50px;
		right: 5%;
		z-index: 10;
		float: right;
		color: #ffffff
    }
	
.menu-toggle.inside-nav {
    position: absolute;
    top: -50px; /* Adjust based on desired position inside the nav */
    right:auto;
	left: 35%;
	float: left;
    color: white; /* Match nav's styling */
	font-size: 40px;
	font-weight: bold
}
    nav {
        position: fixed;
        top: 0px;
        left: -80%; /* Start hidden offscreen */
        height: 100%;
        width: 40%;
        background-color: #2ca4dd;
        transition: left 0.3s ease;
		
    }
	.maro{
		margin-top: 60px
	}
	.namemob{
		display: block;
		width: 100%;
		height: 100px;
		background-color: #276b8c;
		margin-left: 0%;
		
		line-height: 40px;
		font-size: 21px;color: #ffffff;
		font-family: 'Poppins ', sans-serif;
	}
    nav.active {
        left: 0; /* Slide in */
    }

    nav ul {
        flex-direction: column;
		width: 90%;
		float: left;
		text-align: left
    }

    nav ul li {
        width: 100%;
		border-bottom: solid #ffffff 1px;
		margin-left: 20px
    }

nav ul li a {
    display: block;
    padding: 0px;
	padding-top: 8px;
	padding-bottom: 8px;
    color: #FFFFFF;
    text-decoration: none;
    position: relative; /* Add relative positioning for arrow */
	width: 100%
}
    .submenu {
        position: static; /* Change position for mobile */
        display: none; /* Keep submenus hidden */
    }

    nav ul li.active .submenu {
        display: block; /* Show submenu on click */
        transition: max-height 0.3s ease;
		
		width: 100%;
    }
}