:root{ --main-color: #da1310; }
.main-timeline{  }
.main-timeline:after{
    content: '';
    display: block;
    clear: both;
}
.main-timeline .timeline{
    width: 50%;
    padding: 15px;
    margin: 0 2px 0 0;
    float: left;
    position: relative;
    z-index: 1;
}
.main-timeline .timeline-content{
    text-decoration: none;
    color: #b9b9f6;
    background-color: #000000;
    text-align: center;
    padding: 90px 15px 15px;
    border: 10px solid var(--main-color);
    border-top-color: transparent;
    border-left-color: transparent;
    box-shadow: 0 0 15px -3px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    position: relative;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-content:before{
    content: '';
    background: var(--main-color);
    width: 150px;
    position: absolute;
    right: -25px;
    top: -25px;
    bottom: -25px;
    z-index: -2;
}
.main-timeline .timeline-icon{
    color: var(--main-color);
    background-color: #fff;
    font-size: 30px;
    font-weight: 600;
    text-align: center;
    line-height: 60px;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5),0 0 0 10px var(--main-color);
    position: absolute;
    left: 5px;
    top: 5px;
}
.main-timeline .title{
    font-size: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}
.main-timeline .description{
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 20px;
    margin: 0;
    
}
.main-timeline .timeline:nth-child(even){
    margin: 0 0 0 2px;
    float: right;
}
.main-timeline .timeline:nth-child(even) .timeline-content:before{
    right: auto;
    left: -25px;
}
.main-timeline .timeline:nth-child(even) .timeline-icon{
    left: auto;
    right: 5px;
}
.main-timeline .timeline:nth-child(even) .timeline-content{
    border-color: var(--main-color);
    border-right-color: transparent; 
    border-top-color: transparent; 
}
.main-timeline .timeline:nth-child(4n+2){ --main-color: #0808d4; }
.main-timeline .timeline:nth-child(4n+3){ --main-color: #da1310; }
.main-timeline .timeline:nth-child(4n+4){ --main-color: #0808d4; }


@media screen and (max-width:767px){
    .main-timeline .timeline,
    .main-timeline .timeline:nth-child(even){
        width: 100%;
        margin: 0;
    }

    .box1 {
        margin-top: 220px !important;
      }
    
      .box2{
        margin-top: 220px !important;
      }

    .marg1{
        margin-left: .5rem !important;
      }


    .Card_change1{
        margin-left: 0px;
        width: 320px !important;
        height: 420px !important;
      }
      .Card_change {
        margin-left: 0px;
        width: 320px !important;
        height: 400px !important;
      }
}

