/* =====================================================
   Novels Dev by M.Salman — Bio widget
   Structural / responsive rules only.
   Colors, typography, sizing are set live from Elementor.
   ===================================================== */

.nd-bio {
	position: relative;
	overflow: hidden;
	background: linear-gradient(115deg, #5A2A74 0%, #BC5130 100%); /* Elementor overrides this */
}

.nd-bio * {
	box-sizing: border-box;
}

.nd-bio .nd-wing-motif {
	position: absolute;
	top: 6%;
	left: -10%;
	width: min(55vw, 640px);
	height: auto;
	opacity: 0.045;
	fill: #F4E8DB;
	pointer-events: none;
}

/* ---------------- Intro ---------------- */

.nd-bio-intro {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.nd-bio-intro__kicker {
	margin: 0 0 0.6rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	color: #D9C4B3;
}

.nd-bio-intro__title {
	margin: 0 0 1rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 300;
	font-size: clamp(2.2rem, 5vw, 3rem);
	color: #F4E8DB;
}

.nd-bio-intro__text {
	margin: 0 auto;
	max-width: 56ch;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.05rem;
	color: #F4E8DB;
}

/* ---------------- Quick facts ---------------- */

.nd-bio-facts {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0 auto clamp(3rem, 6vw, 4.5rem);
	padding: 1.5rem 0;
	max-width: 1000px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	border-top: 1px solid rgba(244, 232, 219, 0.16);
	border-bottom: 1px solid rgba(244, 232, 219, 0.16);
}

.nd-fact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
	min-width: 120px;
}

.nd-fact__label {
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.75rem;
	color: #D9C4B3;
}

.nd-fact__value {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.95rem;
	color: #F4E8DB;
}

/* ---------------- Photo collage ---------------- */

.nd-bio-gallery {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto clamp(3rem, 7vw, 5rem);
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: repeat(2, 1fr);
	gap: 1rem;
}

.nd-photo-slot--main {
	grid-row: 1 / span 2;
}

.nd-photo-slot__frame {
	position: relative;
	height: 100%;
	min-height: 180px;
	border: 1.5px dashed rgba(244, 232, 219, 0.35);
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	text-align: center;
	padding: 1.25rem;
	overflow: hidden;
	background: linear-gradient(160deg, rgba(90, 42, 116, 0.16), rgba(188, 81, 48, 0.09));
}

.nd-photo-slot--main .nd-photo-slot__frame {
	min-height: 380px;
}

.nd-photo-slot__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nd-photo-slot__icon {
	width: 30px;
	height: 30px;
	color: rgba(244, 232, 219, 0.65);
}

.nd-photo-slot__label {
	margin: 0;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.85rem;
	color: #F4E8DB;
}

/* ---------------- Long-form story ---------------- */

.nd-bio-story {
	position: relative;
	z-index: 1;
	max-width: 680px;
	margin: 0 auto;
}

.nd-bio-story__text p {
	margin: 0 0 1.25rem;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.05rem;
	color: #F4E8DB;
}

.nd-bio-story__text p:last-child {
	margin-bottom: 0;
}

.nd-bio-story__quote {
	--nd-accent-a: #5A2A74;
	--nd-accent-b: #BC5130;
	margin: 2.5rem 0;
	padding: 0.25rem 0 0.25rem 1.75rem;
	border-left: 2px solid transparent;
	border-image: linear-gradient(180deg, var(--nd-accent-a), var(--nd-accent-b)) 1;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 300;
	font-style: italic;
	font-size: clamp(1.2rem, 2.4vw, 1.5rem);
	line-height: 1.5;
	color: #F4E8DB;
}

/* ---------------- Video ---------------- */

.nd-bio-video {
	position: relative;
	z-index: 1;
	max-width: 900px;
	margin: clamp(3.5rem, 8vw, 6rem) auto 0;
}

.nd-bio-video__label {
	margin: 0 0 0.75rem;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.85rem;
	color: #D9C4B3;
}

.nd-bio-video__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border: 1.5px dashed rgba(244, 232, 219, 0.35);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	background: linear-gradient(160deg, rgba(90, 42, 116, 0.16), rgba(188, 81, 48, 0.09));
}

.nd-bio-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.nd-bio-video__icon {
	width: 52px;
	height: 52px;
	color: #D9C4B3;
}

.nd-bio-video__hint {
	margin: 0;
	font-family: 'Sora', Arial, sans-serif;
	font-weight: 500;
	font-size: 0.95rem;
	color: #F4E8DB;
}

/* ---------------- Motion, respected ---------------- */

@media (prefers-reduced-motion: no-preference) {
	.nd-bio-intro {
		animation: nd-bio-rise 0.6s ease both;
	}
	.nd-bio-gallery {
		animation: nd-bio-rise 0.6s ease 0.1s both;
	}
}

@keyframes nd-bio-rise {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 760px) {
	.nd-bio-gallery {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}

	.nd-photo-slot--main {
		grid-row: auto;
	}

	.nd-photo-slot--main .nd-photo-slot__frame {
		min-height: 280px;
	}

	.nd-bio-story {
		max-width: 100%;
	}

	.nd-bio-facts {
		gap: 1.5rem 2rem;
	}
}
