/* ================================ News block ============================ */

.bb-news {
	--bb-featured-w: 55%;
}

.bb-news__grid {
	display: grid;
	grid-template-columns: var(--bb-featured-w) minmax(0, 1fr);
	gap: 26px;
	align-items: start;
}

.bb-news--list-only .bb-news__grid {
	grid-template-columns: 1fr;
}

/* --------------------------------------------------------- featured card */

.bb-news__featured {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--bb-border);
	border-radius: var(--bb-radius);
	overflow: hidden;
	transition: box-shadow .3s var(--bb-ease), transform .3s var(--bb-ease);
}

.bb-news__featured:hover {
	transform: translateY(-4px);
	box-shadow: var(--bb-shadow);
}

.bb-news__featured-media {
	position: relative;
	display: block;
	aspect-ratio: 1.55;
	overflow: hidden;
}

.bb-news__featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--bb-ease);
}

.bb-news__featured:hover .bb-news__featured-media img {
	transform: scale(1.05);
}

.bb-news__badge {
	position: absolute;
	left: 16px;
	top: 16px;
	padding: 5px 14px;
	border-radius: 6px;
	background: var(--bb-saffron);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .01em;
}

.bb-news__featured-body {
	padding: 20px 22px 24px;
}

.bb-news__date {
	display: block;
	margin-bottom: 8px;
	color: var(--bb-saffron-ink);
	font-size: 13px;
	font-weight: 600;
}

.bb-news__featured-title {
	margin: 0 0 10px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--bb-heading);
}

.bb-news__featured-title a:hover {
	color: var(--bb-saffron);
}

.bb-news__featured-excerpt {
	margin: 0 0 16px;
	color: var(--bb-body);
	font-size: 14.5px;
	line-height: 1.75;
}

.bb-news__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--bb-saffron-ink);
	font-size: 14px;
	font-weight: 600;
}

.bb-news__more .bb-icon {
	width: 14px;
	height: 14px;
	transition: transform .22s var(--bb-ease);
}

.bb-news__more:hover .bb-icon {
	transform: translateX(4px);
}

/* ----------------------------------------------------------------- list */

.bb-news__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-news--list-only .bb-news__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.bb-news__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
}

.bb-news__item-media {
	flex: none;
	width: 96px;
	aspect-ratio: 1.32;
	border-radius: var(--bb-radius-sm);
	overflow: hidden;
}

.bb-news__item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s var(--bb-ease);
}

.bb-news__item:hover .bb-news__item-media img {
	transform: scale(1.07);
}

.bb-news__item-body {
	min-width: 0;
	padding-top: 2px;
}

.bb-news__item-body .bb-news__date {
	margin-bottom: 4px;
	color: var(--bb-body);
	font-weight: 500;
	opacity: .8;
}

.bb-news__item-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--bb-heading);
}

.bb-news__item-title a:hover {
	color: var(--bb-saffron);
}

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1100px) {
	.bb-news__grid {
		grid-template-columns: 1fr;
	}

	.bb-news__list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	}
}

@media (max-width: 767px) {
	.bb-news__featured-title {
		font-size: 18.5px;
	}

	.bb-news__featured-body {
		padding: 18px 18px 20px;
	}

	.bb-news__list {
		grid-template-columns: 1fr;
	}

	.bb-news__item-media {
		width: 84px;
	}
}
