.ag-format-container {
    width: 1142px;
    margin: 0 auto;
}



.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;
    /* padding-left:143px;
    padding-right:39px;
    padding: 50px 0; */

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.ag-courses_item {
    /* -ms-flex-preferred-size: calc(33.33333% - 30px);
    flex-basis: calc(33.33333% - 30px); */



    overflow: hidden;

    border-radius: 28px;
    flex-basis: 400px;
    /* Adjust the width as needed */
    margin: 10px;
    /* Add spacing between cards */
}

.ag-courses-item_link {
    display: block;
    background-color: #3e5da58a;

    overflow: hidden;

    position: relative;


    text-align: center;
    padding: 10px;


}

.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
    text-decoration: none;

}

.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: 87px;
    margin: 0 0 25px;

    overflow: hidden;

    font-weight: bold;
    font-size: 30px;
    color: #FFF;

    z-index: 2;
    position: relative;
}

.ag-courses-item_date-box {
    font-size: 18px;
    color: #FFF;

    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: 1550px) {
    .ag-format-container {
        width: 982px;
    }

    .ag-courses_item {
        flex-basis: 400px;
    }

}

@media only screen and (max-width: 1300px) {
    .ag-format-container {
        width: 982px;
    }

    .ag-courses_item {
        flex-basis: 300px;
    }

}

@media only screen and (max-width: 1133px) {
    .ag-format-container {
        width: 982px;
    }

    .ag-courses_item {
        flex-basis: 290px;
    }

}

@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: 24px;
    }

    .ag-format-container {
        width: 773px;
    }
}

@media only screen and (max-width: 767px) {
    .ag-format-container {
        width: 96%;
    }

    .ag-courses_item {
        flex-basis: 100%;
        /* Cards take full width on smaller screens */
    }

}

@media only screen and (max-width: 639px) {
    .ag-courses_item {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    }

    .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;

        font-size: 24px;
    }

    .ag-courses-item_link {
        padding: 22px 40px;
    }

    .ag-courses-item_date-box {
        font-size: 16px;
    }
}

/* @media(max-width:1152px){
    .ag-format-container {
        padding-left: 94px;
        padding-right: 20px;
        margin-right: -18px;
        margin-left: -62px;
    }
}
@media (max-width:1070px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 55px;
    }
    .ag-courses_box {
        padding: 50px;
    }
}
@media (max-width:1060px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 85px;
    }
    .ag-courses_box {
        padding: 50px;
    }
}

@media (max-width:1044px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 85px;
    }
    .ag-courses_box {
        padding-right: 100px;
    }
}
@media (max-width:976px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 85px;
    }
    .ag-courses_box {
        padding-right: 130px;
    }
}
@media (max-width:956px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 85px;
    }
    .ag-courses_box {
        padding-right: 160px;
    }
}
@media (max-width:915px){
    .ag-format-container {
        padding-left: 15px;
        padding-right: 85px;
    }
    .ag-courses_box {
        padding-right: 190px;
    }
}
@media (max-width:894px){
    .ag-format-container {
        padding-left: 248px;
        padding-right: 0px;
        margin-left: -374px;
    }
    .ag-courses_box {
        padding-right: 230px;
        margin: 0 20px;
    }
}

@media only screen and (max-width: 882px) {

    .ag-courses_item {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        max-width: 450px;
        margin-left:140px;
    }

    .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;

        font-size: 24px;
    }

    .ag-courses-item_link {
        padding: 22px 40px;
    }

    .ag-courses-item_date-box {
        font-size: 16px;
    }

}

@media only screen and (max-width: 767px) {

    .ag-courses_box {
        padding-right: 20px;
        padding-left: 20px;
        margin-right:40px;
    }
    .ag-courses_item{
        margin-right: 28px;
    }

}

@media only screen and (max-width: 668px) {

    .ag-courses_box {
        padding-right: 20px;
        padding-left: 20px;
    }
    .ag-courses_item{
        width: 250px;
    }

}
@media only screen and (max-width: 668px) {

    .ag-courses_box {
        padding-right: 20px;
        padding-left: 20px;
    }
    .ag-courses_item{
        width: 250px;
        margin-left: 30px;
    }

}

@media only screen and (max-width: 668px) {

    .ag-courses_box {
        padding-right: 20px;
        padding-left: 20px;
    }
    .ag-courses_item{
        width: 300px;
        margin: 30px 0;
    }

} */

/* isuue at 849-1081


*/

/* @media(max-width:894px){
    .ag-courses_box{
        width:893px;
        padding-right:0px;
    }
} */