/* ==========================================================================
   Metamorph Pre School — Blog page
   Breakpoints: laptop <= 1366px, tablet <= 1024px, mobile <= 767px
   ========================================================================== */

/* ---------- Title banner ---------- */
.blog-hero {
	position: relative;
	overflow: hidden;
	margin-top: -60px;
	padding: 140px 30px 60px;
	background-color: #E869364A;
}

.blog-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: var(--accent-5);
	opacity: .5;
}

.blog-hero__row {
	display: flex;
	position: relative;
	max-width: 1260px;
	margin: 0 auto;
}

.blog-hero__col {
	width: 60%;
}

.blog-hero__title {
	margin: 0;
	color: #0a303a;
	font-family: var(--font-display);
	font-size: 86px;
	font-weight: 900;
	line-height: 1.1em;
	letter-spacing: 3.4px;
}

/* ---------- Posts ---------- */
.blog-posts {
	margin-bottom: 80px;
	padding: 80px 30px 100px;
	background-color: #E869364A;
}

.blog-posts__row {
	max-width: 1260px;
	margin: 0 auto;
}

.blog-posts__col {
	display: grid;
	gap: 40px;
	width: calc(87% - 50px);
	margin-right: 50px;
}

.post-card {
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

.post-card__thumb {
	display: block;
	position: relative;
	width: 100%;
	margin-bottom: 20px;
	padding-bottom: 60%;
	overflow: hidden;
}

.post-card__thumb img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	max-width: none;
	height: 100%;
	transform: translate(-50%, -50%) scale(1.01);
	transition: filter .3s;
}

.post-card:hover .post-card__thumb img {
	filter: brightness(115%);
}

.post-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	margin: 15px;
	padding: .6em 1.2em;
	border-radius: 100px;
	background-color: var(--accent-2);
	color: #FFFFFF;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.post-card__text {
	padding: 0 30px;
}

.post-card__title {
	margin: 0 0 20px;
	font-family: var(--font-comic);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.4em;
}

.post-card__title a {
	color: var(--accent-3);
}

.post-card__excerpt {
	margin-bottom: 20px;
	line-height: 1.7em;
}

.post-card__excerpt p {
	margin: 0;
	color: #000000;
	font-family: var(--font-text);
	font-size: 18px;
	line-height: 1.7em;
}

.post-card__more {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--accent-1);
	font-family: var(--font-comic);
	font-size: 16px;
	font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE — TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.blog-hero {
		margin-top: 0;
		padding: 100px 30px;
	}

	.blog-hero__title {
		font-size: 70px;
	}

	.blog-posts {
		margin-bottom: 100px;
		padding: 0 30px;
	}

	.blog-posts__col {
		width: calc(87% - 30px);
		margin-right: 30px;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.blog-hero {
		padding: 70px 20px;
	}

	.blog-hero__col {
		width: 100%;
	}

	.blog-posts {
		padding: 50px 20px 0;
	}

	.blog-posts__col {
		width: 100%;
		margin-right: 0;
	}

	.post-card__thumb {
		padding-bottom: 50%;
	}
}
