/* =========================================================
   SamSam — Meet the Team widget
   ========================================================= */

.samsam-team {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	padding: 80px 20px 60px;
}

/* Full-bleed: break out of Elementor's container / flexbox width
   constraints and stretch edge-to-edge of the viewport, regardless
   of how deeply nested the widget is inside sections/containers. */
.samsam-team--full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.samsam-team,
.samsam-team *,
.samsam-team *::before,
.samsam-team *::after {
	box-sizing: border-box;
}

.samsam-team__inner {
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
}

/* ---------- Header ---------- */
.samsam-team__header {
	text-align: center;
	margin-bottom: 60px;
}

.samsam-team__header-inner {
	max-width: 760px;
	margin: 0 auto;
}

.samsam-team__logo {
	margin: 0 auto 8px;
	display: inline-block;
}

.samsam-team__logo img {
	width: 90px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.samsam-team__heading {
	font-size: 48px;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 18px;
	color: #5AA6A0;
}

.samsam-team__description {
	font-size: 18px;
	line-height: 1.6;
	margin: 0;
	color: #7FB8B2;
}

/* ---------- Slider shell ---------- */
.samsam-team__slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}

.samsam-team__viewport {
	overflow: hidden;
	width: 100%;
	/* generous vertical room so hover states / shadows are never clipped */
	padding: 10px 4px 30px;
}

.samsam-team__track {
	--ss-per-view: 3;
	--ss-gap: 40px;
	display: flex;
	gap: var(--ss-gap);
	will-change: transform;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	cursor: grab;
	touch-action: pan-y;
}

.samsam-team__track.is-dragging {
	cursor: grabbing;
	transition: none;
}

/* Each card takes an even share of the viewport based on how many
   people should be visible at once (customizable, responsive). */
.samsam-team__member {
	flex: 0 0 calc((100% - (var(--ss-per-view) - 1) * var(--ss-gap)) / var(--ss-per-view));
	max-width: calc((100% - (var(--ss-per-view) - 1) * var(--ss-gap)) / var(--ss-per-view));
	text-align: center;
	user-select: none;
}

.samsam-team__photo-wrap {
	position: relative;
	width: 330px;
	height: 330px;
	max-width: 100%;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 24px;
	border: 8px solid #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	transition: border-color 0.3s ease, transform 0.3s ease;
}

.samsam-team__member:hover .samsam-team__photo-wrap {
	transform: translateY(-6px);
}

.samsam-team__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	-webkit-user-drag: none;
}

/* Bio overlay revealed on hover/focus */
.samsam-team__bio {
	position: absolute;
	inset: 0;
	background-color: rgba(90, 166, 160, 0.92);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.samsam-team__bio p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.samsam-team__member:hover .samsam-team__bio,
.samsam-team__member:focus-within .samsam-team__bio {
	opacity: 1;
	transform: translateY(0);
}

.samsam-team__name {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 4px;
	color: #5AA6A0;
}

.samsam-team__role {
	font-size: 17px;
	margin: 0;
	color: #3E3E3E;
}

.samsam-team__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 12px;
}

.samsam-team__links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #EFF6EC;
	color: #5AA6A0;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.samsam-team__links a:hover {
	background: #8CC63F;
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Arrows ---------- */
.samsam-team__arrow {
	flex: 0 0 auto;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: #ffffff;
	color: #5AA6A0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
	z-index: 2;
}

.samsam-team__arrow:hover {
	background: #8CC63F;
	color: #fff;
}

.samsam-team__arrow:active {
	transform: scale(0.94);
}

.samsam-team__arrow svg {
	width: 1em;
	height: 1em;
}

.samsam-team__arrow[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---------- Dots ---------- */
.samsam-team__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
}

.samsam-team__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #D8EAD8;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.samsam-team__dot.is-active {
	background: #5AA6A0;
	transform: scale(1.25);
}

/* ---------- Progress bar (SamSam signature slim indicator) ---------- */
.samsam-team__progress {
	width: 14%;
	min-width: 120px;
	max-width: 320px;
	height: 6px;
	border-radius: 999px;
	background: #DCEEE0;
	margin: 30px auto 0;
	overflow: hidden;
}

.samsam-team__progress-fill {
	height: 100%;
	width: 33%;
	border-radius: 999px;
	background: #5AA6A0;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	transform-origin: left center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.samsam-team__heading {
		font-size: 38px;
	}
}

@media (max-width: 767px) {
	.samsam-team {
		padding: 56px 16px 44px;
	}

	.samsam-team__heading {
		font-size: 30px;
	}

	.samsam-team__description {
		font-size: 16px;
	}

	.samsam-team__slider {
		gap: 6px;
	}

	.samsam-team__arrow {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.samsam-team__photo-wrap {
		width: 220px;
		height: 220px;
	}
}
