/* ----------------------------------------------------------
 * Brandly Names — Single Hero + Extras
 * - Lightweight, no animations, no extra assets
 * - Top hero "live" card + bottom extras glove
 * ------------------------------------------------------ */

:root {
	--bn-ink: #0f172a;
	--bn-muted: #6b7280;
	--bn-surface: #ffffff;
	--bn-surface-soft: #f9fafb;
	--bn-brand: #f59e0b; /* warm gold */
	--bn-border: #e5e7eb;
}

/* ==========================================================
 * 1) TOP HERO: featured image + title + meta + crumbs
 * ======================================================= */

.single-post .inside-article {
	position: relative;
	z-index: 0;
	background: var(--bn-surface);
	border-radius: 1.5rem;
	padding: 2.4rem 2.3rem 2.4rem;
	box-shadow:
		0 20px 55px rgba(15, 23, 42, 0.10);
}

/* Soft glow behind the upper half only */
.single-post .inside-article::before {
	content: "";
	position: absolute;
	inset: -1.2rem -2.4rem auto -2.4rem;
	height: 420px;
	border-radius: 2rem;
	background:
		radial-gradient(145% 120% at 50% 0,
			rgba(251, 191, 36, 0.30),
			rgba(15, 23, 42, 0.00) 62%);
	opacity: 0.9;
	z-index: -1;
}

/* Featured image as hero media */
.single-post .inside-article .post-image,
.single-post .inside-article .featured-image,
.single-post .inside-article .inside-article > img:first-child {
	margin: -0.4rem -0.4rem 1.6rem;
	border-radius: 1.3rem;
	overflow: hidden;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.32);
	background: #000;
}

.single-post .inside-article .post-image img,
.single-post .inside-article .featured-image img,
.single-post .inside-article > img:first-child {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
}

/* Entry header block (title + meta) */
.single-post .inside-article .entry-header {
	margin-top: 0.4rem;
	margin-bottom: 0.7rem;
}

/* Title */
.single-post .inside-article .entry-title {
	font-size: clamp(1.75rem, 1.5rem + 1.4vw, 2.4rem);
	line-height: 1.18;
	font-weight: 800;
	color: var(--bn-ink);
	margin-bottom: 0.45rem;
}

/* Meta: date + author */
.single-post .inside-article .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.8rem;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--bn-muted);
}

/* Make meta links subtle but clickable */
.single-post .inside-article .entry-meta a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed rgba(148, 163, 184, 0.75);
}

.single-post .inside-article .entry-meta a:hover,
.single-post .inside-article .entry-meta a:focus-visible {
	border-bottom-style: solid;
}

/* Breadcrumbs styling (Yoast / RankMath / others) */
.single-post .inside-article #breadcrumbs,
.single-post .inside-article .rank-math-breadcrumb,
.single-post .inside-article .breadcrumb,
.single-post .inside-article .breadcrumbs {
	margin: 0.95rem 0 1.1rem;
	font-size: 0.8rem;
	color: #4b5563;
}

.single-post .inside-article #breadcrumbs a,
.single-post .inside-article .rank-math-breadcrumb a,
.single-post .inside-article .breadcrumb a,
.single-post .inside-article .breadcrumbs a {
	color: #b45309;
	text-decoration: none;
}

.single-post .inside-article #breadcrumbs a:hover,
.single-post .inside-article .rank-math-breadcrumb a:hover,
.single-post .inside-article .breadcrumb a:hover,
.single-post .inside-article .breadcrumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Optional: "Share" row refinement — generic but safe */
.single-post .inside-article .sharedaddy,
.single-post .inside-article .bn-share-row,
.single-post .inside-article .entry-share,
.single-post .inside-article .sd-sharing {
	margin-bottom: 1.3rem;
	border-radius: 999px;
	padding: 0.45rem 0.75rem;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(209, 213, 219, 0.9);
}

/* On mobile, bring hero in closer */
@media (max-width: 639.98px) {
	.single-post .inside-article {
		margin: 1.5rem 1rem 0;
		padding: 1.7rem 1.2rem 1.9rem;
		border-radius: 1.2rem;
	}

	.single-post .inside-article::before {
		inset: -2rem -1.2rem auto -1.2rem;
		height: 360px;
		border-radius: 1.5rem;
	}

	.single-post .inside-article .post-image,
	.single-post .inside-article .featured-image,
	.single-post .inside-article .inside-article > img:first-child {
		margin: -0.8rem -0.8rem 1.3rem;
		border-radius: 1.2rem;
	}
}

/* ==========================================================
 * 2) BOTTOM GLOVE: bn-single-extras shell + glow
 * ======================================================= */

/* Outer shell around nav + similar posts */
.bn-single-extras {
	position: relative;
	z-index: 0;
	margin-top: 3rem;
	padding: 2.4rem 1.6rem 2.8rem;
	border-radius: 1.4rem;
	background:
		radial-gradient(140% 120% at 50% 0,
			rgba(245, 158, 11, 0.20),
			rgba(15, 23, 42, 0.00) 58%)
		,
		linear-gradient(to bottom,
			rgba(15, 23, 42, 0.02),
			rgba(15, 23, 42, 0.05));
	box-shadow:
		0 18px 45px rgba(15, 23, 42, 0.16);
	overflow: hidden;
	color: var(--bn-ink);
}

@media (min-width: 768px) {
	.bn-single-extras {
		padding: 3rem 2.4rem 3.1rem;
		margin-top: 3.5rem;
	}
}

