.cards {
    position: relative;
    z-index: 3;
}

.cards--homepage {
    background: #F7F8F9;
}

.cards--homepage__pattern {
    position: relative;
    padding: 56px 0;
}

.cards__title {
    position: relative;
}

.cards__title h2 {
    position: relative;
    display: inline-block;
    padding: 0 20px;
    z-index: 1;
}

.cards__title::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 1px;
    background: #23345C;
    opacity: 0.25;
    left: -22px;
    top: 50%;
    transform: translate(0, -50%);
}

.cards__title::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 1px;
    background: #23345C;
    opacity: 0.25;
    right: -22px;
    top: 50%;
    transform: translate(0, -50%);
}


.cards__filter {
    padding-bottom: 20px;
}

.cards__selects-filter {
    padding-bottom: 30px;
    position: relative;
}

.cards__selects-filter label {
    padding-left: 0;
}

.cards__selects-filter::before {
    content: '';
    position: absolute;
    width: calc(100% + 44px);
    height: 1px;
    background: #23345C;
    opacity: 0.25;
    left: -22px;
    bottom: -75px;
}


.card-flex {
    margin: 0 -12px;
    padding: 42px 0 0 0;
}

.js-card.card-flex {
    margin: 0 -34px;
    padding-bottom: 78px;
}

.card-item {
    padding: 12px 12px 24px;
}

.card-flex .slick-track {
    display: flex !important;
}

.card-flex .slick-slide {
    height: inherit !important;
}

.card-flex .slick-slide div {
    height: 100%;
}

.card-flex .slick-slide .card div {
    height: auto;
}


.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    background: #fff;
    border: none;
    box-shadow: 6px 9px 12px rgba(0,0,0,0.25);
    border-radius: 22px;
    overflow: hidden;
}

.card__image {
    height: 178px !important;
}

.card__details {
    padding: 12px 40px 0 23px;
}


.card__date {
    color: #054174;
    font-family: "Exo 2", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.card__details h3 {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 129%;
}

.card__bottom {
    padding: 0 23px 39px;
}

.card__cta {
    position: relative;
    display: inline-block;
    font-family: "Exo 2", sans-serif;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #004885;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 10%;
    text-underline-offset: 24.5%;
}

.card__cta::after {
    content: '\e902';
    font-family: 'visionx-icon';
    position: absolute;
    top: 50%;
    right: -22px;
    transform: translate(0, -50%);
    font-size: 14px;
    color: #004885;
    font-weight: normal;
}

.cards-content {
    display: none;
}

.cards-content.active {
    display: block;
}

.cards__bg {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    object-fit: cover;
    object-position: right bottom;
    z-index: -1;
}

.cards__bottom {
    margin-top: 50px;
}

.cards__headings .cards__title:has(p){
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .cards__title::after,
    .cards__selects-filter::before,
    .cards__title::before {
        display: none;
    }

    .cards__title {
        z-index: 2;
    }

    .cards__title h2 {
        padding: 0 45px;
    }

    .cards__title h2::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        transform: translate(-50%, 0);
        width: 100%;
        height: 100%;
        background: #fff;
        opacity: 1;
        z-index: -1;
    }

    .bg-light-gray .cards__title h2::before {
        background: #f9fafa;
    }

    .bg-light-blue .cards__title h2::before {
        background: #F0F4F8;
    }

    .cards--homepage__pattern .cards__title h2::before {
        background: #f9fafa;
    }

    .cards__headings {
        position: relative;
        z-index: 1;
        margin-bottom: 25px;
    }

    .cards__headings::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100px;
        left: 0;
        bottom: 0;
        border-radius: 4px;
        border: 1px solid rgba(35, 52, 92, 0.25);
        z-index: -1;
    }

    .cards__filter {
        padding-bottom: 5px;
        padding-top: 15px;
    }

    .cards__selects-filter {
        padding-bottom: 30px;
        width: 407px;
        margin: 0 auto;
    }

    .cards__selects-filter label {
        padding-left: 0;
    }

    .cards__filter-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .cards__filter-buttons button {
        width: 33.33%;
        margin: 0;
        padding: 0 0 25px 0;
        background: none;
        border: none;
        color:#23345C;
        text-align: center;
        font-family: "Exo 2", sans-serif;
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 130%;
        letter-spacing: -0.2px;
        position: relative;
    }

    .cards__filter {
        padding-bottom: 0;
    }

    .cards__filter-buttons button.active {
        color: #041746;
        font-weight: 700;
    }

    .cards__filter-buttons button.active::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 5px;
        background: #004885;
        left: 0;
        bottom: -2px;
    }

    .cards__filter-buttons button.active::after {
        content: '';
        position: absolute;
        width: 14px;
        height: 12px;
        background: #004885;
        left: 50%;
        transform: translate(-50%, 0);
        bottom: -13px;
        clip-path: polygon(0 0, 50% 100%, 100% 0);
    }

    .js-card.card-flex {
        margin: 0 -64px;
        padding-top: 0;
    }

    .cards__bottom {
        margin-top: 38px;
    }

    .cards--homepage::before {
        content: '';
        position: absolute;
        width: 130px;
        height: 64px;
        top: 0;
        left: 0;
        background: #fff;
        clip-path: polygon(0 0, 0 100%, 100% 0);
    }

    .cards--homepage::after {
        content: '';
        position: absolute;
        width: 130px;
        height: 64px;
        top: 0;
        right: 0;
        background: #fff;
        clip-path: polygon(0 0, 100% 100%, 100% 0);
    }

}


