/* Blog list filter + pages (Search & Filter Pro form 7117, [blog_list] in functions.php) - loaded after main.css.
   The search on its own row, the categories in one full-width row of pills under it (was: a half-width column
   next to the search, 4 rows of big pills); on phones one row that scrolls sideways. 2026-11-10 */

.blog-list .filter .filter-categories form.searchandfilter > ul {
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	margin: 0;
	padding: 0;
}

.blog-list .filter .filter-categories .sf-field-search {
	order: -1;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 0;
}

.blog-list .filter .filter-categories .sf-field-search input {
	height: 52px;
}

.blog-list .filter .filter-categories .sf-field-category {
	width: 100%;
	padding: 0;
}

.blog-list .filter .filter-categories .sf-field-category ul {
	justify-content: center;
	gap: 10px;
	padding: 0;
	margin: 0;
	border: 0;
}

.blog-list .filter .filter-categories .sf-field-category ul li {
	margin: 0;
}

.blog-list .filter .filter-categories .sf-field-category ul li label {
	height: 42px;
	padding: 0 20px;
	font-size: 15px;
	border-color: #cfd6d5;
	transition: border-color .15s, color .15s, background-color .15s;
}

.blog-list .filter .filter-categories .sf-field-category ul li:not(.sf-option-active) label:hover {
	border-color: #21c11f;
	color: #009f10;
}

@media only screen and (max-width: 768px) {
	.blog-list .filter .filter-categories .sf-field-search {
		max-width: none;
	}

	/* one row that scrolls sideways, edge to edge */
	.blog-list .filter .filter-categories .sf-field-category ul {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 15px; /* snap the first pill to the padding, not the screen edge */
		scrollbar-width: none;
		margin: 0 -15px;
		padding: 0 15px 4px;
	}

	.blog-list .filter .filter-categories .sf-field-category ul::-webkit-scrollbar {
		display: none;
	}

	.blog-list .filter .filter-categories .sf-field-category ul li {
		flex: 0 0 auto;
		scroll-snap-align: start;
	}

	.blog-list .filter .filter-categories .sf-field-category ul li label {
		height: 40px;
		padding: 0 16px;
		font-size: 14px;
	}
}

/* Pages under the results (inside .results: Search & Filter Pro replaces them with the results). 2026-11-10 */
.blog-list .wrapper .pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 24px;
}

.blog-list .wrapper .pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: 50px;
	border: 1px solid #cfd6d5;
	color: #1e4843;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: border-color .15s, color .15s;
}

.blog-list .wrapper .pagination a.page-numbers:hover {
	border-color: #21c11f;
	color: #009f10;
}

.blog-list .wrapper .pagination .page-numbers.current {
	border-color: transparent;
	background: linear-gradient(93deg, #7fe425 -8.94%, #21c11f 97.09%);
	color: #fff;
}

.blog-list .wrapper .pagination .page-numbers.dots {
	border: 0;
	min-width: 0;
	padding: 0 4px;
}

.blog-list .wrapper .pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Cards: exact columns for the gap (main.css: 31.6% / 48% and space-between on tablets), and a part-full last row
   centered under the full rows, not spread to the edges or hanging left. 2026-11-10 */
.blog-list .wrapper.results {
	justify-content: center;
}

.blog-list .wrapper.results .item {
	width: calc((100% - 60px) / 3); /* 3 columns, gap 30px */
}

@media only screen and (max-width: 1200px) {
	.blog-list .wrapper.results .item {
		width: calc((100% - 50px) / 3); /* gap 25px */
	}
}

@media only screen and (max-width: 992px) {
	.blog-list .wrapper.results .item {
		width: calc((100% - 25px) / 2);
	}
}

@media only screen and (max-width: 768px) {
	.blog-list .wrapper.results .item {
		width: 100%;
	}
}

/* Blog header (.blog-hero, an Elementor widget): about half the screen before (425px desktop, 347px phone) - less
   padding and smaller pictures; the background shapes keep their full width and are cropped instead of squeezed
   (their SVGs scale to fit, so a lower section shrank the wave to the middle). 2026-11-10 */
.blog-hero {
	overflow: hidden;
}

.blog-hero h1 {
	font-size: 44px;
}

@media only screen and (min-width: 769px) {
	.blog-hero {
		padding: 116px 0 8px;
	}

	.blog-hero .vector {
		top: auto;
		bottom: 0;
		height: auto;
	}

	.blog-hero .vector svg {
		height: auto;
		display: block;
	}

	.blog-hero .vector-left svg {
		width: auto;
		display: block;
	}

	.blog-hero .row .item:first-child img {
		max-width: 60px;
	}

	.blog-hero .row .item:nth-of-type(3) img {
		max-width: 170px;
	}
}

@media only screen and (max-width: 768px) {
	.blog-hero {
		padding: 110px 0 8px;
	}

	.blog-hero h1 {
		font-size: 36px;
	}

	.blog-hero .row .item:first-child img {
		max-width: 40px;
	}

	.blog-hero .row .item:nth-of-type(3) img {
		max-width: 110px;
	}
}

/* Card tags: small light pills (were 36px solid blue, 16px) - more room for the title and a 3-line excerpt; the date
   on the tags' first line. The featured post's tags match. 2026-11-10 */
.blog-list .wrapper .post-item .info .flex {
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 14px;
}

.blog-list .wrapper .post-item .info .flex .categories {
	gap: 6px;
}

.blog-list .wrapper .post-item .info .flex .categories span,
.blog-list .featured .post-item .info .categories span {
	height: 26px;
	padding: 0 11px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2px;
	background: #e3f6fa;
	color: #0f7f98;
}

.blog-list .featured .post-item .info .categories span {
	height: 30px;
	padding: 0 14px;
	font-size: 13px;
}

.blog-list .wrapper .post-item .info .flex .date {
	font-size: 13px;
	line-height: 26px;
	white-space: nowrap;
	flex-shrink: 0;
}

.blog-list .wrapper .post-item .info .excerpt {
	margin-bottom: 24px;
}

.blog-list .wrapper .post-item .info .excerpt p {
	-webkit-line-clamp: 3;
	font-size: 16px;
}
