@media (max-width: 1540px) {
    .fold2-title {
        flex-direction: column;
        align-items: start;
        gap: 0px;
        width: 500px;
        box-sizing: border-box;
        padding-left: calc(100% - 600px);
    }

    .fold2-content{
        padding: 0px;
        flex: 0 0 600px;
    }

    .fold2-image{
        flex: 0 0 calc(100% - 640px);
    }

    .fold2-image::after{
        right: 50px;
    }
}

@media(max-width: 1300px){
    .fold2 img{
        max-width: 100%;
    }
}

@media (max-width: 1200px) {
    .fold2-left {
    margin-left: 70px;
}

.fold2-image {
    gap: 80px;
}

.fold2-image::before {
    top: -57px;
    left: 0;
}

.fold2-image::after {
    display: none;
}

    .fold5-left {
        max-width: 420px;
    }
.big .case-study-item-image img {
    min-height: 420px;
}
    .fold5-left-row * {
        font-size: 16px;
    }

    .fold5-right {
        width: calc(100% - 540px);
    }
}

@media (max-width: 1120px) {
    .fold2-left p {
        left: -20px;
    }
}

@media (max-width: 1024px) {

    .fold1::before {
        height: 20%;
    }
    
    .fold1::after {
        height: 20%;
    }
    
    .fold2-right p {
        right: unset;
        font-size: 18px;
        left: 100px;
        bottom: 10px;
    }
    .fold1 {
        height: 640px;
    }
.fold5 .row-container {
    padding: 0px;
}
    .fold5-left {
        max-width: unset;
        width: 100%;
        text-align: center;
    }

    .fold5-left-item {
        width: 50%;
    }

    .fold5-left-item:first-child {
        text-align: right;
    }

    .fold5-left-items {
        gap: 20px;
    }

    .fold5-left-row {
        justify-content: center;
        gap: 40px;
    }

    .fold2-content {
        padding: 0px;
        flex: unset;
        margin-top: 60px;
        align-items: center;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .fold2-right picture >img {
        /* object-fit: contain; */
        width: 100%;
        height: 100% !important;
    }

    .fold2-left::after {
        width: 100px;
        height: 100px;
        bottom: -15%;
        right: 10%;
    }

    .fold2-left::before {
        width: 50px;
        height: 80px;
        top: -15%;
        left: 18%;
    }

    .fold2-right {
        top: 0%;
        max-width: 420px;
        left: 0%;
        height: auto;
        align-self: flex-end;
        width: 100%;
    }

    .fold2-right img {
        transform: rotate(8deg) translateY(-30px);
    }

    .fold2-left picture >img {
        /* width: 100% !important; */
        /* height: 100%; */
        /* object-fit: contain; */
        margin-top: 40px;
        transform: rotate(-8deg);
    }

    .fold2-left p {
        right: unset;
        left: 40px;
        font-size: 18px;
        bottom: 42%;
    }

    .fold2-image::before{
        top: 280px;
        width: 200px;
        height: 200px;
        left: 40px;
    }
    .fold2-left {
        width: 100%;
        right: 0;
        position: relative;
        bottom: 0;
        height: 280px;
        margin: 0;
        align-self: baseline;
        max-width: 420px;
    }

    .fold2-image {
        width: 100%;
        max-width: 100%;
        flex: unset;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 480px;
    }

    .fold2-image::after{
        display: block;
        top: 0px;
    }

    .fold2-title {
        padding: 0px 0px 20px 0px;
        text-align: center;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .fold2-inner {
        flex-direction: column;
        align-items: center;
        min-height: unset;
    }

    .case-studies-fold-title {
        flex-direction: column;
        align-items: start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .case-studies-fold {
        padding: 60px 0px;
    }
    .fold5-inner {
        padding: 600px 20px 60px !important;
        position: relative;
    }

    .fold5-right {
        top: 60px;
        height: 480px;
        transform: translateY(0px);
        flex-direction: column;
        width: 100%;
    }

    .fold5-right>div {
        flex: unset;
        height: 50%;
        width: 100%;
    }

    .fold5-right>div>div {
        height: 100%;
    }

    ul#fold5-splide-left-list li {
        padding: 0px;
        height: 100% !important;
        width: 360px !important;
    }

    .fold5-item-image img {
        object-fit: cover;
    }

    ul#fold5-splide-left-list li:nth-child(2n) .fold5-item {
        height: 90% !important;
    }

    .fold5-title {
        width: 100%;
        max-width: unset;
        text-align: center;
        justify-content: center;
    }
    .fold5-title > .title {
        font-size: 32px;
        line-height: 42px;
    }

    ul#fold5-splide-right-list li:nth-child(2n) .fold5-item {
        height: 80% !important;
    }

    ul#fold5-splide-right-list li {
        height: 100% !important;
        padding: 0px;
        width: 360px !important;
    }

    .fold5-item {
        width: 100% !important;
        margin: 0px 10px;
        height: 100%;
    }
        .case-study-item {
       display: flex;
       flex-direction: column;
       align-items: center;
       /* justify-content: center; */
       text-align: center;
    }
    .case-study-item-boxes {
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 840px) {
    .case-study-item {
        flex: 100%;
    }

    .big .case-study-item-image img {
        min-height: 240px;
    }

    ul#clients-splide-list li {
        flex: 0 0 calc(100% / 4);
    }
}

@media (max-width: 767px) {
    .fold5-item-content .subtitle {
        font-size: 18px;
        margin: 0px;
        line-height: 34px;
    }

    .fold5-item-content .readmore {
        font-size: 14px;
        margin-top: 10px;
    }
}

@media (max-width: 540px) {
    ul#clients-splide-list li {
        flex: 0 0 calc(100% / 3);
    }

    .fold5-left-separator {
        height: 1px;
        width: 100%;
        max-width: 320px;
    }

    .fold5-left-item {
        text-align: center !important;
        width: 100%;
    }

    ul#fold5-splide-left-list li {
        width: 240px !important;
    }
        ul#fold5-splide-right-list li {
        width: 240px !important;
    }
    
    .clients-fold-title {
        flex-direction: column;
        text-align: center;
    }

    .fold5-left-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        border-bottom: 1px solid var(--secondary-color1);
        padding-bottom: 20px;
    }
}

@media (max-width: 440px) {
    .fold2-left {
        max-width: 330px;
    }

    .fold2-content {
        margin-top: 20px;
    }

    .fold2-right p {
        display: none;
    }

    .fold2-image {
        width: 100%;
        margin: 0px 0px 40px;
    }

    .fold2-left p {
        right: -14%;
        display: none;
    }

    .fold2-left::before {
        top: 10%;
        left: 0%;
    }

    .fold2-left::after {
        right: 0%;
        bottom: 0%;
    }
}

@media (max-width: 420px) {
    ul#clients-splide-list li {
        flex: 0 0 calc(100% / 2);
    }
}