/*------------------------------------*\
	THE MISCARRIAGE ASSOCIATION
	eLEarning Module
	
	By Simon Wiffen
	NORTHERN CONTRAST LTD
	
	http://www.northerncontrast.com
\*------------------------------------*/




/*------------------------------------*\
	MAIN
\*------------------------------------*/
#eLearning{
	position:relative;
	padding:45px 0;
	background-color:#e3ecef;	
	border-top:5px solid #0083a9;
	border-bottom:5px solid #0083a9;		
}
#eLearning .wrapper{
	position:relative;
	padding-bottom:140px;
}
#eLearning .elearning-content-wrapper{
	overflow:hidden;
}
#eLearning .elearning-content-wrapper .elearning-content-main{
	width:60%;
	float:left;
	transition:0.15s linear all;
}
#eLearning .elearning-content-wrapper .elearning-content-sub{
	width:32%;
	float:right;	
}



/*------------------------------------*\
	CONTEXT BAR
\*------------------------------------*/
#eLearning .elearning-context-bar{
	display:table;
	font-size:0.875em;
	font-weight:bold;
	margin-bottom:35px;
}
#eLearning .elearning-context-bar a.context-index{
	display:table-cell;
	color:#fff;
	white-space:nowrap;
	vertical-align:top;
	padding:8px 15px;
	background:#0083a9;
	border-radius:5px;	
}
#eLearning .elearning-context-bar a.context-index:hover,
#eLearning .elearning-context-bar a.context-index:focus{
	text-decoration:none;
	background:#63b5d0;
}
#eLearning .elearning-context-bar .context-title{
	display:table-cell;
	vertical-align:top;
	color:#fff;
	padding:8px 15px;
	background:#149fc0;
	border-radius:0 5px 5px 0;
	transition:0.75s linear all;
	opacity:0;
}
#eLearning .elearning-context-bar .context-title span{
	font-size:inherit;
	line-height:normal;
	color:#fff;
	margin:0;
	display:none;
}

/* Active state */
#eLearning .elearning-context-bar-active a.context-index{
	border-radius:5px 0 0 5px;
}
#eLearning .elearning-context-bar-active .context-title{
	opacity:1;
}



/*------------------------------------*\
	MAIN CONTENT COLUMNS
\*------------------------------------*/
#eLearning .elearning-content-step .cols,
.white-popup .cols{
	margin:0 0 0 -5%;
}
#eLearning .elearning-content-step .cols .col,
.white-popup .cols .col{
	margin:0 0 5% 5%;
}
#eLearning .elearning-content-step .cols-2 .col,
.white-popup .cols-2 .col{
	width:45%;	
}
#eLearning .elearning-content-step .cols-3 .col{
	width:28.333%;
}
#eLearning .elearning-content-step .cols-3 .col-span2{
	width:61.666%;
}
#eLearning .elearning-content-step .cols-3 .col-span2 .cols .col:nth-child(3n+4){
	clear:none;
}
#eLearning .elearning-content-step .cols-4 .col{
	width:20%;
}
#eLearning .elearning-content-step .cols-5 .col{
	width:15%;
}



/*------------------------------------*\
	MAIN CONTENT AREA
\*------------------------------------*/

/* Title screen */
#eLearning .elearning-background{
	position:absolute;
	width:100%;
	top:0;
	right:0;
	bottom:0;
	left:0;
	background-position:center;
	background-size:cover;
	z-index:0;
	opacity:0;
	transition:0.3s linear opacity;
}
#eLearning .elearning-background-overlay{
	position:absolute;
	width:100%;
	top:0;
	right:0;
	bottom:0;
	left:0;
	background:rgba(0,0,0,0);	
	z-index:0;
	transition:0.3s linear background;
}
#eLearning.title-screen .elearning-background{
	opacity:1;
}
#eLearning.title-screen .elearning-background-overlay{
	background:rgba(0,0,0,0.6);
}
#eLearning.title-screen .elearning-learning-outcomes h1{
	color:#fff;
}
#eLearning.title-screen .elearning-learning-outcomes h1 span{
	color:#c0dbe5;	
}

