.edgtf-main-menu {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    height: 100%;

    ul {
        list-style: none outside none;
        margin: 0px;
        padding: 0px;
        text-align: left;

        li {

            position: relative;
            display: inline-block;
            float: left;
            padding: 0px;
            margin: 0px;
            background-repeat: no-repeat;
            background-position: right;

            a {
                font-size: 21px;
                line-height: 28px;
                font-weight: 500;
                color: $first-main-color;

                body:not(.edgtf-menu-with-large-icons) & span.edgtf-item-inner i:before{
                    margin: 0 7px 0 0;
                }

				.edgtf-item-outer{
					position: relative;
					display: inline-block;
					width: 100%;
					vertical-align: middle;
				}

				.edgtf-featured-icon{
					font-size: 9px;
					color: #fff;
					display: block;
					position: absolute;
					right:0;
					top:1px;
					@include edgtfTransform(translateX(150%));
				}
            }

	        .plus{
		        display:none;
	        }
        }
    }

    > ul {

        display: inline-block;
        vertical-align: middle;
        position: relative;
        height: 100%;

        > li {

            height: 100%;

            body:not(.edgtf-menu-item-first-level-bg-color) &:hover > a {
                color: $first-main-color;
            }

            &.edgtf-has-sub {
                > a i.edgtf-menu-arrow {
                    display: inline-block;
                    margin-left: 6px;
                }

                > a .edgtf-item-inner > i.edgtf-menu-arrow{
                    position: relative;
                    left:4px;
                }

	            > a{
		            span.plus{
			            display:none;
			            position: relative;
			            right: 10px;
			            font-family: 'ElegantIcons';
			            speak: none;
			            font-style: normal;
			            font-weight: normal;
			            font-variant: normal;
			            text-transform: none;
			            line-height: 1;
			            -webkit-font-smoothing: antialiased;
			            &:before{
				            content:"\33";
			            }
		            }
	            }
            }

            > a {

                height: 100%;
                position: relative;
                padding: 0;
                display: inline-block;
                vertical-align: middle;
                border-style: solid;
                border-width: 0px;
                border-color: transparent;
                background-color: transparent;
                @include edgtfTransition(color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, background-color 0.15s ease-out);

                &:before {
                    height: 2px;
                    bottom: 0px;
                }

                &:after {
                    height: 1px;
                    bottom: 4px;
                }

                body.edgtf-menu-with-large-icons &{
                    text-align: center;
                    vertical-align:middle;
                }

                > span.edgtf-item-outer{
                    display: block;
                    position: relative;
                    top: 50%;
                    @include edgtfTransform(translateY(-50%));
                }

                span.edgtf-item-inner {
                    display: inline-block;
                    padding: 0 17px;
                    border-width: 0px;
                    position: relative;
                    border-color: transparent;
                    background-color: transparent;
                    @include edgtfTransition(border-color 0.2s ease-out, background-color 0.2s ease-out);

                    body.edgtf-menu-with-large-icons &{
                        text-align: center;
                        vertical-align:middle;
                    }

					.edgtf-item-text {
						position: relative;

						&:after {
							content: '';
							width: 16px;
							display: block;
							height: 2px;
							background-color: transparent;
							position: absolute;
							bottom: 0;
							@include edgtfTransition(background-color 0.2s ease-out);
						}
					}
                }

				&:hover {
					span.edgtf-item-inner {
						.edgtf-item-text {
							&:after {
								background-color: $first-main-color;
							}
						}
					}
				}

                .edgtf-item-outer{
                	left: 0;
                	overflow: hidden;
					@include edgtfTransition(left 0.2s ease-in-out);
                }

                span.edgtf-item-inner:before,
                span.edgtf-item-inner:after,
                &:before,
                &:after {
                    content: "";
                    display: none;
                    position: absolute;
                    left: 0px;
                    background-color: transparent;
                    @include edgtfTransition(background-color 0.15s ease-out);
                    width: 100%;

                }

                span.edgtf-item-inner:before {
                    bottom: 0px;
                    height: 2px;
                }

                span.edgtf-item-inner:after {
                    height: 1px;
                    bottom: 4px;
                }

                body.edgtf-menu-with-large-icons & span.edgtf-item-inner i{
                    display: inline-block;
                    width:100%;
                    vertical-align:middle;
                }

                > i.blank{
                    display: none;
                }
            }

            &.edgtf-active-item > a {
                span.edgtf-item-inner .edgtf-item-text:after {
                    background-color: $first-main-color;
                }
            }
        }
    }

    body:not(.edgtf-menu-with-large-icons) & .edgtf-drop-down .edgtf-menu-wide.edgtf-menu-icons .edgtf-menu-second i:before {
        margin: 0;
    }

    &.edgtf-sticky-nav > ul > li {

		> a{
			color: #fff;

            &:hover {
                span.edgtf-item-inner .edgtf-item-text:after {
                    background-color: #fff;
                }
            }
		}

        &.edgtf-active-item {
            > a {
                span.edgtf-item-inner .edgtf-item-text:after {
                    background-color: #fff;
                }
            }
        }

    	&:hover > a,
    	&.edgtf-active-item:hover > a,
    	body:not(.edgtf-menu-item-first-level-bg-color) &:hover > a,
    	body:not(.edgtf-menu-item-first-level-bg-color) &.edgtf-active-item:hover > a{
    		color: #fff;
    	}
    }
}

