/* Latest Post Grid Styles */
.card {
    position: relative;
    width:100%;
    height:320px;
    border-radius: 0px !important;
}
.latest-post-thumb {
    width:100%;
    height: 100%;
    border-radius: 0px !important;
    }
.post-grid{
    background-repeat: no-repeat;
    background-size: cover;
    width:100%;
    height: 100%;
    transition: background-image 0.5s;
    position: absolute;
    border-radius: 0px !important;
    text-align: center;
	padding:30px;
    }

.post-grid:hover {
    background-image: none !important;
	background-color:#007D9A;
}

.post-grid .card-title {
	color: #FFFFFF;
    font-family: "Open Sans";
    font-size: 17px;
    font-weight: 500;
    text-transform: uppercase;
	text-align:center;
}
.post-grid .card-text {
    color: #FFF;
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px; 
	margin-bottom: 30px;
	
}
.post-grid .latest-post-btn {
    color: #FFF;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
	font-family: "Open Sans";
    line-height: 31px;
	text-transform: uppercase;
	background:transparent;
	border: 1px solid #FFF000;
	border-radius:0;
	padding: 10px 15px;
}
.post-grid .latest-post-btn:hover {
	background:#007D9A;	
}

.latest-post-content{
  position: relative;
  z-index: 3;
  color: #fff; 
}
.overlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2; 
}
.post-grid:hover .overlay {
    background-color: none !important;
	z-index: -99; 
}
@media (min-width: 764px) and (max-width: 991.98px) { 
  .card {
    height: 250px !important;
  }
  .post-grid .card-text{
    font-size: 13px;
    line-height: 15px;
    margin-bottom: 20px;
	}
	.post-grid .card-title{
		font-size: 16px;
	}
	.post-grid{
		padding:15px;
	}
	.post-grid .latest-post-btn{
		padding: 7px 15px;
		font-size:14px;
		font-weight:400;
	}
}
@media (min-width:320px) and (max-width:763px){
	.sm-p{
		padding:0 !important;
	}
}
