
*{
	font-family: nunito;
}

body
{
  height: 100vh;
  background: #ffffff;
  width: 100%;
}

/* Hero Image */

.img-container{
	background-image: url(../images/Services/diet4.jpg);
	height: 30%;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	margin: -10px;
	margin-top: -16px;
	position: relative;
	

}

.img-container:after{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);

}

.inner-container{
	text-align: center;
	position: absolute;
	width: 100%;
	color: #ffffff;
	height: auto;
	z-index: 3;
}

.inner-container h2{
	font-size: 9rem;
	margin-top: 0;
	
}

/* Responsive CSS */

@media (max-width: 1080px){
	.inner-container h2{
		font-size: 9rem;
		padding-top: 100px;
	}
}

@media (max-width: 770px){
	.inner-container h2{
		font-size: 5rem;
		padding-top: 50px;
	}
}

/* Card section */

.container{
	margin-top: 40px;
	padding: 20px 40px;
}

.row{
	width: 100%;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	padding-top: 0px;
}

.image{
	background: #fff;
	background-image: url(../images/Services/card2.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	position: relative;
	flex: 1;
	max-width: 460px;
	height: 300px;
	margin: 20px;
	overflow: hidden;
	border-radius: 10px;
	border: 2px solid black;
}

.image img{
	opacity: 1;
	position: relative;
	vertical-align: top;
	transition: 0.6s;
	transition-property: opacity;
	
}

.image:hover img{
	background: #fff;
	opacity: 1;
	transition: 1.5s;
	transition-property: opacity;
}


.image .details{
	z-index: 1;
	position: absolute;
	top: 0;
	right: 0;
	color: rgb(0, 0, 0);
	width: 100%;
	height: 100%;
}

.image .details h2{
	text-align: center;
	font-size: 22px;
	text-transform: uppercase;
	font-weight: 500;
	margin-top: 125px;
	transition: 0.4s;
	transition-property: transform;
}


.image:hover .details h2{
	transform: translateY(-80px);
}

.image .details p{
	margin: 60px 30px 0 30px;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	line-height: 30px;
	opacity: 0;
	transition: 0.6s;
	transition-property: opacity, transform;
}

.image:hover .details p{
	opacity: 1;
	transform: translateY(-120px);
}

.more{
	position: absolute;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px;
	bottom: -60px;
	transition: 0.6s;
	transition-property: bottom;
}

.image:hover .more{
	bottom: 0;
}

.more .read-more{
	color: #000;
	text-align: center;
	justify-content: center;
	padding: 10px 20px;
	background-color: red;
	color:white;
	border: 2px solid black;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 300;
	box-shadow: 1px 1px 10px #555454b9;
}

.read-more:hover{
	color: #000;
	border-color: #ffffff;
}



/* Responsive CSS */

@media (max-width: 1080px){
	.image{
		flex: 100%;
		max-width: 480px;
	}
}

@media (max-width: 400px){
	
	.image .details p{
		font-size: 16px;
	}

	.more .read-more, .more .icon-links a i{
		font-size: 18px;
	}
}
