/*
	Theme Name: Idea Maker
	Theme URI: https://ideamaker.agency/
	Description: CSS module for `[post-related-articles]` shortcode.
*/

#related-articles_footer {
	background-color: #F3FAFF;
	padding: 90px 0 50px 0;
}

#related-articles_footer .wrap {
	max-width: 1400px;
}

/* .related-articles {
	padding-top: 70px;
} */

.related-articles .entry {
	width: 100%;
	background-color: transparent;
}

.related-articles .entry:last-child {
	margin-bottom: 0;
}

.related-articles .entry-image-link {
	display: block;
	height: 190px;
	overflow: hidden;
}

.related-articles .entry-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 10px;
}

.related-articles .entry-title a {
	display: block;
}

#page-related-blogs .widget-title {
	text-align: center !important;
	font-size: 36px;
	margin: 0 0 30px;
}

#page-related-blogs h4.entry-title {
	margin: 0;
}

.related-articles .entry-content {
	padding: 20px 0;
	width: 100% !important;
}

ul.related-articles li a {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

ul.related-articles li a img {
	height: 190px !important;
}

@media screen and (max-width: 1024px) {
	.related-articles {
		padding-top: 20px;
	}
	
	.related-articles .entry-content {
		padding: 10px 0;
	}
	
	#page-related-blogs .widget-title {
		font-size: 30px;
		margin-bottom: 25px;
	}
}

@media screen and (max-width: 860px) {
	#related-articles_footer {
		padding: 50px 0 30px 0;
	}
}

@media screen and (max-width: 767px) {
	.related-articles .entry { 
		margin-bottom: 20px;
	}
	
	.related-articles {
		padding-top: 0;
	}
	
	.related-articles .entry-image-link,
	ul.related-articles li a img {
		height: auto !important;
	}
	
	.related-articles .entry-content {
		padding: 10px 0;
	}
	
	#page-related-blogs .widget-title {
		font-size: 24px;
		margin-bottom: 20px;
	}
}