/* =========================================
   Goshen Coverflow Carousel
   ========================================= */

.goshen-coverflow,
.goshen-coverflow * {
	box-sizing: border-box;
}

.goshen-coverflow {
	direction: rtl;
	font-family: "Assistant", "Heebo", Arial, sans-serif;
	width: 100%;
	padding: 60px 16px;
	background: #fafafa;
	overflow: hidden;
}

/* ─── Title ──────────────────────────────── */

.goshen-coverflow-header {
	text-align: center;
	margin-bottom: 48px;
}

.goshen-coverflow-title {
	margin: 0;
	padding: 0;
	line-height: 1.15;
}

.goshen-coverflow-title-line1,
.goshen-coverflow-title-line2 {
	display: block;
	font-size: 40px;
	font-weight: 900;
	letter-spacing: -0.5px;
}

.goshen-coverflow-title-line1 {
	color: #1a1f36;
	margin-bottom: 4px;
}

.goshen-coverflow-title-line2 {
	color: #2563eb;
}

/* ─── Carousel Stage ─────────────────────── */

.goshen-coverflow-carousel {
	position: relative;
}

.goshen-coverflow-stage {
	position: relative;
	width: 100%;
	height: calc(var(--gc-card-height, 450px) + 50px);
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	contain: layout style;
}

/* ─── Card ────────────────────────────────── */

.goshen-coverflow-card {
	position: absolute;
	width: var(--gc-card-width, 300px);
	height: var(--gc-card-height, 450px);
	border-radius: 16px;
	overflow: hidden;
	cursor: pointer;
	will-change: transform, opacity;
	transition-property: transform, opacity, box-shadow;
	transition-duration: var(--gc-transition, 500ms);
	transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.goshen-coverflow-card.is-active {
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	cursor: default;
}

.goshen-coverflow-card:not(.is-active) {
	box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.25);
}

/* ─── Photo ───────────────────────────────── */

.goshen-coverflow-photo {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
}

.goshen-coverflow-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.goshen-coverflow-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #e2e8f0;
	color: #64748b;
	font-size: 64px;
	font-weight: 700;
}

/* ─── Overlay (non-active cards) ──────────── */

.goshen-coverflow-overlay {
	position: absolute;
	inset: 0;
	background: #000000;
	opacity: 0;
	border-radius: inherit;
	pointer-events: none;
	transition: opacity var(--gc-transition, 500ms) ease;
}

.goshen-coverflow-card:not(.is-active) .goshen-coverflow-overlay {
	opacity: 0.1;
}

/* ─── Navigation Arrows ──────────────────── */

.goshen-coverflow-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

.goshen-coverflow-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid #8b5cf6;
	background-color: transparent;
	color: #8b5cf6;
	cursor: pointer;
	padding: 0;
	min-width: 44px;
	min-height: 44px;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.goshen-coverflow-arrow:hover {
	background-color: #8b5cf6;
	color: #ffffff;
	border-color: #8b5cf6;
}

.goshen-coverflow-arrow:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.goshen-coverflow-arrow svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

/* ─── Expert Info (below nav) ────────────── */

.goshen-coverflow-info {
	text-align: center;
	min-height: 80px;
	margin-top: 24px;
	transition: opacity 0.3s ease;
}

.goshen-coverflow-name {
	font-size: 24px;
	font-weight: 900;
	color: #0f172a;
	margin: 0 0 8px;
	padding: 0;
}

.goshen-coverflow-job {
	font-size: 16px;
	color: #475569;
	margin: 0;
	line-height: 1.5;
	white-space: pre-line;
}

/* ─── Focus (keyboard only) ──────────────── */

.goshen-coverflow *:focus {
	outline: none;
}

.goshen-coverflow-card:focus-visible,
.goshen-coverflow-arrow:focus-visible {
	outline: 3px solid #e8734a;
	outline-offset: 2px;
}

/* ─── Screen Reader Only ─────────────────── */

.goshen-coverflow .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ─── Responsive ─────────────────────────── */

@media (max-width: 1024px) {
	.goshen-coverflow {
		padding: 40px 16px;
	}

	.goshen-coverflow-header {
		margin-bottom: 32px;
	}

	.goshen-coverflow-title-line1,
	.goshen-coverflow-title-line2 {
		font-size: 32px;
	}
}

@media (max-width: 600px) {
	.goshen-coverflow {
		padding: 32px 0;
	}

	.goshen-coverflow-header {
		margin-bottom: 24px;
	}

	.goshen-coverflow-title-line1,
	.goshen-coverflow-title-line2 {
		font-size: 26px;
	}

	.goshen-coverflow-name {
		font-size: 20px;
	}

	.goshen-coverflow-job {
		font-size: 14px;
	}

	.goshen-coverflow-info {
		min-height: 60px;
	}
}

/* ─── Reduced Motion ─────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.goshen-coverflow-card {
		transition: none !important;
	}

	.goshen-coverflow-overlay {
		transition: none !important;
	}

	.goshen-coverflow-info {
		transition: none !important;
	}
}
