.case-study-banner {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    height: 600px;
}

.case-study-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-banner .case-details {
    position: absolute;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    width: 350px;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
}

.case-study-banner .case-details div {
    display: flex;
    flex-direction: column;
}

.case-study-banner .case-details span.Heading {
    font-size: 14px;
    opacity: 0.8;
}

.col-lg-6.col-12.career-about-text p {
    font-size: 24px;
    color: #000;
    margin-bottom: 20px;
}

.one-line {
    position: relative;
}

.text-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.text-block img {
    margin-top: 20px;
    display: block;
    text-align: center;
    width: 100px;
    margin-bottom: 20px;
}

.text-block h2 {
    color: #fff;
    font-style: italic;
    font-weight: 600;
    line-height: 60px;
    margin-bottom: 20px;
}

.case-study-banner .case-details span.subheading {
    font-size: 14px;
    font-weight: 600;
}

.text-block span {
    font-size: 16px;
    font-weight: 400;
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    width: calc(100vw - 40px);
    /* account for padding */
    box-sizing: border-box;
}

.slider img {
    width: 70%;
    height: auto;
}

.one-line.case-study-one {
    padding: 40px 0px;
}


@media (max-width: 1200px) {}

@media (max-width: 992px) {
    .achievement-wrapper.style-2.case-study-number {
        padding: 40px 0px;
    }

    .case-study-about.career-about-section.section-padding {
        padding: 40px 0px;
    }

    .case-study-challenge.career-about-section.section-padding {
        padding: 40px 0px;
    }

    .text-block {
        width: 100%;
    }

    .text-block h2 {
        line-height: 44px;
    }

    .case-study-challenge.career-about-section.section-padding .row.about-main-career {
        row-gap: 40px;
    }

    .case-study-about.career-about-section.section-padding h2.wow.fadeInUp {
        margin-bottom: 20px;
    }
    .case-review.one-line {
        height: 500px;
        display: inline-block;
        width: 100%;
        overflow: hidden;
    }
     .case-review.one-line img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
    .case-review.one-line .text-block img {
        width: 60px;
        height: auto;
    }
}

@media (max-width: 767px) {
    .case-study-banner .case-details {
        left: 50%;
    }

    .text-block h2 {
        line-height: 30px;
        font-size: 18px;
        margin-bottom: 10px;
    }

    .text-block {
        width: 100%;
    }

    .one-line.case-study-one p {
        font-size: 14px;
    }

    .one-line.case-study-one img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
    .case-review.one-line {
        height: 500px;
        display: inline-block;
        width: 100%;
        overflow: hidden;
    }
     .case-review.one-line img {
        width: 100%;
        height: 100% !important;
        object-fit: cover;
    }
    .case-review.one-line .text-block img {
        width: 60px;
        height: auto;
    }

    .one-line.case-study-one {
        display: inline-block;
        width: 100%;
        overflow: hidden;
        height: 350px;
    }
}

@media (max-width: 600px) {
    .case-study-banner {
        height: 500px;
    }
    .case-study-challenge.career-about-section.section-padding {
        padding: 20px 0px;
    }
    .achievement-wrapper.style-2.case-study-number {
        padding: 20px 0px;
    }
    .case-study-about.career-about-section.section-padding {
        padding: 20px 0px;
    }
    .slider.case-slider {
        width: 100%;
    }
    .case-strategy.career-about-section.section-padding h2.wow.fadeInUp {
        margin-bottom: 20px;
    }
}