/* ── BB Premium: News Grid ─────────────────────────────────────────────────── */

.bbpe-ng { width: 100%; }

/* ── Shared card styles ──────────────────────────────────────────────────── */
.bbpe-ng__post {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.bbpe-ng__post:hover {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
	transform: translateY(-3px);
}

/* Thumbnail – 16:9 ratio */
.bbpe-ng__thumbnail {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.bbpe-ng__thumbnail a:not(.bbpe-ng__cat-badge) {
	display: block;
	height: 100%;
}

.bbpe-ng__thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.bbpe-ng__post:hover .bbpe-ng__thumbnail img { transform: scale(1.05); }

/* Category badge overlaid on image (news-magazine style) */
.bbpe-ng__cat-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: inline-block;
	background: #e11d48;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 3px;
	text-decoration: none;
	transition: background 0.2s;
}

.bbpe-ng__cat-badge:hover { background: #be123c; color: #fff; text-decoration: none; }

/* Body */
.bbpe-ng__body {
	padding: 18px 20px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.bbpe-ng__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
	font-size: 0.75rem;
	color: #94a3b8;
	margin-bottom: 10px;
}

.bbpe-ng__cat-inline {
	display: inline-block;
	background: #e11d48;
	color: #fff !important;
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 3px;
	text-decoration: none !important;
}

.bbpe-ng__sep { color: #cbd5e1; font-size: 0.625rem; }

.bbpe-ng__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
	margin: 0 0 10px;
}

.bbpe-ng__title a { color: inherit; text-decoration: none; }
.bbpe-ng__title a:hover { color: #4f46e5; }

.bbpe-ng__excerpt {
	font-size: 0.9rem;
	line-height: 1.7;
	color: #475569;
	margin: 0 0 14px;
	flex: 1;
}

.bbpe-ng__read-more {
	display: inline-block;
	color: #4f46e5;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	margin-top: auto;
}

.bbpe-ng__read-more:hover { color: #4338ca; text-decoration: underline; }

/* ── Cards variant ───────────────────────────────────────────────────────── */
.bbpe-ng--cards .bbpe-ng__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Magazine variant ────────────────────────────────────────────────────── */
.bbpe-ng--magazine .bbpe-ng__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.bbpe-ng--magazine .bbpe-ng__post--featured {
	grid-column: span 2;
}

.bbpe-ng--magazine .bbpe-ng__post--featured .bbpe-ng__thumbnail {
	aspect-ratio: 2 / 1;
}

.bbpe-ng--magazine .bbpe-ng__post--featured .bbpe-ng__title {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	line-height: 1.25;
}

.bbpe-ng--magazine .bbpe-ng__post--featured .bbpe-ng__excerpt {
	font-size: 0.9375rem;
}

/* ── List variant ────────────────────────────────────────────────────────── */
.bbpe-ng--list .bbpe-ng__list {
	display: flex;
	flex-direction: column;
}

.bbpe-ng--list .bbpe-ng__post {
	display: grid;
	grid-template-columns: 200px 1fr;
	border-radius: 0;
	box-shadow: none;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s;
	transform: none !important;
}

.bbpe-ng--list .bbpe-ng__post:first-child { border-top: 1px solid #f1f5f9; }
.bbpe-ng--list .bbpe-ng__post:hover { box-shadow: none; background: #f8fafc; }

.bbpe-ng--list .bbpe-ng__list-thumb {
	display: block;
	overflow: hidden;
	height: 140px;
}

.bbpe-ng--list .bbpe-ng__list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.bbpe-ng--list .bbpe-ng__post:hover .bbpe-ng__list-thumb img { transform: scale(1.05); }

.bbpe-ng--list .bbpe-ng__body { padding: 16px 20px; }
.bbpe-ng--list .bbpe-ng__title { font-size: 1rem; }
.bbpe-ng--list .bbpe-ng__excerpt { font-size: 0.875rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
	.bbpe-ng--cards .bbpe-ng__grid,
	.bbpe-ng--magazine .bbpe-ng__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bbpe-ng--magazine .bbpe-ng__post--featured {
		grid-column: span 2;
	}
}

@media (max-width: 640px) {
	.bbpe-ng--cards .bbpe-ng__grid,
	.bbpe-ng--magazine .bbpe-ng__grid {
		grid-template-columns: 1fr;
	}

	.bbpe-ng--magazine .bbpe-ng__post--featured { grid-column: span 1; }
	.bbpe-ng--magazine .bbpe-ng__post--featured .bbpe-ng__thumbnail { aspect-ratio: 16 / 9; }

	.bbpe-ng--list .bbpe-ng__post { grid-template-columns: 120px 1fr; }
	.bbpe-ng--list .bbpe-ng__list-thumb { height: 110px; }
	.bbpe-ng--list .bbpe-ng__body { padding: 12px 14px; }
}
