/* =============================================================
   Nejat Banner Widget
   ============================================================= */

/* ── Root wrapper ───────────────────────────────────────────── */
.nejat-banner {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 182px;
	background: linear-gradient(135deg, #e6f4f7 0%, #f0f8fb 50%, #f5fafb 100%);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* ── Inner container ────────────────────────────────────────── */
.nejat-banner__inner {
	width: 100%;
	max-width: var(--nejat-max-width);
	margin: 0 auto;
	padding: 39px var(--nejat-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nejat-gap-lg);
}

/* ── Content (left column) ──────────────────────────────────── */
.nejat-banner__content {
	flex: 1;
	z-index: 2;
}

/* ── Eyebrow ────────────────────────────────────────────────── */
.nejat-banner__eyebrow {
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: capitalize;
	color: #4ab3c8;
	margin: 0 0 8px;
}

/* ── Title ──────────────────────────────────────────────────── */
.nejat-banner__title {
	font-size: clamp(28px, 4vw, 52px);
	font-weight: 800;
	line-height: 1.15;
	color: #1a1a1a;
	margin: 0 0 16px;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.nejat-banner__breadcrumb {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 4px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	color: #888888;
	letter-spacing: 0.01em;
}

.nejat-banner__breadcrumb a {
	color: #888888;
	text-decoration: none;
	transition: color 0.2s ease;
}

.nejat-banner__breadcrumb a:hover {
	color: #4ab3c8;
}

/* Home icon link */
.nejat-banner__breadcrumb-home {
	display: flex;
	align-items: center;
	align-self: center;
	line-height: 1;
}

.nejat-banner__breadcrumb-home-icon {
	display: block;
	flex-shrink: 0;
	position: relative;
	top: -1px;
}

/* Current page */
.nejat-banner__breadcrumb-current {
	color: #1a1a1a;
	font-weight: 500;
}

/* Separator */
.nejat-banner__breadcrumb-sep {
	color: #bbbbbb;
	font-size: 13px;
	flex-shrink: 0;
}

/* ── Right-side image ───────────────────────────────────────── */
.nejat-banner__image {
	flex: 0 0 auto;
	max-width: 48%;
	z-index: 2;
}

.nejat-banner__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--nejat-radius);
}

/* ── Overlay (only when background image is set) ────────────── */
.nejat-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 255, 255, 0.65) 50%,
		transparent 100%
	);
	pointer-events: none;
	z-index: 1;
}

.nejat-banner:not([style*="background-image"])::before {
	display: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
	.nejat-banner__title {
		font-size: clamp(26px, 3.5vw, 42px);
	}
}

@media (max-width: 768px) {
	.nejat-banner {
		min-height: 180px !important;
	}

	.nejat-banner__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--nejat-gap-sm);
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.nejat-banner__content {
		text-align: left !important;
	}

	.nejat-banner__title {
		font-size: clamp(24px, 6vw, 36px);
		margin-bottom: 12px;
	}

	.nejat-banner__breadcrumb {
		font-size: 13px;
		justify-content: flex-start;
	}

	.nejat-banner__image {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.nejat-banner {
		min-height: 150px !important;
	}

	.nejat-banner__title {
		font-size: clamp(22px, 7vw, 30px);
		margin-bottom: 10px;
	}

	.nejat-banner__breadcrumb {
		font-size: 12px;
	}
}

/* ── Center alignment variant ──────────────────────────────── */
.nejat-banner__content[style*="text-align: center"] .nejat-banner__breadcrumb {
	justify-content: center;
}

/* ── Zero out the parent Elementor container's padding & margin ── */
.e-con:has(> .e-con-inner > .elementor-widget-nejat-banner),
.e-con:has(> .elementor-widget-nejat-banner),
.elementor-section:has(.elementor-widget-nejat-banner),
.elementor-column:has(.elementor-widget-nejat-banner) {
	padding: 0 !important;
	margin: 0 !important;
}
