.card-list__wrapper {
    position: relative;
}

.card-list__swiper {
    overflow: hidden;
}

.card-list__swiper .swiper-slide {
    height: auto;
}

.card-list__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #F8F8F8;
}

.card-list__image {
    width: 100%;
    aspect-ratio: 586 / 308;
    overflow: hidden;
}

.card-list__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

a.card-list__card:hover .card-list__image img {
    transform: scale(1.08);
}

.card-list__body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 40px 46px;
    flex: 1;
}

.card-list__subtitle {
    margin: 0 0 -12px;
    color: #3D3D3D;
}

.card-list__title {
    margin: 0;
}

a.card-list__card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-list__title {
    color: #166592;
}

.card-list__description {
    margin: 0;
    color: #3D3D3D;
}

.card-list__nav-wrapper {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.card-list__nav {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F0F0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #3D3D3D;
    transition: background-color 0.3s;
}

.card-list__nav:hover {
    background-color: #E0E0E0;
}

.card-list__nav:disabled,
.card-list__nav.is-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.section--gray .card-list__card,
.section--gray-pattern .card-list__card {
    background-color: #fff;
}

.section--gray .card-list__nav,
.section--gray-pattern .card-list__nav {
    background-color: #fff;
}

/* Tablet */
@media (max-width: 1280px) {
    .card-list__swiper {
        overflow: visible;
    }

    .card-list__swiper .swiper-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .card-list__card,
    a.card-list__card {
        flex-direction: row;
    }

    .card-list__image {
        width: 286px;
        min-width: 286px;
        aspect-ratio: unset;
        align-self: flex-start;
        padding: 30px;
        padding-right: 0;
    }

    .card-list__body {
        padding: 30px;
        flex: 1;
    }

    .card-list__nav-wrapper {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .card-list__swiper {
        overflow: hidden;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .card-list__swiper .swiper-wrapper {
        flex-direction: row;
        gap: 0;
    }

    .card-list__card,
    a.card-list__card {
        flex-direction: column;
    }

    .card-list__image {
        width: 100%;
        min-width: unset;
        aspect-ratio: 586 / 308;
        padding: 0;
    }

    .card-list__body {
        padding: 36px 43px;
    }

    .card-list__nav-wrapper {
        display: flex;
        gap: 52px;
        margin-top: 50px;
    }

    .card-list__nav {
        width: 64px;
        height: 64px;
    }
}
