/*
 * Blog index + archives.
 *
 * The static site linked to blog.html from every page but the file never
 * existed, so there was no design to migrate. This is built from the same
 * tokens as the rest of the site (blue/sky palette, 14px radius, Tajawal).
 */

.blog-hero {
	padding: 64px 6% 40px;
	background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 100%);
	text-align: center;
}

.blog-hero-inner {
	max-width: 780px;
	margin: 0 auto;
}

.blog-hero-title {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 900;
	color: var(--text-dark);
	line-height: 1.25;
	margin-bottom: 14px;
}

.blog-hero-desc {
	font-size: 16px;
	color: var(--text-mid);
	line-height: 1.85;
	max-width: 640px;
	margin: 0 auto;
}

/* ------------------------------------------------------- category chips */

.blog-cats {
	margin-top: 28px;
}

.blog-cats-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.blog-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--white);
	border: 1.5px solid var(--blue-100);
	color: var(--text-mid);
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
	transition: border-color .18s, color .18s;
}

.blog-cat-chip:hover,
.blog-cat-chip:focus-visible {
	border-color: var(--blue-600);
	color: var(--blue-700);
}

.blog-cat-count {
	display: inline-grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--blue-50);
	color: var(--blue-700);
	font-size: 11.5px;
	font-weight: 800;
}

/* -------------------------------------------------------------- listing */

.blog-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 6% 80px;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--blue-100);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.blog-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
	border-color: var(--blue-200);
}

.blog-card-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.blog-card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 22px 24px;
	flex: 1;
}

.blog-card-cat {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--blue-50);
	color: var(--blue-700);
	font-size: 11.5px;
	font-weight: 800;
	text-decoration: none;
}

.blog-card-title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.5;
	color: var(--text-dark);
	margin: 0;
}

.blog-card-title a {
	color: inherit;
	text-decoration: none;
}

.blog-card-title a:hover {
	color: var(--blue-700);
}

.blog-card-excerpt {
	font-size: 14px;
	color: var(--text-mid);
	line-height: 1.8;
	margin: 0;
	flex: 1;
}

.blog-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--text-light);
	padding-top: 12px;
	border-top: 1px solid var(--blue-50);
}

.blog-empty {
	text-align: center;
	color: var(--text-mid);
	padding: 40px 0;
	line-height: 2;
}

/* ----------------------------------------------------------- pagination */

.navigation.pagination {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.navigation.pagination .nav-links {
	display: flex;
	gap: 8px;
	list-style: none;
	flex-wrap: wrap;
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1.5px solid var(--blue-100);
	color: var(--text-mid);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.navigation.pagination .page-numbers:hover {
	border-color: var(--blue-400);
	color: var(--blue-700);
}

.navigation.pagination .page-numbers.current {
	background: linear-gradient(135deg, var(--blue-600), var(--sky-500));
	border-color: transparent;
	color: #fff;
}

/* --------------------------------------------------------------- search */

.tix-search {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 24px auto 0;
}

.tix-search-input {
	flex: 1;
	padding: 12px 16px;
	border: 1.5px solid var(--blue-100);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	color: var(--text-dark);
	background: #fff;
}

.tix-search-input:focus-visible {
	outline: 2px solid var(--blue-600);
	outline-offset: 1px;
	border-color: var(--blue-400);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 600px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
	.blog-hero {
		padding: 44px 6% 30px;
	}
	.tix-search {
		flex-direction: column;
	}
}
