#module-jmsblog-home .cw-blog,
#module-jmsblog-category .cw-blog {
	padding-top: 0;
}

.cw-blog-toolbar {
	display: grid;
	grid-template-columns: minmax(330px, 1.15fr) minmax(0, 1.85fr);
	align-items: center;
	gap: 18px;
	margin: 0 0 48px;
	padding: 20px 0;
	border-top: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
}

.cw-blog-search {
	display: flex;
	align-items: center;
	min-width: 0;
	height: 58px;
	border: 1px solid #cfcfcf;
	border-radius: 10px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.cw-blog-search:focus-within {
	border-color: #111;
	box-shadow: 0 0 0 2px rgba(17, 17, 17, .08);
}

.cw-blog-search-icon {
	flex: 0 0 auto;
	width: 23px;
	height: 23px;
	margin-left: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	color: #111;
}

.cw-blog-search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 14px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111;
	font-size: 14px;
}

.cw-blog-search input::placeholder {
	color: #777;
	opacity: 1;
}

.cw-blog-search button {
	flex: 0 0 auto;
	height: 40px;
	margin-right: 8px;
	padding: 0 16px;
	border: 0;
	border-radius: 7px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.cw-blog-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	min-width: 0;
}

.cw-blog-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: 0;
	height: 58px;
	padding: 0 12px;
	border: 1px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.cw-blog-tab:hover,
.cw-blog-tab:focus {
	border-color: #111;
	color: #111;
	text-decoration: none;
}

.cw-blog-tab.is-active {
	border-color: #111;
	background: #111;
	color: #fff;
}

.cw-blog-tab svg {
	flex: 0 0 auto;
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cw-blog-tab span {
	text-transform: capitalize;
}

.cw-blog-results-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin: 0 0 38px;
	padding-bottom: 22px;
	border-bottom: 1px solid #ececec;
}

.cw-blog-results-label {
	display: block;
	margin-bottom: 6px;
	color: #f97316;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cw-blog-results-header h1 {
	margin: 0;
	color: #111;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.cw-blog-results-header > span {
	flex: 0 0 auto;
	color: #777;
	font-size: 13px;
}

#module-jmsblog-home .cw-blog-empty,
#module-jmsblog-category .cw-blog-empty {
	padding-top: 32px;
	padding-bottom: 80px;
}

@media (max-width: 1199px) {
	.cw-blog-toolbar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.cw-blog-toolbar {
		gap: 14px;
		margin-bottom: 32px;
		padding: 14px 0 18px;
	}

	.cw-blog-search {
		height: 54px;
	}

	.cw-blog-search-icon {
		margin-left: 15px;
	}

	.cw-blog-search button {
		height: 38px;
		padding: 0 12px;
	}

	.cw-blog-tabs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.cw-blog-tabs::-webkit-scrollbar {
		display: none;
	}

	.cw-blog-tab {
		flex: 0 0 auto;
		min-width: 145px;
		height: 50px;
		padding: 0 14px;
		scroll-snap-align: start;
	}

	.cw-blog-results-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		margin-bottom: 28px;
	}

	.cw-blog-results-header h1 {
		font-size: 23px;
	}
}

@media (max-width: 420px) {
	.cw-blog-search input {
		padding-right: 8px;
		font-size: 13px;
	}

	.cw-blog-search button {
		width: 40px;
		padding: 0;
		overflow: hidden;
		color: transparent;
		font-size: 0;
	}

	.cw-blog-search button::after {
		content: "→";
		color: #fff;
		font-size: 18px;
	}
}
