.ecs-slider {
    width: 100%;
    position: relative;
}

.ecs-slide {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: end;
	border-radius: 8px;
}

/* Black overlay */
.ecs-slide::before {
    content: "";
    position: absolute;
    /* Position at the bottom */
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%; /* Adjust this percentage to cover more or less of the bottom */
    
    /* Use a gradient for a smoother look, or solid rgba if you prefer */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); 
    
    z-index: 1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Content above overlay */
.ecs-slide > * {
    position: relative;
    z-index: 2;
}

.ecs-content {
    padding: 0 40px;
    color: #fff;
    max-width: 500px;
    font-family: "Niramit", Sans-serif;
	font-weight: 300;
}

.ecs-content p {
    line-height: 1.5;
    font-size: 18px;
	display:none;
}


.ecs-content h5 {
font-size: 2rem;
        font-family: 'Lato';
        font-weight: 400;
        letter-spacing: 0.1px;
	    padding-bottom: 25px;
    margin: 0px;
}
.ecs-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #fff;
    color: #000;
    text-decoration: none;
}
