.timeline {
	display: flex;
	flex-wrap: wrap;
	position: relative;
	padding-top: 65px;
	padding-bottom: 80px;
}
.timeline .months-timeline {
	width: 9%;
	text-align: center;
	line-height: normal;
    position: relative;
}
.timeline .year {
	text-align: left;
	font-size: 20px;
	position: absolute;
	top: -40px;
	left: 0;
}
.timeline .month-name {
	height: 95px;
	width: 95px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 4px solid;
	border-radius: 50%;
	margin: auto;
	text-transform: uppercase;
	font-size: 14px;
    background: #fff;
    z-index: 1;
    position: relative;
}
.outer-months {
	position: relative;
	padding-bottom: 80px;
	padding-top: 80px;
}

.timeline .outer-months::after {
	content: '';
	height: 20px;
	width: 100%;
	display: block;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background-color: var(--primery-color);
}
.month-bottom-content {
	position: absolute;
	bottom: 3px;
	width: 100%;
    font-size: 13px;
}
.month-top-content {
	position: absolute;
	top: 3px;
	width: 100%;
    font-size: 13px;
}
.timeline .months-timeline:nth-child(even) .month-name {
	border-color: var(--third-color);
}

.timeline .months-timeline:nth-child(odd) .month-name {
	border-color: var(--primery-color)
}
.timeline .months-timeline::after {
	content: '';
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 10px solid var(--primery-color);
	width: 20px;
	height: 20px;
	display: block;
	position: absolute;
	top: 50%;
	right: -19px;
	transform: translateY(-50%);
	z-index: 1;
}
.timeline .months-timeline:nth-child(2n)::after {
	border-color: var(--third-color);
	z-index: 7;
	border-top-color: transparent;
	border-bottom-color: transparent;
}
.timeline .months-timeline:nth-child(2n) .outer-months::after {
	background: var(--third-color);
}
.timeline .months-timeline:first-child::before, .timeline .months-timeline:nth-child(7)::before{
	content: '';
	border-left: 1px solid;
	height: 50%;
	display: block;
	position: absolute;
}
.timeline .months-timeline:nth-child(2n+1) .outer-months::before {
	content: '';
	height: 40px;
	width: 1px;
	position: absolute;
	display: block;
	background: var(--primery-color);
	bottom: 40px;
	left: 50%;
}
.month-bottom-content .dot {
	height: 10px;
	width: 10px;
	border-radius: 50%;
	background: var(--primery-color);
	display: block;
	margin: auto;
	margin-bottom: 13px;
    z-index: 1;
    position: relative;
}
.month-top-content .dot {
	height: 10px;
	width: 10px;
	border-radius: 50%;
	background: var(--third-color);
	display: block;
	margin: auto;
	margin-top: 13px;
    z-index: 1;
  position: relative;
}
.timeline .months-timeline:nth-child(3) .month-bottom-content {
	bottom: -13px;
}
.timeline .months-timeline:nth-child(6) .month-top-content {
	top: -13px;
}
.timeline .months-timeline:nth-child(even) .outer-months::before {
	content: '';
	height: 40px;
	width: 1px;
	position: absolute;
	display: block;
	background: var(--primery-color);
	top: 40px;
	left: 50%;
}
.timeline .months-timeline:nth-child(2n) .outer-months.before-border-none::before{
	display: none;
}
.timeline .months-timeline .outer-months.bottom-border-none::before,.timeline .months-timeline .outer-months.top-border-none::before{
	display: none;
}
.top-border-add::before{
	content: '';
	height: 40px;
	width: 1px;
	position: absolute;
	display: block;
	background: var(--primery-color);
	top: 50px;
	left: 50%;
}
.outer-months.both-side-border .month-name::before {
	content: '';
	height: 40px;
	width: 1px;
	position: absolute;
	display: block;
	background: var(--primery-color);
	top: auto;
	bottom: -40px;
	left: 50%;
}

.timeline .months-timeline:nth-child(2) .month-bottom-content {
	bottom: -9px;
}
.timeline .months-timeline:nth-child(3) .month-top-content {
	top: 13px;
}
.timeline .months-timeline:nth-child(4) .month-bottom-content {
	bottom: 6px;
}
.timeline .months-timeline:nth-child(10) .month-top-content {
	top: -5px;
}

.timeline .months-timeline:first-child .month-top-content {
	top: 14px;
}
.timeline .months-timeline:nth-child(10) .month-bottom-content {
	bottom: 11px;
}


/* responsive */
@media (max-width: 1480px){
	.timeline .month-name{height: 90px;width: 90px;font-size: 13px;}
	.timeline .months-timeline:nth-child(3) .month-bottom-content {
		bottom: -26px;
	}
	.timeline .months-timeline:nth-child(4) .month-top-content {
		top: -11px;
	}
	/* .timeline .months-timeline:nth-child(6) .month-top-content {
		top: -21px;
	}
	.timeline .months-timeline:nth-child(9) .month-top-content {
		top: -17px;
	} */

}
@media (max-width: 1367px){
    .timeline .month-name {height: 80px;width: 80px;font-size: 12px;}
    .timeline .months-timeline:nth-child(3) .month-bottom-content {bottom: -20px;}
    .timeline .months-timeline:nth-child(6) .month-top-content {
		top: -28px;
	}
	.timeline .months-timeline:nth-child(9) .month-top-content {
		top: -17px;
	}
	.timeline .months-timeline:nth-child(2) .month-bottom-content {
		bottom: -23px;
	}
	.timeline .months-timeline:nth-child(3) .month-top-content {
		top: 0;
	}
	.timeline .months-timeline:nth-child(5) .month-top-content {
		top: -15px;
	}
	.timeline .months-timeline:nth-child(10) .month-top-content {
		top: -25px;
	}

}