.edgtf-light-header .edgtf-page-header > div:not(.edgtf-sticky-header),
.edgtf-light-header.edgtf-header-style-on-scroll .edgtf-page-header{
	.edgtf-main-menu > ul > li{
		> a {
			color: $header-light-color;
		}
        &.edgtf-active-item>a span.edgtf-item-inner .edgtf-item-text:after,
        >a:hover span.edgtf-item-inner .edgtf-item-text:after {
            background-color: $header-light-color;
        }
	}
}

.edgtf-dark-header .edgtf-page-header > div:not(.edgtf-sticky-header),
.edgtf-dark-header.edgtf-header-style-on-scroll .edgtf-page-header{
	.edgtf-main-menu > ul > li{
		> a {
			color: $header-dark-color;
		}
        &.edgtf-active-item>a span.edgtf-item-inner .edgtf-item-text:after,
        >a:hover span.edgtf-item-inner .edgtf-item-text:after {
            background-color: $header-dark-color;
        }
	}
}


/* Narrow drop down styles
   ========================================================================== */
.edgtf-drop-down{
	ul{
		list-style: none;

		li{
			position: relative;
		}
	}

	%second-ul{
		display:inline-block;
		vertical-align: middle;
		position: relative;
		background-color: $first-main-color;
	}

	.edgtf-menu-second{
		left: -13px;
		top: 100%;
		position: absolute;
		display: block;
		visibility: hidden;
		overflow: hidden;
		opacity: 0;
		z-index: 10;
		@include edgtfTransition(opacity .35s cubic-bezier(0.4, 0, 0.2, 1));

		&.edgtf-drop-down-start{
			visibility: visible;
			overflow: visible;
			opacity: 1;
		}

		header.transparent.fixed.scrolled &,
		header.transparent.fixed_hiding.scrolled &,
		header.transparent.with_border:not(.sticky) &,
		header.transparent.edgtf-menu-item-first-level-bg-color:not(.sticky) &{
			top: 100%;
		}

		header.transparent:not(.sticky) &{
			top: 75%;
		}

		&.right {
			right: -13px;
			left: auto;
		}
	}

	.edgtf-menu-second .edgtf-menu-inner{
		position: relative;
		padding: 0;
		display: block;
		z-index: 997;

		> ul{
			@extend %second-ul;

			> li:last-child > a,
			> li > ul > li:last-child > a,
			> li > ul > li > ul > li:last-child > a{
				border-bottom: 0;
			}
		}

		ul li{
			display: block;
			position: relative;
			float: none;
			height: auto;
			background: 0;
			@include edgtfTransition(background-color .15s ease-out);
		}

		ul li a,
		ul li h4{
			display: block;
			color: #bababa;
			height: auto;
			font-size: 17px;
			line-height: 22px;
			font-weight: 300;
			margin: 0 10px;
			padding: 6px 20px;
			float:none;
			@include edgtfTransition(color .15s ease-out, left .2s ease-out);
			position: relative;
        	left: 0;
        	overflow: hidden;

			&:hover{
				color: $default-background-color;
			}
		}

		ul.right li{
			a,
			h4{
				text-align: right;
			}

			ul{
				left: -100%;
			}

			&.edgtf-sub a i.edgtf-menu-arrow{
				right: auto;
				left: 0px;
				@include edgtfTransform(rotate(180deg) translateY(50%));
			}
		}

		ul li.edgtf-sub a i.edgtf-menu-arrow{
			position: absolute;
			top: 50%;
			right: 4px;
			display: inline-block;
			vertical-align: middle;
			color: inherit;
			font-size: inherit;
			@include edgtfTransform(translateY(-50%));
		}
	}

	li.edgtf-menu-left-position .edgtf-menu-second{
		left: 0;
	}

	li.edgtf-menu-right-position .edgtf-menu-second{
		left: auto;
		right: 0;
	}

	li.edgtf-menu-left-position .edgtf-menu-second .edgtf-menu-inner,
	li.edgtf-menu-right-position .edgtf-menu-second .edgtf-menu-inner{
		> ul{
			width: auto;
			white-space: nowrap;

			> li{
				float: none;
				display: inline-block;
				width: 180px;
				vertical-align: top;
			}
		}
	}

	> ul > li{
		&:hover > .edgtf-menu-second{
			z-index: 20;
		}
	}

	.edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner ul{
		@extend %second-ul;
		padding: 23px 0 26px;

		li:last-child{
			border-bottom: none;
		}

		li{
			padding: 0;
			width: 215px;
			@include edgtfTransition(background-color .15s ease-out);
		}

		li ul{
			position: absolute;
			left: 100%;
			top: -23px; /* same as padding in father ul */
			height: auto;
			opacity:0;
			overflow: hidden;
			z-index: 10;
			-webkit-transform: translateZ(0);
		}


		li:hover ul{
			@include edgtfTransition(opacity .3s cubic-bezier(0.4, 0, 0.2, 1));
			z-index: 20;
			opacity:1;
		}

		&.right li ul{
			left: -100%;
		}
	}
}

