/* ==========================================================================
   OIB Leadership Carousel — header with arrows + scrollable cards
   ========================================================================== */

.oib-lead {
	--oib-lead-pt: 80px;
	--oib-lead-pb: 80px;
	--oib-lead-cols: 4;

	position: relative;
	padding: var(--oib-lead-pt) 24px var(--oib-lead-pb);
	background: #ffffff;
	font-family: var(--oib-font, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	-webkit-font-smoothing: antialiased;
}

.oib-lead__inner {
	margin: 0 auto;
}

.oib-lead__inner--narrow { max-width: 1080px; }
.oib-lead__inner--wide   { max-width: 1280px; }
.oib-lead__inner--full   { max-width: calc(100% - 32px); }

/* ==========================================================================
   Header — heading on left, arrows on right
   ========================================================================== */

.oib-lead__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.oib-lead__header-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.oib-lead__heading {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.oib-lead__subtitle {
	margin: 0;
	color: #475569;
	font-size: 15px;
	line-height: 1.55;
}

/* ---- Nav arrows ---- */
.oib-lead__nav {
	display: inline-flex;
	gap: 10px;
	flex-shrink: 0;
}

.oib-lead__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border-radius: 999px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #0f172a;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.oib-lead__arrow:hover:not([disabled]) {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.oib-lead__arrow:focus-visible {
	outline: 2px solid #7E5D74;
	outline-offset: 2px;
}

.oib-lead__arrow:active:not([disabled]) {
	transform: scale(0.96);
}

.oib-lead__arrow[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

/* High-specificity selector + !important so theme/Elementor SVG resets
   (typical `.elementor svg { width: ... }` rules at 0,1,1) can't shrink it. */
.oib-lead .oib-lead__nav .oib-lead__arrow svg {
	width: 25px !important;
	height: 25px !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
	color: inherit;
}

.oib-lead .oib-lead__nav .oib-lead__arrow svg path {
	stroke: currentColor;
}

/* ==========================================================================
   Track — horizontally scrollable card row
   ========================================================================== */

.oib-lead__track {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--oib-lead-cols) - 1) * var(--oib-lead-gap, 24px)) / var(--oib-lead-cols));
	gap: 24px;
	--oib-lead-gap: 24px;

	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;

	/* Hide horizontal scrollbar — navigation happens via arrows / autoplay */
	scrollbar-width: none;       /* Firefox */
	-ms-overflow-style: none;    /* IE 10+, old Edge */
}

.oib-lead__track::-webkit-scrollbar {
	display: none;               /* Chrome, Safari, modern Edge */
	width: 0;
	height: 0;
}

/* ==========================================================================
   Single card
   ========================================================================== */

.oib-lead__card {
	margin: 0;
	padding: 0;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.oib-lead__photo {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 14px;
	background: #e2e8f0;
	overflow: hidden;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oib-lead__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oib-lead__photo-placeholder {
	width: 38%;
	max-width: 140px;
	height: auto;
	color: #94a3b8;
	flex-shrink: 0;
}

.oib-lead__name {
	margin: 0 0 4px;
	color: #0f172a;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.oib-lead__role {
	margin: 0 0 12px;
	color: #7E5D74;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.oib-lead__bio {
	margin: 0;
	color: #475569;
	font-size: 14.5px;
	line-height: 1.55;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.oib-lead__track {
		grid-auto-columns: calc((100% - 2 * var(--oib-lead-gap, 24px)) / 3);  /* 3 cols visible */
	}
}

@media (max-width: 768px) {
	.oib-lead__header {
		margin-bottom: 28px;
	}

	.oib-lead__track {
		grid-auto-columns: calc((100% - 1 * var(--oib-lead-gap, 24px)) / 2);  /* 2 cols visible */
	}

	.oib-lead__name {
		font-size: 17px;
	}

	.oib-lead__bio {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.oib-lead {
		padding: clamp(48px, 10vw, 64px) 16px clamp(48px, 10vw, 64px);
	}

	.oib-lead__track {
		grid-auto-columns: 78%;     /* ~1 col with peek of the next */
		--oib-lead-gap: 16px;
		gap: 16px;
	}

	.oib-lead__photo {
		margin-bottom: 14px;
	}
}

/* ==========================================================================
   A11y / motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.oib-lead__track    { scroll-behavior: auto; }
	.oib-lead__arrow    { transition: none !important; }
	.oib-lead__arrow:active { transform: none; }
}