/* Extra background glow under the block */
.bn-single-extras::before {
	content: "";
	position: absolute;
	inset: -40% -20% auto -20%;
	background:
		radial-gradient(140% 100% at 50% 0,
			rgba(251, 191, 36, 0.18),
			rgba(15, 23, 42, 0.00) 60%);
	opacity: 0.8;
	z-index: -1;
}

/* ----------------------------------------------------------
 * Prev / Next navigation
 * ------------------------------------------------------ */

.bn-single-nav {
	margin-bottom: 2.4rem;
}

.bn-single-nav-wrap {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.bn-single-nav-label {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bn-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
}

.bn-single-nav-micro {
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(55, 65, 81, 0.95);
}

.bn-single-nav-grid {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

@media (min-width: 640px) {
	.bn-single-nav-grid {
		flex-direction: row;
		gap: 1.1rem;
	}
}

.bn-single-nav-card {
	display: block;
	padding: 0.9rem 1.1rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.3);
	text-decoration: none;
}

.bn-single-nav-dir {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bn-muted);
	margin-bottom: 0.3rem;
}

.bn-single-nav-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bn-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Hover glow (very light) */
.bn-hover-glow {
	transition:
		box-shadow 150ms ease-out,
		transform 150ms ease-out,
		border-color 150ms ease-out,
		background-color 150ms ease-out;
}

.bn-hover-glow:hover,
.bn-hover-glow:focus-visible {
	transform: translateY(-1px);
	box-shadow:
		0 0 0 1px rgba(251, 191, 36, 0.6),
		0 15px 35px rgba(15, 23, 42, 0.35);
	border-color: rgba(251, 191, 36, 0.7);
	background: #ffffff;
}

/* ----------------------------------------------------------
 * Similar Posts section
 * ------------------------------------------------------ */

.bn-rel-section {
	position: relative;
	z-index: 1;
}

.bn-rel-wrap {
	margin-top: 0.6rem;
}

.bn-rel-heading {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--bn-ink);
	margin-bottom: 1.2rem;
}

.bn-rel-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(15, 23, 42, 0.92);
	color: #fef3c7;
}

/* Carousel shell */

.bn-rel-carousel {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0.6rem;
}

.bn-rel-carousel-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 75%);
	gap: 0.8rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0.2rem 0.1rem 0.2rem 0;
}

.bn-rel-item {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 0.95rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	padding: 0.7rem 0.8rem 0.8rem;
	min-height: 100%;
}

.bn-rel-item.no-thumb {
	padding-top: 0.9rem;
}

/* Thumbnails */

.bn-rel-thumb {
	display: block;
	overflow: hidden;
	border-radius: 0.75rem;
	margin-bottom: 0.55rem;
	background: var(--bn-surface-soft);
}

.bn-rel-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
}

/* Title + meta */

.bn-rel-title {
	font-size: 0.98rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.bn-rel-title a {
	color: var(--bn-ink);
	text-decoration: none;
}

.bn-rel-title a:hover,
.bn-rel-title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.bn-rel-meta {
	font-size: 0.8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.7rem;
	color: var(--bn-muted);
	margin-top: auto; /* push meta to bottom */
}

/* Meta rows: dot + text */
.bn-rel-line {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

/* NEW: bullet used only in meta, no clash with carousel dots */
.bn-rel-meta-dot {
	display: inline-block;
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.95);
}

/* Allow text to wrap nicely */
.bn-rel-text {
	white-space: normal;
}

/* Keep class for backwards compatibility; no nowrap so it can wrap */
.bn-rel-date {
}

.bn-rel-cat {
	padding: 0.08rem 0.45rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.35);
	font-size: 0.75rem;
}

/* Arrows */

.bn-rel-arrow {
	position: relative;
	align-self: center;
	flex: 0 0 auto;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.4);
	background: rgba(15, 23, 42, 0.9);
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition:
		background-color 150ms ease-out,
		transform 120ms ease-out,
		box-shadow 150ms ease-out,
		border-color 150ms ease-out;
}

.bn-rel-arrow svg {
	width: 1.2rem;
	height: 1.2rem;
}

.bn-rel-arrow:hover,
.bn-rel-arrow:focus-visible {
	background: #fbbf24;
	border-color: rgba(251, 191, 36, 0.9);
	box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
	transform: translateY(-1px);
}

/* Dots */

.bn-rel-dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin: 0.95rem 0 0.4rem;
}

.bn-rel-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	border: none;
	background: rgba(148, 163, 184, 0.5);
	cursor: pointer;
	padding: 0;
}

.bn-rel-dot.is-active,
.bn-rel-dot[aria-current="true"] {
	background: #facc15;
	width: 0.7rem;
}

/* CTA */

.bn-rel-cta {
	margin-top: 0.7rem;
	font-size: 0.9rem;
	color: var(--bn-ink);
}

.bn-rel-cta a {
	color: #b45309;
	font-weight: 600;
	text-decoration: none;
}

.bn-rel-cta a:hover,
.bn-rel-cta a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

/* ----------------------------------------------------------
 * Small refinements on narrow screens
 * ------------------------------------------------------ */

@media (max-width: 639.98px) {
	.bn-rel-carousel-track {
		grid-auto-columns: 82%;
	}

	.bn-single-extras {
		margin-left: -1rem;
		margin-right: -1rem;
		border-radius: 1.1rem;
	}

	/* On mobile: stack meta vertically: 
	   • date
	   • mins read
	   category pill */
	.bn-rel-meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Fix: give the hero card more breathing room under the menu on larger screens */
@media (min-width: 768px) {
	.single-post .inside-article {
		margin-top: 3rem; /* adjust up/down if you want more/less space */
	}
}