.yearly {
background: #1B2E5A;
border-radius: 50%;
width: 120px;
height: 120px;
margin: 0 auto;
font-size: 24px;
font-weight: 600;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.timeline-main {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
position: relative;
padding-top: 100px;
height: fit-content !important;
margin-bottom: 0 !important;
}
.timeline-main:after {
content: '';
position: absolute;
width: 6px;
height: 100%;
background-color: #1B2E5A;
top: 0;
left: 50%;
transform: translateX(-50%);
}
.timeline-item {
width: 50%;
position: relative;
padding-bottom: 20px;
}
.timeline-item-inner {
width: 373px;
}
.timeline-item.right {
padding-top: 70px;
}
.timeline-item.right .timeline-item-inner {
margin-left: auto;
}
.timeline-item .year {
display: block;
font-size: 36px;
font-weight: 600;
color: #1B2E5A;
}
.timeline-item.left .year {
text-align: right;
}
.time-img {
width: 100%;
}
.time-img img {
width: 100%;
}
.timeline-item .timeline-item-inner h4 {
font-size: 18px;
font-weight: bold;
color: #000;
margin: 20px 0 10px 0;
line-height: 1.2em;
}
.timeline-item .timeline-item-inner p {
font-size: 16px;
font-weight: 400;
color: #000;
line-height: 1.3em;
margin-bottom: 15px;
}
.timeline-item.left.start-end:before {
content: '';
position: absolute;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #1B2E5A;
right: -22px;
top: 0px;
z-index: 10;
border: 1px solid;
padding: 10px;
box-shadow: 0px 0px 0 12px inset #fff;
}
.timeline-item.right.start-end:before {
content: '';
position: absolute;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #1B2E5A;
left: -22px;
top: 70px;
z-index: 10;
border: 1px solid;
padding: 10px;
box-shadow: 0px 0px 0 12px inset #fff;
}
.timeline-item.left:before {
content: '';
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #1B2E5A;
right: -10px;
top: 10px;
}
.timeline-item.left:after {
content: '';
position: absolute;
height: 2px;
width: calc(100% - 400px);
background-color: #1B2E5A;
right: 0;
top: 20px;
}
.timeline-item.right:before {
content: '';
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #1B2E5A;
left: -10px;
top: 80px;
}
.timeline-item.right:after {
content: '';
position: absolute;
height: 2px;
width: calc(100% - 400px);
background-color: #1B2E5A;
left: 0;
top: 90px;
}
@media (max-width: 1200px) {
.timeline-item-inner {
width: 300px;
}
.timeline-item.right:after,
.timeline-item.left:after {
width: calc(100% - 350px);
}
}
@media (max-width: 1024px) {
.timeline-item-inner {
width: 330px;
}
}
@media (max-width: 980px) {
.timeline-main {
padding-top: 30px;
}
.timeline-item {
width: 100%;
padding-left: 60px;
height: fit-content;
}
.yearly {
margin-left: 0;
margin-right: auto;
}
.timeline-main:after {
left: 57px;
transform: none;
}
.timeline-item.left.start-end:before,
.timeline-item.right.start-end:before {
right: auto;
left: 37px;
}
.timeline-item.left:before,
.timeline-item.right:before {
right: auto;
left: 50px;
}
.timeline-item-inner {
width: calc(100% - 100px);
margin-left: auto;
}
.timeline-item.left .year {
text-align: left;
}
.timeline-item.right:after,
.timeline-item.left:after {
width: 100px;
left: 50px;
right: auto;
}
.time-img img {
width: auto;
max-width: 300px;
}
.timeline-item.right {
padding-top: 20px;
}
.timeline-item.right:before {
top: 30px;
}
.timeline-item.right:after {
top: 40px;
}
.timeline-item.right.start-end:before {
top: 20px;
}
}
@media (max-width: 767px) {
.yearly {
width: 70px;
height: 70px;
font-size: 14px;
}
.timeline-main:after {
left: 32px;
}
.timeline-item {
padding-left: 35px;
}
.timeline-item.left.start-end:before,
.timeline-item.right.start-end:before {
left: 13px;
}
.timeline-item.left:before, .timeline-item.right:before {
left: 25px;
}
.timeline-item.right:after, .timeline-item.left:after {
width: 70px;
left: 37px;
}
.timeline-item-inner {
width: calc(100% - 90px);
}
}
@media (max-width: 500px) {
.timeline-item.right:after,
.timeline-item.left:after {
width: 30px;
}
.timeline-item-inner {
width: calc(100% - 50px);
}
.timeline-item .year {
font-size: 25px;
}
.timeline-item .timeline-item-inner h4 {
font-size: 16px;
margin: 10px 0 5px 0;
} 
.timeline-item .timeline-item-inner p {
font-size: 14px;
}
.timeline-item.right:before {
top: 23px;
}
.timeline-item.right:after {
top: 33px;
}
.timeline-item.left:before {
top: 2px;
}
.timeline-item.left:after {
top: 12px;
}
.timeline-item.left.start-end:before {
top: -10px;
}
.timeline-item.right.start-end:before {
top: 12px;
}
.time-img img {
width: auto;
max-width: 100%;
}
}