/* Blog Post Grid — structural styles matching case-study-filter-grid (28379).
   Colors and typography a user should change live in Style tab controls with
   `selectors`. Buttons and checkboxes are scoped with the root class so
   hello-elementor's resets cannot win. */

.bpg-30501 {
	--bpg-accent: #128ccd;
}

.bpg-30501 .bpg-30501__heading {
	margin: 0 0 2rem;
	text-align: center;
	font-size: var(--tw-h2-size, clamp(28px, 3.4vw, 42px));
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bpg-30501__layout {
	display: flex;
	gap: 2.5rem;
	align-items: flex-start;
}

.bpg-30501__sidebar {
	flex: 0 0 220px;
}

.bpg-30501__sidebar-title {
	margin-bottom: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bpg-30501__filter-title {
	font-weight: 700;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--bpg-accent);
}

.bpg-30501__filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.bpg-30501__filter-item label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

/* DaisyUI-inspired: native input semantics with a compact custom control. */
.bpg-30501 .bpg-30501__filter-checkbox {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 1.25rem;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	border: 2px solid var(--bpg-accent);
	border-radius: 0.25rem;
	background: #fff;
	color: #fff;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.bpg-30501 .bpg-30501__filter-checkbox:checked {
	border-color: var(--bpg-accent);
	background-color: var(--bpg-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.25'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.9rem;
}

.bpg-30501 .bpg-30501__filter-checkbox:focus-visible {
	outline: 3px solid rgba(18, 140, 205, 0.35);
	outline-offset: 2px;
}

.bpg-30501__main {
	flex: 1 1 auto;
	min-width: 0;
	background-color: #f4f4f4;
	padding: 24px;
}

.bpg-30501__cards {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bpg-30501__card {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.bpg-30501__card.is-hidden {
	display: none;
}

.bpg-30501__card-image {
	flex: 1 1 260px;
	min-height: 220px;
	background-color: #d9dce0;
	background-size: cover;
	background-position: center;
}

.bpg-30501__card-image--placeholder {
	display: grid;
	place-items: center;
	background-color: #0b6a9c;
	background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.16) 75%, transparent 75%);
	background-size: 2rem 2rem;
	text-decoration: none;
}

.bpg-30501__card-image--placeholder::after {
	content: 'TUFFWRAP\A ARTICLE';
	white-space: pre;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.75);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-align: center;
}

.bpg-30501__card-body {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	min-width: 0;
}

.bpg-30501__card-date {
	font-size: 0.85rem;
	font-style: italic;
	line-height: 1.2;
}

.bpg-30501 .bpg-30501__card-title {
	margin: 0;
	color: #231f20;
	font-size: clamp(1.1rem, 1.5vw, 1.35rem);
	font-weight: 800;
	line-height: 1.2;
}

.bpg-30501 .bpg-30501__card-title a {
	color: inherit;
	text-decoration: none;
}

.bpg-30501__card-cats {
	margin: 0;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.3;
}

.bpg-30501__card-excerpt {
	margin: 0;
	color: #4a4a4d;
	font-size: 0.9rem;
	line-height: 1.4;
}

.bpg-30501__button {
	align-self: flex-start;
	margin-top: 0.4rem;
}

.bpg-30501__empty {
	display: grid;
	place-items: center;
	min-height: 18rem;
	padding: 2rem;
	border: 1px solid rgba(18, 140, 205, 0.35);
	background: rgba(18, 140, 205, 0.05);
	text-align: center;
}

.bpg-30501__empty[hidden] {
	display: none;
}

.bpg-30501__empty-icon {
	width: 3rem;
	height: 3rem;
	margin-bottom: 0.75rem;
	color: var(--bpg-accent);
}

.bpg-30501__empty-title,
.bpg-30501__empty-copy {
	margin: 0;
}

.bpg-30501__empty-title {
	font-weight: 700;
}

.bpg-30501__empty-copy {
	max-width: 28rem;
	margin-top: 0.5rem;
}

/* Pagination: numbered square buttons on the left, arrows on the right. */
.bpg-30501 .bpg-30501__pagination {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(18, 140, 205, 0.35);
}

.bpg-30501 .bpg-30501__pagination[hidden] {
	display: none;
}

.bpg-30501 .bpg-30501__pages {
	order: -1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-right: auto;
}

.bpg-30501 .bpg-30501__page {
	min-width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0.25rem;
	border: 1px solid rgba(18, 140, 205, 0.45);
	border-radius: 0;
	background-color: #fff;
	color: #0b6a9c;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.bpg-30501 .bpg-30501__page:hover,
.bpg-30501 .bpg-30501__page:focus-visible {
	border-color: var(--bpg-accent);
	background-color: rgba(18, 140, 205, 0.1);
}

.bpg-30501 .bpg-30501__page.is-active {
	background-color: var(--bpg-accent);
	border-color: var(--bpg-accent);
	color: #fff;
}

.bpg-30501 .bpg-30501__arrow {
	margin: 0;
	padding: 0.25rem 0.5rem;
	border: none;
	border-radius: 0;
	background: none;
	color: var(--bpg-accent);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.bpg-30501 .bpg-30501__arrow:hover,
.bpg-30501 .bpg-30501__arrow:focus {
	background: none;
	color: #0b6a9c;
}

.bpg-30501 .bpg-30501__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

@media (max-width: 767px) {
	.bpg-30501__layout {
		flex-direction: column;
	}

	.bpg-30501__sidebar {
		flex-basis: auto;
		width: 100%;
	}

	.bpg-30501__main {
		width: 100%;
		padding: 16px;
	}
}