/* Learning outcomes */
#eLearning .elearning-learning-outcomes h1{
	font-size:3.125em;
	line-height:1.18em;	
	margin-top:25px;
	margin-bottom:80px;
}
#eLearning .elearning-learning-outcomes h1 span{
	display:block;
	font-size:0.6em;
	color:#149fc0;
}
#eLearning .elearning-learning-outcomes .start-button{
	font-size:1.5em;
	padding:35px 65px 35px 30px;
}

/* Main step styles */
#eLearning .elearning-content-step h2.main-title{
	font-size:3.125em;
	line-height:1.18em;
	margin-bottom:45px;
}
#eLearning .elearning-content-step h2.main-title-small{
	font-size:2.2em;
}
#eLearning h3.small{
	font-size:1em;
}
#eLearning .elearning-content-step ul,
.white-popup ul{
	margin-left:20px;
}
#eLearning .elearning-content-step ul li,
.white-popup ul li{
	margin-bottom:15px;
}
#eLearning .elearning-content-step ul ul,
.white-popup ul ul{
	margin-top:20px;
}

/* Videos */
#eLearning .elearning-video{
	position:relative;
	overflow:hidden;
	margin-bottom:15px;
}
#eLearning .elearning-video img{
	width:100%;
	height:auto;
	float:left;
}
#eLearning .elearning-video a.overlay{
	display:block;
	position:absolute;
	top:0;
	left:0;
	right:0;
	bottom:0;
	background-image:url(../img/elearning/icons/video-play.png);
	background-size:51px 51px;
	background-position:center;
	background-repeat:no-repeat;
	background-color:rgba(0,0,0,0.5);
	z-index:5;
}
#eLearning .elearning-video a.overlay:hover,
#eLearning .elearning-video a.overlay:focus{
	background-color:rgba(20,159,192, 0.5);
}
#eLearning .video-caption{
	font-size:0.75em;
	font-style:italic;
	color:#858a8c;
}
#eLearning .box .video-caption{
	color:#fff;
}

/* Quotes */
.elearning-quote{
	position:relative;
	margin-top:30px;
}
.elearning-quote:before{
	content:"";
	display:block;
	width:100%;
	height:15px;
	background:url(../images/boxes/promo-top.png) center no-repeat;
	background-size:99% 15px;
	position:absolute;
	top:-14px;
	left:0;
}
.elearning-quote:after{
	content:"";
	display:block;
	width:100%;
	height:15px;
	background:url(../images/boxes/promo-bottom.png) center no-repeat;
	background-size:99% 15px;
	position:absolute;
	bottom:-14px;
	left:0;
}
.elearning-quote .quote-content{
	padding:15px;
	color:#fff;
	background:#139fc0;	
	border-radius:10px;
	z-index:10;	
}
.elearning-quote blockquote{
	font-family:'Cabin', sans-serif;
	font-weight:700;
	font-size:1.4375em;
	color:#fff;
	padding:23px 0 0 32px;
	margin-right:0;
	background:url(../images/icons/open-quote.png) top left no-repeat;
	background-size:28px 22px;
}
.elearning-quote blockquote p{
	padding-right:30px;
}
.elearning-quote blockquote p:last-of-type{
	margin:0;
}
.elearning-quote blockquote:after{
	content:"";
	display:block;
	height:22px;
	background:url(../images/icons/close-quote.png) bottom right no-repeat;
	background-size:28px 22px;
}
.elearning-quote .quote-content .quoter{
	margin-left:32px;
}

/* Images */
.elearning-image{
	border:1px solid #63b5d0;
	padding:3px;
	overflow:hidden;
	margin-bottom:30px;
}
.elearning-image img{
	float:left;
	width:100%;
	height:auto;
}

