/*================================================================
                 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; }
.cm-menu *, .cm-menu *:after, .cm-menu *:before {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

.cm-menu:focus { outline:3px solid blue;  }
.cm-menu, .cm-menu ul { margin:0; padding:0; list-style:none; background:#222; }

.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:10px 10px 10px 40px; position:relative; background:#999; background:#529edd;}

.cm-menu > li { border-top:1px solid #659fd0; }
.cm-menu > li:first-child { border-top:1px solid #659fd0; }
.cm-menu li { border-top:1px solid #ccc; }
.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;
    margin:1px 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) translateY(-50%) rotate(90deg);
        -ms-transform: scale(0.98) translateY(-50%) rotate(90deg);
            transform: scale(0.98) translateY(-50%) rotate(90deg);
			
		font-family: 'Basic-Icons';	
		content: "\3e";
		color:#fff;
		font-size:12px;
		font-weight:bold;
}

.cm-menu .opened > .has-sub:after,
.cm-menu .opened > .expander-wrap .has-sub > span:after{
    /*border-top-color:#333;*/
    -webkit-transform: scale(0.98) translateY(-50%) rotate(-90deg);
        -ms-transform: scale(0.98) translateY(-50%) rotate(-90deg);
            transform: scale(0.98) translateY(-50%) rotate(-90deg);
}

.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:#333; background:#d4d4d4;*/ }

.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-js-inFocus ul li a:focus {}

.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) translateY(-50%) rotate(90deg);
        -ms-transform: scale(0.98) translateY(-50%) rotate(90deg);
            transform: scale(0.98) translateY(-50%) rotate(90deg);
			
		font-family: 'Basic-Icons';	
		content: "\3e";
		color:#fff;
		font-size:12px;
		font-weight:bold;		
}
.cm-menu .opened > .expander-wrap .has-sub > span:after {
    /*border-top-color:#333;*/
    -webkit-transform: scale(0.98) translateY(-50%) rotate(-90deg);
        -ms-transform: scale(0.98) translateY(-50%) rotate(-90deg);
            transform: scale(0.98) translateY(-50%) rotate(-90deg);
}

/* ================= 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:81em){
    .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 .animated > ul { overflow:visible; z-index:10; }
    .cm-menu .animating > ul { z-index:-1; }
}


/*================================================================
                 CLICK MENU MENU TYPES
================================================================*/

/*  NAV BAR STYLE TYPE
    ================================================================*/

