/* Syrow blog card grid - loaded only on /blog/, category and tag archives (see functions.php) */
body.blog #main-content .container:before,
body.category #main-content .container:before,
body.tag #main-content .container:before { display: none; }
body.blog #main-content,
body.category #main-content,
body.tag #main-content { background: #f7f8fa; }

.syrow-blog { padding: 56px 0 72px; }

.sb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px;
}

.sb-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(16, 38, 63, .06);
	transition: box-shadow .5s ease, transform .5s ease;
	color: inherit;
	text-decoration: none;
	height: 350px;
	-webkit-tap-highlight-color: transparent;
}

.sb-media {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #10263f;
}
.sb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
}

.sb-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgb(4 18 34 / 97%) 0%, rgb(21 130 255 / 22%) 55%, rgb(255 255 255 / 25%) 100%);
}

.sb-tag {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 6px 16px;
	background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 999px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.4;
}

.sb-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
}
.syrow-blog .sb-title {
	margin: 0 0 8px;
	padding: 0;
	color: #fff;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.35;
	transition: color .3s ease;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sb-excerpt {
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .65);
	font-size: 13px;
	font-weight: 300;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .3s ease;
}

.sb-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px;
	border-top: 1px solid #eef0f3;
}
.sb-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #4682b4;
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.sb-dot { width: 4px; height: 4px; border-radius: 50%; background: #c9ced6; }
.sb-read {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #10263f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: gap .3s ease;
}
.sb-read svg { color: #d9534f; }

/* Pagination */
.sb-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 64px;
}
.sb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2e5ea;
	color: #10263f;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all .3s ease;
}
.syrow-blog .sb-pagination .page-numbers.prev,
.syrow-blog .sb-pagination .page-numbers.next { display: inline-flex !important; } /* style.css hides .next globally */
.sb-pagination .page-numbers.current {
	background: #10263f;
	border-color: #10263f;
	color: #fff;
	box-shadow: 0 10px 20px -6px rgba(16, 38, 63, .45);
}
.sb-pagination .page-numbers.dots { border: 0; background: none; width: auto; }

/* Hover effects only for mouse/trackpad - touch taps would otherwise leave cards stuck in hover state */
@media (hover: hover) and (pointer: fine) {
	.sb-card:hover {
		transform: translateY(-4px);
		box-shadow: 0 20px 40px -12px rgba(16, 38, 63, .25);
	}
	.sb-card:hover .sb-img { transform: scale(1.05); }
	.sb-card:hover .sb-title { color: #ebffad; }
	.sb-card:hover .sb-excerpt,
	.sb-excerpt:hover { color: #f5ffd5; }
	.sb-card:hover .sb-read { gap: 12px; }
	.sb-pagination a.page-numbers:hover { border-color: #d9534f; color: #d9534f; }
}

/* Touch devices: the card in the middle of the screen (or the one being touched) gets the hover look - see home.php */
@media (hover: none), (pointer: coarse) {
	.sb-card.is-active {
		transform: translateY(-4px);
		box-shadow: 0 20px 40px -12px rgba(16, 38, 63, .25);
	}
	.sb-card.is-active .sb-img { transform: scale(1.05); }
	.sb-card.is-active .sb-title { color: #ebffad; }
	.sb-card.is-active .sb-excerpt { color: #f5ffd5; }
	.sb-card.is-active .sb-read { gap: 12px; }
}

@media (max-width: 980px) {
	.sb-grid { gap: 28px; }
}
@media (max-width: 640px) {
	.syrow-blog { padding: 32px 0 48px; }
	.sb-grid { grid-template-columns: 1fr; gap: 24px; }
	.sb-card { height: 340px; border-radius: 22px; }
	.sb-tag { top: 14px; left: 14px; padding: 5px 13px; }
	.syrow-blog .sb-title { font-size: 18px; margin-bottom: 6px; }
	.sb-excerpt { font-size: 12.5px; }
	.sb-text { padding: 18px 20px; }
	.sb-foot { padding: 14px 20px; }
	.sb-meta { gap: 8px; letter-spacing: .06em; }
	.sb-pagination { gap: 6px; margin-top: 40px; }
	.sb-pagination .page-numbers { width: 38px; height: 38px; font-size: 14px; }
}
