/* BiO-G Interactive Features - scoped to .biog-if. Colours, sizes and spacing come from Elementor controls as CSS variables.
   Equal heights are pure CSS Grid: the image column stretches to the text column (images are absolutely positioned,
   so they never make the row taller). Stacked layouts use an explicit image height instead. */

.biog-if {
	--ifs-gap: 72px;
	--ifs-img: 46%;
	--ifs-icon-w: 52px;
	--ifs-icon-h: 52px;
	--ifs-icon-gap: 22px;
	--ifs-fade: 400ms;
	--ifs-sep: #dfe2dd;
	--ifs-accent: #1fa97a;
	--ifs-title: #1f2421;
	--ifs-title-active: #0b6e4f;
	--ifs-media-min: 360px;
	--ifs-media-h: 440px;
	--ifs-fit: cover;
	--ifs-h-fw: 600;
	box-sizing: border-box;
	width: 100%;
	padding: 80px 24px;
	background-color: #f6f7f5;
}
.biog-if *,
.biog-if *::before,
.biog-if *::after {
	box-sizing: border-box;
}
.biog-if__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--ifs-img));
	column-gap: var(--ifs-gap);
	align-items: stretch;
	max-width: 1200px;
	margin-right: auto;
	margin-left: auto;
}
.biog-if__content {
	min-width: 0;
}

/* ---- introduction --------------------------------------------------------- */
.biog-if__intro { margin-bottom: 32px; text-align: left; }
.biog-if .biog-if__eyebrow {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1b8559;
}
.biog-if .biog-if__eyebrow::before {
	content: "";
	display: none;
	width: 32px;
	height: 2px;
	margin-right: 12px;
	vertical-align: middle;
	background-color: currentColor;
}
.biog-if .biog-if__heading {
	margin: 0 0 20px;
	font-size: 46px;
	font-weight: var(--ifs-h-fw, 700) !important; /* the theme forces heading weights with !important */
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
	text-transform: none;
	color: #252525;
}
.biog-if .biog-if__text-intro {
	margin: 0;
	font-size: 17px;
	line-height: 1.65;
	color: #5f635d;
}
.biog-if .biog-if__text-intro > * { margin: 0; }
.biog-if .biog-if__text-intro > * + * { margin-top: 0.75em; }
.biog-if .biog-if__text-intro a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* ---- feature rows ----------------------------------------------------------- */
.biog-if .biog-if__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.biog-if .biog-if__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ifs-sep);
}
.biog-if .biog-if__item:last-child { border-bottom: 1px solid var(--ifs-sep); }

/* One real button per row (theme button styles are neutralised). */
.biog-if .biog-if__btn,
.biog-if .biog-if__btn:hover,
.biog-if .biog-if__btn:focus,
.biog-if .biog-if__btn:active {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: var(--ifs-icon-gap);
	width: 100%;
	height: auto; /* the theme gives every button a fixed height */
	min-height: 44px; /* comfortable touch target */
	max-height: none;
	margin: 0;
	padding: 22px 0;
	font: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}
.biog-if .biog-if__btn:focus-visible {
	outline: 2px solid var(--ifs-accent);
	outline-offset: 2px;
	border-radius: 6px;
}
.biog-if .biog-if__btn > .biog-if__text:only-child { grid-column: 1 / -1; }

.biog-if .biog-if__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--ifs-icon-w);
	height: var(--ifs-icon-h);
}
/* Fitted inside the box (contain): width follows the artwork's proportions, never stretched or cropped. */
.biog-if .biog-if__icon-art {
	position: relative;
	display: block;
	width: min(100%, calc(var(--ifs-icon-h) * var(--ifs-ar, 1)));
	aspect-ratio: var(--ifs-ar, 1);
	overflow: hidden;
}
.biog-if .biog-if__icon-img {
	position: absolute;
	display: block;
	max-width: none;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}
.biog-if .biog-if__text { display: block; min-width: 0; }
.biog-if .biog-if__head {
	display: flex;
	align-items: baseline;
	column-gap: 12px;
}
.biog-if .biog-if__num {
	flex: 0 0 auto;
	min-width: 1.5em;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums; /* every title starts at the same position */
	line-height: 1.4;
	letter-spacing: 0.04em;
	color: var(--ifs-num, #9aa09b);
	transition: color 0.2s ease;
}
.biog-if .biog-if__title {
	display: block;
	min-width: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ifs-title);
	transition: color 0.2s ease;
}
.biog-if .biog-if__desc {
	display: block;
	margin-top: 8px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #6b716d;
}
.biog-if .biog-if__item.is-active .biog-if__num { color: var(--ifs-num-active, var(--ifs-accent)); }
.biog-if .biog-if__item.is-active .biog-if__title,
.biog-if .biog-if__btn:hover .biog-if__title { color: var(--ifs-title-active); }

/* ---- image column: fixed frame, stacked images, crossfade ------------------- */
.biog-if .biog-if__media {
	position: relative;
	min-width: 0;
	min-height: var(--ifs-media-min);
	overflow: hidden;
	background-color: #fff;
	border-radius: 20px;
}
.biog-if .biog-if__fig {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	margin: 0;
	opacity: 0;
	transition: opacity var(--ifs-fade) ease;
	pointer-events: none;
}
/* The incoming image fades in over the outgoing one (which stays opaque underneath), so there is no dip. */
.biog-if .biog-if__fig.is-active { z-index: 2; opacity: 1; }
.biog-if .biog-if__fig.is-prev { z-index: 1; opacity: 1; transition: none; }
.biog-if .biog-if__img {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: var(--ifs-fit, cover);
}

/* ---- responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.biog-if .biog-if__heading { font-size: 38px; }
	.biog-if .biog-if__eyebrow { font-size: 13px; }
	.biog-if .biog-if__text-intro { font-size: 16px; }
	.biog-if .biog-if__btn,
	.biog-if .biog-if__btn:hover,
	.biog-if .biog-if__btn:focus,
	.biog-if .biog-if__btn:active { padding: 18px 0; }
	.biog-if .biog-if__title { font-size: 18px; }
	.biog-if-stack-tablet .biog-if__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--ifs-gap);
	}
	.biog-if-stack-tablet .biog-if .biog-if__media { height: var(--ifs-media-h); min-height: 0; }
}
@media (max-width: 767px) {
	.biog-if { padding: 40px 20px; }
	.biog-if .biog-if__heading { font-size: 30px; }
	.biog-if .biog-if__heading br { display: none; } /* let the heading balance itself on narrow screens instead of leaving a one-word last line */
	.biog-if .biog-if__eyebrow { font-size: 12px; }
	.biog-if .biog-if__text-intro { font-size: 15px; }
	.biog-if .biog-if__intro { margin-bottom: 24px; }
	.biog-if .biog-if__btn,
	.biog-if .biog-if__btn:hover,
	.biog-if .biog-if__btn:focus,
	.biog-if .biog-if__btn:active { padding: 16px 0; }
	.biog-if .biog-if__title { font-size: 17px; }
	.biog-if .biog-if__desc { font-size: 14px; }
	.biog-if-stack-mobile .biog-if__inner,
	.biog-if-stack-tablet .biog-if__inner {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--ifs-gap);
	}
	.biog-if-stack-mobile .biog-if .biog-if__media,
	.biog-if-stack-tablet .biog-if .biog-if__media { height: var(--ifs-media-h); min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.biog-if .biog-if__fig,
	.biog-if .biog-if__num,
	.biog-if .biog-if__title { transition: none !important; }
}
