/* ==========================================================================
   Blog / Archive Listing — Hello Elementor Child
   Card grid used on archive.php, home.php and index.php
   ========================================================================== */

.spst-archive-hero {
	background: linear-gradient( 180deg, var(--spst-bg-soft) 0%, #ffffff 100% );
	border-bottom: 1px solid var(--spst-border);
	padding: 36px 24px 40px;
}

.spst-archive-hero__inner {
	max-width: var(--spst-max-width);
	margin: 0 auto;
}

.spst-archive-hero__title {
	font-size: clamp( 26px, 4vw, 42px );
	line-height: 1.15;
	font-weight: 800;
	margin: 0 0 8px;
	letter-spacing: -0.01em;
	color: var(--spst-text);
}

.spst-archive-hero__desc {
	color: var(--spst-text-muted);
	font-size: 16px;
	max-width: 680px;
	margin: 8px 0 0;
}

/* ---------------- Card Grid ---------------- */

.spst-card-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 28px;
}

.spst-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--spst-border);
	border-radius: var(--spst-radius);
	overflow: hidden;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	text-decoration: none;
	color: var(--spst-text);
}

.spst-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba( 30, 30, 38, 0.1 );
	border-color: transparent;
}

.spst-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--spst-bg-soft);
	overflow: hidden;
}

.spst-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.spst-card:hover .spst-card__thumb img {
	transform: scale(1.06);
}

.spst-card__thumb--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, var(--spst-border), var(--spst-bg-soft) );
}

.spst-card__cat {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--spst-accent);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 6px 12px;
	border-radius: 999px;
	text-decoration: none;
	backdrop-filter: blur(4px);
}

.spst-card__body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.spst-card__title {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 10px;
	color: var(--spst-text);
}

.spst-card__excerpt {
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--spst-text-muted);
	margin: 0 0 18px;
	flex: 1;
}

.spst-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--spst-text-muted);
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--spst-border);
}

.spst-card__meta-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--spst-text);
}

.spst-card__meta-author img {
	border-radius: 50%;
	display: block;
}

.spst-card__meta-dot {
	opacity: .5;
}

/* ---------------- No posts found ---------------- */

.spst-archive-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--spst-text-muted);
}

.spst-archive-empty h2 {
	font-size: 22px;
	color: var(--spst-text);
	margin-bottom: 10px;
}

/* ---------------- Pagination ---------------- */

.spst-pagination {
	margin-top: 56px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.spst-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid var(--spst-border);
	color: var(--spst-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.spst-pagination .page-numbers.current {
	background: var(--spst-accent);
	border-color: var(--spst-accent);
	color: #fff;
}

.spst-pagination .page-numbers:hover:not(.current) {
	border-color: var(--spst-accent);
	color: var(--spst-accent);
}

.spst-pagination .page-numbers.dots {
	border: none;
}

/* ---------------- Responsive ---------------- */

@media ( max-width: 600px ) {
	.spst-archive-hero {
		padding: 28px 16px 32px;
	}
}
