.sm, .sm ul.sub-menu, .sm li.menu-item, .sm-sidebar ul, .sm-sidebar li {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}
.sm {
	background-color: #fff;
}
.sm-sidebar {
	background-color: transparent;
}
.sm ul.sub-menu, .sm-sidebar ul {
	display: none;
}
.sm-sidebar li.menu-active > ul {
    display: block;
}
.sm li.menu-item, .sm li.menu-item > a, .sm-sidebar li, .sm-sidebar li > a {
	position: relative;
}
.sm:after {
	content: '';
	display: block;
	height: 0;
	font: 0px/0 serif;
	clear: both;
	overflow: hidden;
}
.sm *, .sm *:before, .sm *:after {
	box-sizing: inherit;
}
.sm a, .sm a:hover, .sm a:focus, .sm a:active {
	background-color: #fff;
	color: #000;
}
.sm-sidebar a, .sm-sidebar a:hover, .sm-sidebar a:focus, .sm-sidebar a:active {
}
.sm li.menu-item > a, .sm-sidebar li > a {
	display: block;
	width: 100%;
	vertical-align: middle;
	padding: .75rem .75rem;
	text-transform: none;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
	transition: 0.1s all ease;
}
.sm-sidebar li > a {
	padding: .5rem 0;
}
.sm > li.menu-item > a {
	text-transform: uppercase;
	letter-spacing: .075rem;
	font-size: 1.2rem;
}
.sm li.menu-item > a:hover, .sm li.menu-item > a:focus, .sm li.menu-item > a:active, .sm li.menu-active > a, .sm li.menu-active.last-menu-active > a {
	background-color: #f0f0ec;
}
.sm-sidebar > li > a {
	text-transform: uppercase;
}
.sm-sidebar li > a:hover, .sm-sidebar li > a:focus, .sm-sidebar li > a:active, .sm-sidebar li.menu-active > a, .sm-sidebar li.menu-active.last-menu-active > a {
	background-color: transparent;
}
.sm ul a  {
	border-left: 8px solid transparent;
}
.sm ul ul a  {
	border-left: 16px solid transparent;
}
.sm ul ul ul a {
	border-left: 24px solid transparent;
}
.sm ul ul ul ul a {
	border-left: 32px solid transparent;
}
.sm ul ul ul ul ul a {
	border-left: 40px solid transparent;
}
.sm li.menu-item > a.has-submenu {
	padding-right: 50px;
}
.sm a .sub-arrow {
	position: absolute;
	top: 50%;
	left: auto;
	right: 4px;
	width: 34px;
	height: 34px;
	margin-top: -17px;
	border-left: 1px solid #e4e4dc;
	overflow: hidden;
	font: bold 14px/34px monospace !important;
	text-align: center;
	text-shadow: none;
	/*background: rgba(0, 0, 0, 0.08);*/
}
.sm-sidebar a .sub-arrow {
	border-left: none;
}
.sm a .sub-arrow:before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	content: '\f078';
}
.sm a.highlighted .sub-arrow:before {
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	content: '\f077';
}
.sm li.menu-item {
	border-top: 1px solid #f0f0ec;
}
.sm > li.menu-item:first-child, .sm-sidebar > li:first-child {
	/*border-top: 0;*/
}
.sm ul li.menu-item > a, .sm-sidebar ul li > a {
	font-size: 1rem;
	font-weight: 400;
}

.sm ul.mega-menu {
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
	margin-left: 0 !important;
	padding: 0;
	list-style: none;
	color: #fff;
}
.sm .mega-menu-title {
	margin: .5rem 0;
	line-height: 1.3;
	text-transform: uppercase;
	font-size: 1.5rem;
	font-weight: 700;
}
.mega-menu-col {
	margin-bottom: 1.5rem;
}
.sm .col-title {
	margin: .5rem 0;
	line-height: 1.3;
	text-transform: uppercase;
	font-size: 1.25rem;
	font-weight: 700;
}
.sm .mega-menu li.menu-item a {
	border: 0 !important;
}
.sm .mega-menu li.menu-item ul {
	position: static;
	display: block;
	width: auto;
	margin: 0 -15px;
	background: transparent;
    box-shadow: none;
}
.sm > .has-mega-menu .scroll-up, .sm > .has-mega-menu .scroll-down {
    margin-left: 0 !important;
}
.sm > .has-mega-menu {
    position: static !important;
}
.main-menu-btn {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	cursor: pointer;
	font-size: 0;
}
/* hamburger icon */
.main-menu-btn-icon, .main-menu-btn-icon:before, .main-menu-btn-icon:after {
	position: absolute;
	top: 18px;
	left: 8px;
	height: 3px;
	width: 24px;
	background: #000;
	-webkit-transition: all 0.25s;
	transition: all 0.25s;
}
.main-menu-btn-icon:before {
	content: '';
	top: -7px;
	left: 0;
}
.main-menu-btn-icon:after {
	content: '';
	top: 7px;
	left: 0;
}
/* x icon */
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon {
	height: 0;
	background: transparent;
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:before {
	top: 0;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
#main-menu-state:checked ~ .main-menu-btn .main-menu-btn-icon:after {
	top: 0;
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
#main-menu-state {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	border: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
}
/* hide the menu in mobile view */
#main-menu-state:not(:checked) ~ .navbar-nav {
	display: none;
}
#main-menu-state:checked ~ .navbar-nav {
	display: block;
	transition: all .5s ease-in-out;
}
.sm .menu-sticky {
	display: none;
	position: absolute;
	top: -15px;
	right: 0;
	padding: 3px 7px;
	white-space: nowrap;
	line-height: 1;
	text-transform: uppercase;
	font-size: 11px;
	font-weight: 400;
	color: #fff;
	background-color: #e86556;
}
.sm .menu-sticky:before {
	content: '';
	position: absolute;
	top: 100%;
	left: 5px;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 4px 4px 0 0;
	border-color: #e86556 transparent transparent transparent;
}
.sm li > a > .menu-item-icon {
    position: absolute;
    top: 0.65rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
}
.sm li > a > .menu-item-icon + span {
    padding-left: 28px;
}

