.case-study {
    margin: 7vw 0
}

.case-study>img {
    width: max(min(50vh, 90vw), 45vw)
}

.case-study .menu,
.case-study>img {
    display: none;
    left: 50%;
    position: relative;
    transform: translate(-50%);
    z-index: 2
}

.case-study .menu {
    height: auto;
    top: 0;
    width: 50vw
}

.case-study .menu ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    margin-top: 2vw;
    padding: 0
}

.case-study .menu li {
    color: #fff;
    display: inline;
    font-family: Metropolis-Bold;
    font-size: 1rem;
    margin: 0 2vw;
    white-space: nowrap
}

@media screen and (max-width:800px) {
    .case-study .menu {
        left: 50%;
        transform: translate(-50%);
        width: 90vw
    }

    .case-study .menu ul {
        overflow: scroll
    }

    .case-study .menu li {
        font-size: min(max(1rem, calc(1rem + .01vw)), 1.75rem);
        margin: 0 5.5vw
    }
}

.case-study .menu li {
    cursor: pointer
}

.case-study .menu li.active {
    display: list-item;
    list-style-image: url(../images/list-style.webp)
}

.case-study .our-work {
    background-color: #fff;
    margin-top: 3vw;
    padding-bottom: 3vh;
    position: relative;
    z-index: 2
}

.case-study .our-work .work {
    margin: auto;
    width: 60%
}

.case-study .our-work .work div {
    background: linear-gradient(29deg, #FF7F32 24%, #FF4E00 75%);
    color: #fff;
    display: inline-block;
    font-family: Metropolis-Light;
    font-size: .8rem;
    left: 70%;
    padding: 1.5rem;
    position: relative;
    transform: translateY(-50%)
}

.case-study .our-work .work>a>img {
    height: auto;
    margin-top: 9vh;
    width: 100%
}

.case-study .our-work .work>h2,
.case-study .our-work .work>p {
    font-family: Metropolis-Light;
    line-height: 1.5rem;
    margin-top: 0
}

.case-study .our-work .work>h2 {
    font-size: 1em;
    font-weight: 400
}

.case-study .view-all {
    border: 1px solid #fff;
    border-radius: 50vw;
    display: inline-block;
    left: 50%;
    margin-bottom: 10vh;
    margin-top: 4vw;
    padding: 1.5rem 3rem;
    position: relative;
    text-align: center;
    transform: translate(-50%);
    z-index: 2
}

.case-study .view-all a {
    color: #fff;
    display: inline-block;
    font-family: Metropolis-Light\ ;
    font-size: min(max(.7rem, calc(.7rem + .01vw)), 1.75rem);
    font-weight: lighter;
    letter-spacing: min(max(.2rem, calc(.2rem + .01vw)), 1.75rem);
    text-align: center;
    text-decoration: none;
    white-space: nowrap
}

@media screen and (max-width:990px) {
    .case-study .our-work .work div {
        font-size: .6rem;
        left: 65%
    }
}

@media screen and (max-width:672px) {
    .case-study {
        margin-top: 15vh
    }

    .case-study .view-all {
        padding: 1rem 2rem
    }

    .case-study .our-work .work {
        width: 85%
    }

    .case-study .our-work .work div {
        font-size: .6rem;
        left: 55%
    }
}

@media screen and (max-width:300px) {
    .case-study .our-work .work {
        width: 90%
    }

    .case-study .our-work .work div {
        font-size: .6rem;
        left: 45%
    }
}


/********************************** 
/********************************** 
/********************************** 
//Testimonial css */
/********************************** 
/********************************** 
/* /**********************************  */

/* :root {
    --dark-blue: hsl(240, 38%, 20%);
    --grayish-blue: hsl(240, 18%, 77%);
} */

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    height: 100vh;
    overflow: hidden;

    background-color: #fff;
    background-image: url(../images/pattern-curve.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 75%;

    font-family: 'Inter', sans-serif;

    padding: 1rem 2rem;
} */

.testimonial-container {
    display: flex;
    flex-direction: column;

    height: 100vh;

    align-items: center;
    justify-content: center;
}

.t-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background-image: url(../images/pattern-bg1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    height: 100%;
    width: 100%;

    /* padding-top: 2rem;
    padding-bottom: 2rem; */
}

.image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-photo {
    animation: slideLeft 1s;

    display: none;
    width: 240px;
    border-radius: 5px;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.24);

    margin-top: 1.6rem;
}

