/* MedCare Nurses Providers — carousel (template1: hover overlay, brand colors) */

.mnp-carousel {
	--mnp-per-view: 4;
	--mnp-gap: 24px;
	--mnp-accent: #42c2c9;        /* MedCare primary teal */
	--mnp-accent-dark: #2ba6ad;
	--mnp-navy: #001837;          /* MedCare dark navy */
	--mnp-text: #001837;
	--mnp-muted: #5b6b7b;
	--mnp-card-bg: #ffffff;
	/* Indicators (overridable per carousel from the admin) */
	--mnp-dot: #c4d2d6;
	--mnp-dot-active: var(--mnp-accent);
	--mnp-arrow-bg: #ffffff;
	--mnp-arrow-color: var(--mnp-accent-dark);
	position: relative;
	box-sizing: border-box;
	padding: 8px 0;
}
.mnp-carousel *,
.mnp-carousel *::before,
.mnp-carousel *::after { box-sizing: border-box; }

.mnp-carousel__viewport {
	overflow: hidden;
	cursor: grab;
}
.mnp-carousel__viewport:active { cursor: grabbing; }

.mnp-carousel__track {
	display: flex;
	gap: var(--mnp-gap);
	transition-property: transform;
	transition-timing-function: cubic-bezier(.22,.61,.36,1);
	will-change: transform;
}

.mnp-slide {
	flex: 0 0 calc((100% - (var(--mnp-per-view) - 1) * var(--mnp-gap)) / var(--mnp-per-view));
	max-width: calc((100% - (var(--mnp-per-view) - 1) * var(--mnp-gap)) / var(--mnp-per-view));
	display: flex;
}

/* ── Card (full-bleed photo with hover overlay) ───── */
.mnp-card {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 18px;
	overflow: hidden;
	background: var(--mnp-navy);
	box-shadow: 0 8px 26px rgba(0, 24, 55, .14);
	transition: box-shadow .3s ease, transform .3s ease;
}
.mnp-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 44px rgba(0, 24, 55, .26);
}

.mnp-card__photo { position: absolute; inset: 0; }
.mnp-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.mnp-card:hover .mnp-card__photo img { transform: scale(1.07); }

.mnp-card__photo-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	color: #fff;
	background: linear-gradient(135deg, var(--mnp-accent), var(--mnp-accent-dark));
	opacity: .9;
}

/* Scrim: subtle at rest, deepens to brand colours on hover */
.mnp-card__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,24,55,.88) 0%, rgba(0,24,55,.35) 38%, rgba(0,24,55,0) 62%);
	transition: background .35s ease;
}
.mnp-card:hover .mnp-card__scrim {
	background: linear-gradient(to top, rgba(0,24,55,.94) 0%, rgba(0,24,55,.62) 55%, rgba(11,114,133,.20) 100%);
}

/* ── Text overlay ─────────────────────────────────── */
.mnp-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px 20px 22px;
	color: #fff;
	z-index: 2;
}
.mnp-card__title {
	display: inline-block;
	font-size: .68rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--mnp-navy);
	background: var(--mnp-accent);
	padding: 3px 9px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.mnp-card__name {
	margin: 0;
	font-size: 1.22rem;
	line-height: 1.25;
	font-weight: 700;
	color: #fff;
}
.mnp-card__specialty {
	margin: 4px 0 0;
	font-size: .92rem;
	font-weight: 600;
	color: var(--mnp-accent);
}

/* Hidden details revealed on hover */
.mnp-card__extra {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(8px);
	transition: max-height .45s ease, opacity .35s ease, transform .45s ease, margin-top .45s ease;
}
.mnp-card:hover .mnp-card__extra {
	max-height: 260px;
	opacity: 1;
	transform: translateY(0);
	margin-top: 12px;
}

.mnp-card__team {
	margin: 0 0 6px;
	font-size: .8rem;
	color: rgba(255,255,255,.82);
	display: flex;
	align-items: center;
	gap: 6px;
}
.mnp-card__team i { color: var(--mnp-accent); }
.mnp-card__bio {
	margin: 0 0 12px;
	font-size: .85rem;
	line-height: 1.5;
	color: rgba(255,255,255,.82);
}

.mnp-card__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.mnp-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.16);
	backdrop-filter: blur(2px);
	color: #fff;
	font-size: 15px;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mnp-social-link:hover {
	background: var(--mnp-accent);
	color: var(--mnp-navy);
	transform: translateY(-2px);
}

/* Touch devices: no hover, so always show the details */
@media (hover: none) {
	.mnp-card__extra {
		max-height: 260px;
		opacity: 1;
		transform: none;
		margin-top: 12px;
	}
	.mnp-card__scrim {
		background: linear-gradient(to top, rgba(0,24,55,.92) 0%, rgba(0,24,55,.55) 55%, rgba(0,24,55,.05) 100%);
	}
}

