@media (min-width:992px){
    nav#nav{
        width:100%;
    }
	ul.megamenu {	
		float:left;
		margin: 0;
	    padding: 0;
		position: relative;
		width: 100%;
	}
	ul.megamenu,
	ul.megamenu li{
		list-style-type:none;
	}
	ul.megamenu li {
	    display:block;
		float: left;
		margin: 0;
	    padding: 0;
		line-height:22px;
	}
	ul.megamenu li.level0 {
        text-align:center;
    }
   	ul.megamenu a.level0{
		color: #fff;
        display:inline-block;
        float:none;
        font-size: 17px;
		text-transform: uppercase;
		font-family: 'Nunito Sans',sans-serif;
		font-weight: 800;
		padding: 23px 16px; /*Was 23px 30px prior to adding Investments to top level menu item 2020-12-29 - Mark*/
        position:relative;
    }
	ul.megamenu a.level0.current, ul.megamenu a.level0:hover {
		background-color:#fff;
		color: #027052;
	}

	ul.megamenu ul {
		padding:0;
		margin:0;
	}
	ul.megamenu li a {
		float: left; 
		text-decoration:none;
	}

	ul.megamenu li .sub {
		background: #fff;
		left: 0;
		float: left;
		padding:25px 0;
		position: absolute;
		opacity:0;
		overflow:hidden;
		text-align:left;
		top:67px;
		visibility:hidden;
		width:100%;
		z-index:1000;
		max-width:1140px !important;
		border-bottom: 4px solid #027052;
		min-width:1140px;
	}
	ul.megamenu li.level0:hover > .sub{
	    opacity:1;
        visibility:visible;
	}
	ul.megamenu li .row {
	    clear: both;
	    float: left;
	    margin-bottom: 10px;
	    width: 100%;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	ul.megamenu li .sub ul{
	    display:block; 
	     float: left; 
	     height:auto; 
	     list-style: none; 
	     margin: 0;
	     padding: 0 8px; 
	     width: 16.6%; 
	}
	ul.megamenu li.level0 .sub ul{
	   display:block;
	     float: left;
	     height:auto;
	    list-style: none; 
	    margin: 0; 
	    padding: 0 35px;
	    width: 33.33333%;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul {
		padding: 0 60px;
	}
	ul.megamenu li.level0:nth-of-type(2) .sub ul,ul.megamenu li.level0:nth-of-type(3) .sub ul, ul.megamenu li.level0:nth-of-type(4) .sub ul, ul.megamenu li.level0:nth-of-type(5) .sub ul {
		padding: 0 35px;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a,
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a,
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a,
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a,
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a,
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a,
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a,
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a,
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a,
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a,
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a,
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a,
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a,
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a,
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a,
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a,
	ul.megamenu li.level0:nth-of-type(5) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a,
	ul.megamenu li.level0:nth-of-type(5) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a,
	ul.megamenu li.level0:nth-of-type(5) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a,
	ul.megamenu li.level0:nth-of-type(5) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a{
		height: 34px;
		background-size: 34px 34px !important;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-accounts.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-banking.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-loans.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/icons/funnel_investmentservices.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-accounts.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-services.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-loans.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-resources.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-applyonline.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-resourcecenter.svg") no-repeat 0 0;
		padding-left: 57px;
		background-size: 15%;
		background-position: 17px 11px;
		height: 46px;
	}
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-loanofficers.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-menufaq.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-privatebanking.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-trustestate.svg") no-repeat 0 0;
		/*padding-left: 57px;
		background-size: 15%;
		background-position: 17px 11px;
		height: 50px;*/
	}
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/icons/funnel_investmentservices.svg") no-repeat 0 0;
		padding-top: inherit;
	}
	ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-investments.svg") no-repeat 0 0;
		padding-left: 57px;
		background-size: 15%;
		background-position: 17px 11px;
	}
	ul.megamenu li.level0:nth-of-type(6) .sub ul.megamenusubcontent:nth-of-type(1) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-aboutus.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(6) .sub ul.megamenusubcontent:nth-of-type(2) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-security.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(6) .sub ul.megamenusubcontent:nth-of-type(3) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-resourcecenter.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(6) .sub ul.megamenusubcontent:nth-of-type(4) li.subheader a {
		background: url("/Portals/0/Skins/QNBT/images/menuicons/icon-Qtips.svg") no-repeat 0 0;
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul.megamenusubcontent,
	ul.megamenu li.level0:nth-of-type(2) .sub ul.megamenusubcontent,
	ul.megamenu li.level0:nth-of-type(3) .sub ul.megamenusubcontent,
	/*ul.megamenu li.level0:nth-of-type(4) .sub ul.megamenusubcontent,*/
	ul.megamenu li.level0:nth-of-type(5) .sub ul.megamenusubcontent {
		width: 25%;
	}
	ul.megamenu .sub ul li {
		width: 100%;
	}
	ul.megamenu .sub ul li h2 {
	    margin: 0;
		padding: 0;
	}
	ul.megamenu .sub ul li h2 a {
	    color: #027052;
		font-size: 17px;
		border-bottom: 0;
		display: block;
		font-family: 'Nunito Sans',sans-serif;
		font-weight: 900;
		margin-bottom: 12px;
		text-transform: uppercase;
		line-height: 1.2;
		position: relative;
		padding-top: 10px;
	}
	ul.megamenu .sub li.subheader > a {
		color: #027052;
		font-size: 17px;
		border-bottom: 0;
		display: block;
		font-family: 'Nunito Sans',sans-serif;
		font-weight: 900;
		margin-bottom: 12px;
		text-transform: uppercase;
		line-height: 1.2;
		position: relative;
		padding:10px 0 0 35px;
	}
	ul.megamenu .sub li.subheader > a:hover {
		color: #027052;
	}
	ul.megamenu li.level0 .sub li.subheader > a {
        /*text-indent:17%;*/
    }
	ul.megamenu li.subheader a img{
        height:auto;
        margin-top:5px;
        width:100%;
    }
	ul.megamenu .sub ul li a {
		float: none; 
		text-indent: 0; /*--Reset text indent--*/
		display: block;
		text-decoration: none;
		color: #231e20;
		margin:0;
	}
	ul.megamenu .sub ul li a.level2{
        font-size:14px;
		font-family: 'Nunito Sans',sans-serif;
        font-weight:700;
        padding-left:18%;
    }
	ul.megamenu .sub ul li a.level3{
		font-size:14px;
		font-family: 'Nunito Sans',sans-serif;
        padding-left:20%;
		font-weight: normal;
    }
	ul.megamenu .sub ul li a:hover{
        color:#027052;
    }
	ul.megamenu .sub ul li a:active{
        opacity:.5;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1200px) {
	ul.megamenu li .sub {
		min-width:900px;
		max-width:900px;
	}
	ul.megamenu a.level0 {
		padding: 23px 8px; /*Was 23px 15px prior to adding Investments to top level menu item 2020-12-29 - Mark*/
	}
	ul.megamenu li.level0:nth-of-type(1) .sub ul,ul.megamenu li.level0:nth-of-type(2) .sub ul,ul.megamenu li.level0:nth-of-type(3) .sub ul, ul.megamenu li.level0:nth-of-type(4) .sub ul, ul.megamenu li.level0:nth-of-type(5) .sub ul {
		padding: 0 5px;
	}
}

/*Start - New for Adding Investments to Top Level in menu - 2020-12-29 Mark*/
@media screen and (max-width: 1385px) {
    .col-sm-10.smallermenu #dnngo_megamenu ul.megamenu a.level0 {
        padding: 23px 14px;
    }

    .col-sm-10.smallermenu {
        max-width: 852px;
    }
}

@media only screen and (max-width: 1230px) and (min-width: 1024px) {
    .col-sm-10.smallermenu #dnngo_megamenu ul.megamenu a.level0 {
        padding: 23px 6px;
        font-size: 14px;
    }
}
/*END - New for Adding Investments to Top Level in menu - 2020-12-29 Mark*/