.dw-gridcontent .cards {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

@media (min-width: 992px) {
    .dw-gridcontent .cards {
        border-radius: 30px;
    }
}

.dw-gridcontent .cards .cards-body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    color: white;
}

.dw-gridcontent .cards .cards-top img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (min-width: 992px) {
    .dw-gridcontent .cards .cards-top img {
        border-radius: 30px;
    }
}

.dw-gridcontent .cards:hover .cards-top img {
    transform: scale(1.04);
}

.dw-gridcontent .cards .cards-top::after {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .8));
    position: absolute;
    inset: 0;
    border-radius: 15px;
    transition: opacity 0.4s ease;
}

@media (min-width: 992px) {
    .dw-gridcontent .cards .cards-top::after {
        border-radius: 30px;
    }
}

.dw-gridcontent .cards:hover .cards-top::after {
    opacity: 0.85;
}

.dw-gridcontent .cards .cards-title {
    font-weight: 700;
    font-size: 18px;
}

@media (min-width: 992px) {
    .dw-gridcontent .cards .cards-title {
        font-size: 24px;
    }
}

.dw-gridcontent .cards .cards-action a {
    background-color: white;
    color: black;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.dw-gridcontent .cards .cards-action a:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}
