.acf-full-image-with-page-button .card {
    position: relative;
}

.acf-full-image-with-page-button:not(.by-2) .card .card-image {
    width: 100%;
}

.acf-full-image-with-page-button.by-2 .card .card-info,
.acf-full-image-with-page-button.by-2 .card .card-image {
    width: 50%;
    flex: 0 0 50%;
}

.acf-full-image-with-page-button.by-2 .card .card-info {
    background-color: #273D6E;
}

.acf-full-image-with-page-button.by-2 .card .card-info .tst-info {
    padding: 25px 50px;
    text-align: left;
    position: relative;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.acf-full-image-with-page-button.by-2 .card .card-info .tst-info .sub-title {
    font-size: 22px;
    color: #fff;
    margin-top: 50px;
    line-height: 1.2;
}

.acf-full-image-with-page-button.by-2 .card .card-info .tst-info .title {
    padding-bottom: 0;
    font-size: 40px;
    line-height: 1.2;
    font-family: 'cf_asty_st_extrabold', sans-serif;
    color: #fff;
}

.acf-full-image-with-page-button.by-2 .card {
    display: flex;
    flex-direction: row-reverse;
}

/* .acf-full-image-with-page-button .card .card-info {
    position: absolute;
    bottom: 62px;
    left: 0;
    width: 100%;
} */

.acf-full-image-with-page-button .card .card-info .btn {
    padding: 15px 31px;
    background-color: #12356C;
    display: inline-flex;
    align-items: center;
    position: absolute;
    bottom: 62px;
    left: 50%;
    transform: translateX(-50%);
}

.acf-full-image-with-page-button .card .card-info .btn .text {
    font-size: 18px;
    line-height: 17px;
    color: #00DED5;
    letter-spacing: -.18px;
}

.acf-full-image-with-page-button:not(.by-2) .card .card-image {
    border: 1px solid #1A3668;
}

.acf-full-image-with-page-button.by-2 .card {
    border: 1px solid #1A3668;
}

.acf-full-image-with-page-button.by-2 .card .card-image {
    margin: 20px 0;
}

.acf-full-image-with-page-button .card .card-info .btn img {
    width: 24px;
    height: 24px;
    transform: rotate(-90deg);
    flex: 0 0 24px;
    margin-left: 36px;
}

@media screen and (max-width: 1520px) {
    .acf-full-image-with-page-button .card .card-info .btn .text {
        font-size: 16px;
        line-height: 1;
        letter-spacing: -.17px;
    }  
    
    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .title {
        font-size: 35px;
        line-height: 1.3;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .sub-title {
        font-size: 20px;
        margin-top: 40px;
        line-height: 1.2;
    } 
}

@media screen and (max-width: 1280px) {
    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .title {
        font-size: 28px;
        line-height: 1.4;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .sub-title {
        font-size: 18px;
        margin-top: 30px;
        line-height: 1.2;
    }

    .acf-full-image-with-page-button .card .card-info .btn {
        padding: 15px;
        bottom: 36px;
    }

    .acf-full-image-with-page-button .card .card-info .btn .text {
        font-size: 15px;
    }

    .acf-full-image-with-page-button .card .card-info .btn img {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        margin-left: 24px;
    } 
}

@media screen and (max-width: 920px) {
    .acf-full-image-with-page-button.by-2 .card .card-image {
        --aspect-ratio: 1 !important;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info {
        padding: 25px;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .title {
        font-size: 20px;
        line-height: 1.3;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .sub-title {
        font-size: 15px;
        margin-top: 22px;
        line-height: 1.2;
    }

    .acf-full-image-with-page-button .card .card-info .btn {
        bottom: -96px;
    }

    .acf-full-image-with-page-button .card .card-info .btn .text {
        font-size: 18px;
        line-height: 20px;
    }

    .acf-full-image-with-page-button .card .card-info .btn img {
        display: none;
    }

    .acf-full-image-with-page-button {
        margin-bottom: 100px;
    } 
}

@media screen and (max-width: 640px) {
    .acf-full-image-with-page-button .card .card-info .btn {
        bottom: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
    }
    
    .acf-full-image-with-page-button {
        margin-bottom: 126px;
    }
}

@media screen and (max-width: 520px) {
    .acf-full-image-with-page-button .card .card-info .btn {
        bottom: -130px;
    }

    .page-sustainability .acf-full-image-with-page-button .card .card-info .btn,
    .page-viosimi-anaptyxi-2 .acf-full-image-with-page-button .card .card-info .btn {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
        opacity: 0;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info {
        padding: 15px;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .title {
        font-size: 17px;
        line-height: 1.3;
    }

    .acf-full-image-with-page-button.by-2 .card .card-info .tst-info .sub-title {
        font-size: 13px;
        margin-top: 15px;
        line-height: 1.2;
    } 
}



@media screen and (max-width: 640px){
   .infrastructure-last-block.acf-full-image-with-page-button .card .card-info .btn{
        bottom: 0!important;
        margin-top: 20px;
        position: relative;
    } 
}