.tiles {
    margin-bottom: 20px;
    padding: 0 30px;
    width: 100%;
}
.tiles .title-cont{
    margin: 0 auto 25px 0;
}
.tiles .title-cont h2 {
    position: relative;
    display: inline-block;
    font-size: 26px;
    line-height: 32px;
    margin: 0;
    padding-bottom: 20px;
    padding-left: 15px;
    border-bottom: 4px solid #0661c2;
    text-transform: uppercase;
    color: #6fb43f;
    font-weight: 800;
}

.tiles .tiles-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tile {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    z-index: 1;
    overflow: hidden;
}

.tile .bg-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 7px;
    display: none;
    z-index: 3;
}

.tiles .tiles-inner .tile:nth-child(3n+5) .bg-color{
    background-color: rgba(111, 180, 63, 0.8);
}
.tiles .tiles-inner .tile:nth-child(1) .bg-color,
.tiles .tiles-inner .tile:nth-child(3n+2) .bg-color {
    background-color: rgba(4, 72, 144, 0.85);
}
.tiles .tiles-inner .tile:nth-child(2) .bg-color,
.tiles .tiles-inner .tile:nth-child(3n+3) .bg-color {
    background-color: rgba(157, 16, 89, 0.8);
}
.tiles .tiles-inner .tile:nth-child(3) .bg-color,
.tiles .tiles-inner .tile:nth-child(3n+4) .bg-color {
    background-color: rgba(1, 159, 196, 0.8);
}
.tiles .tiles-inner .tile:nth-child(4) .bg-color {
    background-color: rgba(111, 180, 63, 0.8);
}


.tile .border {
    position: absolute;
    left: 15px;
    top: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    display: none;
}

.tile .img-cont {
    position: relative;
    border-radius: 7px;
    padding-bottom: 100%;
    z-index: 2;
}

.tile .img-cont::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    border-radius: 7px;
}

.tile .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 4;
    overflow: hidden;
}

.tile .slide-content h4 {
    font-size: 17px;
    line-height: 17px;
    text-transform: uppercase;
    color: white;
    margin: 0;
    font-weight: 800;
}

.tile .slide-content h5 {
    font-size: 12px;
    line-height: 12px;
    margin: 0;
    color: white;
    text-transform: uppercase;
    font-weight: normal;
}

.tile .slide-content .desc {
    display: none;
}

@media (min-width: 641px) {
    .tiles {
        padding: 0 15px;
    }
    .tiles .title-cont{
        margin: 0 auto 25px 10px;
    }
    .tiles .tiles-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tile {
        margin: 0 10px 20px;
        width: calc(50% - 20px);
    }
}

@media (min-width: 1025px) {
    .tiles {
        max-width: 1470px;
        margin: 0 auto 80px;
        overflow: hidden;
        padding: 0 15px;
    }
    .tiles .title-cont{
        margin: 0 auto 25px 30px;
    }
    .tiles .title-cont h2 {
        padding-left: 50px;
        border-bottom: 5px solid #0661c2;
        font-size: 48px;
        line-height: 42px;
        font-weight: 800;
    }

    .tile {
        margin: 0 30px 20px;
        width: calc(33.3333% - 60px);
        max-width: 402px;
    }

    .tile .border {
        display: block;
        z-index: 4;
    }

    .tile .border::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        border: 2px solid transparent;
        border-radius: 5px;
        width: 0;
        height: 0;
    }

    .tile .border::after {
        position: absolute;
        content: "";
        bottom: 0;
        right: 0;
        border: 2px solid transparent;
        border-radius: 5px;
        width: 0;
        height: 0;
    }

    .tile:hover .border::before {
        width: 100%;
        height: 100%;
        border-top-color: #fff;
        border-right-color: #fff;
        transition: border-color 0s ease-out 0.5s, width 0.1s ease-out 0.5s, height 0.1s ease-out 0.6s;
    }

    .tile:hover .border::after {
        width: 100%;
        height: 100%;
        border-bottom-color: #fff;
        border-left-color: #fff;
        transition: border-color 0s ease-out 0.6s, width 0.1s ease-out 0.7s, height 0.1s ease-out 0.8s;
    }

    .tile:hover .bg-color {
        display: block;
    }

    .tile .slide-content {
        padding: 0 30px;
        overflow: hidden;
    }

    .tile .slide-content .top-cont {
        margin-bottom: 20px;
    }

    .tile:hover .slide-content .top-cont {
        border-bottom: 1px solid white;
    }

    .tile .slide-content h4 {
        font-size: calc(20px + (25 - 20) * ((100vw - 1025px) / (1700 - 1025)));
        line-height: 1.25;
    }

    .tile .slide-content h5 {
        font-size: 18px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    .tile .slide-content .desc {
        display: block;
        font-size: calc(13px + (18 - 13) * ((100vw - 1025px) / (1700 - 1025)));
        line-height: 1.3;
        color: white;
        margin-bottom: 0;
    }

}

@media (min-width: 1710px) {
    .tile .slide-content h4 {
        font-size: 25px;
        line-height: 30px;
    }

    .tile .slide-content .desc {
        font-size: 18px;
        line-height: 24px;
    }
}