.main-navigation {
	position: relative;
	list-style: none;
	display: -ms-flexbox;
    display: flex;  

	.primary-menu-list {
		box-shadow: 1px 2px 6px 0px rgba(0,0,0,0.45);
		display: none;
		left: 0;
		padding: 0px 25px 0;
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 100;
		align-items: center;
		max-height: 500px;
		overflow: auto;

		a:before {
			content: "";
		    position: absolute;
		    bottom: calc(50% - 3px);
		    transition: all 0.2s;
		    -webkit-transition: all 0.2s;
		    -moz-transition: all 0.2s;
		    left: -10px;
		    height: 6px;
		    width: 0;
		    background: $color__accent;
		}
		a:hover:before {
			border: 1px solid transparent;
			border-radius: 50%;
			width: 6px;
		}
	}

	ul {
		display: -ms-flexbox;
		display: flex;
		-ms-flex-direction: column;
		flex-direction: column;
		list-style: none;
		margin: 0;
		padding-left: 0;
		width: 100%;
		text-align: left;

		ul {
			display: none;
			float: left;
			padding-left: 15px;
			position: relative;

			li {
				border-bottom: 1px solid rgba(0,0,0,0.085);
				margin-right: 0;
			}
			li:last-child {
				border-bottom: none;
			}
			li:first-child {
				border-top: 1px solid rgba(0,0,0,0.085);
			}
			
			a {
				padding: 14px 10px;
				width: 100%;
			}

			:hover > a,
			.focus > a {
				color: $color__accent;
			}

			a:hover,
			a.focus {
			}
		}
	}

	li {
    	border-bottom: 1px solid $color__border-color;
        float: none;
        width: 100%;
        margin-right: 0px;
		position: relative;
		
		&:last-child {
			border-bottom: none;
			margin-right: 0;
		}   
		&:hover > a,
		&.focus > a {
			color: $color__accent;
		}        
    }

	a {
        color: $color__text-main;
		display: block;
		font-size: 16px;
		line-height: 20px;
		letter-spacing: 1px;
		position: relative;
		padding: 15px 0px;
		text-decoration: none;
		text-transform: capitalize;
		&:visited {
			color: $color__text-main;
		}
    }

	a:hover,
	a.focus,
	a:visited:hover,
	a:visited.focus {
		color: $color__accent;
	}

	.current_page_item > a,
	.current-menu-item > a,
	.current_page_ancestor > a,
	.current-menu-ancestor > a {
		&:before {
			content: "";
		    position: absolute;
		    bottom: calc(50% - 3px);
		    transition: all 0.2s;
		    -webkit-transition: all 0.2s;
		    -moz-transition: all 0.2s;
		    border: 1px solid transparent;
		    border-radius: 50%;
		    height: 6px;
		    width: 6px !important;
		    background: $color__accent;
		}
	}
}

.main-navigation ul a:focus,
.main-navigation .dropdown-toggle:focus {
  	outline: 1px dotted currentColor;
	outline-offset: 0px;
}

.dropdown-toggle {
	background-color: transparent;
    border: none;
    border-radius: 0;
    color: #1a1a1a;
    content: "";
    font-size: 0.8em;
    height: 40px;
    padding: 0;
    position: absolute;
    right: 0;
    left: auto;
    text-transform: none;
    top: 0;
    width: 40px;
}

.dropdown-toggle:after {
    border-top: none;
   	font-family: "Font Awesome 5 Free";
   	font-size: 0.8em;
    font-weight: 900;
    content: '\f107';
    font-size: 13px;
    height: 41px;
    left: 1px;
    padding: 10px 0;
    position: relative;
    width: 35px;
}
.dropdown-toggle.toggled-on:after {
    content: '\f106';
}
.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background-color: transparent;
    border: none;
    background: transparent;
    color: $color__text-main;
    outline: none;
}
.dropdown-toggle:focus:after {
    border-color: transparent;
}
/* Small menu. */
.dropdown-toggle {
    display: block;
}


.menu-toggle {
	background: transparent;
	border: none;
	color: $color__text-main;
	display: flex;
	font-size: 18px;
	font-weight: bold;
	line-height: 20px;
	padding: 0;
	align-items: center;
	flex-shrink: 0;
}

.menu-toggle .menu-button:before {
	content: "\f0c9";
	display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
	font-family: "Font Awesome 5 Free"; 
	font-weight: 900; 	
	width: 16px;
}
.menu-toggle.toggled .menu-button:before {
	content: "\f00d";
}
.menu-button {
	border: 1px solid $color__text-main;
	border-radius: 3px;
	padding: 7px;
	margin-left: 4px;
}
@media screen and (min-width: 992px) {
	.dropdown-toggle,
    .main-navigation ul .dropdown-toggle.toggled-on,
    .menu-toggle {
        display: none;
    }

	.main-navigation {
		border: none;
		display: block;
		padding: 0;
		position: relative;
		.primary-menu-list {
			background: none;
			box-shadow: none;
			-webkit-box-shadow: none;
			-moz-box-shadow: none;
			display: -ms-flexbox !important;
			display: flex !important;
			padding: 0px;
	    	position: relative;
	    	left: auto;
	    	top: auto;
			max-height: none;
			overflow: unset;
			z-index: auto;
		
			a:before {
				content: "";
			    position: absolute;
			    bottom: 8px;
			    transition: all 0.2s;
			    -webkit-transition: all 0.2s;
			    -moz-transition: all 0.2s;
			    left: 50%;
			    height: 6px;
			    width: 0;
			    background: $color__accent;
			}
			a:hover:before {
				border: 1px solid transparent;
				border-radius: 50%;
				width: 6px;
			}
			ul {
				ul {
					a:before {
					    bottom: calc(50% - 3px);
					    left: 0px;
					}
				}
			}
		}
		ul {
			display: block;
			list-style: none;
			margin: 0;
			padding-left: 0;
			padding-bottom: 0;
			width: auto;
			text-align: right;

			ul {
				//background: #ffffff;
				border: 1px solid rgba(0,0,0,0.085);
				border-radius: 4px;
				box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
				display: block;
				float: left;
				margin-left: 0px;
				position: absolute;
				top: 90%;
				left: -999em;
				right: auto;
				text-align: left;
				z-index: 99999;

				ul {
					left: -999em;
					right: auto;
					top: 0;
				}

				li {
					width: 100%;
					&:hover > ul,
					&.focus > ul {
						left: 100%;
						right: auto;
					}
				}
				li:first-child {
					border-top: none;
				}

				a {
					padding: 14px 20px;
					width: 200px;
				}

				.menu-item-has-children > a:after,
				.page_item_has_children > a:after {
					content: "\f105";
					font-family: "Font Awesome 5 Free"; 
					font-weight: 900;
					font-size: 12px;
					position: absolute;
					right: 0.7em;
					top: 50%;
					left: auto;
				}
			}

			li:hover > ul,
			li.focus > ul {
				left: auto;
			}
			.menu-item-has-children > a:after,
			.page_item_has_children > a:after {
				content: "\f078";
				font-family: "Font Awesome 5 Free"; 
				font-weight: 900;
				font-size: 13px;
				position: absolute;
				right: -15px;
				top: 50%;
				transform: translatey(-45%);
				left: auto;
			}
		}
		li {
			border: none;
			display: inline-block;
			position: relative;
			margin-right: 35px;
			width: auto;
			position: relative;
		}

	}
}
