.cards-stories .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cards-stories .cards .card {
    padding: 30px 30px 25px;
    border-radius: 4px;
    border: 2px solid rgba(112, 184, 255, 0.5);
    border-bottom: 4px solid #0066cc;
    overflow: visible;
    position: relative;
    background-color: transparent;
}

.cards-stories .card a {
    color: #0a376d;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards-stories .card .card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-grow: 1;
    align-items: flex-start;
}

.cards-stories .card h4 {
    color: #0a376d;
    font-size: 20px;
    line-height: 136%;
    margin-bottom: 106px;
}

.cards-stories .card .card-logo {
    margin-top: auto;
}

.cards-stories .card .card-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(14%) sepia(39%) saturate(2639%)
        hue-rotate(189deg) brightness(98%) contrast(98%);
}

.cards-stories .card .card-link {
    background-color: #0066cc;
    color: #fff;
    font-weight: 500;
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -2px;
    padding: 0px 30px;
    height: 2px;
    transition:
        height 0.3s ease,
        padding 0.3s ease,
        opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    opacity: 0;
}

.cards-stories .card .card-link::after {
    content: "";
    background-image: url("white-arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 12px;
    height: 12px;
    display: inline-block;
}

.cards-stories .card a:hover .card-link {
    padding: 85px 30px 25px;
    opacity: 1;
    z-index: 2;
    height: auto;
}

/* Mobile responsive - horizontal scroll/swipe layout */
@media screen and (max-width: 859px) {
    .cards-stories {
        padding-left: 0px;
        padding-right: 0px;
    }
    .cards-stories .cards {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .cards-stories .cards .card {
        width: 300px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .cards-stories .cards .card:first-child {
        margin-left: 20px;
    }

    .cards-stories .cards .card:last-child {
        margin-right: 20px;
    }

    .cards-stories .card h4 {
        margin-bottom: 30px;
    }

    .cards-stories .card .card-logo {
        margin-bottom: 60px;
    }

    .cards-stories .card .card-link {
        padding: 20px 30px;
        opacity: 1;
        z-index: 2;
        height: 60px;
        position: absolute;
        left: -2px;
        right: -2px;
        bottom: -2px;
    }

    .cards-stories .card a:hover .card-link {
        padding: 20px 30px;
        height: 60px;
    }
}
