/**
 * BongoHive Featured Posts
 *
 * "Insights & Research" rebrand pattern. Header row with heading +
 * subheading on the left and a "See all Posts →" link on the right,
 * followed by one or more featured posts — each a 50 / 50 image +
 * meta row.
 */

.bh-featured-posts {
	display: flex;
	flex-direction: column;
	gap: 60px;
	width: 100%;
	box-sizing: border-box;
}

.bh-featured-posts__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
}

.bh-featured-posts__header-text {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 688px;
	flex: 1 1 auto;
	min-width: 0;
}

.bh-featured-posts__heading {
	font-family: 'Ubuntu', 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	line-height: 1.3;
	letter-spacing: -0.36px;
	color: #1d2229;
	margin: 0;
}

.bh-featured-posts__subheading {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #606469;
	margin: 0;
}

.bh-featured-posts__header-link {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #1d2229;
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.2s ease;
}

.bh-featured-posts__header-link:hover,
.bh-featured-posts__header-link:focus-visible {
	gap: 20px;
	text-decoration: none;
}

.bh-featured-posts__header-link svg {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.bh-featured-posts__list {
	display: flex;
	flex-direction: column;
	gap: 48px;
	width: 100%;
}

.bh-featured-posts__item {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.bh-featured-posts__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

/* Flip image side when the editor opts in. */
.bh-featured-posts--image-right .bh-featured-posts__item {
	flex-direction: row-reverse;
}

.bh-featured-posts__media {
	position: relative;
	display: block;
	flex: 1 1 50%;
	min-width: 0;
	height: 238px;
	overflow: hidden;
	background-color: #f2f2f2;
	text-decoration: none;
}

.bh-featured-posts__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-featured-posts__media-placeholder {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		45deg,
		#eaeaea,
		#eaeaea 8px,
		#f4f4f4 8px,
		#f4f4f4 16px
	);
}

.bh-featured-posts__content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1 1 50%;
	min-width: 0;
	padding: 24px 0;
	align-self: stretch;
	justify-content: center;
}

.bh-featured-posts__category {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.5;
	letter-spacing: 0.02em;
	color: #f0af24;
	text-transform: none;
	margin: 0;
}

.bh-featured-posts__heading-group {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bh-featured-posts__title {
	font-family: 'Ubuntu', 'PT Sans', sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.4;
	letter-spacing: -0.28px;
	color: #48340a;
	margin: 0;
}

.bh-featured-posts__title a {
	color: inherit;
	text-decoration: none;
}

.bh-featured-posts__title a:hover,
.bh-featured-posts__title a:focus-visible {
	text-decoration: underline;
}

.bh-featured-posts__subtitle {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #000000;
	margin: 0;
}

.bh-featured-posts__byline,
.bh-featured-posts__date {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.5;
	color: #606469;
	margin: 0;
}

/* Editor empty-state. */
.bh-featured-posts__editor-empty {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 32px;
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	background-color: #fafafa;
	color: #606469;
	font-family: 'Ubuntu', sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.bh-featured-posts__editor-empty strong {
	color: #1d2229;
	font-weight: 700;
}

/* Tablet — keep two columns but tighten everything. */
@media (max-width: 1024px) {
	.bh-featured-posts {
		gap: 40px;
	}

	.bh-featured-posts__list {
		gap: 32px;
	}

	.bh-featured-posts__media {
		height: 200px;
	}

	.bh-featured-posts__title {
		font-size: 1.5rem;
	}
}

/* Mobile — stack image above content, full width. */
@media (max-width: 640px) {
	.bh-featured-posts__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.bh-featured-posts__item,
	.bh-featured-posts--image-right .bh-featured-posts__item {
		flex-direction: column;
		align-items: stretch;
	}

	.bh-featured-posts__media {
		flex-basis: auto;
		width: 100%;
		height: 220px;
	}

	.bh-featured-posts__content {
		padding: 16px 0 0;
	}

	.bh-featured-posts__title {
		font-size: 1.375rem;
	}
}