@media (max-width: 1190px){
    .timeline{row-gap: 150px;}

    .timeline .months-timeline {width: 16%;}
    .timeline .months-timeline:nth-child(3) .month-bottom-content {bottom: -10px;}
    .timeline .months-timeline:nth-child(6) .month-top-content {top: -6px;}
	.timeline .months-timeline:nth-child(4) .month-top-content {top: 3px;}
	.timeline .months-timeline:nth-child(9) .month-top-content {top: -2px;}
	.timeline .months-timeline:nth-child(3) .month-top-content {
		top: 13px;
	}
	.timeline .months-timeline:nth-child(2) .month-bottom-content {
		bottom: -4px;
	}
	.timeline .months-timeline:nth-child(10) .month-top-content {
		top: -10px;
	}
	.timeline .months-timeline:nth-child(5) .month-top-content {
		top: -3px;
	}
}

@media (max-width: 850px){
    .timeline .months-timeline:nth-child(6) .month-top-content {top: -5px;}
	.timeline .months-timeline {width: 20%;}
	.timeline {row-gap: 90px;}
}

@media (max-width: 767px){
    .timeline .months-timeline {width: 100%;}
    .timeline {row-gap: 0px;padding-top: 50px;padding-bottom: 20px;}



	.timeline .outer-months::after {
		content: '';
		height: 100%;
		width: 20px;
		display: block;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		background-color: var(--primery-color);

	}
	.timeline .months-timeline::after{
		left: 50%;
		bottom: -20px;
		top: auto;
		border-top: 10px solid var(--primery-color);
		border-bottom: 10px solid transparent;
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		right: auto;
		transform: translateX(-50%);
		/* display: none; */
	}
	.timeline .months-timeline:nth-child(2n+1) .outer-months::before {
		content: '';
		height: 1px;
		width: 21%;
		bottom: auto;
		left: 41%;
		top: 50%;
		transform: translateX(-50%);
		z-index: -1;
		display: none;
	}
	.timeline .months-timeline:nth-child(2n) .outer-months::before {
		content: '';
		height: 1px;
		width: 21%;
		top: 50%;
		right: 50%;
		left: auto;
		display: none;
	}
	.month-bottom-content {
		position: absolute;
		width: 32%;
		font-size: 12px;
		top: 50%;
		transform: translateY(-50%);
		right: -15px;
		left: auto;
		bottom: auto;
		display: flex;
		gap: 10px;
		flex-direction: column;
	}
	.month-top-content {
		position: absolute;
		width: 32%;
		font-size: 12px;
		top: 50%;
		transform: translateY(-50%);
		left: -15px;
		right: auto;
		bottom: auto;
		display: flex;
		gap: 10px;
		flex-direction: column;
	}
	.timeline .months-timeline:nth-child(3) .month-bottom-content {
		bottom: auto;
	}
	.timeline .months-timeline:nth-child(6) .month-top-content {
		top: 50%;
	}
	.month-bottom-content .dot, .month-top-content .dot {
		display: inline-block;
		margin-bottom: 0;
		position: static;
		left: 0px;
		top: 50%;
		transform: translateY(0%);
	}
	.month-top-content .dot {
		display: flex;
		margin-bottom: 0;
		position: static;
		right: 0;
		top: 50%;
		transform: translateY(0%);
		margin-top: 0;
	}
	.timeline .months-timeline:nth-child(2n)::after {
		border-top-color: var(--third-color);
		border-bottom-color: transparent;
		border-right-color: transparent;
		border-left-color: transparent;
	}
	div.timeline::before {
		content: '';
		width: 47.4%;
		height: 1px;
		background: #000;
		display: block;
		margin-bottom: -2px;
	}
	.timeline .months-timeline:first-child::before, .timeline .months-timeline:nth-child(8)::before {
		display: none;
	}
	.outer-months {
		padding-bottom: 40px;
		padding-top: 40px;
	}
	.outer-months.both-side-border .month-name::before {
		height: 1px;
		width: 60%;
		top: 50%;
		left: -66%;
	}
	.timeline .months-timeline:nth-child(4) .month-top-content {
		top: 50%;
	}
	.timeline .months-timeline:nth-child(9) .month-top-content {
		top: 50%;
	}
	.timeline .months-timeline:nth-child(9) .outer-months::before{
		content: '';
		height: 1px;
		width: 21%;
		top: 50%;
		right: 50%;
		left: auto;
	}
	.outer-months.both-side-border .month-name::before {
		height: 1px;
		width: 39%;
		top: 50%;
		left: -41%;
		display: none;
	}
	.timeline .months-timeline:first-child .month-top-content, .timeline .months-timeline:nth-child(3) .month-top-content, .timeline .months-timeline:nth-child(5) .month-top-content, .timeline .months-timeline:nth-child(10) .month-top-content {
		top: 50%;
	}
	.timeline .months-timeline:nth-child(2) .month-bottom-content, .timeline .months-timeline:nth-child(4) .month-bottom-content, .timeline .months-timeline:nth-child(10) .month-bottom-content{
		bottom: auto;
	}
}