@media (min-width: 1025px) {
    .card-flex .fx-slide {
        display: block;
    }

    .card-flex {
        padding-top: 27px;
    }

    .js-card.card-flex {
        margin: 0 -12px;
        padding-bottom: 0;
    }

    .cards__title h2 {
        min-width: 746px;
        margin: 0 auto 25px;
    }

    .cards__selects {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }

    .cards__selects-filter {
        padding: 0;
        margin: 0;
    }
}

@media (min-width: 1200px) {

    .cards--homepage__pattern {
        position: relative;
        padding: 75px 0 94px 0;
        margin-bottom: 62px;
    }

    .cards__filter {
        padding-top: 8px;
    }

    .cards__filter-buttons button {
        font-size: 26px;
        padding-bottom: 19px;
    }

    .cards__headings {
        margin-bottom: 40px;
    }

    .cards__headings::after {
        height: 110px;
    }

    .cards__title::before {
        width: 615px;
    }

    .cards__filter-buttons button.active::after {
        width: 29px;
    }

    .cards--homepage::before,
    .cards--homepage::after {
        width: 63px;
        height: 32px;
    }

    .cards--homepage__pattern::before {
        content: '';
        position: absolute;
        width: 63px;
        height: 32px;
        bottom: 0;
        left: 0;
        background: #fff;
        clip-path: polygon(0 0, 0 100%, 100% 100%);
    }

    .cards--homepage__pattern::after {
        content: '';
        position: absolute;
        width: 63px;
        height: 32px;
        bottom: 0;
        right: 0;
        background: #fff;
        clip-path: polygon(0 100%, 100% 100%, 100% 0);
    }

    .card__image {
        height: 198px !important;
    }

    .card__details {
        padding: 22px 44px 0 29px;
    }

    .card__details p {
        display: none;
    }

    .card {
        height: 428px;
    }

    .card__date {
        margin-bottom: 16px;
    }

    .card__details h3 {
        font-size: 25px;
        padding-right: 20px;
        margin-bottom: 16px;
        text-overflow: ellipsis;
        overflow: hidden;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        display: -webkit-box;
    }

    .card__bottom {
        padding: 0 29px 32px;
    }

    .card {
        position: relative;
    }

    .card:hover::after  {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: #004885;
        opacity: 0.85;
    }

    .card:hover .card__image {
        height: 428px !important;
    }

    .card:hover .card__details {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 68px;
        z-index: 2;
    }

    .card:hover .card__bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 2;
    }

    .card:hover .card__details p {
        display: block;
    }

    .card__details p {
        color: #FFFFFF;
    }

    .card:hover .card__details h3,
    .card:hover .card__date,
    .card:hover .card__cta,
    .card:hover .card__cta::after   {
        color: #fff;
    }
}

@media (min-width: 1367px) {

    .cards--homepage::before,
    .cards--homepage::after,
    .cards--homepage__pattern::before,
    .cards--homepage__pattern::after {
        width: calc(50% - 632px);
        height: 66px;
    }
}


@media (min-width: 768px) and (max-width: 1024px) {
    .cards-content .cards__selects{
        display: flex;
        gap: 50px;
        align-items: center;
    }

    .cards-content .cards__selects a.btn-primary{
        width: 50%;
    }
}
