/* Blueprint horizontal menu */
.cbp-hrmenu {
    width: auto;
    margin-top: 0;
    margin-left: auto;
}

/* General UL style */
.cbp-hrmenu ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

/* Align menu to the right */
#cbp-hrmenu {
    margin-left: auto;
    text-align: right;
}

#cbp-hrmenu > ul {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* First-level menu items */
.cbp-hrmenu > ul > li {
    display: inline-block;
}
.cbp-hrmenu > ul > li > a {
	 color: var(--nav-color);
    padding: 18px 15px;
    font-size: 18px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
}

.cbp-hrmenu > ul > li > a:hover {
	color: #067840;
}

.cbp-hrmenu > ul > li.cbp-hropen a,
.cbp-hrmenu > ul > li.cbp-hropen > a:hover {
	color: #067840;
/*	background: #47a3da;*/
}

/* sub-menu */
.cbp-hrmenu .cbp-hrsub {
	display: none;
	position: absolute;
	background: #ffffff;
	width: 100%;
	left: 0;
}

.cbp-hropen .cbp-hrsub {
	display: block;
	padding-bottom: 3em;
}

.cbp-hrmenu .cbp-hrsub-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 30px;
    text-align: left;
}

.cbp-hrmenu .cbp-hrsub-inner > div {
    width: 33.333%;
    float: left;
    padding: 0 2em;
    text-align: left;
    box-sizing: border-box;
}

.cbp-hrmenu .cbp-hrsub-inner:before,
.cbp-hrmenu .cbp-hrsub-inner:after {
	content: " ";
	display: table;
}

.cbp-hrmenu .cbp-hrsub-inner:after {
	clear: both;
}

.cbp-hrmenu .cbp-hrsub-inner > div a {
	line-height: 2em;
}

.cbp-hrsub h4 {
	color: #1077ae;
	padding: 2em 0 0.6em;
	margin: 0;
	font-size: 160%;
	font-weight: 300;
}

/* Examples for media queries */

@media screen and (max-width: 52.75em) { 

	.cbp-hrmenu {
		font-size: 80%;
	}

}

@media screen and (max-width: 43em) { 

	.cbp-hrmenu {
		font-size: 120%;
		border: none;
	}

	.cbp-hrmenu > ul,
	.cbp-hrmenu .cbp-hrsub-inner {
		width: 100%;
		padding: 0;
	}

	.cbp-hrmenu .cbp-hrsub-inner {
		padding: 0 2em;
		font-size: 75%;
	}

	.cbp-hrmenu > ul > li {
		display: block;
		border-bottom: 4px solid #1077ae;
	}

	.cbp-hrmenu > ul > li > a { 
		display: block;
		padding: 1em 3em;
	}

	.cbp-hrmenu .cbp-hrsub { 
		position: relative;
	}

	.cbp-hrsub h4 {
		padding-top: 0.6em;
	}

}

@media screen and (max-width: 36em) { 
	.cbp-hrmenu .cbp-hrsub-inner > div {
		width: 100%;
		float: none;
		padding: 0 2em;
	}
}

/* Hide hamburger on desktop */
.mobile-menu-toggle {
    display: none;
}

@media screen and (max-width: 767px) {

    .branding .container {
        display: flex !important;
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
        background: #1077ae;
        color: white;
        border: none;
        border-radius: 6px;
        padding: 8px 14px;
        font-size: 28px;
        cursor: pointer;
    }

    #cbp-hrmenu {
        display: none;
        width: 100%;
        margin: 15px 0;
    }

    #cbp-hrmenu.mobile-open {
        display: block;
    }

    #cbp-hrmenu > ul {
        display: block;
        width: 100%;
    }

    #cbp-hrmenu > ul > li {
        display: block;
        width: 100%;
    }

    #cbp-hrmenu .cbp-hrsub {
        position: relative;
        width: 100%;
    }

    #cbp-hrmenu .cbp-hrsub-inner > div {
        width: 100%;
        float: none;
    }
}
/* Scrollable Blueprint dropdown inner box - all devices */
.cbp-hrmenu .cbp-hrsub-inner {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
.cbp-hrmenu .cbp-hrsub-inner::-webkit-scrollbar {
    width: 8px;
}

.cbp-hrmenu .cbp-hrsub-inner::-webkit-scrollbar-track {
    background: #f1f4f6;
    border-radius: 10px;
}

.cbp-hrmenu .cbp-hrsub-inner::-webkit-scrollbar-thumb {
    background: #1077ae;
    border-radius: 10px;
}
@media screen and (max-width: 767px) {

    .cbp-hrmenu .cbp-hrsub-inner {
        max-height: 45vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

}

.cbp-hrmenu .cbp-hrsub-inner::-webkit-scrollbar-thumb:hover {
    background: #067840;
}