header.transparent.edgtf-menu-item-first-level-bg-color .edgtf-drop-down .edgtf-menu-second:not(.right) {
    left: 0;
}


/* slide_from_bottom start */

body.edgtf-dropdown-slide-from-bottom .edgtf-drop-down{
	.edgtf-menu-second {
		overflow: visible;
		@include edgtfTransition(top 0.15s ease-out, opacity 0.2s ease-out, height 0s ease-out 0.5s);
	}

	.edgtf-menu-wide,
	.edgtf-menu-narrow{
		.edgtf-menu-second .edgtf-menu-inner > ul{
			top:30px;
			@include edgtfTransition(all 0.3s cubic-bezier(.39,.575,.565,1));
		}

		.edgtf-menu-second.edgtf-drop-down-start .edgtf-menu-inner > ul{
			top: 0;
		}
	}

	.edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner ul li{
		ul{
			top: 22px;
			@include edgtfTransition(all 0.3s cubic-bezier(.39,.575,.565,1));
		}

		&:hover ul{
			top: -1px; /* same as padding in father ul */
		}
	}
}

/* slide_from_bottom end */


/* slide_from_top start */

body.edgtf-dropdown-slide-from-top .edgtf-drop-down{
	.edgtf-menu-second {
		overflow: visible;
		@include edgtfTransition(top 0.15s ease-out, opacity 0.2s ease-out, height 0s ease-out 0.5s);
	}

	.edgtf-menu-wide,
	.edgtf-menu-narrow{
		.edgtf-menu-second .edgtf-menu-inner > ul{
			top:-30px;
			@include edgtfTransition(all 0.3s cubic-bezier(.39,.575,.565,1));
		}

		.edgtf-menu-second.edgtf-drop-down-start .edgtf-menu-inner > ul{
			top: 0;
		}
	}

	.edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner ul li{
		ul{
			top: -22px;
			@include edgtfTransition(all 0.3s cubic-bezier(.39,.575,.565,1));
		}

		&:hover ul{
			top: -1px; /* same as padding in father ul */
		}
	}
}

/* slide_from_top end */

/* slide_from_left start */

