@import '../../common';

.rs-service-list {
    .services-inner {
        padding: 40px 30px;
        background-color: #f7f7f7;
        -webkit-transition: all 0.5s ease;
        transition: all 0.5s ease;
        border-bottom: 1px solid #e7e7e7;
        @include flex_asign(space-between, 30px);
        position: relative;
        .count_number {
            transition: $transition;
        }
        .feature_img {
            position: relative;
            &:not(.media-aside) {
                position: absolute;
                content: '';
                right: 50px;
                bottom: 30px;
                opacity: 0;
                pointer-events: none;
                transition: $transition;
                z-index: 1;
                img {
                    width: 280px;
                    height: auto;
                }
            }
            &.media-aside {
                flex-shrink: 0;
                img {
                    object-fit: cover;
                    object-position: center;
                    transition: $transition;
                }
            }
            &.clip-path-enable{
                & > img{
                    clip-path: polygon(88% 0%, 100% 50%, 88% 100%, 0% 100%, 12% 50%, 0% 0%);
                }
            }
            .overlay-image{
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                width: 260px;
                opacity: 0;
                visibility: hidden;
                transition: all ease 0.5s;
                img{
                    max-width: 100%;
                    height: auto !important;
                    width: 260px !important;

                }
            }
        }
        
        .icon-wrap {
            @include flex_asign(center, 0);
            transition: $transition;
            flex-shrink: 0;
            svg {
                width: 60px;
                height: 60px;
                path {
                    fill: $primaryColor;
                    transition: $transition;
                }
            }
            i {
                font-size: 60px;
                color: $primaryColor;
                line-height: 1;
                @include flex_asign(center, 0);
                &:after {
                    font-size: inherit;
                    line-height: inherit;
                }
            }
        }
        .title {
            margin-bottom: 0px;
            transition: $transition;
        }
        .subinfo {
            transition: $transition;
        }
        .desc-text {
            transition: $transition;
            color: $bodyColor;
            span{
                display: block;
                color: $titleColor;
                margin-top: 10px;
                line-height: 26px;
            }
        }
        .btn-part {
            @include flex_asign(center, 0);
            transition: $transition;
            flex-shrink: 0;
            svg {
                width: 15px;
                height: 15px;
                path {
                    fill: $primaryColor;
                    transition: $transition;
                }
            }
            i {
                font-size: 22px;
                color: $primaryColor;
                line-height: 1;
            }
        }
        .rs-btn {
			display: inline-flex;
			align-items: center;
			white-space: nowrap;
			transition: $transition;
			span {
				background: $primaryColor;
			}
			.rs-icon{
				height: 60px;
				width: 60px;
				display: inline-flex;
				align-items: center;
				justify-content: center;
				border-radius: 50%;
				transition: $transition;
				opacity: 0;
				&.two{
					transform: translate3d(-60px, 0px, 0px);
					transform-style: preserve-3d;
					opacity: 1;
				}
				svg {
					width: 16px;
					height: 16px;
					path{
						fill: #fff;
						transition: $transition;
					}
				}
				i {
					color: #fff;
					font-size: 16px;
					transition: $transition;
				}
			}
			.rs-btn-text{
				color: #fff;
				border-radius: 28px;
				padding: 16px 36px;
				display: inline-block;
				transition: $transition;
				z-index: 9;
			}
			&.icon-sty-yes {
				.rs-btn-text{
					transform: translate3d(-60px, 0px, 0px);
					transform-style: preserve-3d;
				}
				&:hover {
					.rs-btn-text{
						transform: translate3d(0px, 0px, 0px) !important;
						transform-style: preserve-3d;
					}
				}
			}
			&:hover {
				.rs-icon {
					opacity: 1;
					&.two{
						opacity: 0;
					}
				}
			}
		}
        .top-wrapper {
            flex-shrink: 0;
            @include flex_asign(space-between, 20px);
                span{
                    display: block;
                    line-height: 18px;
                }
        }
        .bottom-wrapper {
            @include flex_asign(space-between, 30px);
        }
        &:last-child {
            margin-bottom: 0 !important;
        }
        &:hover {
            .feature_img {
                opacity: 1;
                .overlay-image{
                    opacity: 1;
                    visibility: visible;
                }
            }
            &::after {
                left: 0;
            }
        }
    }
    
    &.thumb-bg {
        .services-inner {
            overflow: hidden;
            .feature_img {
                z-index: 0;
                top: 0;
                width: 80%;
                height: 100%;
                left: -30%;
                overflow: hidden;
                img {
                    width: inherit;
                    height: inherit;
                    object-fit: cover;
                    object-position: center;
                }
            }
            > *:not(.feature_img ) {
                z-index: 1;
            }
            &.active,
            &:hover {
                .feature_img {
                    left: 0;
                    width: 100%;
                    opacity: 1;
                }
            }
        }
    }
    &.scrollable-yes {
        height: 200px;
        overflow-y: auto;
        padding-right: 25px;
        &::-webkit-scrollbar {
            width: 5px;
            border-radius: 5px;
        }
        &::-webkit-scrollbar-track {
            background-color: lighten($primaryColor, 30%);
            border-radius: 5px;
        }
        &::-webkit-scrollbar-thumb {
            background-color: $titleColor;
            border-radius: 5px;
        }
    }
    &.style-3 {
        .services-inner {
            border: none;
            padding: 20px;
        }
        &.animate-border {
            position: relative;
            .services-inner {
                &:after {
                    position: absolute;
                    content: '';
                    left: 0;
                    bottom: 0;
                    height: 5px;
                    background: $primaryColor;
                    width: 0;
                    transition: $transition;
                }
                &:hover {
                    &:after {
                        width: 100%;
                    }
                }
            }
        }
        .top-wrapper {
            @include flex_asign(space-between, 0);
        }
        .icon-wrap {
            svg {
                width: 20px;
                height: 20px;
            }
            i {
                font-size: 20px;
            }
        }
    }
    &.dynamic {
        .top-wrapper {
            width: 100%;
        }
    }
}
 