/* Related Case Studies Section Styles */
.case-studies--related {
    padding: 130px 0;
    background: #F6F6F6;
    overflow: hidden;
}

.case-studies__heading .case-studies__title {
    margin: 0;
    margin-bottom: 50px;
    letter-spacing: 1.2px;
}

.case-studies__container {
    max-width: 1252px;
    width: 100%;
    margin: 0 auto;
}

/* Swiper Container */
.related-case-studies-swiper {
    overflow: visible;
}

.related-case-studies-swiper .swiper-slide {
    border-width: 0px 0px 5px 5px;
    border-style: solid;
    border-color: #DBDBDB;
    border-radius: 0px 0px 0px 30px;
    padding: 50px 50px 54px 45px;
    width: 976px;
}

.related-case-studies-swiper .swiper-slide .case-studies__content {
    padding-bottom: 0;
}

.case-studies__content .button-wrapper {
    margin-bottom: 0;
}

.related-case-studies-swiper .swiper-slide .case-studies__card {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 45px;
}

.related-case-studies-swiper .swiper-slide .case-studies__card img {
    width: 100%;
}

.related-case-studies-swiper .case-studies__quote-mark:before {
    content: "";
    display: block;
    width: 36px;
    height: 27px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='27' viewBox='0 0 36 27' fill='none'%3E%3Cpath d='M8.35412 12.4565V14.7356H15.5939V27H0V14.7356L0.000376906 12.4565C0.000376906 7.82833 1.69344 4.39173 5.03283 2.24151C7.34289 0.754138 10.2669 0 13.7239 0V6.56995C11.8473 6.56995 8.35412 6.56995 8.35412 12.4565ZM34.1302 6.56995V0C30.6734 0 27.7493 0.754138 25.4393 2.24151C22.0999 4.39173 20.4066 7.82848 20.4066 12.4565V14.7356V27H36V14.7356H28.7602V12.4565C28.7604 6.56995 32.2535 6.56995 34.1302 6.56995Z' fill='%23004789'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.related-case-studies-swiper .swiper-slide .case-studies__card .case-studies__image-wrap img {
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    height: 300px;
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.related-case-studies-swiper .swiper-slide .case-studies__card:hover .case-studies__image-wrap img {
    transform: scale(1.1);
}

.related-case-studies-swiper .swiper-slide .case-studies__card .case-studies__image-wrap {
    border-radius: 20px;
    overflow: hidden;
    display: block;
}

.related-case-studies-swiper .swiper-slide .case-studies__media {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    position: relative;
    top: 38px;
}

.related-case-studies-swiper .swiper-slide-active,
.related-case-studies-swiper .swiper-slide-next {
    opacity: 1;
}

.case-studies__quote-mark {
    margin-bottom: 40px;
}

.related-case-studies-swiper .swiper-slide .case-studies__tag {
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.related-case-studies-swiper .swiper-slide .case-studies__brand {
    margin-top: 31px;
    margin-bottom: 50px;
}

.case-studies__person .case-studies__person-company {
    font-size: 17px;
    font-weight: 400;
    line-height: calc(17px * 1.4);
}

.intro-tabs__arrow.swiper-button-disabled {
    opacity: .3;
}

/* Custom Controls */
.related-case-studies__controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 30px;
}

.intro-tabs__counter span {
    color: var(--color-text);
}

.related-control-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-text);
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.related-control-btn:hover {
    background: var(--color-text);
    color: #fff;
}

.related-control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.related-control-btn.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.related-pagination {
    font-size: 18px;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

.related-pagination span {
    display: inline-block;
}

.related-case-studies-swiper .case-studies__person .case-studies__person-name {
    font-weight: 600;
}


@media only screen and (max-width: 1280px) {
    .related-case-studies-swiper .swiper-slide {
        width: 93%;
    }
}

@media only screen and (max-width: 991px) {
    .related-case-studies-swiper .swiper-slide {
        padding: 34px 30px 30px 30px;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__card {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 30px;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__media {
        top: 0;
        width: calc(100% + 27px);
    }
}

@media only screen and (max-width: 767.98px) {

    .case-studies__person .case-studies__person-company,
    .case-studies__person .case-studies__person-name,
    .related-case-studies-swiper .swiper-slide .case-studies__content .case-studies__text {
        font-size: 15px;
        line-height: 22px;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__tag {
        font-size: 16px;
        line-height: 23px;
    }

    .case-studies__heading .case-studies__title {
        margin-bottom: 30px;
        letter-spacing: 0;
        font-size: 24px;
        line-height: 34px;
    }

    .case-studies--related {
        padding-top: 64px;
        padding-bottom: 55px;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__card .case-studies__image-wrap img {
        height: 217px;
    }

    .related-case-studies__controls {
        margin-top: 35px;
    }

    .intro-tabs__counter span {
        font-size: 16px;
    }
}

@media only screen and (max-width: 660px) {
    .related-case-studies-swiper .swiper-slide {
        width: 100%;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__brand {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 16px;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: start;
    }

    .related-case-studies-swiper .case-studies__brand .case-studies__brand-sep {
        height: 1px;
        width: 39px;
    }

    .related-case-studies-swiper .swiper-slide .case-studies__brand {
        margin-top: 23px;
        margin-bottom: 27px;
    }

    .related-case-studies-swiper .case-studies__quote-mark {
        margin-bottom: 20px;
    }

    .case-studies__person .case-studies__person-company {
        margin-top: 2px;
    }

}