:root{ --main-color: #FEA702; } .main-timeline{ font-family: 'Poppins', sans-serif; } .main-timeline:after{ content: ''; display: block; clear: both; } .main-timeline .timeline{ width: 50%; margin: 0 5px 0 0; float: left; } .main-timeline .timeline-content{ padding: 60px 20px 20px; display: block; position: relative; } .main-timeline .timeline-content:hover{ text-decoration: none; } .main-timeline .timeline-content:before{ content: ''; background-color: var(--main-color); height: 120px; width: 120px; border-radius: 50% 50% 0 50%; opacity: 0.2; position: absolute; right: 0; bottom: 0; } .main-timeline .timeline-icon{ color: #fff; background-color: var(--main-color); font-size: 20px; text-align: center; line-height: 50px; width: 50px; height: 50px; border-radius: 50% 0 50% 50%; box-shadow: -5px 0 rgba(0,0,0,0.1); position: absolute; right: 0; top: 0; } .main-timeline .title{ color: #000; background: linear-gradient(-45deg,transparent 60%,var(--main-color) 60%); font-size: 20px; font-weight: 600; text-transform: capitalize; padding: 5px 30px 5px 10px; margin: 0 0 7px; display: inline-block; } .main-timeline .description{ color: #555; font-size: 14px; font-weight: 300; line-height: 22px; letter-spacing: 1px; margin: 0; } .main-timeline .timeline:nth-child(even){ margin: 0 0 0 5px; float: right; } .main-timeline .timeline:nth-child(even) .timeline-content:before{ border-radius: 50% 50% 50% 0; left: 0; right: auto; } .main-timeline .timeline:nth-child(even) .timeline-icon{ border-radius: 0 50% 50%; right: auto; left: 0; } .main-timeline .timeline:nth-child(4n+2){ --main-color: #5DB15C; } .main-timeline .timeline:nth-child(4n+3){ --main-color: #11a4c1; } .main-timeline .timeline:nth-child(4n+4){ --main-color: #2a9afc; } @media screen and (max-width:767px){ .main-timeline .timeline, .main-timeline .timeline:nth-child(even){ width: 100%; margin: 0 0 30px; } }