/* =========================================
   Goshen Experts Carousel
   ========================================= */

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

.goshen-experts {
	direction: rtl;
	font-family: "Assistant", "Heebo", Arial, sans-serif;
	width: 100%;
	padding: 60px;
	background: #ffffff;
}

/* ─── Title with accent bar ───────────────── */

.goshen-experts-title {
	font-size: 28px;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0 0 40px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.goshen-experts-title::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 1em;
	background-color: #0099cc;
	border-radius: 3px;
	flex-shrink: 0;
}

/* ─── Carousel container ──────────────────── */

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

/* Swiper instance */
.goshen-experts-swiper {
	overflow: hidden;
	width: 100%;
}

/* ─── Slide ───────────────────────────────── */

.goshen-expert-slide {
	display: flex;
	align-items: stretch;
	height: auto;
}

.goshen-expert-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex: 1;
}

.goshen-expert-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	text-align: center;
	padding: 16px;
}

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

.goshen-expert-photo {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 4px solid #dce8ee;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.goshen-expert-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.goshen-expert-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef5f8;
	color: #0099cc;
	font-size: 48px;
	font-weight: 700;
	border-radius: 50%;
}

/* ─── Name & Job ──────────────────────────── */

.goshen-expert-name {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 16px 0 0;
	padding: 0;
}

.goshen-expert-job {
	font-size: 15px;
	color: #666666;
	margin: 4px 0 0;
	line-height: 1.4;
}

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

.goshen-experts-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #333333;
	padding: 8px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	transition: color 0.2s ease;
}

.goshen-experts-arrow:hover {
	color: #0099cc;
}

.goshen-experts-arrow svg {
	width: 28px;
	height: 28px;
}

/* In RTL: "next" arrow is on the left, "prev" arrow is on the right */
.goshen-experts-arrow-next {
	left: -16px;
}

.goshen-experts-arrow-prev {
	right: -16px;
}

/* ─── Dots ────────────────────────────────── */

.goshen-experts-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 32px;
}

.goshen-experts-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #cccccc;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, width 0.2s ease, border-radius 0.2s ease;
	min-width: 10px;
	min-height: 10px;
}

.goshen-experts-dot.is-active {
	background-color: #0055a5;
	width: 24px;
	border-radius: 5px;
}

/* ─── Clickable card ──────────────────────── */

.goshen-expert-card--modal {
	background: none;
	border: none;
	padding: 16px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100%;
	flex: 1;
	transition: transform 0.2s ease;
}

.goshen-expert-card--modal:hover {
	transform: translateY(-3px);
}

.goshen-expert-card--modal:hover .goshen-expert-photo {
	border-color: #0099cc;
}

/* ─── Expert Modal ────────────────────────── */

.goshen-expert-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.goshen-expert-modal[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
}

.goshen-expert-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.7);
}

.goshen-expert-modal-inner {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 32px 32px;
	width: 90vw;
	max-width: 480px;
	max-height: 85vh;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	direction: rtl;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.goshen-expert-modal[aria-hidden="false"] .goshen-expert-modal-inner {
	transform: scale(1);
}

.goshen-expert-modal-close {
	position: absolute;
	top: 12px;
	left: 12px;
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
	padding: 6px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.goshen-expert-modal-close:hover {
	background-color: #f0f0f0;
	color: #1a1a2e;
}

.goshen-expert-modal-close:focus-visible {
	outline: 3px solid #0099cc;
	outline-offset: 2px;
}

.goshen-expert-modal-photo-wrap {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #dce8ee;
	margin-bottom: 20px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.goshen-expert-modal-photo {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	object-position: center top;
	display: block;
	border-radius: 50%;
	flex-shrink: 0;
}

.goshen-expert-modal-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eef5f8;
	color: #0099cc;
	font-size: 42px;
	font-weight: 700;
	border-radius: 50%;
}

.goshen-expert-modal-name {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 6px;
}

.goshen-expert-modal-job {
	font-size: 15px;
	color: #0099cc;
	font-weight: 600;
	margin: 0 0 20px;
}

.goshen-expert-modal-desc {
	font-size: 15px;
	color: #444;
	line-height: 1.7;
	text-align: right;
	width: 100%;
}

@media (max-width: 600px) {
	.goshen-expert-modal-inner {
		padding: 32px 20px 24px;
		max-height: 90vh;
	}
}

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

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

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

.goshen-keyboard-nav .goshen-experts button:focus-visible,
.goshen-keyboard-nav .goshen-experts a:focus-visible {
	outline: 3px solid #e8734a !important;
	outline-offset: 2px !important;
}

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

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

	.goshen-experts-arrow-next {
		left: -8px;
	}

	.goshen-experts-arrow-prev {
		right: -8px;
	}
}

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

	.goshen-experts-title {
		font-size: 22px;
		margin-bottom: 24px;
	}

	.goshen-experts-arrow {
		display: flex;
	}
}

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

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