.box-wrapper{
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 30px;
}
.box-wrapper::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgb(1 37 62 / 95%) 100%);
    width: 100%;
    height: 100%;
    -webkit-transition: ease-out 0.12s;
    transition: ease-out 0.12s;
    border-radius: 30px;
}
.box-wrapper .box-img{
    width: 100%;
    height: 380px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 30px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.box-wrapper .box-content{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    -webkit-transition: ease-out 0.3s;
    transition: ease-out 0.3s;
}
.box-wrapper .box-content h5{
    font-size: 19px;
    color: #fff;
    letter-spacing: .3px;
    text-align: left !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}
.box-wrapper .box-content p{
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1.6 !important;
    max-height: 80px;
    overflow: hidden;
    text-align: left !important;
    font-size: 14px;
    letter-spacing: .5px;
}

.box-wrapper .box-hover-content{
    transform: translateY(5px);
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    padding: 30px;
    color: rgba(255,255,255,0.7);
    -webkit-transition: ease-out 0.3s;
    transition: ease-out 0.3s;
    visibility: visible;
    pointer-events: all;
    opacity: 1;
    z-index: 2;
}

.box-wrapper:hover .box-img{
    transform: scale(1.04);
    overflow: hidden;
}

.box-wrapper:hover .box-hover-content{
    bottom: 0;
}
.box-wrapper:hover .box-content{
    bottom: 45px;
}

@media (min-width: 1500px){
    .box-wrapper .box-hover-content a{
        padding: 14px 30px;
    }

}

@media (max-width: 1400px){
    .box-wrapper{
        height: 315px;
    }
}

@media (max-width: 1200px){
    #slider h1{
        font-size: 30px;
    }
    .box-wrapper{
        height: 310px;
    }
    .box-wrapper .box-img{
        height: 310px;
    }
    .box-wrapper .box-content h5{
        font-size: 17px;
    }
    .box-wrapper .box-content p{
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

}

@media (max-width: 1199px){
    .box-wrapper{
        height: 270px;
    }
    .box-wrapper .box-img{
        height: 270px;
    }
    .box-wrapper .box-content h5{
        font-size: 16px;
    }
    .box-wrapper .box-content p{
        font-size: 14px !important;
    }
    .box-wrapper .box-hover-content a{
        padding: 10px 20px;
    }
}

@media (max-width: 1024px){
    #slider h1{
        font-size: 28px;
    }
}

@media (max-width: 991px){
    .box-wrapper .box-content p{
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
    .box-wrapper .box-content h5{
        font-size: 18px;
        margin-bottom: .25rem !important;
    }
}

@media (max-width: 767px){
    #slider h1{
        font-size: 26px;
    }
}

@media (max-width: 575px){
    #slider h1{
        font-size: 24px;
    }
    
    .col-12.mb-3{
        margin-bottom: .8rem !important;
    }
    .box-wrapper .box-hover-content a{
        font-size: 14px;
        padding: 8px 15px !important;
    }
}

@media (max-width: 480px){
    .box-wrapper .box-content h5{
        font-size: 17px;
    }
    .box-wrapper .box-content p{
        font-size: 14px;
    }
}

@media (max-width: 425px){
    .box-wrapper{
        height: 300px;
    }
    .box-wrapper .box-img{
        height: 300px;
    }
    .box-wrapper .box-content,
    .box-wrapper .box-hover-content{
        padding: 20px;
    }
}

@media (max-width: 375px){
    .box-wrapper{
        height: 260px;
    }
    .box-wrapper .box-img{
        height: 260px;
    }
}