.trainings > div {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background-color: var(--white);
    padding: 30px;
    text-align: center;
}

.trainings > div.ab {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.trainings > div.ab > div:first-child {
    flex: 1 1 auto;
}

.trainings > div.ab > a:last-child {
    flex-shrink: 0;
    margin-top: auto;
}

/* Equal-height cards: grid overrides f32 flex for this section only */
@media (min-width: 500px) {
    section.trainings.f32 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap);
        align-items: stretch;
    }

    section.trainings.f32 > div {
        width: auto;
        flex: none;
    }
}

@media (min-width: 980px) {
    section.trainings.f32 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.trainings > div:not(.ab) > div {
    margin-bottom: 40px;
}

.trainings a:last-child {
    display: block;
    background-color: var(--lgray);
    background-image: url('../svg/more.svg');
    background-size: contain;
    background-size: 20px;
    background-repeat: no-repeat;
    text-decoration: none;
    text-align: left;
}


/* Mobile */
@media (max-width: 399.999px) {
    .trainings a:last-child {
        padding: 10px 20px;
        margin: auto -20px -20px -20px;
        background-position: right 20px center;
    }
}

/* Tablet & Desktop */
@media (min-width: 400px) {
    .trainings a:last-child {
        padding: 10px 30px;
        margin: auto -30px -30px -30px;
        background-position: right 30px center;
    }
}

.trainings-list a {
    text-decoration: none;
    display: block;
    position: relative;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background-color: var(--white);
    padding: 30px 40px 30px 30px;
}

.trainings-list a:not(:last-child) {
    margin-bottom: 30px;
}

.trainings-list a h3,
.trainings-list a p {
    margin: 0;
}

.trainings-list a p {
    color: var(--dgray);
}

.trainings-list a:hover p {
    color: var(--d-blue);
}

.trainings-list a::after {
    content: '';
    display: block;
    background-color: var(--lgray);
    width: 40px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    background-image: url('../svg/more.svg');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
}