.main-timeline{ font-family: 'Poppins', sans-serif; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: calc(50% + 1px); margin: 0 0 30px; float: right; position: relative; } .main-timeline .timeline-content{ color: #555; min-height: 110px; padding: 0 0 0 60px; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-icon{ color: #fff; background: linear-gradient(to right,#6BB32D,#3F7B3D); font-size: 36px; text-align: center; line-height: 132px; width: 60px; height: 110px; border-radius: 30px 30px/18px 18px; box-shadow: 0 -5px rgba(0,0,0,0.3) inset,0 0 5px rgba(0,0,0,0.4); transform: translateY(-50%); position: absolute; left: -30px; top: 50%; } .main-timeline .timeline-icon:before{ content: ''; background-color: #98CC3F; width: 60px; height: 30px; border-radius: 50%; position: absolute; left: 0; top: 0; } .main-timeline .title{ color: #3F7B3D; font-size: 21px; font-weight: 600; text-transform: capitalize; margin: 0 0 8px; } .main-timeline .title:after{ content: ''; background-color: #ddd; height: 2px; width: 150px; margin: 12px 0 0; display: block; clear: both; } .main-timeline .description{ font-size: 13px; letter-spacing: 1px; line-height: 20px; margin: 0; } .main-timeline .timeline:nth-child(even){ float: left; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 0 50px 0 0; } .main-timeline .timeline:nth-child(even) .timeline-icon{ left: auto; right: -30px; } .main-timeline .timeline:nth-child(4n+2) .timeline-icon{ background: linear-gradient(to right,#347AEB,#39499F); } .main-timeline .timeline:nth-child(4n+2) .timeline-icon:before{ background-color: #4E9BFE; } .main-timeline .timeline:nth-child(4n+2) .title{ color: #39499F; } .main-timeline .timeline:nth-child(4n+3) .timeline-icon{ background: linear-gradient(to right,#d613a8,#a80b93); } .main-timeline .timeline:nth-child(4n+3) .timeline-icon:before{ background-color: #F656C9; } .main-timeline .timeline:nth-child(4n+3) .title{ color: #a80b93; } .main-timeline .timeline:nth-child(4n+4) .timeline-icon{ background: linear-gradient(to right,#D12A2B,#9C3839); } .main-timeline .timeline:nth-child(4n+4) .timeline-icon:before{ background-color: #FF3B43; } .main-timeline .timeline:nth-child(4n+4) .title{ color: #9C3839; } @media screen and (max-width:767px){ .main-timeline .timeline{ width: 100%; } .main-timeline .timeline .timeline-content, .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 0 0 0 80px; } .main-timeline .timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ right: auto; left: 0; } } @media screen and (max-width:576px){ .main-timeline .timeline .timeline-content, .main-timeline .timeline:nth-child(even) .timeline-content{ text-align: center; padding: 130px 0 0 0; } .main-timeline .timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateX(-50%) translateY(0); right: auto; left: 50%; top: 0; } .main-timeline .title{ font-size: 20px; } .main-timeline .title:after{ margin: 12px auto 0; } }