.main-banner{
    position: relative;
}
.banner img{
    height: 100dvh;
    object-fit: cover;
    overflow: hidden;
    width: 100%;
}
.banner-text{
    position: absolute;
    color: white;
}
.banner-text h5{
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 0px !important;
}
.banner-text p{
    max-width: 21.5rem;
}
.banner-text.top-right{
    top: 20%;
    right: 10%;
}
.banner-text.top-left{
    top: 20%;
    left: 10%;
}
.banner-text.bottom-right{
    bottom: 10%;
    right: 10%;
}
.banner-text.bottom-left{
    bottom: 30%;
    left: 10%;
}
.service-item {
    overflow: hidden;
    position: relative;
    display: flex !important;
    flex-direction: column;
    border-radius: 1rem;
}

.service-item > p{
    margin:  1rem .5rem .5rem .5rem;
    font-weight: 300;
    color: var(--primary-color);
    font-size: small;
    text-align: justify
}

.service-item a {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-item img {
    position: absolute;
    top: 1%;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    border-radius: 1rem 2rem 1rem 1rem;
    clip-path: url(#slantedRectangle);
    -webkit-clip-path: url(#slantedRectangle);
}

.service-item picture {
    height: auto;
    width: 100%;
}
.service-item .text-container {
    position: absolute;
    overflow: hidden;
    top: 0;
    right: 0;
    left: 0;
    padding: .5rem 1rem 3rem 4rem;
    font-size: medium;
    font-weight: 700;
    z-index: 3;
    background: transparent;
    align-items: flex-end;
    justify-content: right;
    display: flex;
}
.service-item h5 {
    color: var(--primary-color);
    text-decoration: none;
    font-size: medium;
    font-weight: 700;
    text-align: right;
    background: transparent;
}
@media (min-width: 807px){
    .service-item h5{
        width: 60%;
    }
}

@media (max-width: 1387px) and (min-width: 765px){
    .service-item h5{
        width: 90%;
    }
    .service-item a {
        height: 270px;
    }
    .service-item img {
        margin-top: 20px;
    }
}
@media (max-width: 807px){
    .service-item h5{
        width: 80%;
    }
}
.home-service > h2{
    color: var(--primary-color);
}
.fade-service{
    display: none;
    position: absolute;
    top: 60%;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(19, 80, 164, 0) 0%, rgba(19, 80, 164, .6) 60%, rgba(19, 80, 164, 0.95) 100%);
}

.fade-service h2 {
    color: white;
    margin-bottom: 2rem;;
}
@media (max-width: 767px){
    .banner-text.bottom-right{
        bottom: 30% !important;
        right: 10%;
    }
    .banner-text.bottom-left{
        bottom: 30% !important;
        left: 10%;
    }
        .home-service ul {
        padding: 1rem;
    }
    .fade-service{
        display: flex;
        align-items:end;
    }
    .service-item > p{
        font-size: x-small;
    }
}
@media (max-width: 450px) {
    .service-item .text-container {
        left: 3%;
    }
    .service-item a {
        height: 170px;
    }
    .service-item img {
        margin-top: 20px;
        height: 150px;
    }
}
@media (max-width: 520px) {
    .service-item h5{
        font-size: small;
    }
}