@media (min-width:992px){
    nav#nav{
        width:100%;
    }
	ul.megamenu {	
		margin: 0;
	    padding: 0;
		width: 100%;
		display: flex;
		justify-content: flex-end;
		height: 92px;
	}
	ul.megamenu,
	ul.megamenu li{
		list-style-type:none;
	}
	ul.megamenu li {
	    display:block;
		float: unset;
		margin: 0;
	}
	ul.megamenu li.level0 {
        text-align: center;
    padding: 0;
    line-height: 38px;
    margin-right: 0;
	display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    }
	ul.megamenu li.level0:hover {
		cursor:pointer;
		background-color: #fff;
	}
   	ul.megamenu a.level0{
		color: #000;
    display: inline-block;
    float: none;
    font-size: 16px;
    padding: 0 20px;
    position: relative;
    font-family: "Roboto", sans-serif;
    line-height: 21px;
	font-weight:300;
    }

	ul.megamenu a.level0 .fas.fa-caret-down {
		display:none;
	}
	ul.megamenu li.level0 span { 
		color: #4e4d4f;
		font-family: "Roboto", sans-serif;
		vertical-align:top;
		margin:0 15px;
		line-height: 33px;
	}

	ul.megamenu a.level0.current {
		background-color:transparent;
		color: #056241;
	}
	 ul.megamenu a.level0:hover, ul.megamenu li.level0:hover a {
		 color: #000;
	 }
	ul.megamenu li.level0:hover a.MenuLink {
		 color: #000;
	 }
	ul.megamenu ul {
		padding:0;
		margin:0;
	}
	ul.megamenu li a {
		float: left; 
		text-decoration:none;
	}

	
/*ul.megamenu li.level0:nth-of-type(3) .sub {
	opacity:1;
	visibility:visible;
	display:block;
}*/
ul.megamenu li.level0:nth-of-type(1) a.level0.parent::before {
	content: "\e528";
  font-family: "Font Awesome 6 Pro";
  color:#056241;
  margin-right:7px;
}
ul.megamenu li.level0:nth-of-type(2) a.level0.parent::before {
	content: "\f4c6";
  font-family: "Font Awesome 6 Pro";
  color:#056241;
  margin-right:7px;
}
ul.megamenu li.level0:nth-of-type(3) a.level0.parent::before {
	content: "\e605";
  font-family: "Font Awesome 6 Pro";
  color:#056241;
  margin-right:7px;
}
ul.megamenu li.level0:nth-of-type(4) a.level0.parent::before {
	content: "\f005";
  font-family: "Font Awesome 6 Pro";
  color:#056241;
  margin-right:7px;
}
ul.megamenu li.level0:nth-of-type(1) .sub {
	left:250px;
}
ul.megamenu li.level0:nth-of-type(1) .wrapper, ul.megamenu li.level0:nth-of-type(4) .wrapper{
	column-count: 2;
  -moz-column-count: 2;
  -webkit-column-count: 2;
  column-gap: 0.5em;
  -webkit-perspective: 1;
}

ul.megamenu li.level0:nth-of-type(2) .wrapper {
	column-count: 3;
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-gap: 0.5em;
  -webkit-perspective: 1;
}
ul.megamenu li.level0:nth-of-type(4) .sub ul {
	min-height:unset;
}
ul.megamenu .wrapper {
	column-count: 3;
  -moz-column-count: 3;
  -webkit-column-count: 3;
  column-gap: 0.5em;
  padding-bottom: 2px;
  font-size: 18px;
  line-height: 21px;
  -webkit-perspective: 1;
}
ul.megamenu li.level0:nth-of-type(3) .wrapper {
	column-count: 1;
  -moz-column-count: 1;
  -webkit-column-count: 1;
  column-gap: 0.5em;
  -webkit-perspective: 1;
}

