/* case study slider - Homepage */
.case-study-slider .case-slide {
    /* padding: 20px; */
    text-align: center;
    margin-bottom: 30px;
}

.case-study-slider .slick-slide {
    margin: 0 40px;
}

.case-study-slider .slick-list {
    margin: 0 -40px;
}

.case-slide .case-thumb img {
    width: 100%;
    border-radius: 10px;
}

.case-slide h3 {
    color: #000;
    font-family: "Poppins", Sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.7rem;
}

.case-slide .case-content {
    text-align: left;
    color: #000;
    font-family: "Poppins", Sans-serif;
    font-size: 1.1rem;
    line-height: 1.7rem;
    font-weight: 400;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-tags .case-tag {
    text-align: center;
    color: #000;
    font-family: "Poppins", Sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7rem;
    background: #F2F2F2;
    padding: 10px 15px;
    border-radius: 20px;
}

.case-tags {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    /* width: 40%; */
    flex-wrap: wrap;
}

.case-thumb {
    position: relative;
    overflow: hidden;
}

.case-study-title-desc {
    text-align: left;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: space-between;
    padding-top: 20px;
}

.case-study-slider .slick-dots li button:before {
    font-size: 10px;
}

.case-arrow-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.case-arrow-icon:hover {
    transform: scale(1.2);
}

/* case-study arrow icon animation */
.case-slide .case-arrow-icon {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-slide .case-arrow-icon svg {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center center;
    transform: translate(0, 0) scale(1) rotate(0);
    opacity: 1;
}

.case-slide:hover .case-arrow-icon svg {
    transform: translate(20px, -20px) scale(0.5) rotate(-45deg);
    opacity: 0;
    transition-delay: 0s;
}

.case-slide .case-arrow-icon::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14' fill='none'%3E%3Cpath d='M1.45111 12.4011L9.46065 1.73103M10.6027 8.94855L9.55574 1.60454L2.20995 2.63888' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    pointer-events: none;
    font-weight: 600;
    z-index: 1;
    opacity: 0;
    transform: translate(-10px, 10px) scale(0.8);
    transition:
        opacity 0.2s ease 0s,
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s;
}

.case-slide:hover .case-arrow-icon::after {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    transition-delay: 0.2s, 0.2s;
}

.case-slide:hover .case-arrow-icon {
    background-color: #5A34C0 !important;
    transition: transform 0.1s ease;
}

/*  */
/*  */
@media (max-width: 767px) {
    .case-study-slider .slick-slide,
    .case-study-slider .slick-list {
        margin: 0 !important;
    }

    /* .case-study-slider .slick-list {
        margin: 0 -30px;
    } */

    .case-slide h3 {
        font-size: 1.1rem !important;
        line-height: 1.2rem !important;
    }

    .case-slide .case-content,
    .case-tags .case-tag {
        font-size: 0.9rem !important;
        line-height: 1.5rem !important;
    }

    .case-study-content {
        gap: 5px;
    }
}

@media (max-width: 1024px) {

    .case-study-slider .slick-slide {
        margin: 0 20px;
    }

    .case-study-slider .slick-list {
        margin: 0 -20px;
    }

    /* case study slider */
    .case-study-content {
        flex-direction: column;
    }

    .case-tags {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .case-slide h3 {
        font-size: 1.2rem;
        line-height: 1.3rem;
    }

    .case-slide .case-content,
    .case-tags .case-tag {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}