ul.megamenu {	
	margin: 0; padding: 0;
	float:left;
	list-style: none;
}
ul.megamenu, ul.megamenu li
{
list-style-type:none;
}
ul.megamenu li {
	float: left;
	margin: 0; padding: 0;
}

ul.megamenu ul
{
padding:0;margin:0;
}
ul.megamenu li a {
	float: left; 
	text-decoration:none;
	line-height: 20px;
    padding-top: 27px;
    padding-bottom: 28px;
}
ul.megamenu li .sub {
	position: absolute;	
	left: 0;
	float: left;
	display: none;
	top:75px !important;
}
ul.megamenu li .sub > .row {
	clear: both;
	float: left;
	width: 100%;
	padding:0 2%;
	margin: 40px 0 50px !important;
	-moz-columns: 300px 3;
	-webkit-columns: 300px 3;
	columns: 300px 3;
	-moz-column-rule: 1px solid #333;
	-webkit-column-rule: 1px solid #333;
	column-rule: 1px solid #333;
	max-height:350px;
}
ul.megamenu li .sub ul{
	list-style: none;
	margin:0; padding: 0 30px;
	width: 345px;
}
ul.megamenu .sub ul li {
	width: 100%;
}
ul.megamenu .sub ul li h2 {
	padding: 0;  margin: 0;
	font-size: 11px;
	font-weight: normal;
}
ul.megamenu .sub ul li h2 a {
	padding:0;
	margin:0;
}
ul.megamenu .sub ul li a {
	float: none; 
	text-indent: 0; /*--Reset text indent--*/
	display: block;
	text-decoration: none;
	color: #d3d3d3;
	padding:0;
	margin:0;
	text-transform:inherit;
}

/* --Modify for styling --*/
ul.megamenu {
	background-color:#ffffff;
}
ul.megamenu a {
	color:#000000;font-weight:bold;
}
ul.megamenu a {
	padding:8px;
}
div.sub {
	padding:8px;
}
div.sub ul {
	margin-left:8px;
}
#megamenu li.subheader {}
#megamenu li.sublink {margin-bottom:5px; text-align:left;}
#megamenu li.sublink:last-child {margin-bottom: 30px;}
#megamenu li.subheader h2{margin-bottom:10px !important; text-align:left;}

ul.megamenu li .sub {
	background: #000000;
	width:100% !important;
}
ul.megamenu .sub ul li h2 a {
	color:#E84C3D;font-size:17px;font-weight:bold; text-transform:uppercase;
}
ul.megamenu > li:hover:after {
    content: '';
    position: relative;
    left: 50%;
    top: 62px;
    transform: translate(-50%, 0);
    display: block;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 14px solid black;
	-webkit-transition: all .5s ease-in;
    -moz-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
    transition: all .5s ease-in;
}
ul.megamenu .sub ul li h2 a[href='#'] {
    cursor: default;
}
/*ul.megamenusubcontent:nth-child(2) {
	border-left: 1px solid #d3d3d3;
}*/
ul.megamenusubcontent:nth-child(2) li.sublink {
    width: 400px;
}
#megamenu ul.megamenusubcontent:last-child li.sublink:last-child {
    margin-bottom: 0;
}

/* Media queries */
@media only screen and (max-width: 990px) {
    ul.megamenu li .sub > .row {
        columns:2;
		max-height:350px;
    }
	ul.megamenu li .sub {
		top:151px !important;
	}
}
@media only screen and (max-width: 630px) {
    ul.megamenu li .sub > .row {
        columns:1;
		max-height: none;
    }
}
@media only screen and (max-width: 465px) {
    ul.megamenu li .sub {
        top:198px !important;
    }
}
@media only screen and (min-width: 1400px) {
    ul.megamenu li .sub > .row {
        padding:0 18%;
    }
}
@media only screen and (min-width: 1140px) {
	/* Extra margin for second column of recommended charities */
	/*#megamenu ul.megamenusubcontent:last-child li.sublink:nth-child(11) {
		margin-top: 32px;
	}*/
}