/* Image links (Grid) */
#eLearning .elearning-image-links{
	width:100%;
	display:table;
	margin:30px 0;
}
#eLearning .elearning-image-links .elearning-image-link{
	display:table-cell;
	overflow:hidden;
	font-size:1.5em;
	font-weight:bold;
	color:#fff;
	text-align:center;	
	position:relative;
	height:250px;
}
#eLearning .elearning-image-links-5 .elearning-image-link{
	font-size:1.2em;
	width:20%;
}
#eLearning .elearning-image-links .elearning-image-link .open-popup-link{
	height:220px;
}
#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-background{
	position:absolute;
	height:220px;
	top:15px;
	right:15px;
	bottom:15px;
	left:15px;
	background-size:cover;
	background-position:center;			
	border-radius:10px;
	z-index:0;
}
#eLearning .elearning-image-links .elearning-image-link a{
	display:block;
	position:absolute;
	top:15px;
	right:15px;
	bottom:15px;
	left:15px;
	z-index:15;
}
#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-text{
	position:absolute;
	width:100%;
	padding:0 45px;
	box-sizing:border-box;
	z-index:10;
	top:125px;
	transform:translateY(-50%);
}
#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-text span{
	display:block;
	font-size:0.7em;
}
#eLearning .elearning-image-links .elearning-image-link .overlay{
	display:block;
	position:absolute;
	height:220px;
	top:15px;
	left:15px;
	right:15px;
	bottom:15px;
	background-repeat:no-repeat;
	background-color:rgba(0,0,0,0.7);
	z-index:5;
	transition:0.15s linear all;
	border-radius:10px;
}
#eLearning .elearning-image-links .elearning-image-link:hover .overlay,
#eLearning .elearning-image-links .elearning-image-link:focus .overlay{
	background-color:rgba(20,159,192, 0.5);
}

/* Unit links */
#eLearning .elearning-image-links .elearning-unit-link .elearning-image-link-text{
	font-size:0.8em;
}
#eLearning .elearning-image-links .elearning-unit-link .elearning-image-link-text strong{
	display:block;
	opacity:0.7;
}
#eLearning .elearning-image-links .elearning-unit-link:hover .overlay,
#eLearning .elearning-image-links .elearning-unit-link:focus .overlay{
	background-color:rgba(0,0,0,0.5);
}




/*------------------------------------*\
	MODAL WINDOWS
\*------------------------------------*/
.white-popup{
	position:relative;
	background:#fff;
	padding:50px;
	width:auto;
	max-width:500px;
	margin:20px auto;
	border-radius:10px;
}
.white-popup-large{
	max-width:1000px;
}



/*------------------------------------*\
	SPECIFIC STYLES
\*------------------------------------*/

/* Word list */
#eLearning .elearning-word-list{
	list-style:none;
	text-align:center;
	margin:40px 0 20px 0;
}
#eLearning .elearning-word-list li{
	display:inline-block;
	margin:10px;
}
#eLearning .elearning-word-list li a{
	display:block;
	font-weight:bold;
	color:#fff;
	padding:15px 20px;
	background:#bec2c4;
	border-radius:5px;
	text-decoration:none;
}
#eLearning .elearning-word-list li a:hover,
#eLearning .elearning-word-list li a:focus{
	background:#0083a9;
}
#eLearning .elearning-word-list li a.active{
	background:#149fc0;
}

/* B.E.S.T */
#eLearning .best-index{
	margin-top:40px;
}
#eLearning .best-letter{	
	text-align:center;
	color:#fff;
	background:#149fc0;
	padding:30px 10px;
	border-radius:10px;
	margin-bottom:15px;
}
#eLearning .best-letter h3{
	font-size:6.5em;
	line-height:1em;
	color:#fff;
	margin:0;
}
#eLearning .best-description{
	text-align:center;
}
#eLearning .best-description span{
	font-weight:bold;
	color:#149fc0;
}
#eLearning .best-single{
	margin-bottom:50px;
}
#eLearning .best-single span{
	display:inline-block;
	font-family:'Cabin', sans-serif;
	font-size:2em;
	font-weight:700;
	text-align:center;
	color:#fff;
	background:#bec2c4;
	padding:10px 20px;
	border-radius:10px;
	margin-right:10px;
}
#eLearning .best-single span.current{
	background:#149fc0;
}

/* Lay terms */
h2.medical-term{
	font-family:'Roboto', sans-serif;
	font-size:1em;
	font-weight:normal;
	color:#222;
}
p.lay-term{
	font-family:'Cabin', sans-serif;
	font-size:1.625em;
	font-weight:700;
	color:#0083a9;
}



