/**
 * Post Archive Section Styles
 * Grid layout for displaying blog posts
 */

.section-post-archive {
	width: 100%;
	background: var(--color-bg-white);
	padding: 6rem 3rem;
	margin: 0;
}

.section-post-archive__inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
}

.section-post-archive__title {
	margin: 0 0 4rem 0;
}

.section-post-archive__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	align-items: start;
}

/* Post Card - Based on feature-card-6 but modified */
.post-card {
	flex: 0 0 auto;
	width: 100%;
	background: var(--color-bg-white);
	border: 1px solid var(--color-border-light);
	border-radius: 30px;
	overflow: hidden;
	box-shadow: 0px 6px 12px var(--color-shadow-medium), 0px 4px 8px var(--color-shadow-light);
	display: flex;
	flex-direction: column;
}

.post-card__link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	width: 100%;
	height: 100%;
}

.post-card__link:focus {
	outline: 2px solid var(--color-teal);
	outline-offset: 2px;
	border-radius: 30px;
}

.post-card__image {
	width: 100%;
	height: 240px;
	overflow: hidden;
	border-radius: 16px 16px 0px 0px;
	background: var(--color-bg-light-gray);
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	transition: transform 0.3s ease-out;
}

/* Hover effect: scale image */
.post-card__link:hover .post-card__image img {
	transform: scale(1.1);
}

.post-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
	padding: 24px;
	flex: 1;
}

.post-card__text {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	gap: 8px;
}

.post-card__category {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45em;
	letter-spacing: 0.02em;
	color: var(--color-text-muted);
	text-transform: uppercase;
	margin: 0 0 4px 0;
}

.post-card__title {
	/* Typography handled by .text-subtitle-bold */
	margin: 0;
	text-align: left;
	transition: color 0.2s ease;
}

/* Change title color to teal when hovering anywhere on card */
.post-card__link:hover .post-card__title {
	color: var(--color-teal);
}

/* No Results */
.no-results {
	width: 100%;
	background: var(--color-bg-white);
	padding: 6rem 3rem;
	margin: 0;
}

.no-results__inner {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
	text-align: center;
}

/* ========================================
   MOBILE VERSION (below 1024px)
   ======================================== */
@media (max-width: 1023px) {
	.section-post-archive {
		padding: 3rem 1.5rem;
	}
	
	.section-post-archive__title {
		margin: 0 0 2rem 0;
	}
	
	.section-post-archive__cards {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.post-card {
		width: 100%;
	}
}
