@font-face {
	font-family: Poppins;
	src: url("../fonts/poppins-bold-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 700;
	font-display: swap;
}

.cp-blog {
	color: var(--cp-muted);
	font-size: 15px;
	line-height: 1.7;
}

.cp-blog-width {
	width: 80%;
	max-width: 1180px;
	margin-inline: auto;
}

.cp-blog-banner {
	display: grid;
	align-items: center;
	min-height: calc(400px - var(--cp-header-height));
	padding-block-start: 12px;
	background: #f1f1f1 url("../img/cp-pages-banner-alt.jpg") center center / cover no-repeat;
}

.cp-blog .cp-blog-banner h1 {
	max-width: 540px;
	margin: 0;
	padding-block-end: 10px;
	color: #a9722d;
	font-family: Poppins, var(--cp-font);
	font-size: 50px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

@supports (background-clip: text) {
	.cp-blog .cp-blog-banner h1 {
		background: linear-gradient(147deg, #d5b777, #aa742d);
		background-clip: text;
		color: transparent;
	}
}

.cp-blog-archive {
	padding-block: 86px 85px;
}

.cp-blog-search {
	display: flex;
	width: min(100%, 600px);
	height: 40px;
	margin: 0 auto 31px;
	border: 1px solid var(--cp-border);
	border-radius: 3px;
}

.cp-blog-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 8px 10px;
	border: 0;
	background: transparent;
	color: var(--cp-black);
	font-size: 14px;
}

.cp-blog-search button {
	width: 68px;
	padding: 0;
	border: 0;
	background: var(--cp-black);
	cursor: pointer;
}

.cp-blog-search button::before {
	display: block;
	width: 17px;
	height: 17px;
	margin: auto;
	background: url("../img/search.svg") center / contain no-repeat;
	filter: brightness(0) invert(1);
	content: "";
}

.cp-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(32px, 4.4vw, 64px);
}

.cp-blog-card {
	border: 1px solid #d8d8d8;
	background: var(--cp-white);
}

.cp-blog-card-image {
	display: block;
	overflow: hidden;
	background: #f7f7f7;
}

.cp-blog-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 8 / 5;
	object-fit: cover;
}

.cp-blog-card-image:hover img { opacity: .85; }

.cp-blog-card-copy { padding: 28px 19px 19px; }

.cp-blog .cp-blog-card h2 {
	margin: 0;
	padding-bottom: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 22px;
}

.cp-blog h2 a,
.cp-blog-sidebar a,
.cp-blog-pagination a {
	text-decoration: none;
}

.cp-blog h2 a:hover,
.cp-blog-sidebar a:hover,
.cp-blog-pagination a:hover { text-decoration: underline; }

.cp-blog-date { margin: 10px 0 6px; }
.cp-blog-card .cp-blog-date { line-height: 20px; }
.cp-blog-excerpt { font-size: 14px; line-height: 20px; }
.cp-blog-excerpt p { margin: 0; }

.cp-blog-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: 30px;
}

.cp-blog-pagination a { color: #976322; }

.cp-blog-columns {
	display: grid;
	grid-template-columns: minmax(0, 79fr) minmax(0, 21fr);
	padding-block: 50px;
}

.cp-blog-primary {
	min-width: 0;
	padding-inline-end: 7%;
}

.cp-blog-sidebar {
	min-width: 0;
	padding-inline-start: 30px;
	border-inline-start: 1px solid #e2e2e2;
}

.cp-blog .cp-blog-sidebar h2 {
	margin: 0 0 12px;
	font-size: 18px;
}

.cp-blog-sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-blog-sidebar li { margin-block-end: 6px; }

.cp-blog .cp-blog-single h1 {
	margin: 0;
	padding-bottom: 10px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1;
}

.cp-blog-single .cp-blog-date,
.cp-blog-result .cp-blog-date {
	padding-bottom: 15px;
	font-size: 14px;
}

.cp-blog-full-image {
	display: block;
	width: 100%;
	height: auto;
}

.cp-blog-copy { margin-block-start: 28px; overflow-wrap: anywhere; }
.cp-blog-copy h2 { margin-block: 1.2em .45em; font-size: 24px; }
.cp-blog-copy h3 { margin-block: 1em .45em; font-size: 20px; }
.cp-blog-copy img { height: auto; }
.cp-blog-copy a { color: #976322; }

.cp-blog-result { margin-block-end: 56px; }
.cp-blog-result .cp-blog-full-image { margin-block-end: 24px; }
.cp-blog .cp-blog-result h2 {
	margin: 0;
	padding-bottom: 10px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
}

.cp-blog-results .cp-blog-search { margin-inline: 0; }

@media (max-width: 980px) {
	.cp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cp-blog-columns { grid-template-columns: minmax(0, 1fr); }
	.cp-blog-primary { padding-inline-end: 0; }
	.cp-blog-sidebar {
		margin-block-start: 34px;
		padding: 24px 0 0;
		border-inline-start: 0;
		border-block-start: 1px solid #e2e2e2;
	}
}

@media (max-width: 767px) {
	.cp-blog-width { width: 90%; }
	.cp-blog-banner {
		align-items: end;
		min-height: calc(305px - var(--cp-header-height));
		padding-block-end: 30px;
	}
	.cp-blog .cp-blog-banner h1 { font-size: 32px; line-height: 40px; }
	.cp-blog-archive { padding-block: 80px 50px; }
	.cp-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 39px; }
	.cp-blog-card h2 { padding-block-end: 0; }
	.cp-blog .cp-blog-result h2 { padding-block-end: 0; font-size: 16px; }
}