/*------------------------------------*\
	BOXES
\*------------------------------------*/
#eLearning .box{
	color:#fff;
	padding:40px 30px;
	text-align:center;
	background:#149fc0;
	border-radius:5px;
}
#eLearning .box h2,
#eLearning .box h3{
	color:#fff;
	margin-bottom:40px;
}
#eLearning .box h2.icon,
#eLearning .box h3.icon{
	padding-top:70px;
	background-position:top center;
	background-repeat:no-repeat;
}
#eLearning .box ul{
	text-align:left;
	margin:0;
}
#eLearning .box ul li{
	margin-bottom:30px;
}
#eLearning .box ul li:last-of-type{
	margin-bottom:0;
}
#eLearning .box p a{
	color:#fff;
	font-weight:bold;
	text-decoration:underline;
}
#eLearning .box p a:hover,
#eLearning .box p a:focus{
	color:#e3ecef;
}

/* Title icons */
#eLearning .box h2.icon-learning-outcome,
#eLearning .box h3.icon-learning-outcome{
	background-image:url(../images/boxes/box-icon-learning-outcome.png);
	background-size:60px 60px;
}
#eLearning .box h3.icon-reflection{
	background-image:url(../images/icons/box-icon-reflection.png);
	background-size:58px 60px;
}

/* Next module box */
#eLearning .elearning-content-sub-next h3{
	font-size:2.5em;
}
#eLearning .elearning-content-sub-next h3 span{
	display:block;
	font-size:0.5em;
	margin-top:10px;
}
#eLearning .elearning-content-sub-next .next-button{
	font-size:1.5em;
	text-decoration:none;
	padding:35px 65px 35px 30px;
	background-color:#0083a9;
}
#eLearning .elearning-content-sub-next .next-button:hover,
#eLearning .elearning-content-sub-next .next-button:focus{
	color:#fff;
}



/*------------------------------------*\
	TABLES
\*------------------------------------*/
#eLearning table.data th,
#eLearning table.data td{
	padding:15px 40px 15px 0;
	vertical-align:top;
}
#eLearning table.data th{
	font-weight:bold;
	border-bottom:2px solid #63b5d0;
}
#eLearning table.data td{
	font-size:0.85em;
}
#eLearning table.data tbody tr{
	border-bottom:1px solid #63b5d0;
}



/*------------------------------------*\
	NEXT/PREVIOUS
\*------------------------------------*/
#eLearning .elearning-content-step .elearning-navigation-back{
	position:absolute;
	bottom:0;
	left:0;
	z-index:20;
}
#eLearning .elearning-content-step .elearning-navigation-next{
	position:absolute;
	bottom:0;
	right:0;
	z-index:20;
}


/*------------------------------------*\
	PROGRESS BAR
\*------------------------------------*/
#eLearning .elearning-navigation-progress{
	position:absolute;
	bottom:0;
	width:100%;
	margin-top:90px;
	margin-bottom:10px;	
	text-align:center;
	padding:0 150px;
	box-sizing:border-box;
}
#eLearning .elearning-navigation-progress-markers{
	display:table;
	width:100%;
	height:30px;
}
#eLearning .elearning-navigation-progress-markers .marker{
	display:table-cell;
	position:relative;
}
#eLearning .elearning-navigation-progress-markers .marker:first-of-type{
	background:none;
}
#eLearning .elearning-navigation-progress-markers .marker .dot{
	display:block;
	position:absolute;
	top:50%;
	right:0;
	margin-top:-10px;
	width:20px;
	height:20px;
	background:#fff;
	border-radius:1000px;
	transition:0.15s linear all;
}
#eLearning .elearning-navigation-progress-markers .marker .line{
	display:block;
	position:absolute;
	left:0;
	top:50%;
	margin-top:-1px;
	z-index:0;
	width:100%;
	height:2px;
	background:#fff;
}
#eLearning .elearning-navigation-progress-markers .marker .line-complete{
	display:block;
	position:absolute;
	left:0;
	top:50%;
	margin-top:-1px;
	z-index:0;
	width:0%;
	height:2px;
	background:#0083a9;
	transition:0.75s linear all;	
}
#eLearning .elearning-navigation-progress-markers .marker-complete .line-complete,
#eLearning .elearning-navigation-progress-markers .marker-current .line-complete{
	width:0%;
}
#eLearning .elearning-navigation-progress-markers .marker-complete .dot{
	background:#0083a9;
}
#eLearning .elearning-navigation-progress-markers .marker-current .dot{
	margin-top:-15px;
	margin-right:-5px;
	width:30px;
	height:30px;
	background:#149fc0;
	z-index:10;
}



