.courses-cards {
    padding: 25px 0 64px;
}

.courses-cards__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.courses-cards__card {
    overflow: hidden;
    border-top: 2px solid #06caca;
    background: linear-gradient(180deg, rgba(6, 202, 202, .2) 0%, rgba(255, 255, 255, .2) 100%);
}

.courses-cards__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.courses-cards__image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
}

.courses-cards__content {
    display: block;
    min-height: 196px;
    padding: 16px 16px 28px;
}

.courses-cards__title {
    display: block;
    margin-bottom: 11px;
    color: #3d3d3d;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.15;
}

.courses-cards__description {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.58;
}

.courses-cards__description p {
    margin: 0;
}

.courses-cards__link:hover .courses-cards__title,
.courses-cards__link:focus-visible .courses-cards__title {
    color: #009fa5;
}

.courses-cards__pager {
    margin-top: 32px;
}

@media screen and (max-width: 900px) {
    .courses-cards__grid { gap: 16px; }
    .courses-cards__image { height: 180px; }
}

@media screen and (max-width: 700px) {
    .courses-cards {
        padding-top: 22px;
    }

    .courses-cards__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .courses-cards__image {
        height: auto;
        aspect-ratio: 1.78;
    }

    .courses-cards__content { min-height: 0; }
}
