/* Keep the widget in normal document flow so following Elementor containers
 * can never overlap it, especially when mobile text becomes taller than the
 * selected image ratio. */
.elementor-widget-seojan_dji_banner_grid,
.elementor-widget-seojan_dji_banner_grid > .elementor-widget-container {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 1px;
	box-sizing: border-box;
	clear: both;
}

.elementor-widget-seojan_dji_banner_grid > .elementor-widget-container {
	overflow: visible;
}

.sjdbg-grid {
	--sjdbg-columns: 2;
	position: relative;
	z-index: 0;
	display: grid;
	grid-template-columns: repeat(var(--sjdbg-columns), minmax(0, 1fr));
	grid-auto-flow: row;
	grid-auto-rows: auto;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 1px;
	box-sizing: border-box;
	clear: both;
}

.sjdbg-card {
	position: relative;
	isolation: isolate;
	display: block;
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	box-sizing: border-box;
	overflow: hidden;
	background: #f3f4f6;
}

.sjdbg-media,
.sjdbg-overlay,
.sjdbg-card-link {
	position: absolute;
	inset: 0;
}

.sjdbg-media {
	z-index: -3;
	background-color: #f3f4f6;
	background-repeat: no-repeat;
	background-image: var(--sjdbg-bg-desktop);
	background-position: var(--sjdbg-item-image-position, var(--sjdbg-general-image-position, center center));
	background-size: cover;
	image-rendering: auto;
	opacity: 1;
	filter: none;
	mix-blend-mode: normal;
	transition-property: transform, filter;
	transition-timing-function: cubic-bezier(.2,.7,.2,1);
}

.sjdbg-overlay {
	z-index: -2;
	pointer-events: none;
}

.sjdbg-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	height: auto;
	min-height: 100%;
	box-sizing: border-box;
	pointer-events: none;
}

.sjdbg-content-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	pointer-events: none;
}

.sjdbg-eyebrow,
.sjdbg-title,
.sjdbg-title-media,
.sjdbg-subtitle {
	position: relative;
	z-index: 2;
	max-width: 100%;
	margin-top: 0;
	line-height: 1.35;
	word-break: break-word;
}

.sjdbg-eyebrow {
	font-size: 13px;
	font-weight: 400;
}

.sjdbg-title {
	margin-left: 0;
	margin-right: 0;
	font-size: clamp(24px, 2.2vw, 42px);
	font-weight: 700;
	letter-spacing: -.025em;
}

.sjdbg-title-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 55%;
	max-width: 500px;
}

.sjdbg-title-media img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	object-fit: contain;
	object-position: center;
}


.sjdbg-subtitle {
	font-size: 15px;
	font-weight: 600;
}

.sjdbg-buttons {
	position: relative;
	pointer-events: auto;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: inherit;
	max-width: 100%;
}

.sjdbg-button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	color: #111;
	text-decoration: none;
	line-height: 1.5;
	white-space: nowrap;
	transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}

.sjdbg-button:hover,
.sjdbg-button:focus,
.sjdbg-button:focus-visible {
	text-decoration: none;
}

.sjdbg-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.sjdbg-button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transition: transform .25s ease;
}

.sjdbg-button-icon i,
.sjdbg-button-icon svg {
	display: block;
	fill: currentColor;
}

.sjdbg-card-link {
	z-index: 1;
	display: block;
}

.sjdbg-card-link:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -5px;
}

/* دکمه‌ها باید بالاتر از لینک کل باکس قابل کلیک بمانند. */
.sjdbg-buttons,
.sjdbg-button {
	z-index: 5;
}

@media (max-width: 1024px) {
	.sjdbg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sjdbg-card {
		aspect-ratio: 16 / 10;
		min-height: 360px;
	}


	.sjdbg-eyebrow {
		font-size: 12px;
		line-height: 1.3;
	}

	.sjdbg-title {
		font-size: clamp(20px, 3.4vw, 30px);
		line-height: 1.18;
	}

	.sjdbg-title-media {
		width: min(62%, 360px);
	}

	.sjdbg-subtitle {
		font-size: 14px;
		line-height: 1.35;
	}


	.sjdbg-button {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.elementor-widget-seojan_dji_banner_grid,
	.elementor-widget-seojan_dji_banner_grid > .elementor-widget-container,
	.sjdbg-grid {
		height: auto !important;
		min-height: 1px;
	}

	.sjdbg-grid {
		grid-template-columns: 1fr;
	}

	.sjdbg-media {
		background-image: var(--sjdbg-bg-mobile, var(--sjdbg-bg-desktop));
		background-position: var(--sjdbg-item-image-position-mobile, var(--sjdbg-general-image-position, center center));
	}

	.sjdbg-card {
		/* Tall mobile promotional card: scales with the viewport but stays usable
		 * on both compact and large phones. Elementor's responsive height control
		 * can still override this value per widget. */
		aspect-ratio: 4 / 5;
		min-height: clamp(480px, 135vw, 620px);
	}


	.sjdbg-content-inner {
		max-width: 100%;
	}

	.sjdbg-title {
		font-size: clamp(19px, 6.2vw, 26px);
		line-height: 1.15;
	}

	.sjdbg-title-media {
		width: min(70%, 280px);
	}

	.sjdbg-eyebrow {
		font-size: 11px;
		line-height: 1.3;
	}

	.sjdbg-subtitle {
		font-size: 13px;
		line-height: 1.35;
	}


	.sjdbg-button {
		font-size: 13px;
	}

	.sjdbg-button-icon {
		font-size: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sjdbg-media,
	.sjdbg-button,
	.sjdbg-button-icon {
		transition: none !important;
	}
}
