body {
    background-color: #fff;
  }
  .ag-courses_box {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;

  }
  .ag-courses_item {
    -ms-flex-preferred-size: calc(33.33333% - 30px);
    flex-basis: calc(33.33333% - 30px);
  
    margin: 0 15px 30px;
  
    overflow: hidden;
  
    border-radius: 28px;
    /* height: 200px; */
  }
  .ag-courses-item_link {
    display: block;
    padding: 30px 20px;
    background-color: #fff;
  
    overflow: hidden;
  
    position: relative;
    height:205px;
  }
  .ag-courses-item_link:hover,
  .ag-courses-item_link:hover .ag-courses-item_date {
    text-decoration: none;
    color: #FFF;
  }
  .ag-courses-item_link:hover .ag-courses-item_bg {
    -webkit-transform: scale(10);
    -ms-transform: scale(10);
    transform: scale(10);
  }
  .ag-courses-item_title {
    min-height: 47px;
    overflow: hidden;
    font-weight: bold;
    font-size: 1.25em;
    color: #000;
    z-index: 2;
    position: relative;
  }
  .ag-courses-item_date-box {
    font-size: 15px;
    color: #000;
  
    z-index: 2;
    position: relative;
  }
  .ag-courses-item_date {
    font-weight: bold;
    color: #f9b234;
  
    -webkit-transition: color .5s ease;
    -o-transition: color .5s ease;
    transition: color .5s ease
  }
  .ag-courses-item_bg {
    height: 128px;
    width: 128px;
    background-color: #f9b234;
  
    z-index: 1;
    position: absolute;
    top: -75px;
    right: -75px;
  
    border-radius: 50%;
  
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
  }
  .ag-courses_item:nth-child(2n) .ag-courses-item_bg {
    background-color: #3ecd5e;
  }
  .ag-courses_item:nth-child(3n) .ag-courses-item_bg {
    background-color: #e44002;
  }
  .ag-courses_item:nth-child(4n) .ag-courses-item_bg {
    background-color: #952aff;
  }
  .ag-courses_item:nth-child(5n) .ag-courses-item_bg {
    background-color: #cd3e94;
  }
  .ag-courses_item:nth-child(6n) .ag-courses-item_bg {
    background-color: #4c49ea;
  }
  
  
  
  @media only screen and (max-width: 979px) {
    .ag-courses_item {
      -ms-flex-preferred-size: calc(50% - 30px);
      flex-basis: calc(50% - 30px);
    }
    .ag-courses-item_title {
      font-size: 1.25em;
      min-height: 30px;
    }
  }
  
  @media only screen and (max-width: 767px) {
    .ag-format-container {
      width: 96%;
    }
    .ag-courses-item_link {
     
      height:150px;
    }
  
  }
  @media only screen and (max-width: 639px) {
    .ag-courses_item {
      -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
    }
    .ag-courses-item_title {
      min-height: 25px;
      line-height: 1;
  
      font-size: 1.25em;
    }
    .ag-courses-item_link {
      padding: 22px 20px;
      height:115px;
    }
    .ag-courses-item_date-box {
      font-size: 14px;
    }
  }

  @media only screen and (max-width: 360px) {
    .ag-courses_item {
      -ms-flex-preferred-size: 100%;
      flex-basis: 100%;
    }
    .ag-courses-item_title {
      min-height: 25px;
      line-height: 1;
  
      font-size: 1.25em;
    }
    .ag-courses-item_link {
      padding: 22px 20px;
      height:135px;
    }
    .ag-courses-item_date-box {
      font-size: 14px;
    }
  }



  .main-timeline{
    font-family: 'Poppins', sans-serif;
    position: relative;
}
.main-timeline:after{
    content: '';
    display: block;
    clear: both;
}
.main-timeline .timeline{
    width: 75%;
    margin: 0 0 20px 20px;
    float: right;
}
.main-timeline .timeline-content{
    color: #fff;
    background: linear-gradient(to right,#eb273e,#bf0f23);
    text-align: center;
    padding: 20px 9px 20px 20px;
    border-radius: 0 20px 20px 0;
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    display: block;
    position: relative;
}
.main-timeline .timeline-content:hover{ text-decoration: none; }
.main-timeline .timeline-year{
    color: #eb273e;
    background-color: #fff;
    font-size: 60px;
    font-weight: 600;
    text-align: center;
    line-height: 130px;
    width: 130px;
    height: 100%;
    border-radius: 98px 0 0 10px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.3);
    position: absolute;
    left: -130px;
    top: 0;
    align-content: center;

}
.main-timeline .timeline-icon{
    color: #fff;
    font-size: 50px;
    transform: translateY(-50%);
    position: absolute;
    left: 30px;
    top: 50%;
}
.main-timeline .title{
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px;
	font-family: sans-serif !important;
}
.main-timeline .description{
    font-size: 13px;
    letter-spacing: 1px;
    margin: 0;
	font-family: sans-serif !important;
}
.main-timeline .timeline:nth-child(even){
    float: left;
    margin: 0 20px 20px 0;
}
.main-timeline .timeline:nth-child(even) .timeline-content{
    padding: 20px 9px 20px 20px;
    border-radius: 20px 0 0 20px;
}
.main-timeline .timeline:nth-child(even) .timeline-content:before{
    right:auto;
    left:0;
    clip-path: polygon(0 0, 100% 100%, 65% 0);
}
.main-timeline .timeline:nth-child(even) .timeline-year{
    left: auto;
    right: -130px;
    border-radius:0 98px 10px 0;
    align-content: center;
    font-size: 60px;
}
.main-timeline .timeline:nth-child(even) .timeline-icon{
    right: 30px;
    left: auto;
}
.main-timeline .timeline:nth-child(4n+2) .timeline-content{
    background: linear-gradient(to right,#db3d08,#ee5a24);
}
.main-timeline .timeline:nth-child(4n+2) .timeline-year{ color: #ee5a24; }
.main-timeline .timeline:nth-child(4n+3) .timeline-content{
    background: linear-gradient(to right,#009432,#037529);
}
.main-timeline .timeline:nth-child(4n+3) .timeline-year{ color: #009432; }
.main-timeline .timeline:nth-child(4n+4) .timeline-content{
    background: linear-gradient(to right,#0e6dcc,#2e86de);
}
.main-timeline .timeline:nth-child(4n+4) .timeline-year{ color: #2e86de; }
@media screen and (max-width:767px){
    .main-timeline .timeline{
        width: 100%;
        padding: 50px 0 0 0;
    }
    .main-timeline .timeline .timeline-content,
    .main-timeline .timeline:nth-child(even) .timeline-content{
        padding: 20px 14px 20px 14px;
        border-radius: 0 20px 20px 20px;
    }
    .main-timeline .timeline .timeline-year,
    .main-timeline .timeline:nth-child(even) .timeline-year{
        font-size: 25px;
        border-radius: 15px 15px 0 0;
        box-shadow: none;
        width: 100px;
        height: 50px;
        line-height: 50px;
        top: -50px;
        left: 0;
    }
    .main-timeline .timeline .timeline-icon,
    .main-timeline .timeline:nth-child(even) .timeline-icon{
        font-size: 28px;
        left: 15px;
        right: auto;
    }
}
@media screen and (max-width:576px){
    .main-timeline .title{ font-size: 18px; }
}