.bps-grid {
	display: grid;
	grid-template-columns: repeat(var(--bps-columns, 3), minmax(0, 1fr));
	gap: 22px;
}

@media (max-width: 1080px) {
	.bps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.bps-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}

.bps-card {
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #e6ebf5;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	transition: transform 180ms ease, box-shadow 180ms ease;
	color: #0f172a;
}

.bps-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
}

.bps-card__frame {
	padding: 4px 8px 0;
}

.bps-card__chrome {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 4px;
}

.bps-card__chrome span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(145deg, #d4dae6 0%, #c1c8d6 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bps-card__media {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	background: #ffffff;
	border: 1px solid #e9edf5;
}

.bps-card__media img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
	transform: translateZ(0) scale(1);
	transition: transform 200ms ease, filter 200ms ease;
}

.bps-card__placeholder {
	display: grid;
	place-items: center;
	height: 230px;
	color: #9aa3b8;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	background: repeating-linear-gradient(-45deg, #161b28, #161b28 10px, #1e2433 10px, #1e2433 20px);
}

.bps-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border-radius: 999px;
	background: #ffffff;
	color: #0f172a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
	border: 1px solid #e1e6f0;
}

.bps-card__badge-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.bps-card__body {
	padding: 16px 16px 18px;
	display: grid;
	gap: 6px;
	background: #ffffff;
}

.bps-card__title {
	margin: 0;
	font-size: 18px;
	color: #0f172a;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.bps-card__category {
	color: #5f6b89;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.bps-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
	padding: 6px 0 2px;
	color: #1d4ed8;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 140ms ease, gap 140ms ease;
}

.bps-card__cta svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.bps-card__cta:hover {
	color: #153ea8;
	gap: 10px;
	text-decoration: underline;
}

.bps-card:hover .bps-card__media img {
	transform: translateZ(0) scale(1.035);
}

.bps-empty {
	padding: 16px;
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	color: #475569;
	text-align: center;
}

/* Style 2 (Light, stacked CTA bar) */
.bps-card--style2 {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e5ebf6;
	border-radius: 20px;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
	overflow: hidden;
	position: relative;
	padding: 14px;
}

.bps-card--style2:hover {
	transform: translateY(-4px);
	box-shadow: 0 34px 90px rgba(15, 23, 42, 0.16);
}

.bps-card--style2 .bps-card__frame {
	padding: 0;
	display: block;
}

.bps-card--style2 .bps-card__chrome {
	display: none;
}

.bps-card--style2 .bps-card__media {
	background: #f4f5f7;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 30px rgba(15, 23, 42, 0.08);
	position: relative;
	overflow: hidden;
}

.bps-card--style2 .bps-card__media img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
}

.bps-card--style2 .bps-card__badge {
	display: none;
}

.bps-card--style2 .bps-card__badge-dot {
	display: none;
}

.bps-card--style2 .bps-card__body {
	background: #ffffff;
	border: none;
	border-radius: 14px;
	padding: 12px 6px 0;
	gap: 6px;
	box-shadow: none;
	display: grid;
}

.bps-card--style2 .bps-card__title {
	color: #0b1220;
	letter-spacing: -0.02em;
	font-size: 19px;
	font-weight: 800;
}

.bps-card--style2 .bps-card__category {
	color: #4b5563;
	background: #eef1f5;
	border-radius: 10px;
	padding: 6px 10px;
	display: inline-block;
	width: fit-content;
	font-weight: 600;
}

.bps-card--style2 .bps-card__cta {
	justify-content: center;
	color: #ffffff;
	background: linear-gradient(135deg, #4f8ff9 0%, #2f6be4 100%);
	padding: 11px 14px;
	border-radius: 12px;
	box-shadow: 0 16px 28px rgba(47, 107, 228, 0.3);
	gap: 10px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	margin-top: 6px;
}

.bps-card--style2 .bps-card__cta:hover {
	color: #ffffff;
	box-shadow: 0 20px 36px rgba(47, 107, 228, 0.36);
	letter-spacing: 0.003em;
}

@media (max-width: 900px) {
	.bps-card--style2 {
		padding: 12px;
	}
}

/* Style 3 (Minimal, soft shadow, tags) */
.bps-card--style3 {
	background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
	border: 1px solid #e5ebf6;
	border-radius: 18px;
	box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
	display: flex;
	flex-direction: column;
	padding: 12px 12px 14px;
	gap: 12px;
}

.bps-card--style3 .bps-card__frame {
	padding: 0;
}

.bps-card--style3 .bps-card__chrome {
	display: none;
}

.bps-card--style3 .bps-card__badge,
.bps-card--style3 .bps-card__badge-dot {
	display: none;
}

.bps-card--style3 .bps-card__media {
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 30px rgba(15, 23, 42, 0.08);
	background: #f7f8fb;
}

.bps-card--style3 .bps-card__media img {
	height: 200px;
}

.bps-card--style3 .bps-card__body {
	padding: 0 4px 4px;
	gap: 6px;
	background: transparent;
}

.bps-card--style3 .bps-card__title {
	color: #111827;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin-bottom: 2px;
}

.bps-card--style3 .bps-card__category {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #475569;
	background: linear-gradient(135deg, #f2f6ff 0%, #eef4ff 100%);
	border: 1px solid #e4e9f5;
	border-radius: 999px;
	padding: 7px 12px;
	font-weight: 600;
	font-size: 13px;
	width: fit-content;
}

.bps-card--style3 .bps-card__category::before {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.bps-card--style3 .bps-card__cta {
	justify-content: flex-start;
	color: #0b1220;
	background: #ffffff;
	border: 1px solid #d6deed;
	border-radius: 999px;
	padding: 9px 12px;
	gap: 10px;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
	margin-top: 8px;
	width: fit-content;
}

.bps-card--style3 .bps-card__cta svg {
	width: 14px;
	height: 14px;
}

.bps-card--style3 .bps-card__cta:hover {
	color: #ffffff;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border-color: transparent;
	box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
	letter-spacing: 0.004em;
}

@media (max-width: 960px) {
	.bps-card--style3 {
		padding: 12px;
	}

	.bps-card--style3 .bps-card__media img {
		height: 190px;
	}
}
