.projects-carousel {
    position: relative;
    z-index: 1;
    color: #7F7F7F;
}

.projects-carousel__top-content {
    padding-bottom: 15px;
}

.projects-carousel-item {
    margin: 10px 10px;
}

.project-card {
    width: 100%;
    height: 347px;
    background: transparent;
    border: none;
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.project-card__image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.project-card__info {
    position: relative;
    width: 100%;
    padding: 20px 58px 20px 20px;
    z-index: 1;
}

/* .project-card__info::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px);
    --webkit-backdrop-filter: blur(20px);
    -moz-filter: blur(20px);
    -o-filter: blur(20px);
    -ms-filter: blur(20px); 
    filter: brightness(88%);
    z-index: -1;
} */

/* .project-card__info::before {
    background-color: rgb(0 0 0 / 16%);
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 20px;
} */

.project-card {
    position: relative;

}
.project-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
   
}
.project-card__category {
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.project-card__category li {
    margin: 0;
    padding: 0;
}
.project-card__info__top  a {
    color: var( --white );
    text-decoration: underline;
}
.project-card__category li::before {
    display: none;
}

.project-card__category li a {
    margin: 0 0 0;
    padding: 5px 22px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    line-height: 1.2em;
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    backdrop-filter: blur(20px);
}
.image-carousel-container .projects-carousel-item {
    background: transparent;
} 

.project-card__info h3 {
    margin: 0 0 0;
    padding: 0 0 0;
    font-size: 18px;
    line-height: 1.33em;
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.project-card__link-arrow {
    position: absolute;
    right: 22px;
    top: 24px;
    font-size: 21px;
    font-weight: 600;
    color: #FFFFFF;
}

.projects-carousel__slider-block .projects-carousel-item {
    display: block;
    padding: 0 16px;
}

.projects-carousel__btn {
    text-align: right;
    margin-top: 25px;
}

.project-card__link {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    padding: 11px 72px 11px 45px;
    background: transparent;
    border-radius: 0;
    font-size: 18px;
    color: #FFFFFF;
    text-transform: uppercase;
    border: 1px solid #FFFFFF;
    border-radius: 50px;
    position: relative;
    display: inline-block;
    margin-top: auto;

    transition: background 0.25s ease-in-out,
                color 0.25s ease-in-out,
                border 0.25s ease-in-out;
}

.project-card__link::before {
    content: "\e904";
    position: absolute;
    right: 33px;
    top: 50%;
    font-family: 'trc-icon';
    font-weight: normal;
    letter-spacing: 0em;
    font-size: 13px;
    transform: translate(0, -50%);
}

.market-card-item {
    margin: 5px 0;
}

.market-card-item .project-card__info h3 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.market-card-item .project-card__info p {
    min-height: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;

    display: block;
}

.js-image-carousel-slider .slick-arrow {
    margin-top: 0;
    transform: translate(0, -50%);
    width: 43px;
    height: 43px;
    border: 1px solid var(--purple);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var( --white );
    bottom: -60px;

    @media( min-width: 768px ) {
        bottom: -22px;
        top: 50%;
    }

    &:hover {
        background: var(--purple)!important;
    }
}

.js-image-carousel-slider .slick-next {
    right: 40%;

    @media( min-width: 768px ) {
        right: 20px;
    }

    &:hover {
        &::before {
            color: var(--white);
        }
    }
}

.js-image-carousel-slider .slick-prev {
    left: 40%;

    @media( min-width: 768px ) {
        left: 20px;
    }

    &:hover {
        &::before {
            color: var(--white);
        }
    }
}

.js-image-carousel-slider .slick-arrow::before {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 17px;
    padding: 0 5px;
    font-weight: 600;
    color: var(--purple);
}

.js-image-carousel-slider .project-card__info__top  {
    & p {
        color: var(--white);
    }
}

@media( min-width: 768px ) {
    .projects-carousel__top-content {
        padding-bottom: 20px;
        max-width: 548px;
    }

    .js-projects-carousel-slider {
        display: flex;
        flex-wrap: wrap;
        margin: 0 -16px;
    }

    .projects-carousel-item {
        width: 50%;
        padding: 0 16px;
        margin: 12px 0;
    }

    .project-card {
        width: 100%;
        height: 347px;
    }
    
    .project-card__image {
        position: relative;
    }
    
    .project-card__info {
        padding: 18px 25px 20px 16px;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        min-height: 200px;
    }

    .project-card__link-arrow {
        right: 13px;
        top: auto;
        bottom: 20px;

        & i {
            font-size: 15px;
        }
    }
    
    .projects-carousel__btn {
        text-align: right;
        margin-top: 25px;
    }

    .market-card-list .projects-carousel-item {
        width: auto;
    }

    .market-card-item {
        margin: 10px 0;
    }
}


@media( min-width: 1200px ) {
    .js-image-carousel-slider[data-stack-on-desktop="1"] {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        margin: -15px;
    }

    .js-image-carousel-slider[data-stack-on-desktop="1"] .fx-slide {
        display: block;
        flex: 0 0 auto;
        width: calc(33.33% - 30px);
    }

    .projects-carousel__top-content {
        padding-bottom: 50px;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
    }

    .projects-carousel__top-content__text {
        max-width: 1184px;
    }

    .projects-carousel__top-content__text p {
        max-width: 677px;
    }

    .js-projects-carousel-slider {
        display: block;
        margin: 0 -16px;
        padding-bottom: 70px;
    }

    .projects-carousel-item {
        width: 100%;
        padding: 0 16px;
        margin: 0 0;
    }

    .project-card {
        height: 551px;
        border-radius: 20px;
    }

    .project-card__info {
        padding: 30px 25px 35px 27px;
        min-height: auto;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
        border-radius: 20px;
    }

    .project-card__info::after {
        border-radius: 20px;
    }

    .project-card__info__top {
        padding-bottom: 22px;
        min-height: 298px;
    }

    .project-card__info__top.has-no-content {
        min-height: auto;
    }

    .project-card:hover .project-card__link,
    .projects-carousel-icon-item:hover .project-card__link {
        background: var( --lime );
        color: var( --black );
        border: 1px solid var( --lime );
    }

    .project-card__category {
        margin: 0 0 24px;
    }

    .project-card__category li a {
        padding: 6px 24px;
    }

    .project-card__category li a:hover {
        background: var( --lime );
        color: var( --black );
        border-color: var( --lime );
    }

    .project-card__info h3 {
        margin-bottom: 12px;
        font-size: 22px;
        font-weight: 500;
        min-height: 57px;
    }

    .project-card__info p {
        color: rgb(255 255 255 / 79%);
        min-height: 141px;
    }

    .projects-carousel__btn {
        text-align: right;
        margin-top: 25px;
    }

    .projects-carousel__slider-block .slick-prev {
        left: 6px;
        right: auto;
        margin-left: 0;
    }

    .projects-carousel__slider-block .slick-next {
        right: 6px;
        margin-right: 0px;
    }

    .market-card-item .project-card__info h3 {
        letter-spacing: 0.185em;
        font-size: 28px;
        min-height: unset;
    }

    .market-card-item .project-card__info p {
        min-height: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;  
        overflow: hidden;
    }

    .market-card-item .project-card__info--no-excerpt .project-card__info__top {
        min-height: auto;
    }

    .market-card-item {
        margin: 13px 0;
    }

    .market.service-block .js-tab-slider-for .office-search-top-content {
        margin-bottom: 30px;
    }

    .market .project-card__info {
        padding: 30px 29px 35px 27px;
        height: 430px;
    }

    .market .tab-slider-for-item--inner .project-card__info {
        min-height: 340px;
    }

    .market-card-item .project-card__info p.project-card__description {
        max-height: 120px;
        overflow: scroll;
        flex: 2;
        -webkit-line-clamp: initial;
        padding-right: 20px;
    }
}

@media( min-width : 1800px ) {
    .projects-carousel .project-card__info {
        padding: 30px 29px 35px 27px;
        height: 250px;
        transition: all ease 300ms;

        .project-card__info__bottom {
            opacity: 0;
            position: absolute;
            bottom: 30px;
        }
    }

    .projects-carousel .project-card:hover .project-card__info {
        height: 400px;

        .project-card__info__bottom {
            opacity: 1;
        }
    }
}

.market-card-item .project-card__info__top {
    min-height: initial;
}




@media (min-width: 1200px) and  (max-width: 1600px) {
    .market-card-item {
        width: 33.33%;
        font-size: 24px;
    }
}

.js-image-carousel-slider {
    @media( min-width: 768px ) {
        padding-left: 60px;
        padding-right: 60px;
    }
}

.projects-carousel-icon-item {
    max-width: 100%;
    margin: 0 auto;
    background: #240250;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-carousel-icon-item.bg-white-fog {
    background-color: #EFEDF9;
}

.projects-carousel-icon-item.bg-white-fog :where(h1, h2, h3, h4, h5, h6, p, ul, ol, li) {
    color: var(--black);
}

.projects-carousel-icon-item.bg-white-fog :where(ul, ol) li:before {
    background-color: var(--black);
}

.projects-carousel-icon-item.bg-white-fog .project-icon {
    border-color: var(--black);
}

.projects-carousel-icon-item.bg-white-fog .project-icon img {
    filter: invert(1);
}

.projects-carousel-icon-item:hover {
    transform: translateY(-5px);
}

.project-card__icon {
    padding: 30px;
    text-align: center;
    height: 350px;
    display: flex;
    flex-direction: column;

    @media( min-width: 1200px ) {
        /* height: 690px; */
        height: 520px;
    }
}

.project-icon {
    width: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 13px;

    @media( min-width: 768px ) {
        padding: 20px;
        margin: 0 auto 40px;
    }

    @media( min-width : 1200px ) {
        min-height: 77px;
    }
}

.project-icon:hover {
    transform: scale(1.1);
}

.project-icon img {
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.project-content__description {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.project-content__description h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.project-content__description p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: "Inter", sans-serif;
}

.project-content__description ul li {
    color: #fff;
    font-family: "Inter", sans-serif;
}

.js-image-carousel-slider.icon-text {
    padding-bottom: 30px;

    @media( min-width: 768px ) {
        padding-bottom: 0;
    }
}

.icon-text .slick-slider {
    margin:0 -15px;
}
.icon-text .slick-slide {
    margin-right:15px;
    margin-left:15px;
}

.image-carousel-content {
    margin: 0 auto 60px;

    & p {
        width: 100%;
        max-width: 100%;
    }
}

.wysiwyg.bg-white + .image-carousel-container {
    margin-top: 0;
}

.image-carousel-container .project-content__description ul li {
    margin-bottom: 9px;
}
.project-card__info {
    height: calc(100% - 20px);
    width: calc(100% - 10px);
    transform: translateY(5px);
    overflow-y: auto;
    &::-webkit-scrollbar {
        width: 6px;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--lime);
        border-radius: 4px;
    }

    &::-webkit-scrollbar-track {
        background: var(--white);
        margin: 6px; 
        border-radius: 4px;
    }
}

.image-carousel-container .project-content__description {
    overflow-y: auto;
    padding-right: 10px;

    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--lime);
    }

    &::-webkit-scrollbar-track {
        background: var(--white);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .projects-carousel-icon-item {
        max-width: 100%;
    }

    .project-card__icon {
        padding: 20px;

    }

    .project-icon {
        width: 60px;
        height: 65px;
    }

    .project-icon img {
        width: 35px;
        height: 35px;
    }

    .project-content__description h3 {
        font-size: 20px;
    }

    .project-content__description p {
        font-size: 14px;
    }
   
}

@media( min-width: 768px ) { 
    .project-card__info {
        transform: translateY(-10px);
    }
}