/* Servicebox default CSS */

/* Default style */
.sofraj-servicebox-default .ttm-featured-wrapper img {
    border-radius: 15px;
    transition: all 0.3s ease-in-out;
}
.sofraj-servicebox-default .sofraj-service-deatils {
    text-align: center;
    padding-top: 30px;
}
.sofraj-servicebox-default .sofraj-box-top-content {
    background-color: var(--ttm-greycolor);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--ttm-bordercolor);
}
.sofraj-servicebox-default .sofraj-box-title h4 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}
.sofraj-servicebox-default .sofraj-box-title h4 a {
    color: var(--ttm-blackishcolor);
}
.sofraj-servicebox-default .sofraj-service-deatils p {
    margin-bottom: 0;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sofraj-servicebox-default:hover .sofraj-image .ttm-featured-wrapper img {
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}
.sofraj-servicebox-default .sofraj-image {
    overflow: hidden;
    border-radius: 15px;
}


/* Style1 css */
.sofraj-servicebox-style1 .sofraj-post-item {
    position: relative;
    overflow: hidden;
}
.sofraj-servicebox-style1 .ttm-featured-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 880px;
}
.sofraj-servicebox-style1 .ttm-featured-wrapper img {
    border-radius: 15px;
    -moz-transform: scale(1);
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    transition: all 0.6s ease-in-out;
    height: 100%;
    object-fit: cover;
}
.sofraj-servicebox-style1:hover .ttm-featured-wrapper img {
    -moz-transform: scale(1.09);
    -webkit-transform: scale(1.09);
    -ms-transform: scale(1.09);
    transform: scale(1.09);
}
.sofraj-servicebox-style1 .sofraj-serive-imgtitle .sofraj-box-title h4 {
	font-size: 26px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 0;
}
.sofraj-servicebox-style1 .sofraj-serive-imgtitle .sofraj-box-title h4 a {
    color: var(--ttm-whitecolor);
}
.sofraj-servicebox-style1 .sofraj-serive-imgtitle {
    position: absolute;
    bottom: -20px;
    text-align: left;
    display: block;
    margin: 0 auto;
    left: 40px;
    right: 40px;
    z-index: 1;
    -webkit-transition: all .9s;
    -moz-transition: all .9s;
    -o-transition: all .9s;
    -ms-transition: all .9s;
    transition: all .9s;
}
.sofraj-servicebox-style1:hover .sofraj-serive-imgtitle {
    bottom: 48px;
}
.sofraj-servicebox-style1 .sofraj-serive-imgtitle p {
    padding-left: 0;
    margin: 0;
    opacity: 0;
    font-size: 16px;
    line-height: 28px;
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sofraj-servicebox-style1:hover .sofraj-serive-imgtitle p {
    opacity: 1;
    transform: translateY(20%);
    bottom: 30px;
    color: rgba(255 , 255 , 255 , 0.80);
    -webkit-transition: all .9s;
    -moz-transition: all .9s;
    -o-transition: all .9s;
    -ms-transition: all .9s;
    transition: all .9s;
}
.sofraj-servicebox-style1 .sofraj-post-item .ttm-featured-wrapper a {
    position: relative;
}
.sofraj-servicebox-style1 .sofraj-post-item .ttm-featured-wrapper a:before {
    content: '';
    position: absolute;   
    height: 100%;    
    opacity: .99;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    border-radius: 15px;
    background: linear-gradient(180deg, rgb(0 0 0 / 0%) 40%, rgb(0 0 0 / 84%) 90%);
    transition-property: top, opacity;
    transition-duration: .3s;
    overflow: hidden;
    -webkit-transition: all .6s ease-in-out;
}