/* Timeline */

.timeline {
	list-style: none;
	padding: 0;
	position: relative;
	&:before {
		top: 0;
		bottom: 0;
		position: absolute;
		content: " ";
		width: 3px;
		background-color: $border-color;
		left: 50%;
		margin-left: -1.5px;
	}
	.timeline-wrapper {
        display: block;
		margin-bottom: 20px;
        position: relative;
        width: 100%;
        padding-right: 90px;
		&:before {
			content: " ";
			display: table;
		}
		&:after {
			content: " ";
			display: table;
			clear: both;
		}
		.timeline-panel {
			border-radius: 2px;
			padding: 20px;
			position: relative;
            background: transparent;
            @include border-radius(6px);
            box-shadow: 1px -1px 24px 0 rgba($white, 0.09);
            width: 35%;
			margin-left: 15%;
			&:before {
				position: absolute;
				top: 0;
				width: 100%;
				height: 2px;
				content: "";
				left: 0;
				right: 0;
			}
			&:after {
				position: absolute;
				top:10px;
				right: -14px;
				display: inline-block;
				border-top: 14px solid transparent;
				border-left: 14px solid $card-bg;
				border-right: 0 solid $card-bg;
				border-bottom: 14px solid transparent;
				content: " ";
            }
            .timeline-title {
                margin-top: 0;
				color: theme-color(dark);
				text-transform: uppercase;
            }
            .timeline-body {
                p {
                    &+p {
                        margin-top: 5px;
                    }
                }
                ul {
                    margin-bottom: 0;
                }
            }
            .timeline-footer {
                span {
                    font-size: .6875rem;
				}
				i {
					font-size: 1.5rem;
				}
            }
		}
		.timeline-badge {
			width: 14px;
			height: 14px;
			position: absolute;
			top: 16px;
			left: calc(50% - 7px);
			z-index: 10;
			border-top-right-radius: 50%;
			border-top-left-radius: 50%;
			border-bottom-right-radius: 50%;
            border-bottom-left-radius: 50%;
            border: 2px solid $border-color;
            i {
                color:$white;
            }
        }
        &.timeline-inverted {
            padding-right: 0;
            padding-left: 90px;
            .timeline-panel {
                margin-left: auto;
                margin-right: 15%;
                &:after {
                    border-left-width: 0;
                    border-right-width: 14px;
                    left: -14px;
                    right: auto;
                }
            }
        }
	}
}
@media (max-width: 767px) {
	.timeline {
		.timeline-wrapper {
			padding-right: 150px;
			&.timeline-inverted {
				padding-left: 150px;
			}
			.timeline-panel {
				width: 60%;
				margin-left: 0;
				margin-right: 0;
			}
		}
	}
}

@media (max-width: 576px) {
	.timeline {
		.timeline-wrapper {
			.timeline-panel {
				width: 68%;
			}
		}
	}
}

@each $color, $value in $theme-colors {
	.timeline-wrapper-#{$color} {
		.timeline-panel {
			&:before {
				background: theme-color($color);
			}
		}
		.timeline-badge {
			background: theme-color($color);
		}
	}
}