/* =========================================
   Goshen Hero Widget
   ========================================= */

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

.goshen-hero {
	direction: rtl;
	width: 100%;
	background-color: #eef5f8;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
	font-family: "Assistant", "Heebo", Arial, sans-serif;
}

/* ─── Inner layout ────────────────────────── */

.goshen-hero-inner {
	display: flex;
	align-items: stretch;
	min-height: 600px;
	position: relative;
}

/* ─── Content (right side in RTL) ─────────── */

.goshen-hero-content {
	width: 42%;
	flex-shrink: 0;
	padding: 60px 40px 60px 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 2;
}

/* Badge */
.goshen-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #ffffff;
	color: #0099cc;
	border: 1.5px solid #d0e8f0;
	border-radius: 30px;
	padding: 8px 20px;
	font-size: 15px;
	font-weight: 600;
	width: fit-content;
	align-self: flex-start;
}

.goshen-hero-badge-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #8CC63F;
	flex-shrink: 0;
}

/* Heading */
.goshen-hero-heading {
	font-size: 48px;
	font-weight: 800;
	line-height: 1.25;
	color: #1a1a2e;
	margin: 24px 0 20px;
	padding: 0;
}

/* Subheading */
.goshen-hero-subheading {
	font-size: 20px;
	font-weight: 600;
	line-height: 1.6;
	color: #0077a8;
	margin: 0 0 20px;
}

/* Body */
.goshen-hero-body {
	font-size: 16px;
	line-height: 1.7;
	color: #555555;
	margin: 0 0 24px;
}

.goshen-hero-body p {
	margin: 0 0 12px;
}

.goshen-hero-body p:last-child {
	margin-bottom: 0;
}

/* CTA */
.goshen-hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #0099cc;
	text-decoration: none;
	font-size: 18px;
	font-weight: 700;
	border-bottom: 2px solid #0099cc;
	padding-bottom: 4px;
	width: fit-content;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.goshen-hero-cta:hover {
	color: #007aa3;
	border-bottom-color: #007aa3;
}

.goshen-hero-cta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.goshen-hero-cta-icon svg {
	fill: currentColor;
}

.goshen-hero-cta-icon i {
	color: inherit;
}

/* ─── Hero Image (left side in RTL) ───────── */

.goshen-hero-image {
	flex: 1;
	position: relative;
	min-height: 100%;
}

.goshen-hero-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

/* Mobile image: hidden on desktop, shown on mobile */
.goshen-hero-img-mobile {
	display: none;
}

.goshen-hero-has-mobile-img .goshen-hero-img-desktop {
	display: block;
}

.goshen-hero-has-mobile-img .goshen-hero-img-mobile {
	display: none;
}

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

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

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

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

@media (max-width: 1024px) {
	.goshen-hero {
		margin: 0 16px;
		width: calc(100% - 32px);
		padding: 0 !important;
	}

	.goshen-hero-inner {
		flex-direction: column;
		min-height: auto;
	}

	.goshen-hero-content {
		width: 100%;
		padding: 40px 24px;
	}

	.goshen-hero-image {
		width: 100%;
		flex: none;
		position: relative;
	}

	.goshen-hero-image img {
		position: relative;
		width: 100%;
		height: auto;
		display: block;
	}

	/* Swap to mobile image when set */
	.goshen-hero-has-mobile-img .goshen-hero-img-desktop {
		display: none;
	}

	.goshen-hero-has-mobile-img .goshen-hero-img-mobile {
		display: block;
	}

	.goshen-hero-heading {
		font-size: 36px;
	}

	.goshen-hero-subheading {
		font-size: 17px;
	}
}

@media (max-width: 600px) {
	.goshen-hero {
		margin: 0 8px;
		width: calc(100% - 16px);
		border-radius: 12px;
	}

	.goshen-hero-content {
		padding: 28px 16px;
	}

	.goshen-hero-heading {
		font-size: 28px;
	}

	.goshen-hero-subheading {
		font-size: 15px;
	}

	.goshen-hero-body {
		font-size: 14px;
	}

	.goshen-hero-image img {
		min-height: 220px;
	}
}

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

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