@media (min-width:81em){
    .nav-bar li { border-top:0; }

    .nav-bar > ul { display:table; width:100%; table-layout:fixed; }
    .nav-bar > ul > li { display:table-cell; vertical-align:middle; }
    .nav-bar > ul > li > a { display:table; width:100%; padding:0; }
	.nav-bar > ul > li > a:focus {outline: thin dotted;}
    .nav-bar > ul > li > a > span { display:table-cell; padding:0 10px; height:40px; vertical-align:middle; text-align:center; }
    .nav-bar > ul > li > ul { position:absolute; }

    .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 0; }
    .nav-bar ul li li li { margin-left:0; margin-right:0; }
    .nav-bar ul ul a { padding:2px 0; /*background:#999;*/ background:none; font-weight:bold; display: inline-block;}

    .nav-bar ul ul a:hover,
    .cm-js-inFocus ul ul a:focus,
    .nav-bar ul ul .opened > a { color:#eee; text-decoration:underline; /*background:#ddd;*/ }

    /* ================= HOVER FALLBACK IF JAVASCRIPT IS DISABLED ================= */

    .no-js .nav-bar ul ul li:hover > a { color:#000; background:#ddd; }
	
		.cm-menu, .cm-menu ul {/*background:#fff;*/ background:none;}
		.nav-bar > .cm-menu > li > a {
			background:#fff; 
			color:#555; font-size:15px; 
			font-weight:bold;
			position:absolute;
			top:-80px;
			left:50%;
		}
		.cm-menu > li:nth-child(1) > a {width:245px; margin-left:-230px;}
		.cm-menu > li:nth-child(2) > a {width:290px; margin-left:  20px;}		
		.cm-menu > li:nth-child(3) > a {width:335px; margin-left: 315px;}

		.cm-menu .has-sub:after,
		.cm-menu .expander-wrap .has-sub > span:after {color:#006eb9; font-size:10px; }
            .cm-menu li:nth-child(2) .has-sub:after { right: -5px; }
		
		.cm-menu > li > .expander-wrap > a {padding:0 0 0 20px; line-height:40px; background:#fff; color:#555;}
		.nav-bar > .cm-menu > li > .expander-wrap {
			background:#fff; 
			color:#555; font-size:15px; 
			font-weight:bold;
			position:absolute;
			top:-80px;
			left:50%;
		}		

		.cm-menu > li:nth-child(1) > .expander-wrap {width:245px; margin-left:-220px;}
		.cm-menu > li:nth-child(2) > .expander-wrap {width:250px; margin-left:  20px;}		
		.cm-menu > li:nth-child(3) > .expander-wrap {width:335px; margin-left: 265px;}
		
}

/*  ACCORDION NAVIGATION
    ================================================================*/

/* ------------- CURRENTLY KEEPS SMALL SCREEN STYLES -------------- */


/*  DROP DOWN NAVIGATION
    ================================================================*/

@media (min-width:81em){
    [data-type="dropdown"] ul {
        display:block;
        position:absolute;
        z-index:-1;
        top:100%; left:0;
        width:100%; min-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="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:81em){

    [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:81em){

    .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 { display:block; position:absolute; border:0; width:50px; height:46px; background:#2376bc; left:30px; top:-55px;}
.toggle-menu:before, .toggle-menu:after, .toggle-menu > span:before {
    content:" ";
    position:absolute;
    left:15%;
    border-radius:2px;
    width:70%; height:3px;
    background:#fff;
}

.toggle-menu:before { top:11px; }
.toggle-menu:after { top:21px; }
.toggle-menu > span:before { top:31px; }

.toggle-menu:hover, .toggle-menu:focus, .js-menu-active .toggle-menu { /*background:#111;*/ }

	.cm-js-menu-active .toggle-menu:before, 
	.cm-js-menu-active .toggle-menu:after {
		left:20%;		
		width:50%; height:6px;		
	}
	.cm-js-menu-active .toggle-menu > span:before {display:none;}
	.cm-js-menu-active .toggle-menu:before { top:20px; 
		-ms-transform: rotate(-50deg); -webkit-transform: rotate(-50deg); transform: rotate(-50deg);
	}
	.cm-js-menu-active .toggle-menu:after { top:20px;
		-ms-transform: rotate(50deg); -webkit-transform: rotate(50deg); transform: rotate(50deg);
	}

/* 16px baseline (768px +) */
@media (min-width:48em){
	.toggle-menu {background:#fff; left:20px; top:-65px;}
	.toggle-menu:before, .toggle-menu:after, .toggle-menu > span:before {background:#0870b8;}
}

@media (min-width:81em){
    .toggle-menu { display:none; }
}


/*================================================================
                 EXTRA OVERWRITE STYLES
================================================================*/

.main-nav { position:relative; 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:0 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:66px 0 0;}
.cm-menu .animated > .custom-sub { overflow:visible; z-index:10; }
.cm-menu .animating > .custom-sub { z-index:-1; }

@media (min-width:81em) {
    [data-type="mega"] .custom-sub {
        position:absolute;
        /*top:100%;*/ top:-1px; left:0;
        width:100%;
        /* background:#00a7e1; */
		background:#007faa;
		    -wekbit-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
    }
    [data-type="mega"] .custom-sub:before {
		position:absolute;
		content:"";
		top:0;
		left:50%;
		height:100%;
		width:50%;
		background:#252f77;
		    -wekbit-transition: all 0.5s ease-in-out;
            transition: all 0.5s ease-in-out;
	}
	.cm-menu .opened > .custom-sub {border-bottom: 15px solid #fff;}	
}

@media (min-width:81em) {
    .table-row { display:table; width:100%; table-layout: fixed;}
    .table-col { display:table-cell; vertical-align:top; border-left:10px solid #fff; border-right:10px solid #fff; padding:70px 60px 30px; text-align:center; position:relative;}
	.table-col img {margin: 0 0 10px;}
	
	.table-col:nth-child(2) {background:#2376bc;}
	.table-col:first-child {border-left:none;}
	.table-col:last-child {border-right:none; background:#252f77;}

    .table-col:before {
		position:absolute;
		content:"";
		width:120px;
		height:120px;
		right:-70px;
		top:140px;
		background:#fff;
		z-index: 9;
		-ms-transform: rotate(45deg); -webkit-transform: rotate(45deg); transform: rotate(45deg);
		
	}
    .table-col:after {
		position:absolute;
		content:"or";
		font-family: 'Vollkorn', serif;
		font-size:40px;
		color:#2376bc;
		top:170px;
		right:-28px;
		z-index:10;
	}	
	.table-col:last-child:before  {display:none;}
	.table-col:last-child:after  {display:none;}
	
	.selectMsg {background:#2376bc; color:#fff; font-family: 'Vollkorn', serif; font-size:32px; text-align:center; padding:2px 0; border-bottom:15px solid #fff; position:absolute; top: 0; width:100%; height: 66px;}
	
	[data-type="mega"] .custom-sub p.title {font-size:48px; font-family: 'Vollkorn', serif; line-height:1.2;}
	[data-type="mega"] .custom-sub p.title a {background:none; padding:0; display: inline-block; margin: 0 0 10px;}
	[data-type="mega"] .custom-sub p.title a:hover,
	.cm-js-inFocus [data-type="mega"] .custom-sub p.title a:focus {color:#eee;}
	[data-type="mega"] .custom-sub p.title a:hover img,
	.cm-js-inFocus [data-type="mega"] .custom-sub p.title a:focus img{opacity:.9;}	
	
	[data-type="mega"] .custom-sub p.description {font-size:18px; font-family: 'Vollkorn', serif; line-height:1.2; margin:0 0 1.5rem;}
}
@media (max-width:74.938em) {
	.cm-menu .opened > .custom-sub {padding:0;}
	
	.main-nav .svg-icon, 
	.main-nav img {display:none;}
	.main-nav img + br {display:none;}
	.selectMsg {display:none;}
	[data-type="mega"] .custom-sub p.description {display:none;}	
	[data-type="mega"] .custom-sub p {margin:0;}
	
	.cm-menu li a {font-weight:bold;}
	.nav-bar > ul > li > a {color:#fff; font-weight:900; font-size:18px; background:#2376bc; padding:25px 35px 25px 15px;}	

	[data-type="mega"] .custom-sub p.title a {background:#e1e1e1; color:#2376bc; font-size:20px; font-style:italic; padding:15px 35px 15px 40px;
		font-weight:normal;
	}
	
	.main-nav {
		-webkit-box-shadow: 0px 3px 5px 0px rgba(50, 50, 50, 0.5);
		-moz-box-shadow:    0px 3px 5px 0px rgba(50, 50, 50, 0.5);
		box-shadow:         0px 3px 5px 0px rgba(50, 50, 50, 0.5);		
	}
	
	.cm-menu > li:first-child { border-top:1px solid #659fd0; }
	
	
	
		.cm-menu > li > .expander-wrap > a {color:#fff; font-weight:900; font-size:18px; background:#2376bc; padding:25px 35px 25px 15px;}
}


.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; }


