/*--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/

 .timeline {
	position: relative;
	width: auto;
	margin: 0 auto;
	padding-bottom: 2em;
	padding-left: 0;
}

.timeline:before {
    position: absolute;
    left: 50%;
    top: 15%;
    bottom: 20%;
    content: ' ';
    display: block;
    width: 4px;
    margin-left: -3px;
    background: #eee;
    z-index: 1;
}
.dir-l, .dir-r{ 
	position: relative; 
	width: 43%; 
	padding: 1.5em 2em; 
	background: #fff; 
	margin-top: 0; 
	margin-bottom: 1.5em;
	border: solid #30c39e;
	border-width: 1px 1px 1px 1px;
    border-radius: 4px;
}

.timeline h1{
    font-size: 1.4em;
    width: 100%;
    margin-top: 0;
    font-weight: 600;
    text-transform: capitalize;
}

.timeline p{ 
	font-size: 16px;
	line-height: 1.5em;
	margin: .5em 0;
	margin-top: 1em;
}

.timeline img{
	border-radius: 50%;
}

.timeline-icon{
	position: absolute;
	top: 1em;
	width: 2.5em;
	height: 2.5em;
	right: 0;
	border-radius: 50%;
	z-index: 1;
}

.timeline a{
	color: #38666a;
	margin-left: .3em;
} 

.dir-l{ float: left; }

.dir-l:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 0; 
	height: 0; 
	position: absolute;
	right: -.65em;
	top: 1em;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent; 
	border-left: 10px solid #30c39e; 
}

.dir-r{
	float: right;
}

.dir-r:before{
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 0; 
	height: 0; 
	position: absolute;
	left: -.65em;
	top: 1em;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent; 
	border-right: 10px solid #30c39e; 
}

.timeline-icon{
	position: absolute;
	top: 0.8em;
	width: 60px;
	height: 60px;
	left: 50%;
	margin-left: -30px;
    background: #eee;
    line-height: 60px;
    text-align: center;
	box-shadow:  0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0), 0 0 0 5px rgba(0, 0, 0, 0.15);
}

.timeline-icon span.fa {
    font-size: 25px;
    line-height: 60px;
    color: #f85a40;
}

.timeline-item{
	display: block;
	height: auto;
	padding: 1em 0;
	position: relative;
	overflow: hidden;
}

.timeline img{
	border-radius: 50%;
	width: 100%;
}

.timeline a{
	color: #38666a;
	margin-left: .3em;
} 

.timeline-item .date-l, .timeline-item .date-r{
	position: absolute;
	top: 1em;
	right: 58%;
	font-size: 1em;
	padding: 12px 25px;
	background: #30c39e;
	color: #fff;
	border-radius: 4px;
}

.timeline-item .date-r{
	left: 57%;
	right: auto;
}

.timeline-item a:hover{
	color: #4B878D;
}


/*-- Responsive design --*/

@media screen and (max-width: 1080px) {
	.timeline:before {
		top: 10%;
		z-index: -1;
	}
}

@media screen and (max-width: 736px) {
	.timeline-item .date-l, .timeline-item .date-r {
		top: 0.5em;
		right: 0%;
		left: 0%;
		width: 50%;
		margin: auto;
		z-index: 1;
		text-align: center;
	}
	.dir-l, .dir-r {
		padding: 1.5em 2em;
		margin-top: 8em;
		width: 100%;
		margin-bottom: 4.5em;
	}
	.timeline-icon {
		top: 4.5em;
	}
	.timeline:before {
		top: 8%;
		bottom: 14%;
	}
	.timeline-item .date-r {
		left: 0%;
		right: 0%;
		width: 50%;
		margin: auto;
		text-align: center;
	}
}
@media screen and (max-width: 480px) {
	.timeline-item .date-l, .timeline-item .date-r {
		width: 60%;
	}
	.timeline:before {
		top: 6%;
		bottom: 10%;
	}
}
@media screen and (max-width: 415px) {
	.timeline-item .date-l, .timeline-item .date-r {
		width: 80%;
	}
	.timeline h1 {
		font-size: 1.2em;
	}
	.timeline p {
		font-size: 15px;
		margin-top: .6em;
	}
	.dir-l, .dir-r {
		padding: 1.5em 1.5em;
	}
}
@media screen and (max-width: 384px) {
	.timeline-icon {
		width: 50px;
		height: 50px;
		left: 51%;
		line-height: 50px;
		top: 4.7em;
	}
	.timeline-icon span.fa {
		font-size: 20px;
		line-height: 50px;
	}
}