@import url('nav.css');
@import url('footer.css');

main{
	padding: 50px;
}

/* FEATURED *********************************************** */
#featured img{
	width: 100%;
}
#featured .title{
	font-family: Georgia, serif;
	font-size: 2rem;
	font-weight: 600;
	color: #222;
	line-height: 1.3;
	margin-bottom: 20px;
}
#featured .preview-text{
	font-size: 1.1rem;
}

#featured .more{
	/* width: fit-content not entirely supported, alternative is display: table*/
	display: table;
	/* width: fit-content; */
	margin-top: 40px;
	font-size: 0.85rem;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #00a859;
}
#featured .more:hover{
	border-bottom: 2px solid;
}


/* BLOG POSTS ******************************************** */

#blogPosts{
	margin: 40px 0;
}
#blogPosts .post{
	margin-bottom: 40px;
}
#blogPosts .post .img{
	margin-bottom: 15px;
}
#blogPosts .post img{
	width: 100%;
}
#blogPosts .post .title{
	display: block;
	margin-bottom: 15px;
	color: #222;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: 1px;
}
#blogPosts .post .preview-text{
	color: #444;
	font-size: 0.95rem;
	margin-bottom: 20px;
}
#blogPosts .post .post-date{
	display: table;
	/* width: fit-content; */
	position: relative;
	color: #888;
	font-size: 0.9rem;
}
#blogPosts .post .post-date::before{
	content: '';
	position: absolute;
	top: -5px;
	left: 0;
	width: 60%;
	border-top: 1px solid #888;
}
.pagination{
	margin-top: 30px;
}
.page-item.active .page-link{
	background-color: #00a859;
	border-color: #fff;
}
.page-link{
	color: #00a859;
}
.page-item:hover .page-link{
	color: #00a859;
}

@media all and (max-width: 991px){
	main{
		padding: 30px 15px;
	}
}
@media all and (max-width: 767px){
	#featured{
		margin-bottom: 50px;
	}	
	#featured .title{
		margin-top: 20px;
		font-size: 1.8rem;
	}
	#featured .title,
	#featured .preview-text{
		text-align: center;
		padding: 0 10px;
	}
	#featured .more{
		margin: 0 auto;
		margin-top: 20px;
	}	
}