body.edgtf-dropdown-slide-from-left .edgtf-drop-down{
	.edgtf-menu-second {
		overflow: visible;
		@include edgtfTransition(top 0.15s ease-out, opacity 0.15s ease-out, height 0s ease-out 0.4s);
	}

	.edgtf-menu-wide,
	.edgtf-menu-narrow{
		.edgtf-menu-second .edgtf-menu-inner > ul{
			left:-30px;
			@include edgtfTransition(all 0.2s ease-out);
		}

		.edgtf-menu-second.edgtf-drop-down-start .edgtf-menu-inner > ul{
			left: 0;
		}
	}

	.edgtf-menu-narrow .edgtf-menu-second .edgtf-menu-inner ul li{
		ul{
			left: calc(100% - 30px);
			@include edgtfTransition(all 0.2s ease-out);
		}

		&:hover ul{
			left: 100%;
		}
	}
}

/* slide_from_left end */

/* Wide drop down styles
   ========================================================================== */
.edgtf-drop-down .edgtf-menu-wide{
	.edgtf-menu-second ul{
		padding: 31px 0;
	}

	.edgtf-menu-second ul li{
		float: left;
		width: 274px;
		padding: 0px;
		border-left: 1px solid rgba(255,255,255,.2);
		border-bottom: 0;
		border-bottom-color:transparent;
		width: 100%;
		@include edgtfBoxSizing(border-box);

		a{
			padding: 6px 20px;
			margin: 0 20px;
		}

		a,
		h4,
		&.edgtf-sub a{
			background: 0;
		}

		&:last-child{
			margin-right: 0;
		}

		&:nth-child(4n+1){
			clear: both;
		}

		&:hover{
			background-color: transparent;
		}

		ul{
			display: block;
			left: 0;
			padding: 10px 0 0;
			position: relative;
			top: 0;
			visibility: visible;
			background-color: transparent !important;

			&:only-child{
				padding: 0;
			}
		}

		ul .widget{
			padding: 0px 18px;
		}

		ul li{
			border: 0;
		}

		ul li.menu-item-has-children > a,
		ul li.menu-item-has-children > a:hover{
			border-bottom: 0 none;
			color: #393939;
		}
	}

	.edgtf-menu-second > .edgtf-menu-inner > ul{
		width: 1100px;

		> li{
			width: 25%;
		}

		.edgtf-grid-1300 &{
			width: $grid-width-1300;
		}

		.edgtf-grid-1200 &{
			width: $grid-width-1200;
		}

		.edgtf-grid-1000 &{
			width: $grid-width-1000;
		}

		.edgtf-grid-800 &{
			width: $grid-width-800;
		}
	}

	.edgtf-menu-second i,
	.edgtf-menu-second .edgtf-menu-inner ul li.edgtf-sub a i.edgtf-menu-arrow{
		display: none;
	}

	.edgtf-menu-second .edgtf-menu-inner > ul > li > a{
		line-height: 23px;
		font-size: 21px;
		font-weight: 500;
		padding: 6px 20px;
		color: #fff;
	}

	.edgtf-menu-second .edgtf-menu-inner ul li{
		&.edgtf-sub h4 a,
		h4 a{
			padding: 0px !important;
		}
	}

	&.edgtf-menu-left-position,
	&.edgtf-menu-right-position{
		.edgtf-menu-second ul li{
			width: 180px;
		}
	}

	&:not(.edgtf-menu-right-position) .edgtf-menu-second ul li{
		&:first-child,
		&:nth-child(4n+1){
			border-left-color: transparent;
		}
	}

	&.edgtf-menu-right-position .edgtf-menu-second ul li{
		float: right;

		&:last-child,
		&:nth-child(4n){
			border-left-color: transparent;
		}
	}
}

/* Wide drop down with full width background styles
   ========================================================================== */
.edgtf-drop-down .edgtf-menu-wide.edgtf-wide-background{
	.edgtf-menu-second{
		background-color: $first-main-color;

		.edgtf-menu-inner{
			text-align: center;
		}

		.edgtf-menu-inner ul{
			text-align: left;
		}
	}
}

/* Wide with icons drop down styles
   ========================================================================== */
.edgtf-drop-down .edgtf-menu-wide.edgtf-menu-icons .edgtf-menu-second{
	ul li a span{
		position: relative;
		display: block;
	}

	i{
		width: 24px;
		height: auto;
		float: left;
		display: inline-block;
		vertical-align: middle;
		color: inherit;
		line-height: inherit;

		&.blank{
			background: none;
			border: 0px;
			display:none;
		}
	}
}