@media (min-width: 992px) {
    .sm a .sub-arrow {
    	border-left: 0;
    }
	.sm-navbar {
		display: flex;
		justify-content: center;
		background-color: transparent;
	}
	.sm-navbar ul {
		position: absolute;
		width: 12em;
		background-color: #fff;
	}
	.sm-navbar ul li.menu-item a {
		border: 0 !important;
	}
	.sm-navbar a {
		white-space: nowrap;
		height: auto;
	}
	.sm-navbar ul li.menu-item > a {
		white-space: normal;
	}
	.sm-navbar > li.menu-item > a {
		border-radius: 1rem;
		font-size: 1rem;
	}
	.sm-navbar > li.menu-item > a:focus, .sm-navbar > li.menu-item > a:active, .sm-navbar > li.menu-item.menu-active > a {
		background-color: transparent;
	}
	.sm-navbar > li.menu-item > a:hover, .sm-navbar > li.menu-item > a.has-submenu.highlighted {		
		background-color: #f0f0ec;
	}
	.sm-navbar .sm-nowrap > li.menu-item > a, .sm-navbar .sm-nowrap > li.menu-item > :not(ul) a {
		white-space: nowrap;
	}
	.sm-navbar li.menu-item > a.has-submenu {
		padding-right: 26px;
	}
	.sm-navbar li.menu-item > a .sub-arrow {
		top: 50%;
		margin-top: -6px;
		right: 10px;
		width: 14px;
		height: 16px;
		font: 12px/14px monospace !important;
		background: transparent;
		opacity: 0.4;
	}
	.sm-navbar > li.menu-item > a .sub-arrow {
		margin-top: -9px;
	}
	.sm-navbar li.menu-item {
		border-top: 0;
	}
	.sm-navbar > li.menu-item > ul {
		margin-top: .5rem!important
	}
	.sm-navbar > li.menu-item ul {
		border-radius: 1rem;		
		box-shadow: 0 0 10px rgba(0,0,0,.25);
	}
	.sm-navbar > li.menu-item > ul:before {
		content: '';
		position: absolute;
		width: 1rem;
		height: 1rem;
		top: -.5em;
		left: 2rem;
		bottom: -.4em;
		transform: rotate(45deg);
		background-color: #fff;
		box-shadow: 0 -3px 10px -3px rgba(0,0,0,.25);
		z-index: -1;
	}
	.sm-navbar li.menu-item ul > li:first-child > a  {
		border-radius: 1rem 1rem 0 0;
	}
	.sm-navbar li.menu-item ul > li:last-child > a  {
		border-radius: 0 0 1rem 1rem;
	}
    .sm-navbar li.menu-item ul > li:first-child:last-child > a  {
		border-radius: 1rem;
	}
	.sm-navbar ul.mega-menu {
		padding-top: 3rem;
		padding-bottom: 1rem;
	}
	.sm-navbar .mega-menu ul.sub-menu li a {
		margin-left: -.75rem;
		margin-right: -.75rem;
		padding: .35rem .75rem;
	}
	.sm-navbar .mega-menu-title {
		margin-top: 0;
		margin-bottom: 1rem;
		font-size: 1.75rem;
	}
	.sm-navbar .col-title {
		margin-top: 0;
		margin-bottom: 1rem;
	}
	.sm .mega-menu li.menu-item ul {
		margin: 0;
	}
	.sm-navbar .scroll-up,
	.sm-navbar .scroll-down {
		position: absolute;
		display: none;
		visibility: hidden;
		overflow: hidden;
		background: #2c2116;
		height: 20px;
	}
	.sm-navbar .scroll-up-arrow,
	.sm-navbar .scroll-down-arrow {
		position: absolute;
		top: -2px;
		left: 50%;
		margin-left: -8px;
		width: 0;
		height: 0;
		overflow: hidden;
		border-width: 8px;
		border-style: dashed dashed solid dashed;
		border-color: transparent transparent #fff transparent;
	}
	.sm-navbar .scroll-down-arrow {
		top: 6px;
		border-style: solid dashed dashed dashed;
		border-color: #fff transparent transparent transparent;
	}
	.main-menu-btn {
		position: absolute;
		top: -99999px;
	  }
	#main-menu-state:not(:checked) ~ .navbar-nav {
		display: block;
	}
	.sm .menu-sticky {
		display: block;
	}
}