/* Archive / Category page — matches blog jkit postblock-type-2 exactly */

/* Banner */
.archive-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 35vh;
	padding: 5em 0 3em;
	background: linear-gradient(135deg, #FFFFFF 25%, #DBE3EA 100%);
	border-radius: 0 0 55px 55px;
	overflow: hidden;
	text-align: center;
}

.archive-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('/wp-content/uploads/2025/04/BG-08.png') center right / contain no-repeat;
	opacity: 0.25;
	pointer-events: none;
}

.archive-banner__inner {
	position: relative;
	z-index: 1;
	max-width: 1280px;
	width: 100%;
	padding: 0 2em;
}

.archive-banner__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: 1em;
}

.archive-banner__badge img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.archive-banner__badge span {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #126E00;
	letter-spacing: 0.05em;
}

.archive-banner__title {
	font-family: 'Inter Tight', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	color: #000;
	margin: 0 0 0.5em;
	line-height: 1.25;
}

.archive-banner__title span {
	display: none;
}

.archive-banner__desc {
	font-family: 'Inter Tight', sans-serif;
	font-size: 1.05rem;
	color: #4B5863;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Grid — matches blog: 3 cols, 15px gap, 10px horizontal margin per card */
.archive-grid-wrap {
	max-width: 1280px;
	margin: 3em auto;
	padding: 0 1em;
}

.archive-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px 20px;
}

/* Card — matches jkit postblock-type-2 */
.archive-card {
	border-radius: 25px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.archive-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Thumbnail — matches blog: 420px height, gradient overlay, category centered */
.archive-card__thumb {
	display: block;
	position: relative;
	height: 420px;
	overflow: hidden;
	text-decoration: none;
}

.archive-card__thumb-container {
	width: 100%;
	height: 100%;
	position: relative;
}

.archive-card__thumb-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.archive-card:hover .archive-card__thumb-container img {
	transform: scale(1.05);
}

/* Gradient overlay — transparent to black, matching blog */
.archive-card__thumb-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 100%);
	pointer-events: none;
}

/* Category badge — white text, image background, centered on thumbnail */
.archive-card__cat {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	background: url('/wp-content/uploads/2025/04/Asset-015.png') center / cover no-repeat;
	color: #FFFFFF;
	font-family: 'Inter Tight', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	padding: 5px 20px;
	border-radius: 25px;
	text-decoration: none;
	white-space: nowrap;
}

/* Card body */
.archive-card__body {
	padding: 0 20px 25px;
}

/* Title — exact blog values */
.archive-card__title {
	font-family: 'Inter Tight', sans-serif;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.3px;
	text-transform: none;
	color: #1C6327;
	margin: 20px 0 0;
}

.archive-card__title a {
	color: inherit;
	text-decoration: none;
}

.archive-card__title a:hover {
	color: #126E00;
}

/* Excerpt — exact blog values */
.archive-card__excerpt {
	font-family: 'Inter Tight', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.5px;
	color: #C2C2C2;
	margin: 10px 0 0;
}

/* Pagination */
.archive-pagination {
	display: flex;
	justify-content: center;
	gap: 0.5em;
	margin-top: 3em;
	flex-wrap: wrap;
}

.archive-pagination a,
.archive-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5em;
	height: 2.5em;
	padding: 0 0.75em;
	border-radius: 25px;
	font-family: 'Inter Tight', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
	color: #333;
	background: #EEEEEE;
	transition: background 0.2s, color 0.2s;
}

.archive-pagination a:hover {
	background: #126E00;
	color: #fff;
}

.archive-pagination .current {
	background: #126E00;
	color: #fff;
	font-weight: 700;
}

.archive-no-posts {
	text-align: center;
	font-family: 'Inter Tight', sans-serif;
	font-size: 1.1rem;
	color: #888;
	padding: 3em 0;
}

/* Tablet */
@media (max-width: 1024px) {
	.archive-banner {
		padding: 6em 0 2em;
	}
	.archive-banner__title {
		font-size: 1.65rem;
	}
	.archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.archive-card__thumb {
		height: 350px;
	}
	.archive-card__title {
		font-size: 22px;
	}
	.archive-card__cat {
		font-size: 12px;
	}
	.archive-card__excerpt {
		font-size: 14px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.archive-banner {
		padding: 6em 0 2em;
		min-height: auto;
	}
	.archive-banner__title {
		font-size: 1.35rem;
	}
	.archive-grid {
		grid-template-columns: 1fr;
	}
	.archive-card__thumb {
		height: 300px;
	}
	.archive-card__title {
		font-size: 21px;
	}
	.archive-card__cat {
		font-size: 13px;
	}
	.archive-card__excerpt {
		font-size: 14px;
	}
}
