.megamenu {
	margin-top:1em;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    list-style: none;
    display: inline-block;
    position: relative;
    font-size: 1em;
}


@media screen and (min-width: 800px){
	.megamenu{
		display: flex;
		justify-content: center;
		align-items: center;		
	}
	.megamenu>li.active>a {
		color: black;
		border-bottom:3px solid #ff9040;
	}
	.megamenu>li:not(.active)>a {
		color: black;
		border-bottom:3px solid transparent;
	}
	#text_search{
		display:none;
	}
}


.megamenu li {
    margin-bottom: 0;
    display: inline;
}
.megamenu>li>a {
    float: left;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 1em;
    transition: all .3s ease-in-out;
}

.megamenu>li>a:hover {
    background: #ff9040;
	color:white;
	border-bottom:0;

}
.megamenu>li.right {
    float: right;
}
.megamenu .dropdown, .megamenu .dropdown li .dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    z-index: 999;
    width: 160px;
    border: solid 1px rgba(0, 0, 0, .1);
    background: #fff;
}
.megamenu .dropdown {
    top: 59px;
}
.megamenu .dropdown li .dropdown {
    left: 160px;
    top: inherit;
}
.megamenu .dropdown li {
    clear: both;
    width: 100%;
    border-bottom: solid 1px rgba(0, 0, 0, .1);
}
.megamenu .dropdown li:last-child {
    border-bottom: 0;
}
.megamenu .dropdown li a {
    float: left;
    width: 100%;
    padding: 10px 25px;
    text-decoration: none;
    display: block;
    border: 0 none;
    font-size: 14px;
    color: #444;
    background: 0;
    box-sizing: border-box;
    transition: color .4s ease-in-out;
}
.megamenu .dropdown li:hover>a {
    background: #dbdbdb;
}
.megamenu>li>.megapanel {
    position: absolute;
    display: none;
    background: #fff;
    box-shadow: 0 2px 4px #aaa;
    width: 100.2%;
    top: 86px;
    opacity: 1;
    left: -1px;
    z-index: 99;
    padding: 20px 30px 20px;
    box-sizing: border-box;
}
.megamenu .megapanel ul {
    margin: 0;
    padding: 0;
}
.megamenu .megapanel img {
    width: 100%;
    border: solid 1px #dedede;
    cursor: pointer;
    transition: border .3s linear;
}
.megamenu .megapanel img:hover {
    border: solid 1px #777;
}
.megamenu form.contact input, .megamenu form.contact textarea {
    font-family: Calibri, Arial;
    font-size: 16px;
    color: #444;
    outline: 0;
}
.megamenu form.contact input[type=text], .megamenu form.contact textarea {
    resize: none;
    width: 100%;
    margin: 10px 0;
    padding: 5px 10px;
    border: solid 1px #dedede;
    box-sizing: border-box;
    transition: border .3s linear;
}
.megamenu form.contact input[type=text] {
    height: 40px;
}
.megamenu form.contact input[type=text]:focus, .megamenu form.contact textarea:focus {
    border: solid 1px #999;
}
.megamenu form.contact input[type=submit] {
    width: 100px;
    height: 35px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: #999;
}
.megapanel .row {
    width: 100%;
    margin-top: 15px;
}
.megapanel .row:first-child {
    margin-top: 0;
}
.megapanel .row:after, .megapanel .row:before {
    display: table;
    content: "";
    line-height: 0;
}
.megapanel .row:after {
    clear: both;
}
.megapanel .row .col1, .megapanel .row .col2, .megapanel .row .col3, .megapanel .row .col4, .megapanel .row .col5, .megapanel .row .col6 {
    display: block;
    width: 100%;
    min-height: 20px;
    float: left;
    margin-left: 2.127659574468085%;
    box-sizing: border-box;
}
.megapanel .row [class*=col]:first-child {
    margin-left: 0;
}
.megapanel .row .col1 {
    width: 48.893617021276595%}
.megapanel .row .col2 {
    width: 31.914893617021278%}
.megapanel .row .col3 {
    width: 48.93617021276595%}
.megapanel .row .col4 {
    width: 65.95744680851064%}
.megapanel .row .col5 {
    width: 82.97872340425532%}
.megapanel .row .col6 {
    width: 100%}
.megamenu>li.showhide {
    display: none;
    width: 100%;
    height: 44px;
    cursor: pointer;
    color: #555;
    background: #f7f7f7;
}
.megamenu>li.showhide span.title {
    margin: 12px 0 0 15px;
    float: left;
}
.megamenu>li.showhide span.icon1:after {
    position: absolute;
    content: "";
    right: 15px;
    top: 10px;
    height: 3px;
    width: 25px;
    font-size: 50px;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
    z-index: 1;
}
.megamenu>li.showhide span.icon2:after {
    position: absolute;
    content: "";
    right: 15px;
    top: 22px;
    height: 3px;
    width: 25px;
    font-size: 50px;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
    z-index: 1;
}
.skyblue li>a, .skyblue>li.showhide span {
    color: black;
}
.skyblue .dropdown li:hover>a, .skyblue>li:hover>a {
    color: #555;
    background: #fff;
}
.skyblue form.contact input[type=submit] {
    background: #00405d;
    text-transform: uppercase;
}
@media(max-width:700px) {
    .megamenu>li {
    display: block;
    width: 100%;
    border-bottom:transparent;
    box-sizing: border-box;
}
.megamenu>li.active, .megamenu>li:hover {
    border-top: 0;
}
.megamenu>li>a {
    padding: 10px;
}
.megamenu>li.active>a, .megamenu>li:hover>a {
    padding: 10px;
}
.megamenu a {
    width: 100%;
    box-sizing: border-box;
}
.megamenu .dropdown, .megamenu .dropdown li .dropdown {
    width: 100%;
    display: none;
    left: 0;
    border-left: 0;
    position: static;
    border: 0;
    box-sizing: border-box;
}
.megamenu .dropdown li {
    background: #fff!important;
    border: 0;
}
.megamenu .dropdown>li>a {
    padding-left: 40px!important;
}
.megamenu>li>.megapanel {
    position: static;
    margin-top: 50px;
}
.megapanel .row [class*=col] {
    float: none;
    display: block;
    width: 100%;
    margin-left: 0;
    margin-top: 15px;
    box-sizing: border-box;
}
.megapanel .row:first-child [class*=col]:first-child {
    margin-top: 0;
}
.megapanel .row {
    margin-top: 0;
}
.black {
    background: #222;
}
}@media (max-width:1366px) {
    .megamenu>li>.megapanel {
    top: 82px;
}
}@media (max-width:1280px) {
    .megamenu>li>.megapanel {
    top: 80px;
}
}@media (max-width:1024px) {
    .megamenu>li>.megapanel {
    top: 75px;
}
}
@media (max-width:800px) {
    .megamenu>li>.megapanel {
    top: 112px;
}
}