.megamenusubcontent {
 -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
   break-inside: avoid; 
    width: 100%;
}
/*ul.megamenu li.level0 .sub ul.megamenusubcontent {
	border-left: 1px solid #334B57;
	padding-left: 23px;
    padding-bottom: 15px;
}*/
ul.megamenu li.level0 .sub ul.megamenusubcontent:last-child {
	border: unset;
}
ul.megamenu .sub ul li.subheader {
	padding-top:0;
}
ul.megamenu li .sub {		
   position: absolute;
    top: 94px; /* Adjust based on your menu */
    left: 50%; /* Keep it centered horizontally */
    transform: translateX(-50%) translateY(-20px); /* Start slightly above */
    opacity: 0; /* Hidden by default */
    visibility: hidden; /* Hidden by default */
    display: block; /* Block-level for positioning */
    background-color: rgba(255,255,255,.95);
    padding: 35px 35px 35px 25px;
   /* -webkit-box-shadow: inset 0px 18px 20px -15px rgba(83,102,112,0.32), 0px 0px 10px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: inset 0px 18px 20px -15px rgba(83,102,112,0.32), 0px 0px 10px 0px rgba(0,0,0,0.2);
  box-shadow: inset 0px 18px 20px -15px rgba(83,102,112,0.32), 0px 0px 10px 0px rgba(0,0,0,0.2);*/
 -webkit-box-shadow: inset 0px 16px 25px -17px rgba(148,148,148,0.54);
-moz-box-shadow: inset 0px 16px 25px -17px rgba(148,148,148,0.54);
box-shadow: inset 0px 16px 25px -17px rgba(148,148,148,0.54);
    z-index: 1300;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s; /* Visibility delay for smooth transition */
    text-align: left;
    border-bottom: 6px solid #94cc79;
}
	ul.megamenu li.level0:hover > .sub{
	transform: translateX(-50%) translateY(0); /* Slide into view */
    opacity: 1; /* Fully visible */
    visibility: visible; /* Now visible */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s; /* Reset visibility delay */
}
ul.megamenu li.level0 {
  line-height: 40px;
  width: 20%;
}
	ul.megamenu li.level0 .sub ul.megamenusubcontent {
		border: 1.5px solid;
	  border-top: 0;
	  border-left: 0;
	  border-bottom: 0;
	  border-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(226, 226, 226, 1) 48%, rgba(255, 255, 255, 0) 100%);
	  border-image-slice: 1;
	}
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent { 
	border:unset;
	}
	ul.megamenu li .sub .menushadow {
		display:none;
	}
	ul.megamenu li .sub ul{
	     list-style: none; 
	     margin: 0;
	     padding: 0 8px; 
	}
	ul.megamenu li.level0 .sub ul{
	    list-style: none; 
	    padding: 0 10px 5px 25px;
	}
	ul.megamenu .sub ul li {
		width: 100%;
		line-height: 20px;
		min-width:165px;
		margin-bottom:8px;
		padding-top: 0;
	}
	ul.megamenu .sub li.subheader > a {
		color: #056241;
    font-size: 20px;
    border-bottom: 0;
    display: block;
    line-height: 22px;
    position: relative;
    font-family: "Roboto", sans-serif;
    margin-bottom: 2px;
    font-weight: 300;
	}
	ul.megamenu .sub li.subheader > a:hover {
		color:#056241;
	}
	ul.megamenu .sub ul li a {
		float: none; 
		text-indent: 0; 
		display: block;
		text-decoration: none;
		color: #686260;
		margin:0;
	}	
	ul.megamenu .sub ul li a.level2{
        font-size: 17px;
		margin-bottom: 0;
		color: #686260;
		z-index: 10;
		position: relative;
		line-height: 19px;
		font-weight:300;
    }
	ul.megamenu .sub ul li a.level2.parent, ul.megamenu .sub ul li a.level2.parent:hover {
		font-weight:500;
		color:#056241;
	}
	ul.megamenu .sub ul li a.level3 {
		font-size: 14px;
		margin-bottom: 8px;
		color: #686260;
		padding-left: 0;
		z-index: 10;
		position: relative;
		line-height: 16px;
		font-weight:300;
	}
	ul.megamenu .sub ul li a:hover{
        color: #056241;
    }
}
@media (min-width:1024px){
 ul.megamenu li.level0:nth-of-type(3) .sub {
    left: 77%;
    right: -18%;
}
 ul.megamenu li.level0:nth-of-type(4) .sub {
    left: 68%;
    right: -48%;
  }
}
@media (min-width:1200px){
ul.megamenu li.level0 {
	line-height: 45px;
}
ul.megamenu a.level0 {
  font-size: 16px;
  line-height: 24px;
}
}
@media (min-width:1385px){
ul.megamenu a.level0 {
  font-size: 19px;
  line-height: 22px;
}
}
@media (min-width:1400px){
ul.megamenu a.level0 {
  font-size: 20px;
  line-height: 22px;
}
  ul.megamenu li.level0:nth-of-type(4) .sub {
    left: 77%;
	right:unset;
  }
}
@media (min-width:1600px){
ul.megamenu li.level0 {
	margin:0;
}
}
