.case-study {
    position: relative;
    padding: 68px 0 0;
    z-index: 1;
    color: #393E40;
}

.case-study::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: calc(100% - 20px);
    background: #F6F6F6; 
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
}

.case-study__content h2 {
    font-size: 18px;
    line-height: 1.33em;
    color: #000000;
    padding-bottom: 25px;
}

.case-study__content i {
    font-size: 42px;
    color: #37CE2E;
    font-weight: normal;
    line-height: 1em;
    margin-bottom: -3px;
    display: block;
}

.case-study__content h4 {
    margin: 0;
    padding: 0 0 10px;
    font-size: 16px;
    line-height: 1.51em;
    color: #000000;
    text-transform: uppercase;
    font-weight: 700;
}

.case-study-link {
    margin: 30px 0 0;
    padding: 0 32px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2em;
    color: #0A7F01;
    position: relative;
    border: none;
    display: flex;
    width: max-content;
    background: none;
}

.case-study-link:before {
    content: '\e903';
    font-family: 'hmj-tech';
    position: absolute;
    top: 50%;
    right: 0;
    font-size: 21px;
    font-weight: normal;
    transform: translate(0, -50%);
}

.case-study__image-col {
    width: 100%;
    height: 250px;
    padding-right: 8px;
    position: relative;
    margin-bottom: 32px;
}

.case-study__image-col:before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0px;
    width: 100%;
    height: 100%;
    background: #37CE2E;
    border-radius: 16px 0 20px 0;
    z-index: -1;
}

.case-study__image-col img {
    display: block;
    border-radius: 16px 0 16px 0;
}

.case-study__image-content__text {
    background: #292929;
    border-radius: 16px 0 16px 0;
    padding: 28px 24px;
    color: #FFFFFF;
}

.case-study__image-content__text-ellipsis {
    display: -webkit-box;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
	overflow: hidden;
	position: relative;
    -webkit-line-clamp: 10;
}

.js-case-study-slider {
    padding-bottom: 76px;
}

.case-study .slick-arrow {
    top: auto;
    bottom: 0;
    transform: none;
}

.case-study .slick-next {
    right: auto;
    left: 58px;
}

.case-study .slick-prev {
    left: 0;
}

@media( min-width: 768px ) {
    .case-study {
        padding: 64px 0 0;
    }
    
    .case-study::before {
        height: calc(100% - 20px);
        clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    }
    
    .case-study__content h2 {
        font-size: 24px;
        line-height: 1.29em;
        padding-bottom: 30px;
    }
    
    .case-study__content i {
        margin-bottom: -1px;
    }
    
    .case-study__content h4 {
        font-size: 18px;
        line-height: 1.33em;
    }

    .case-study__wrap {
        display: flex;
        flex-wrap: wrap;
    }

    .case-study__content {
        width: 50%;
        padding-right: 16px;
    }

    .case-study__image-content {
        width: 50%;
        padding-left: 16px;
    }

    .case-study__content p {
        margin-bottom: 25px;
    }
    
    .js-case-study-slider {
        padding-bottom: 38px;
    }
}

@media( min-width: 1200px ) {
    .case-study {
        padding: 100px 0 0;
    }
    
    .case-study::before {
        height: calc(100% + 35px);
        clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
    }
    
    .case-study__content h2 {
        font-size: 32px;
        line-height: 1.31em;
        padding-bottom: 28px;
    }
    
    .case-study__content i {
        margin-bottom: -1px;
    }
    
    .case-study__content h4 {
        font-size: 22px;
        line-height: 1.33em;
    }

    .case-study__content {
        width: 508px;
        padding-right: 0;
        margin-top: 30px;
    }

    .case-study__image-content {
        width: calc(100% - 508px);
        padding-left: 32px;
    }

    .case-study__content p {
        margin-bottom: 25px;
    }

    .case-study-link {
        margin: 0 0 0 28px;
        padding: 0 32px 0 0;
        font-size: 18px;
        display: inline-block;
        width: auto;
    }

    .case-study__image-col {
        width: calc(100% - 108px);
        height: 500px;
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .case-study__image-col:before {
        bottom: -16px;
        right: auto;
        left: 16px;
    }

    .case-study__image-content__text {
        padding: 60px 32px;
        max-width: 400px;
        margin: -236px 0 0 auto;
        position: relative;
        z-index: 2;
    }
    
    .js-case-study-slider {
        padding-bottom: 0;
    }

    .case-study .slick-arrow {
        top: 130px;
        bottom: auto;
        transform: none;
    }
    
    .case-study .slick-next,
    .case-study .slick-prev  {
        right: 14px;
        left: auto;
    }
    
    .case-study .slick-next {
        top: 186px;
    }

    .case-study-link:hover {
        background: none;
    }
}