/**********/
/* Slider */
/**********/
.serviceslider .item{
    padding-bottom: 100px;
    overflow: hidden;
}
.serviceslider .item .service-item-cont{
    position:relative;
    overflow:hidden;
    height: 600px;
}
.serviceslider .service-img{
    overflow: hidden;
    height: 600px;
    margin-bottom: 20px;
    position: relative;
}
.serviceslider .service-img img{
    width:100%;
    height:600px;
    object-fit: cover;
    transition: 300ms;
}
.serviceslider .item:hover .service-img img{
    transform: scale(1.07);
}
.serviceslider h5.servicettile{
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    text-align: center;   
    background-color: #fff; 
    padding: 15px;
    opacity: 1;
    transition: 300ms;
}
.serviceslider .item:hover h5.servicettile{
    bottom: -120px;
    opacity: 0;
}
.serviceslider .service-text{
    position: absolute;
    top: -200px;
    transform: translateY(-50%);
    left: 20px;
    right: 20px;
    text-align: center;   
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
    padding: 15px;
    opacity: 0;
    transition: 300ms;
    font-family: var(--font-primary);
}
.serviceslider .item:hover .service-text{
    top: 50%;
    opacity: 1;
}
.serviceslider .service-img::after{
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    position: absolute;
    top: 0;
    left: 0;
    transition: 300ms;
}
.serviceslider .item:hover .service-img::after{
    background-color: rgba(0,0,0,.5);
}
.serviceslider .service-link-text{
    color: #fff;
    display: block;
    transition: 300ms;
}
.serviceslider button.owl-prev,
.serviceslider button.owl-next{
    border-radius: 50%;
    width: 45px;
    height: 45px;
    background-color: rgba(0,0,0,.2)!important;
}
.serviceslider button.owl-prev i,
.serviceslider button.owl-next i{
    color: #fff!important;
}


.serviceslider.owl-theme .owl-dots .owl-dot span {
    margin: 5px !important;
    background: #ccc !important;
    transition:300ms !important;		
    border:none !important;	
    width: 7px !important;
    height: 7px !important;
    border-radius: 0 !important;
    transform:rotate(45deg) !important;
}
.serviceslider.owl-theme .owl-dots .owl-dot.active span, 
.testimonialslider.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--color-primary) !important;
    border:none !important;
    transform:rotate(45deg) scale(1.4) !important;
}


@media screen and (max-width: 767px) {
    .serviceslider > *{
        text-align: center;
    }
}

/*********/
/* Block */
/*********/
.serviceblock .service-item > div {
    position: relative;
}
.service-item h5 {
    position: absolute;
    z-index: 2;
    bottom: 30px;
    left: 25px;
    right: 25px;
    text-align: center;
    font-size: 30px!important;
    transition: 600ms;
    opacity: 1;
}
.service-item:hover h5 {
    opacity: 0;
}
.service-item a.service-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    z-index: 1;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent); /* Keep the gradient */
    opacity: 1;
    transition: opacity 500ms ease-in-out;
}
.service-item:hover a.service-link {
    opacity: 0;
}

.service-item > div::before{
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    border: 1px solid var(--color-primary);
    position: absolute;
    left: 7px;
    top: 7px;
    z-index: 0;
    transition: 500ms ease-in-out;
}
.service-item:hover > div::before{
    border-color: var(--color-white);
}