.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 20px 5px; float: right; } .main-timeline .timeline-content{ color: #666; min-height: 150px; padding: 15px 0 15px 75px; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-content:before{ content: ''; background: linear-gradient(to right bottom,#FBBA27 50%,#F66D50 51%); height: 150px; width: 120px; position: absolute; left: -60px; top: 0; clip-path: polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%); } .main-timeline .timeline-icon{ color: #555; background-color: #fff; font-size: 40px; text-align: center; line-height: 98px; height: 100px; width: 100px; border: 2px solid #333; box-shadow: 4px 4px 0 rgba(0,0,0,0.15); border-radius: 50%; position: absolute; left: -50px; top: 10px; } .main-timeline .title{ color: #222; font-size: 20px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 7px; } .main-timeline .description{ font-size: 13px; line-height: 20px; margin: 0; } .main-timeline .timeline:nth-child(even){ margin: 0 5px 20px 0; float: left; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 15px 75px 15px 0; } .main-timeline .timeline:nth-child(even) .timeline-content:before{ left: auto; right: -60px; } .main-timeline .timeline:nth-child(even) .timeline-icon{ left: auto; right: -50px; } .main-timeline .timeline:nth-child(4n+2) .timeline-content:before{ background: linear-gradient(to right bottom,#33ddb0 50%,#625DC1 51%); } .main-timeline .timeline:nth-child(4n+3) .timeline-content:before{ background: linear-gradient(to right bottom,#a6e530 50%,#33ce7b 51%); } .main-timeline .timeline:nth-child(4n+4) .timeline-content:before{ background: linear-gradient(to right bottom,#30c9c9 50%,#dd35c1 51%); } @media screen and (max-width:767px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ width: 100%; margin: 0 0 25px; } .main-timeline .timeline-content:before{ left: 0; } .main-timeline .timeline-content{ padding-left: 135px; } .main-timeline .timeline-icon{ left: 10px; } .main-timeline .timeline:nth-child(even) .timeline-content:before{ right: 0; } .main-timeline .timeline:nth-child(even) .timeline-content{ padding-right: 135px; } .main-timeline .timeline:nth-child(even) .timeline-icon{ right: 10px; } } @media screen and (max-width:576px){ .main-timeline .timeline-content, .main-timeline .timeline:nth-child(even) .timeline-content{ padding: 160px 0 0 0; text-align: center; } .main-timeline .timeline-content:before, .main-timeline .timeline:nth-child(even) .timeline-content:before{ transform: translateX(-50%); left: 50%; right: auto; } .main-timeline .timeline-icon, .main-timeline .timeline:nth-child(even) .timeline-icon{ transform: translateX(-50%); left: 50%; right: auto; } }