.CaseStudiesIntro__title {
    font-size: 53px;
    font-weight: normal !important;
    max-width: 500px;
    text-align: center;
    width: 100%;
}

.CaseStudiesIntro {
    min-height: 84vh;
    background: radial-gradient(140% 107.13% at 50% 10%, #0000 37.41%, #FF8534 69.27%, #f6f5f3 100%);
    border-bottom-left-radius: 42px;
    border-bottom-right-radius: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 8vh;
}

@media (max-width:768px) {
    .CaseStudiesIntro {
        min-height: 50vh;
    }

    .elementor-widget-case-studies-intro-section {
        margin-bottom: 75px !important;
    }
}

.CaseStudiesIntro__wrapper {
    max-width: 69%;
    margin: 0 auto;
    position: relative;
    border-radius: 35px;
    box-shadow: #0000001f 0px 5px 8px 3px;
    overflow: hidden;
    padding: 13px 15px;
    border: 1px solid #eee;
    background: #ffffff38;
    backdrop-filter: blur(40px);
    transition: 0.5s all cubic-bezier(0.165, 0.84, 0.44, 1);

    & video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    & img {
        position: relative;
        z-index: 2;
    }

    & img,
    & video {
        border-radius: 23px;
    }
}


@media (max-width:768px) {
    .CaseStudiesIntro__wrapper {
        padding: 8px 10px;
        border-radius: 25px;

        & img,
        & video {
            border-radius: 18px;
        }

    }
}

@media (max-width:1540px) {
    .CaseStudiesIntro__wrapper {
        max-width: 80%;
    }
}

@media (max-width:768px) {
    .CaseStudiesIntro__wrapper {
        max-width: 95%;
    }
}

.CaseStudiesIntro__content {
    display: flex;
    margin-top: 65px;
    text-align: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.CaseStudiesIntro__playbutton {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: 80px;
    width: 80px;
    border-radius: 1000px;
    background-color: rgba(245, 245, 245, 0.377);
    backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform, border-radius;
    transition: 0.3s all cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;

    &:hover {
        transform: translateX(-50%) translateY(-50%) scale(1.05);
    }

    & svg {
        width: 65%;
        height: auto;
    }
}

@media (max-width:768px) {
    .CaseStudiesIntro__playbutton {
        height: 60px;
        width: 60px;
    }
}

.prevContainer.playing {

    & .CaseStudiesIntroDesktop__image,
    & .CaseStudiesIntroMob__image {
        opacity: 0;
        visibility: hidden;
    }

    & .CaseStudiesIntro__playbutton {
        transform: translateX(-50%) translateY(-50%) scale(0);

    }
}

.CaseStudiesIntro__innerWrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 23px;
}

.CaseStudiesIntro__previews {
    margin-bottom: -118px;
}

@media (max-width:768px) {
    .CaseStudiesIntro__previews {
        margin-bottom: -50px;
    }
}

.CaseStudiesIntro__mobile--inner {
    position: absolute;
    z-index: 5;
    top: 0;
    width: fit-content;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s all ease;

    & img {
        height: 99%;
        width: auto;
    }
}

@media (max-width:768px) {
    .CaseStudiesIntro__mobile--inner {

        & img {
            height: auto;
            width: 100%;
        }
    }
}

.mobilePrevActive {
    & .CaseStudiesIntro__mobile--inner {
        opacity: 1;
        visibility: visible;
    }

    & .CaseStudiesIntro__desktop--inner {
        opacity: 0;
        visibility: hidden;
    }
}

.CaseStudiesIntro--overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 30;
    inset: 0;
    backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transition: 0.4s all ease;
    border-radius: 23px;

    &.active {
        backdrop-filter: blur(0px);
        opacity: 1;
        visibility: visible;
    }
}

/* Toggle */
.toggle-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 8px;
    position: relative;
    width: fit-content;
    margin: 10px auto;
}

.toggle-slider {
    position: absolute;
    background: #f0f0f0;
    border-radius: 21px;
    transition: all 0.3s ease;
    z-index: 0;
    height: 44px;
    width: 64px;
    left: 6px;
}

.toggle-slider.mobile {
    left: calc(100% - 70px);
}

.toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 21px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 1;
}

.toggle-option:hover {
    opacity: 0.7;
}

.icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon {
    stroke: #666;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.toggle-option.active .desktop-icon {
    stroke: #ff6b35;
}

.mobile-icon {
    stroke: #666;
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.toggle-option.active .mobile-icon {
    stroke: #ff6b35;
}

.label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    width: 70px;
    text-align: center;
}