.user-photo.active {
    display: block
}

.buttons{
    display: flex;
    background: #fff;
    border-radius: 50%;
    margin-top: -1.2rem;

    z-index: 1;
}

button {
    border: 0;
    outline: 0;
    background: #fff;
    width: 2.6rem;
    height: 2.5rem;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

button.previous img {
    width: 23.5%
}

button.next img {
    width: 25%
}

button.previous {
    border-radius: 50% 0 0 50%;
}

button.next {
    border-radius: 0 50% 50% 0;
}

.t-text {
    animation: slideRight 1s;

    display: none;
    flex-direction: column;
    align-items: center;

    height: 100%;
    width: 100%;
}

.t-text.active {
    display: flex;
}

.testimonial {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.3;

    background-image: url(../images/pattern-quotes.png);
    background-repeat: no-repeat;
    background-position: top 2vh center;
    background-size: 50px;

    color: hsl(240, 38%, 20%);

    padding-top: 2rem
}

.testimonial-container-footer {
    text-align: center;
}

.testimonial-container-footer p {
    font-weight: 700;
    font-size: 15px;
    color:hsl(240, 38%, 20%);

    margin-top: 1rem;
     margin: 0;
}

.testimonial-container-footer span {
    font-size: 15px;
    font-weight: 500;
    color:hsl(240, 18%, 77%);
    margin: 0;
}

/* Tablets */
@media (min-width: 768px) {
    /* body {
        padding: 0 2rem
    } */

    .testimonial-container {
        flex-direction: row-reverse;
    }

    .t-slider {
        width: 100%;

        background-size: contain;
    }

    .user-photo {
        animation: slideRight 1s;

        width: 80%;
        margin-top: 2rem
    }

    .t-text {
        animation: slideLeft 1s;

        align-items: flex-start;
        justify-content: center;

        width: 100%;

        padding-top: 0;

        position: relative;
        left: 9.5vw
    }

    .testimonial {
        text-align: left;
    }

    .testimonial-container-footer {
        text-align: left;
    }
}

/* Desktop */
@media (min-width: 1360px) {
    /* body {
        background-size: 50%; */
    /* } */

    .user-photo {
        width: 500px
    }

    .testimonial {
        font-size: 1.8rem;

        background-position: top left 15vh;
        background-size: 80px;
    }

    .testimonial-container-footer {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 2rem
    }

    .testimonial-container-footer p {
        font-size: 1.2rem;
        margin-top: 0
    }

    .testimonial-container-footer span {
        font-size: 1.2rem;
        margin-left: 12px;
    }

    .buttons {
        margin-right: 16rem;
    }
}

@media (min-width: 1440px) {
    /* body {
        background-size: 50%;
    } */

    .user-photo {
        width: 100%;
        margin-top: 3.2rem
    }

    .buttons {
        margin-top: -2rem;
        margin-right: 12rem
    }

    button {
        width: 4rem;
        height: 4rem;
    }

    .testimonial {
        font-size: 2.2rem;

        background-position: top left 11vh;
        background-size: 140px;

        padding-top: 5rem
    }

    .testimonial-container-footer {
        margin-top: 3rem;
    }

    .testimonial-container-footer p {
        font-size: 1.5rem;
        margin-right: 12px
    }

    .testimonial-container-footer span {
        font-size: 1.5rem;
    }
}

/* Animations */

@keyframes slideRight {
    from {
        transform: translateX(100vh);
    }

    to {
        transform: translateX(0)
    }
}

@keyframes slideLeft {
    from {
        transform: translateX(-100vh);
    }

    to {
        transform: translateX(0)
    }
}