/* ── Arrows ───────────────────────────────────────── */
.mnp-carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border: none;
	border-radius: 50%;
	background: var(--mnp-arrow-bg);
	color: var(--mnp-arrow-color);
	box-shadow: 0 6px 18px rgba(0, 24, 55, .2);
	cursor: pointer;
	font-size: 16px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.mnp-carousel__arrow:hover { background: var(--mnp-accent); color: #fff; border-color: var(--mnp-accent); }
.mnp-carousel__arrow:disabled { opacity: .35; cursor: default; }
.mnp-carousel__arrow--prev { left: -12px; }
.mnp-carousel__arrow--next { right: -12px; }

/* ── Arrow styles (chosen in the admin: round | square | outline) ── */
.mnp-carousel[data-arrow-style="square"] .mnp-carousel__arrow {
	border-radius: 14px;
}
.mnp-carousel[data-arrow-style="outline"] .mnp-carousel__arrow {
	background: transparent;
	border: 1px solid var(--mnp-arrow-color);
	box-shadow: none;
}

/* ── Dots ─────────────────────────────────────────── */
.mnp-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}
.mnp-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--mnp-dot);
	cursor: pointer;
	transition: background .25s ease, transform .25s ease, width .25s ease;
}
.mnp-carousel__dot.is-active { background: var(--mnp-dot-active); }

/* ── Dot styles (chosen in the admin: round | pill | bar | line) ── */
.mnp-carousel[data-dot-style="round"] .mnp-carousel__dot.is-active {
	width: 13px;
	height: 13px;
}
.mnp-carousel[data-dot-style="pill"] .mnp-carousel__dot.is-active {
	width: 24px;
	border-radius: 999px;
}
.mnp-carousel[data-dot-style="bar"] .mnp-carousel__dot {
	width: 34px;
	height: 8px;
	border-radius: 0;
	clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}
.mnp-carousel[data-dot-style="line"] .mnp-carousel__dot {
	width: 22px;
	height: 3px;
	border-radius: 2px;
}
.mnp-carousel[data-dot-style="line"] .mnp-carousel__dot.is-active { width: 34px; }

.mnp-empty {
	padding: 16px;
	color: var(--mnp-muted);
	font-style: italic;
}

@media (max-width: 1024px) {
	.mnp-carousel__arrow--prev { left: 4px; }
	.mnp-carousel__arrow--next { right: 4px; }
}


/* ════════════════════════════════════════════════════════════════
   Template 2 — Team cards (Careold-style: vertical social bar, white
   content card notched into the corner, split image hover reveal).
   Colours come from the same --mnp-* variables as template 1.
   ════════════════════════════════════════════════════════════════ */

.mnp-template2 { padding: 8px 0 4px; }

.mnp-template2 .mnp-slide { display: flex; }

.mnp-t2-card {
	position: relative;
	width: 100%;
	border-radius: 20px;
	overflow: hidden;
	background: #eef4f5;
	box-shadow: 0 10px 30px rgba(0, 24, 55, .10);
}

/* ── Image with split hover reveal ──────────────────── */
.mnp-t2-card__image {
	position: relative;
	aspect-ratio: 37 / 45;
	overflow: hidden;
}
.mnp-t2-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mnp-t2-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	color: #fff;
	background: linear-gradient(135deg, var(--mnp-accent), var(--mnp-accent-dark));
}
/* Two translucent panels that expand and fade on hover */
.mnp-t2-card__image::before,
.mnp-t2-card__image::after {
	content: "";
	position: absolute;
	background: rgba(255, 255, 255, .3);
	opacity: 1;
	pointer-events: none;
	z-index: 1;
	transition: all 400ms linear;
}
.mnp-t2-card__image::before { left: 0; right: 0; top: 51%; bottom: 50%; }
.mnp-t2-card__image::after  { top: 0; bottom: 0; left: 50%; right: 51%; }
.mnp-t2-card:hover .mnp-t2-card__image::before { top: 0; bottom: 0; opacity: 0; }
.mnp-t2-card:hover .mnp-t2-card__image::after  { left: 0; right: 0; opacity: 0; }

/* ── Vertical social bar ────────────────────────────── */
.mnp-t2-card__social {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 64px;
	padding: 14px 0;
	background-color: #c2ebe1;     /* Careold mint */
	border-radius: 0 20px 0 20px;
}
.mnp-t2-card__social a {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: #fff;
	color: #4a5560;
	font-size: 14px;
	text-decoration: none;
	overflow: hidden;
	transition: background-color .35s ease, color .35s ease;
}
.mnp-t2-card__social a:hover {
	background-color: var(--mnp-accent);
	color: #0e0b06;
}

/* ── Content card notched into the bottom-right ─────── */
.mnp-t2-card__content {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: calc(100% - 64px);
	padding: 22px 22px 18px;
	background-color: #fff;
	border-radius: 20px 20px 20px 0;
}
.mnp-t2-card__title {
	margin: 0 0 5px;
	font-size: 1.25rem;
	line-height: 1.25;
	font-weight: 700;
	text-transform: capitalize;
	color: #0e0b06;
}
.mnp-t2-card__designation {
	margin: 0;
	font-size: .92rem;
	line-height: 1.3;
	text-transform: capitalize;
	color: #827e76;
}

/* Accessible-only labels (visually hidden) */
.mnp-template2 .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 480px) {
	.mnp-t2-card__content { padding: 18px 16px 14px; }
	.mnp-t2-card__title { font-size: 1.12rem; }
}
