/* ================================
   RELATED POSTS
================================ */

.related-posts {
	width: 100%;
	max-width: 1200px;
	margin: 16px auto 30px;
	box-sizing: border-box;
}


/* Heading */

h2.related-posts-title {
	margin: 0 0 25px;
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.4em;
	text-align: center;
}


/* 3 Cards */

.related-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 25px;
}


/* Card */

.related-post-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;

	background-color: rgb(51, 56, 161);

	border-radius: 10px;

	box-shadow:
		rgba(51, 56, 161, 0.49) 0px 0px 5px 0px;

	box-sizing: border-box;

	color: #FFFFFF;

	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;

	padding: 20px;
}


/* Image */

.related-post-image {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 15px;
}

.related-post-image img {
	display: block;
	width: 100%;
	object-fit: fill !important;
 }


.related-posts-grid img.attachment-medium_large.size-medium_large.wp-post-image {
    object-fit: fill;
}

/* Date */

.related-post-date {
	margin-bottom: 8px;

	color: #FFFFFF;

	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
}


/* Title */

h5.related-post-title {
	margin: 0;

	color: #FFFFFF;

	font-family: "Manrope", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4em;
}

.related-post-title a {
	color: #FFFFFF;
	text-decoration: none;
}

.related-post-title a:hover {
	color: #FFFFFF;
}


/* ================================
   TABLET
================================ */

@media (max-width: 1024px) {

	.related-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* ================================
   MOBILE (SLIDER)
================================ */

@media (max-width: 767px) {

	.related-posts {
		margin: 40px auto 25px;
		padding: 0 15px;
	}

	/* Grid ko horizontal slider mein convert kiya */
	.related-posts-grid {
		display: flex;
		flex-wrap: nowrap;
		grid-template-columns: unset;
		gap: 15px;

		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-behavior: smooth;

		padding-bottom: 10px;

		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.related-posts-grid::-webkit-scrollbar {
		display: none;
	}

	/* Ek time pe sirf 1 card dikhega */
	.related-post-card {
		flex: 0 0 100%;
		max-width: 100%;
		scroll-snap-align: center;
		padding: 20px;
	}

	.related-post-image {
		height: 200px;
	}

	.related-post-title {
		font-size: 16px;
	}

	h2.related-posts-title {
		font-size: 22px;
	}

}

.post-tags {
	padding: 5px 0;
	border-top: 1px solid #eaeaea;
	display: flex;
	margin: 0 auto;
	justify-content: center;
}

.tag-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: baseline;
}








/* Mobile responsive - 2 columns */
@media (max-width: 767px) {
	.tag-links {
		grid-template-columns: 1fr;
	}
	
	
	.post-tags {
    padding: 5px 20px;
    justify-content: flex-start;
}
}

