.timeline *,
.timeline *::before,
.timeline *::after {
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.timeline {
  color: #fff;
  background: #f4f4f4;
  direction: ltr;
}
.timeline h1,
.timeline ul li .content h2 {
  text-shadow: 1px 1px 1px rgba(56, 56, 56, 0.5);
}
.timeline h1 {
  background: #3d9e67;
  padding: 70px 0;
  font-size: 2.5em;
  text-align: center;
}
.timeline ul {
  padding: 50px 0;
}
.timeline ul li {
  background: #648cff;
  position: relative;
  margin: 0 auto;
  width: 5px;
  padding-bottom: 40px;
  list-style-type: none;
}
.timeline ul li:last-child {
  padding-bottom: 7px;
}
.timeline ul li:before {
  content: '';
  background: #faf8eb;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid #648cff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
.timeline ul li .hidden {
  opacity: 0;
}
.timeline ul li .content {
  background: #648cff;
  position: relative;
  top: 7px;
  width: 450px;
  padding: 20px;
}
.timeline ul li .content h2 {
	font-family: 'DroidKufi';
	color: #fff;
	font-size: 18px;
	line-height: 22px;
	padding-bottom: 10px;
	text-align: right;
	direction:rtl;
}
.timeline ul li .content h2 time i{margin-left:10px}
.timeline ul li .content p {
	font-family: 'Tajawal';
	text-align: right;
	direction:rtl;
}
.timeline ul li .content:before {
  content: '';
  background: #648cff;
  position: absolute;
  top: 0px;
  width: 38px;
  height: 5px;
}
.timeline ul li:nth-child(odd) .content {
  left: 50px;
  border-radius: 0px 10px 10px 10px;
  background: #648cff;
  background: -webkit-linear-gradient(-45deg, #1f2567, #648cff);
  background: linear-gradient(-45deg, #1f2567, #648cff);
}
.timeline ul li:nth-child(odd) .content:before {
  left: -38px;
}
.timeline ul li:nth-child(even) .content {
  left: calc(-450px - 45px);
  border-radius: 10px 0px 10px 10px;
  background: #648cff;
  background: -webkit-linear-gradient(45deg, #1f2567, #648cff);
  background: linear-gradient(45deg, #1f2567, #648cff);
}
.timeline ul li:nth-child(even) .content:before {
  right: -38px;
}

/* -------------------------
   ----- Media Queries ----- 
   ------------------------- */
@media screen and (max-width: 1020px) {
	.timeline ul li .content {
		width: 41vw;
	}

	.timeline ul li:nth-child(even) .content {
		left: calc(-41vw - 45px);
	}
}
@media screen and (max-width: 700px) {
	.timeline ul li:nth-child(odd) .content {border-radius: 0px 10px 10px 10px;}
	.timeline ul li:nth-child(even) .content {border-radius: 0px 10px 10px 10px;}
	.timeline ul li {
		margin-left: 20px;
	}
	.timeline ul li .content {
		width: calc(100vw - 100px);
	}
	.timeline ul li .content h2 {
		text-align: initial;
	}
	.timeline ul li:nth-child(even) .content {
		left: 45px;
		background: #648cff;
		background: -webkit-linear-gradient(-45deg, #1f2567, #648cff);
		background: linear-gradient(-45deg, #1f2567, #648cff);
	}
	.timeline ul li:nth-child(even) .content:before {
		left: -33px;
	}
}
