/*================================================================
                 CLICK MENU STYLES
================================================================*/

/*
    THESE STYLES will probably not be needed and are adjusted in your main styles
    - * for example is most efficient when not a child of a class
       -- hopefully you already are using the box sizing globally
    - you may not need text-decoration etc. depending on your global anchors
*/
.cm-menu a, .cm-menu a:visited { color:#fff; text-decoration:none; font-family: 'Montserrat', sans-serif;}
.cm-menu *, .cm-menu *:after, .cm-menu *:before {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

@media only screen and (max-width:63.968em){
	
	.mi {
		overflow: auto;
		height: 100vh;
	}
	
	.outer-container {
		position:relative; 
		right:0px;
		-webkit-transition: all .2s linear;
			-moz-transition: all .2s linear;
			-ms-transition: all .2s linear;
			-o-transition: all .2s linear;
			transition: all .2s linear;
	}

	.main-nav-active .outer-container {right:0;}
	.main-nav-active .site-header:after,
	.main-nav-active .outer-container:after {
		content:"";
		position:absolute; 
		top:0; 
		left:0;
		width:100%;
		height:100%;
		background:rgba(0,0,0,0.7);
		z-index:10;
	}
	.main-nav-active .main-nav-fly-in {left:0%;}

	.main-nav-container {background:#999;}
	.main-nav-container > .container {position:static;}

	.main-nav-fly-in {
		background: #333399;  
		height: auto;
		left: -890px;
		position: absolute;
		top: 0;
		width: 320px;
		max-width:85%;
		z-index: 100;
	}
}



.cm-menu:focus { outline:3px solid blue;  }
.cm-menu, .cm-menu ul { margin:0; padding:0; list-style:none; background:#333399; }

.toggle-menu + .cm-menu, .cm-menu ul {
    max-height:0;
    opacity:0;
    overflow:hidden;
    -wekbit-transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
            transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}
.cm-menu { position:relative; }
.cm-menu li a {display:block; padding:15px 25px; position:relative; font-size:18px;}
.cm-menu li li a {font-size:16px; padding:10px 25px;}

.cm-menu li:first-child { border-top:0; }
.cm-menu li { position:relative; }

.cm-menu .has-sub:after,
.cm-menu .expander-wrap .has-sub > span:after {
    content:" ";
    display:inline-block;
    position:absolute; 
	top:50%; 
	right:10px;
	width: 14px;
    height: 14px;
    margin:8px 20px 0 0;
    vertical-align:middle;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-left-color: transparent;
    -wekbit-transition: all 0.4s ease-in-out;
            transition: all 0.4s ease-in-out;
    -webkit-transform: scale(0.98) translateY(-100%) rotate(-45deg);
		-ms-transform: scale(0.98) translateY(-100%) rotate(-45deg);
			transform: scale(0.98) translateY(-100%) rotate(-45deg);
}
 

.cm-menu > .opened > a,
.cm-menu > li > a:hover,
.cm-menu > li > a:focus,
.cm-menu > li > div > a:hover,
.cm-menu > li > div > a:focus { color:#fff !important; background:#25306d; }

.cm-menu .expander-wrap .has-sub:hover > span,
.cm-menu .expander-wrap .has-sub:focus > span { color:#333; background:#d4d4d4; }

.cm-menu ul .opened > a,
.cm-menu ul a:hover, .cm-menu ul li a:focus {text-decoration:underline;}

.cm-menu ul .opened > .has-sub:after,
.cm-menu ul .opened > .expander-wrap .has-sub > span:after{
    border-top-color:#fff;
}

.cm-js-active .cm-menu { max-height:80em; opacity:1; }
.cm-menu .opened > ul { max-height:80em; opacity:1; }

/* ================= SEPARATE EXPANDERS OPTION IS ENABLED ================= */

.cm-menu .expander-wrap { display:table; width:100%; }
.cm-menu .expander-wrap a { display:table-cell; }
.cm-menu .expander-wrap .has-sub { position:relative; width:30px; }
.cm-menu .expander-wrap .has-sub:after { display:none; }
.cm-menu .expander-wrap .has-sub > span {
    display:block;
    position:absolute; top:0; right:0;
    width:100%; height:100%;
    background:#aaa;
}
.cm-menu .expander-wrap .has-sub > span:after {
    content:" ";
    display:inline-block;
    position:absolute; top:50%; right:50%;
    margin:2px 0 0 5px;
    vertical-align:middle;
    border:5px solid transparent;
    /* Extra is for anti-aliasing issues in firefox and others */
    border:5px solid rgba(0,0,0,0);
    border-top-color:#fff;
    -wekbit-transition: all 0.4s ease-in-out;
            transition: all 0.4s ease-in-out;
    -webkit-transform: scale(0.98) translate(50%, -50%);
        -ms-transform: scale(0.98) translate(50%, -50%);
            transform: scale(0.98) translate(50%, -50%);
}
.cm-menu .opened > .expander-wrap .has-sub > span:after {
    border-top-color:#333;
    -webkit-transform: scale(0.98) translate(50%, -75%) rotate(-180deg);
        -ms-transform: scale(0.98) translate(50%, -75%) rotate(-180deg);
            transform: scale(0.98) translate(50%, -75%) rotate(-180deg);
}

/* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

.no-js .toggle-menu + .cm-menu { opacity:1; max-height:80em; }
.no-js .cm-menu > li:hover > a { background:#333; }
.no-js .cm-menu ul ul li:hover > a { background:#444; }

.no-js .cm-menu li:hover > ul { display:block; max-height:80em; opacity:1; width:100%; }
.no-js .cm-menu ul { display:none; overflow:visible; }


/* ================= MENU OPEN FUNCTIONALITY ADDED ON SETUP ================= */

@media (min-width:64em){
    .toggle-menu + .cm-menu { max-height:80em; opacity:1; overflow:visible; }
    .cm-menu ul { top:100%; overflow:hidden; }
    .cm-menu .opened > ul { max-height:80em; opacity:1; }
	
	.cm-menu ul:before {
		content:"";
		position:absolute; 
		top:-10px;
		left:50%;
		margin-left:-15px;
		width: 0; 
		height: 0; 
		border-left: 15px solid transparent;
		border-right: 15px solid transparent;
		border-bottom: 15px solid #25306d;
	}

    .cm-menu .animated > ul { overflow:visible; z-index:10; }
    .cm-menu .animating > ul { z-index:-1; }
	
	.main-nav-fly-in {position:static; width:auto; min-height:0px !important;}


	.cm-menu > .opened > a,
	.cm-menu > li > a:hover,
	.cm-menu > li > a:focus,
	.cm-menu > li > div > a:hover,
	.cm-menu > li > div > a:focus { color:#5868C6 !important; background:#fff; }
	
}


/*================================================================
                 CLICK MENU MENU TYPES
================================================================*/

/*  NAV BAR STYLE TYPE
    ================================================================*/
	
@media (min-width:64em){
    .nav-bar li { border-top:0; }
	
    .nav-bar > .mi-wrapper > .mi > ul { display:table; width: 90%; margin: 0 auto;}
    .nav-bar > .mi-wrapper > .mi > ul > li { display:table-cell; vertical-align:middle; width:6%; }
    .nav-bar > .mi-wrapper > .mi > ul > li > a { display:table; width:100%; padding:0; text-align:center;}
    .nav-bar > .mi-wrapper > .mi > ul > li > a > span { display:inline-block; padding:10px 10px; height:40px; vertical-align:middle; text-align:center; }
    .nav-bar > .mi-wrapper > .mi > ul > li > ul { position:absolute; padding:10px; margin-top:-10px; transition: all ease .5s}
    .nav-bar > .mi-wrapper > .mi > ul > li.opened > ul{margin-top: 20px; transition: all ease .5s}

    .nav-bar .has-sub span:after { position:static; margin-top:10px; }
    .nav-bar ul ul .has-sub:after { right:5px; }

    .nav-bar ul li li { margin:5px; }
    .nav-bar ul li li li { margin-left:0; margin-right:0; }
    .nav-bar ul ul a { padding:4px 8px; }

    .nav-bar ul ul a:hover, .nav-bar ul ul a:focus,
    .nav-bar ul ul .opened > a { color:#fff; background:rgba(255,255,255,0.3); text-decoration:none;}

    /* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

    .no-js .nav-bar ul ul li:hover > a { color:#000; background:#ddd; }

}

/*  ACCORDION NAVIGATION
    ================================================================*/

/* ------------- CURRENTLY KEEPS SMALL SCREEN STYLES -------------- */


/*  DROP DOWN NAVIGATION
    ================================================================*/

@media (min-width:64em){
    [data-type="dropdown"] ul {
        display:block;
        position:absolute;
        z-index:-1;
        top:100%;
		left:50%;
		margin-left:-130px;
        width:260px; 
		min-width:220px;
        background:#333;
        -wekbit-transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
                transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
    }
    [data-type="dropdown"] ul ul { top:-5px; }
    [data-type="dropdown"] .opened > ul { left:100%; max-height:80em; opacity:1; }

    li[data-type="dropdown"]:nth-last-child(-n+2) ul { /*left:auto; right:0; */}
    li[data-type="dropdown"]:nth-last-child(-n+2) .opened > ul { /*left:auto; right:100%; */}

    .nav-bar ul li[data-type="dropdown"] li li { margin-left:5px; margin-right:5px; }

    [data-type="dropdown"] a + .has-sub { width:0; min-height:0; height:100%; }
    [data-type="dropdown"] a + .has-sub > span { min-height:0; height:100%; }

    /* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

    .no-js .cm-menu [data-type="dropdown"] li:hover > ul { left:100%; }
    .no-js .cm-menu [data-type="dropdown"]:nth-last-child(-n+2) ul { left:auto; right:0; }
    .no-js .cm-menu [data-type="dropdown"]:nth-last-child(-n+2) li:hover > ul { left:auto; right:100%; }

}

/*  SLIDING MENU NAVIGATION ADJUSTMENTS
    ================================================================*/


[data-type="sliding"].opened .sub-menu,
[data-type="sliding"].opened .sub-menu ul { max-width:100%; }

.cm-menu [data-type="sliding"].opened .sub-menu > ul { max-height:80em; opacity:1; }
.cm-menu [data-type="sliding"].animated .sub-menu > ul { overflow:visible; z-index:10; }
.cm-menu [data-type="sliding"].animating .sub-menu { z-index:-1; }

@media (min-width:64em){

    [data-type="sliding"] .sub-menu {
        position:absolute;
        -wekbit-transition: all 0.4s ease-in-out;
                transition: all 0.4s ease-in-out;
    }
    [data-type="sliding"] .sub-menu > ul {
        display:block;
        position:absolute;
        z-index:-1;
        top:100%; left:0;
        width:180px;
        background:#333;
        -wekbit-transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
                transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
    }

    [data-type="sliding"] .sub-menu > ul li { position:static; }
    [data-type="sliding"] .sub-menu > ul > li > ul { position:absolute; top:0; }

    [data-type="sliding"] .sub-menu > ul ul { position:absolute; top:0; }

    [data-type="sliding"] .sub-menu ul ul ul { position:static; margin:0; padding:0; max-height:80em; width:100%; overflow:hidden; background:transparent; opacity:1; }

    [data-type="sliding"] .sub-menu ul ul .has-sub { color:#fff; cursor:default; }
    [data-type="sliding"] .sub-menu ul ul .has-sub { background: none; border-bottom:1px solid #fff; }
    [data-type="sliding"] .sub-menu ul ul .has-sub:after,
    [data-type="sliding"] .sub-menu ul ul .expander-wrap .has-sub  { display:none; }

    [data-type="sliding"] .sub-menu > ul > li > ul > li { float:left; width:50%; padding:0 5px; }
    [data-type="sliding"] .sub-menu > ul > li > ul > li:nth-child(2n+1) { clear:left; }
    [data-type="sliding"] .sub-menu > ul > li > ul > .link-landing { margin-left:0; margin-right:0; width:100%; }
    [data-type="sliding"] .sub-menu > ul > li > ul > .link-landing ~ li:nth-child(2n+1) { clear:none; }
    [data-type="sliding"] .sub-menu > ul > li > ul > .link-landing ~ li:nth-child(2n+2) { clear:left; }

    /* ================= ESSENTIAL SLIDING FUNCTIONALITY ================= */

    [data-type="sliding"] .sub-menu.cm-js-inactive { position:relative; left:0 !important; width:100% !important; }
    [data-type="sliding"] .sub-menu.cm-js-inactive > ul { min-width:100%; }
    [data-type="sliding"] .sub-menu.cm-js-inactive > ul > li > ul { padding:0; max-width:0; }

    [data-type="sliding"] .sub-menu > ul ul { width:100%; margin-left:-5px; padding-left:180px; padding-right:5px; z-index:-1; opacity:0; }
    [data-type="sliding"] .sub-menu .animated ul { opacity:1; }

    [data-type="sliding"].opened .sub-menu, [data-type="sliding"].opened .sub-menu ul { max-width:none; }

    /* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

    .no-js .cm-menu [data-type="sliding"] li:hover > ul { left:100%; }
    .no-js .cm-menu [data-type="sliding"]:nth-last-child(-n+2) ul { left:auto; right:0; }
    .no-js .cm-menu [data-type="sliding"]:nth-last-child(-n+2) li:hover > ul { left:auto; right:100%; }

}

/*  MEGA MENU NAVIGATION ADJUSTMENTS
    ================================================================*/

@media (min-width:64em){

    .cm-menu [data-type="mega"] { position:static; }
    [data-type="mega"] > ul {
        position:absolute;
        top:100%; left:0;
        width:100%; max-height:0;
        background:#333;
        overflow:hidden;
        -wekbit-transition: all 0.5s ease-in-out;
                transition: all 0.5s ease-in-out;
    }

    [data-type="mega"] > ul ul { position:static; max-height:80em; width:100%; overflow:hidden; background:transparent; opacity:1; }
    [data-type="mega"] > ul .opened ul { margin-left:0; }
    [data-type="mega"] > ul > li { float:left; width:25%; }
    [data-type="mega"] > ul > li:nth-child(4n+1) { clear:left; }

    [data-type="mega"] > ul > .link-landing { margin:0; width:100%; }
    [data-type="mega"] > ul > .link-landing ~ li:nth-child(4n+1) { clear:none; }
    [data-type="mega"] > ul > .link-landing ~ li:nth-child(4n+2) { clear:left; }

    /* ================= OPENED FUNCTIONALITY ADDED ON SETUP ================= */

    [data-type="mega"] a + .has-sub { width:0; min-height:0; height:100%; }
    [data-type="mega"] a + .has-sub > span { min-height:0; height:100%; }
    [data-type="mega"] ul .has-sub:after { display:none; }
    [data-type="mega"].opened > ul { padding:20px; }

    /* ================= SEPARATE EXPANDERS OPTION IS ENABLED ================= */

    [data-type="mega"] ul a + .has-sub { display:none; }

    /* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

    .no-js .cm-menu [data-type="mega"] ul ul { display:block; }

}


/*================================================================
                 NAVIGATION TOGGLE STYLES
================================================================*/

.toggle-menu, .toggle-menu2 { display:block; position:absolute; top:12px; left:20px; width:35px; height:35px; background:transparent; }
.toggle-menu:before, .toggle-menu:after, .toggle-menu > span:before,
.toggle-menu2:before, .toggle-menu2:after, .toggle-menu2 > span:before  {
    content:" ";
    position:absolute;
    left:15%;
    border-radius:2px;
    width:70%; 
	height:2px;
    background:#25306d;
}

.toggle-menu:before,
.toggle-menu2:before { top:8px; }
.toggle-menu:after,
.toggle-menu2:after  { top:16px; }
.toggle-menu > span:before,
.toggle-menu2 > span:before { top:24px; }

.toggle-menu:hover, .toggle-menu:focus, .js-menu-active .toggle-menu,
.toggle-menu2:hover, .toggle-menu2:focus, .js-menu-active .toggle-menu2 {}

@media (min-width:64em){
	.toggle-menu2 {
		display:none;
	}
}

.toggle-menu2.close {
	width:45px;
	top:20px;
	right:-45px;
	left:auto;
}

.toggle-menu2.close:before {background:#fff; height:3px; top:16px; -ms-transform: rotate(-45deg); -webkit-transform: rotate(-45deg); transform: rotate(-45deg);}
.toggle-menu2.close:after {background:#fff; height:3px; -ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);}
.toggle-menu2.close > span:before {display:none;}


/*================================================================
                 EXTRA OVERWRITE STYLES
================================================================*/

.main-nav { z-index:1000; }

[data-type="sliding"] .sub-menu .item-banner { width:100%; }
[data-type="sliding"] .sub-menu .item-banner a { text-align:center; background:none; }

[data-type="mega"] .custom-sub {
    max-height:0; opacity:0;
    overflow:hidden;
    -wekbit-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
}
[data-type="mega"] .custom-sub ul { position:static; opacity:1; max-height:80em; }
[data-type="mega"] .custom-sub p { margin:10px; color:#fff; }

[data-type="mega"] .custom-sub .banner-wrap { width:100%; }
[data-type="mega"] .custom-sub .banner-wrap a { text-align:center; background:none; }

.cm-menu .opened > .custom-sub { max-height:80em; opacity:1; padding:20px; }
.cm-menu .animated > .custom-sub { overflow:visible; z-index:10; }
.cm-menu .animating > .custom-sub { z-index:-1; }

@media (min-width:48em) {
    [data-type="mega"] .custom-sub {
        position:absolute;
        top:100%; left:0;
        width:100%;
        background:#333;
    }
}

@media (min-width:48em) {
    .table-row { display:table; width:100%; }
    .table-col { display:table-cell; vertical-align:top; }
}

.section-nav .opened > ul { border-bottom:1px solid #d4d4d4; max-height:80em; opacity:1; }
.section-nav .opened > a,
.section-nav .opened > .expander-wrap a { border-bottom:1px solid #aaa; color:#333; background:#d4d4d4; }
.section-nav .opened .opened > .expander-wrap > a { background:#c4c4c4; }

.header-link-left.extra-link,
.header-link-right.extra-link {
	display:block;
	float:none;
	font-size:16px;
	padding:10px 25px;
}

.login.extra-link {
	display:none !important;
}

.cm-menu ul {
	background:#25306d;
}

@media (min-width:64em) { 
	.extra-link {
		display:none !important;
	}
	
	.cm-menu {
		background:transparent;
	}
	
	.cm-menu > li {
		border-bottom:none;
	}
	
	.cm-menu > li > a {
		color:#000 !important;
	}
	
	.cm-menu .has-sub::after,
	.cm-menu .expander-wrap .has-sub > span::after {
		content: " ";
		display: inline-block;
		position: static;
		top: auto;
		right: auto;
		width: 9px;
		height: 9px;
		margin: 0;
		margin-top:13px;
		vertical-align: middle;
		border: 1px solid currentColor;
		border-top-color: currentcolor;
		border-left-color: currentcolor;
		border-top-color: transparent;
		border-left-color: transparent;
		-webkit-transform: scale(0.98) translateY(-100%) rotate(45deg);
		-ms-transform: scale(0.98) translateY(-100%) rotate(45deg);
		transform: scale(0.98) translateY(-100%) rotate(45deg);
	}
	
}
 
@media (min-width:64em) { 
	.cm-menu li a {font-size:14px;}
	.main-nav-container {
		border-top:1px solid #E1E1E1;
		padding-top:10px;
		padding-bottom:10px;
	}

	.cm-menu .lastnavitemli {
		text-align:right;
	}
	
	.cm-menu .lastnavitemli a {
		border:1px solid #25306d;
		color:#25306d !important;
		width:150px !important;
		position:relative;
		left:40px;
	}
	
	.cm-menu .lastnavitemli a:hover,
	.cm-menu .lastnavitemli a:focus {
		background:#25306d;
		color:#fff !important;
	}
	
	.cm-menu > li:nth-child(2) ul li:nth-of-type(2) {
		border-bottom:1px solid rgba(255,255,255,0.5);
		padding-bottom:13px;
	}
	
	.cm-menu > li:nth-child(2) ul li:nth-of-type(3) {
		padding-top:8px;
	}

	.other-sites, .main-nav-footer, .back-wrap, .cm-menu .title, .main-nav-login {display:none !important;}
	
	.main-nav .other-sites-wrpr:before {
		display:none;
	}
	
}

@media (min-width:80em) { 
	.cm-menu li a  {font-size:17px;}
}

/* App like */

@media (max-width:63.9em) { 

	.main-nav {
		overflow: hidden;
	}

	.cm-menu {
		overflow-y: visible;
		padding:1.6rem 1rem;
		position:static;
	}

	.cm-menu li {
		position:static;
	}

	.cm-menu ul {
		position: absolute;
		top: 0px;
		left: 100%;
		width: 100%;
		-wekbit-transition: all 0.4s ease;
		transition: all 0.4s ease;
		height:100%;
		max-height:100% !important;
		overflow-y: auto;	
	}

	.cm-menu .opened > ul {
		left: 0;
		z-index: 100;
		height:100%;
		max-height:100% !important;
	}

	.cm-menu li > ul:after {
		content:"";
		position:absolute; 
		display:block;
		background:#333399;
		width:100%;
		/* 68px because it should go below back to main link */
		overflow-y:hidden;
		height:calc(100vh - 68px);
		top:0;
		z-index:-2;
	}

	.cm-menu .opened > ul li {
		padding:0 32px;
	}

	.cm-menu ul li a {
		padding:10px 0;
	}

	.mi-wrapper {
		position:relative;
	}

	.mi {
		overflow-x:hidden;	
		overflow-y:auto;	
		height:calc(100vh - 68px);
		width:100%;
	}

	.html-main-nav-active  {
		overflow-y:hidden;
	}

	.sticky.main-nav-active {
		overflow:hidden;
		height:100%;
	}
	
	.html-main-nav-active .site-header {
		border-bottom:none;
	}	

	.cm-menu li a {
		padding: 8px 17px;
		font-size: 20px;
	}
	
	.cm-menu li li a {
		font-size: 20px;
		color:#fff !important;
	}	
}

/* END App like */


.main-nav .other-sites-wrpr {
	background: #333399;
}

