.main-timeline{ font-family: 'Poppins', sans-serif; padding: 25px 0; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: calc(50% + 2.5px); padding-top: 120px; margin: 0 0 -22px 5px; float: right; } .main-timeline .timeline-content{ color: #666; text-align: center; min-height: 120px; padding: 15px; border-left: 5px solid #00DCAF; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-icon{ color: #fff; background-color: #00DCAF; font-size: 50px; text-shadow: 0 0 10px rgba(0,0,0,0.3); line-height: 100px; height: 100px; width: 100px; transform: skewY(-10deg); position: absolute; left: -5px; top: -107px; } .main-timeline .timeline-year{ color: #00DCAF; font-size: 30px; line-height: 30px; font-weight: 600; margin: 0 0 5px; } .main-timeline .title{ color: #555; font-size: 20px; font-weight: 600; text-transform: capitalize; margin: 0 0 7px; } .main-timeline .description{ font-size: 13px; line-height: 20px; margin: 0; } .main-timeline .timeline:nth-child(even){ margin: 0 5px -22px 0; float: left; } .main-timeline .timeline:nth-child(even) .timeline-content{ border-left: none; border-right: 5px solid #00DCAF; } .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: skewY(10deg); left: auto; right: -5px; } .main-timeline .timeline:nth-child(4n+2) .timeline-content{ border-color: #0CBDD1; } .main-timeline .timeline:nth-child(4n+2) .timeline-icon{ background-color: #0CBDD1; } .main-timeline .timeline:nth-child(4n+2) .timeline-year{ color: #0CBDD1; } .main-timeline .timeline:nth-child(4n+3) .timeline-content{ border-color: #03A5EA; } .main-timeline .timeline:nth-child(4n+3) .timeline-icon{ background-color: #03A5EA; } .main-timeline .timeline:nth-child(4n+3) .timeline-year{ color: #03A5EA; } .main-timeline .timeline:nth-child(4n+4) .timeline-content{ border-color: #037ED4; } .main-timeline .timeline:nth-child(4n+4) .timeline-icon{ background-color: #037ED4; } .main-timeline .timeline:nth-child(4n+4) .timeline-year{ color: #037ED4; } @media screen and (max-width:767px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ width: 100%; margin: 0 0 15px; } }