.main-timeline{ font-family: 'Poppins', sans-serif; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: 50%; padding: 0 15px 30px 0; margin: 0 5px 30px 0; float: left; } .main-timeline .timeline-content{ padding: 20px 120px 20px 20px; box-shadow: 0 0 15px rgba(0,0,0,0.2); display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-content:before{ content: ''; background: linear-gradient(to left,#F6A21C,#FFDB17); height: 30px; width: 100%; position: absolute; left: 30px; top: 100%; } .main-timeline .timeline-icon{ color: #F6A21C; font-size: 50px; text-align: center; line-height: 100px; width: 100px; height: 100px; border-left: 1px solid #000; transform: translateY(-50%); position: absolute; right: 0; top: 50%; } .main-timeline .title{ color: #F6A21C; font-size: 20px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 7px; } .main-timeline .description{ color: #333; font-size: 13px; font-weight: 300; line-height: 21px; letter-spacing: 1px; margin: 0; } .main-timeline .timeline:nth-child(even){ padding: 0 0 30px 15px; margin: 0 0 30px 5px; float: right; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 20px 20px 20px 120px; } .main-timeline .timeline:nth-child(even) .timeline-content:before{ left: auto; right: 30px; } .main-timeline .timeline:nth-child(even) .timeline-icon{ right: auto; left: 0; border-left: none; border-right: 1px solid #000; } .main-timeline .timeline:nth-child(4n+2) .timeline-content:before{ background: linear-gradient(to right,#3CB54B,#B3F12E); } .main-timeline .timeline:nth-child(4n+2) .timeline-icon, .main-timeline .timeline:nth-child(4n+2) .title{ color: #3CB54B; } .main-timeline .timeline:nth-child(4n+3) .timeline-content:before{ background: linear-gradient(to right,#007489,#00A28A); } .main-timeline .timeline:nth-child(4n+3) .timeline-icon, .main-timeline .timeline:nth-child(4n+3) .title{ color: #007489; } .main-timeline .timeline:nth-child(4n+4) .timeline-content:before{ background: linear-gradient(to right,#0277E9,#00C5EC); } .main-timeline .timeline:nth-child(4n+4) .timeline-icon, .main-timeline .timeline:nth-child(4n+4) .title{ color: #0277E9; } @media screen and (max-width:767px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ width: 100%; } } @media screen and (max-width:479px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ padding: 0 0 30px; } .main-timeline .timeline-content, .main-timeline .timeline:nth-child(even) .timeline-content{ text-align: center; padding: 120px 20px 20px; } .main-timeline .timeline-content:before, .main-timeline .timeline:nth-child(even) .timeline-content:before{ left: 0; right: auto; } .main-timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ border: none; border-bottom: 1px solid #000; transform: translateX(-50%) translateY(0); top: 0; left: 50%; right: auto; } }