/*------------------------------------*\
	NAVIGATION
\*------------------------------------*/
#eLearning .elearning-content-step{
	opacity:0;
	margin-top:-50px;
	transition:0.25s linear all;
}
#eLearning .elearning-content-current-step{
	display:block;
	opacity:1;
	margin-top:0;
}
#eLearning .elearning-content-step .elearning-content-sub{
	opacity:0;
}
#eLearning .elearning-content-current-step .elearning-content-sub{
	display:block;
	animation-name:reveal-slide-left;
    animation-duration:1s;
    animation-delay:0.8s;
    animation-fill-mode:forwards;
}



/*------------------------------------*\
	ANIMATIONS
\*------------------------------------*/
@keyframes fade-in-delay{
    0%   {opacity:0;}
    50%   {opacity:0;}
    100% {opacity:1;}
}
@keyframes reveal-slide-left{
    0%   {opacity:0; margin-right:-50px;}
    100% {opacity:1; margin-right:0;}
}



/*------------------------------------*\
	RESPONSIVE STYLES
\*------------------------------------*/
@media screen and (max-width: 1150px){
	
	/* Image grid styles */
	#eLearning .elearning-image-links .elearning-image-link{
		height:200px;
	}
	#eLearning .elearning-image-links .elearning-image-link .open-popup-link,
	#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-background{
		height:190px;
	}
	#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-text{
		top:100px;
	}
	
}

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

	/* Linearise columns in main area */
	#eLearning .elearning-content-main .cols-2{
		margin-left:0;
	}
	#eLearning .elearning-content-main .cols-2 .col{
		width:100%;
		float:none;
		margin:0 0 30px 0;
	}
	
	/* Prevcent forcfe break in B.E.S.T layout */
	#eLearning .best-index .cols-4 .col:nth-child(2n+3){
		clear:none;
	}		
	
}


@media screen and (max-width: 900px){
	
	/* Image grid styles */
	#eLearning .elearning-image-links-5 .elearning-image-link{
		font-size:1em;
	}
	#eLearning .elearning-image-links .elearning-image-link .elearning-image-link-text{
		padding:0 30px;
	}
	
	/* B.E.S.T */
	#eLearning .best-letter h3{
		font-size:4em;
	}
	
	
}


@media screen and (max-width: 750px){
	
	/* Linearise */
	#eLearning .elearning-content-wrapper .cols{
		margin:0;
	}
	#eLearning .elearning-content-wrapper .cols .col{
		width:100%;
		float:none;
		margin:0 0 30px 0;
	}
	#eLearning .elearning-content-wrapper .elearning-content-main{
		width:auto;
		float:none;
	}
	#eLearning .elearning-content-wrapper .elearning-content-sub{
		width:auto;
		float:none;	
	}
	
	/* Typography */
	#eLearning .elearning-content-step h2.main-title{
		font-size:2.4em;
	}
	
	/* Image grid styles */
	#eLearning .elearning-image-links{
		display:block;
		text-align:center;
	}
	#eLearning .elearning-image-links .elearning-image-link{
		display:inline-block;
		width:48%;
	}
	#eLearning .elearning-image-links-6:first-of-type{
		margin-bottom:0;
	}
	#eLearning .elearning-image-links-6:last-of-type{
		margin-top:0;
	}
	#eLearning .elearning-image-links-6 .elearning-image-link{
		display:block;
		width:100%;
	}
	
	/* Alternative sub animation */
	#eLearning .elearning-content-current-step .elearning-content-sub{
		animation-name:fade-in-delay;
    	animation-duration:1.2s;
    	animation-delay:0.5s;
    	animation-fill-mode:forwards;
	}
	
	/* Adjust progress indicator */
	#eLearning .elearning-navigation-progress{
		padding:0;
		bottom:60px;
	}
	#eLearning .elearning-navigation-progress-markers .marker .dot{
		margin-top:-5px;
		width:10px;
		height:10px;
	}
	#eLearning .elearning-navigation-progress-markers .marker-current .dot{
		margin-top:-10px;
		width:20px;
		height:20px;
	}
		
}


@media screen and (max-width: 450px){
	
	/* Image grid styles */
	#eLearning .elearning-image-links .elearning-image-link{
		display:inline-block;
		width:100%;
	}
	
}