/* WebAshes blog listing page (templates/home.html) */

.wa-blog-header {
	background: #F2F0EC;
}

/* ---- Category nav ---- */
.wa-blog-cat-nav {
	position: sticky;
	top: var(--wa-header-height, 64px);
	z-index: 20;
	background: #FFFFFF;
	border-top: 1px solid #C4C0B8;
	border-bottom: 1px solid #C4C0B8;
}
.wa-blog-cat-nav .wa-cat-scroll {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 32px;
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.wa-blog-cat-nav .wa-cat-scroll::-webkit-scrollbar {
	display: none;
}
.wa-blog-cat-nav .wa-tab {
	flex: 0 0 auto;
	position: relative;
	padding: 16px 2px;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	color: #2B2B2B;
	transition: color 0.15s ease;
}
.wa-blog-cat-nav .wa-tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: #D4380D;
	transform: scaleX(0);
	transition: transform 0.18s ease;
}
.wa-blog-cat-nav .wa-tab:hover::after {
	transform: scaleX(1);
}
.wa-blog-cat-nav .wa-tab.is-active {
	color: #D4380D;
}
.wa-blog-cat-nav .wa-tab.is-active::after {
	transform: scaleX(1);
}

/* ---- Search block: force the "fused" input+button look ---- */
.wa-blog-header .wp-block-search {
	max-width: 720px;
	margin-top: 14px;
}
.wa-blog-header .wp-block-search__inside-wrapper {
	border: 1px solid #C4C0B8;
	border-radius: 10px;
	background: #FFFFFF;
	overflow: hidden;
}
.wa-blog-header .wp-block-search__input {
	border: none !important;
	padding: 16px 18px !important;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	font-size: 15px;
	color: #111111;
	background: transparent;
}
.wa-blog-header .wp-block-search__button {
	border: none !important;
	background: #D4380D !important;
	color: #FFFFFF !important;
	padding: 0 26px !important;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	font-weight: 600;
	font-size: 14px;
	border-radius: 0 !important;
}
.wa-blog-header .wp-block-search__button:hover {
	background: #B8300B !important;
}

/* ---- Post grid ---- */
.wa-grid.wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 980px) {
	.wa-grid.wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.wa-grid.wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

.wa-card {
	border: 1px solid #C4C0B8;
	border-radius: 12px;
	overflow: hidden;
	background: #FFFFFF;
	box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.wa-card:hover {
	border-color: #D4380D;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}
.wa-card:hover .wa-read.wp-block-read-more {
	color: #B8300B !important;
}

.wa-card .wa-card-media {
	position: relative;
}
.wa-card .wa-card-media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: #D4380D;
}
.wa-card .wa-card-media img {
	aspect-ratio: 3/2;
	object-fit: cover;
	width: 100%;
	display: block;
}

.wa-card .wa-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wa-card .wp-block-post-terms {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.wa-card .wp-block-post-terms a {
	color: #D4380D;
	text-decoration: none;
}
.wa-card .wp-block-post-date {
	font-size: 13px;
	color: #6B6B6B;
}
.wa-card .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.35;
}
.wa-card .wp-block-post-title a {
	color: #111111;
	text-decoration: none;
}
.wa-card .wp-block-post-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #2B2B2B;
}
.wa-card .wp-block-post-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}
.wa-card .wa-read.wp-block-read-more {
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	font-weight: 600;
	font-size: 14px;
	color: #D4380D;
	text-decoration: none;
	display: inline-block;
}

/* ---- Pagination ---- */
.wa-blog-pagination {
	padding: 48px 0 80px;
}
.wa-blog-pagination .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.wa-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	border: 1px solid #C4C0B8;
	background: #FFFFFF;
	color: #2B2B2B;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.wa-blog-pagination .page-numbers:hover {
	color: #D4380D;
	border-color: #D4380D;
}
.wa-blog-pagination .page-numbers.current {
	background: #D4380D;
	border-color: #D4380D;
	color: #FFFFFF;
}
.wa-blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ---- Newsletter band ---- */
.wa-blog-newsletter {
	background: #111111;
}
.wa-blog-newsletter .wp-block-shortcode {
	width: 100%;
}
.wa-blog-newsletter form {
	text-align: left;
}
