/* PowerCrabs Blog Grid. Colours are populated by the plugin's validated settings.
   All rules are scoped to .pcb-blog-section; your theme's fonts are inherited. */
.pcb-blog-section {
	width: 100%;
	margin: 0;
	padding: 0;
	scroll-margin-top: 100px;
}
.pcb-blog-section, .pcb-blog-section *, .pcb-blog-section *::before, .pcb-blog-section *::after {
	box-sizing: border-box;
}
.pcb-blog-section .pcb-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	width: 100%;
}
/* 4:3 landscape cards, retaining the original shape, shadow and overlay. */
.pcb-blog-section .pcb-blog-card {
	position: relative;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 18px;
	background: var(--pcb-card-background-color, #222222);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
	isolation: isolate;
	container-type: inline-size;
	container-name: pcb-card;
}
.pcb-blog-section .pcb-blog-image-link {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	text-decoration: none;
}
.pcb-blog-section .pcb-blog-card-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	object-position: center;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.pcb-blog-section .pcb-blog-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--pcb-placeholder-start-color, #283048), var(--pcb-placeholder-end-color, #859398));
}
.pcb-blog-section .pcb-blog-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to top,
		var(--pcb-overlay-96, rgba(0, 0, 0, 0.96)) 0%,
		var(--pcb-overlay-78, rgba(0, 0, 0, 0.78)) 30%,
		var(--pcb-overlay-35, rgba(0, 0, 0, 0.35)) 58%,
		var(--pcb-overlay-5, rgba(0, 0, 0, 0.05)) 100%);
}
.pcb-blog-section .pcb-blog-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: var(--pcb-hover-overlay-color, rgba(0, 0, 0, 0.25));
	opacity: 0;
	transition: opacity 0.4s ease;
}
.pcb-blog-section .pcb-blog-card-content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 3;
	padding: 24px;
	color: var(--pcb-heading-color, #ffffff);
}
.pcb-blog-section .pcb-blog-category {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 0 0 10px;
	padding: 7px 12px;
	overflow: hidden;
	border: 1px solid var(--pcb-category-border-color, rgba(255, 255, 255, 0.4));
	border-radius: 50px;
	background: var(--pcb-category-background-color, rgba(255, 255, 255, 0.16));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--pcb-category-text-color, #ffffff) !important;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08em;
	text-overflow: ellipsis;
	text-transform: uppercase;
	white-space: nowrap;
}
.pcb-blog-section .pcb-blog-title {
	display: -webkit-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	color: var(--pcb-heading-color, #ffffff) !important;
	font-size: clamp(20px, 1.65vw, 27px);
	font-weight: 700;
	line-height: 1.22;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.pcb-blog-section .pcb-blog-title a,
.pcb-blog-section .pcb-blog-title a:visited {
	color: var(--pcb-heading-color, #ffffff) !important;
	font: inherit;
	text-decoration: none !important;
}
.pcb-blog-section .pcb-blog-title a:hover,
.pcb-blog-section .pcb-blog-title a:focus-visible {
	color: var(--pcb-heading-hover-color, #ffffff) !important;
	text-decoration: none;
}
/* An intrinsic-height reveal replaces translateY(92px). Titles remain visible
   without guessing how tall the excerpt and button will be. */
.pcb-blog-section .pcb-blog-hover-content {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	visibility: hidden;
	transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease, visibility 0.45s ease;
}
.pcb-blog-section .pcb-blog-hover-inner {
	min-height: 0;
	overflow: hidden;
}
.pcb-blog-section .pcb-blog-hover-body { padding-top: 13px; }
.pcb-blog-section .pcb-blog-excerpt {
	display: -webkit-box;
	margin: 0 0 15px;
	padding: 0;
	overflow: hidden;
	color: var(--pcb-excerpt-color, rgba(255, 255, 255, 0.88)) !important;
	font-size: 14px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.pcb-blog-section .pcb-blog-read-more,
.pcb-blog-section .pcb-blog-read-more:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	max-width: 100%;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--pcb-button-border-color, rgba(255, 255, 255, 0.72));
	border-radius: 50px;
	background: var(--pcb-button-background-color, transparent);
	color: var(--pcb-button-text-color, #ffffff) !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	overflow-wrap: anywhere;
	transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.pcb-blog-section .pcb-blog-button-arrow {
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
	transition: transform 0.3s ease;
}
.pcb-blog-section .pcb-blog-read-more:hover,
.pcb-blog-section .pcb-blog-read-more:focus-visible {
	border-color: var(--pcb-button-hover-border-color, #ffffff);
	background: var(--pcb-button-hover-background-color, #ffffff);
	color: var(--pcb-button-hover-text-color, #111111) !important;
	text-decoration: none;
}
.pcb-blog-section .pcb-blog-read-more:hover .pcb-blog-button-arrow,
.pcb-blog-section .pcb-blog-read-more:focus-visible .pcb-blog-button-arrow { transform: translateX(4px); }
.pcb-blog-section .pcb-blog-card:hover .pcb-blog-card-image,
.pcb-blog-section .pcb-blog-card:focus-within .pcb-blog-card-image,
.pcb-blog-section .pcb-blog-card.is-active .pcb-blog-card-image { transform: scale(1.07); }
.pcb-blog-section .pcb-blog-card:hover::after,
.pcb-blog-section .pcb-blog-card:focus-within::after,
.pcb-blog-section .pcb-blog-card.is-active::after { opacity: 1; }
.pcb-blog-section .pcb-blog-card:hover .pcb-blog-hover-content,
.pcb-blog-section .pcb-blog-card:focus-within .pcb-blog-hover-content,
.pcb-blog-section .pcb-blog-card.is-active .pcb-blog-hover-content {
	grid-template-rows: 1fr;
	opacity: 1;
	visibility: visible;
}
/* Obvious keyboard focus without relying on the hover colour alone. */
.pcb-blog-section .pcb-blog-card:focus-within { outline: 2px solid currentColor; outline-offset: 3px; }
.pcb-blog-section .pcb-blog-read-more:focus-visible { outline: 2px solid var(--pcb-button-hover-text-color, #111111); outline-offset: -4px; }
.pcb-blog-section .pcb-blog-title a:focus-visible { text-decoration: underline !important; }
.pcb-blog-section .pcb-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 45px;
}
.pcb-blog-section .pcb-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 43px;
	height: 43px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--pcb-pagination-border-color, #dedede);
	border-radius: 10px;
	background: var(--pcb-pagination-background-color, #ffffff);
	color: var(--pcb-pagination-text-color, #222222) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.pcb-blog-section .pcb-blog-pagination a.page-numbers:hover,
.pcb-blog-section .pcb-blog-pagination a.page-numbers:focus-visible {
	border-color: var(--pcb-pagination-hover-border-color, #111111);
	background: var(--pcb-pagination-hover-background-color, #111111);
	color: var(--pcb-pagination-hover-text-color, #ffffff) !important;
	transform: translateY(-2px);
}
.pcb-blog-section .pcb-blog-pagination a.page-numbers:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.pcb-blog-section .pcb-blog-pagination .page-numbers.current {
	border-color: var(--pcb-pagination-active-border-color, #111111);
	background: var(--pcb-pagination-active-background-color, #111111);
	color: var(--pcb-pagination-active-text-color, #ffffff) !important;
}
.pcb-blog-section .pcb-blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
	color: var(--pcb-pagination-dots-color, #555555) !important;
}
.pcb-blog-section .pcb-blog-empty {
	width: 100%;
	padding: 30px;
	border-radius: 12px;
	background: #f5f5f5;
	color: #222222;
	text-align: center;
}
.pcb-blog-section .pcb-blog-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}
@media (max-width: 980px) {
	.pcb-blog-section .pcb-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
	.pcb-blog-section .pcb-blog-card-content { padding: 22px; }
	.pcb-blog-section .pcb-blog-title { font-size: 23px; }
}
@media (max-width: 600px) {
	.pcb-blog-section .pcb-blog-grid { grid-template-columns: 1fr; gap: 20px; }
	.pcb-blog-section .pcb-blog-card { border-radius: 14px; }
	.pcb-blog-section .pcb-blog-card-content { padding: 20px; }
	.pcb-blog-section .pcb-blog-title { font-size: 21px; line-height: 1.2; }
	.pcb-blog-section .pcb-blog-hover-content { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
	.pcb-blog-section .pcb-blog-hover-body { padding-top: 10px; }
	.pcb-blog-section .pcb-blog-excerpt { margin-bottom: 12px; font-size: 13px; line-height: 1.45; }
	.pcb-blog-section .pcb-blog-read-more { padding: 9px 14px; font-size: 11px; }
	.pcb-blog-section .pcb-blog-pagination { gap: 7px; margin-top: 32px; }
	.pcb-blog-section .pcb-blog-pagination .page-numbers { min-width: 38px; height: 38px; padding: 0 11px; font-size: 13px; }
}
/* Touch tablets have no dependable hover state: keep the excerpt / button visible. */
@media (hover: none), (pointer: coarse) {
	.pcb-blog-section .pcb-blog-hover-content { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
}
@media (max-width: 380px) {
	.pcb-blog-section .pcb-blog-card-content { padding: 16px; }
	.pcb-blog-section .pcb-blog-category { margin-bottom: 7px; padding: 6px 10px; font-size: 9px; }
	.pcb-blog-section .pcb-blog-title { font-size: 19px; }
	.pcb-blog-section .pcb-blog-excerpt { -webkit-line-clamp: 1; }
}
/* Narrow builder columns need slightly tighter content even on wide monitors. */
@container pcb-card (max-width: 350px) {
	.pcb-blog-section .pcb-blog-card-content { padding: 18px; }
	.pcb-blog-section .pcb-blog-title { font-size: 21px; line-height: 1.2; }
	.pcb-blog-section .pcb-blog-category { margin-bottom: 8px; padding: 6px 10px; font-size: 9px; }
	.pcb-blog-section .pcb-blog-hover-body { padding-top: 10px; }
	.pcb-blog-section .pcb-blog-excerpt { margin-bottom: 12px; font-size: 13px; line-height: 1.45; }
	.pcb-blog-section .pcb-blog-read-more { padding: 9px 14px; font-size: 11px; }
}
@container pcb-card (max-width: 300px) {
	.pcb-blog-section .pcb-blog-card-content { padding: 14px; }
	.pcb-blog-section .pcb-blog-title { font-size: 19px; }
	.pcb-blog-section .pcb-blog-excerpt { -webkit-line-clamp: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.pcb-blog-section .pcb-blog-card-image,
	.pcb-blog-section .pcb-blog-card::after,
	.pcb-blog-section .pcb-blog-hover-content,
	.pcb-blog-section .pcb-blog-read-more,
	.pcb-blog-section .pcb-blog-button-arrow,
	.pcb-blog-section .pcb-blog-pagination .page-numbers { transition: none; }
}
