/* Vietgraine intro — scoped to Elementor widget */
.elementor-widget-farmas-custom-pro .farmas-custom-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding-top: 20px;
	isolation: isolate;
}

.elementor-widget-farmas-custom-pro .farmas-custom-wrapper.farmas-has-grass {
	padding-bottom: 120px;
}

.elementor-widget-farmas-custom-pro .farmas-section-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	overflow: visible;
	justify-content: space-between;
}

.elementor-widget-farmas-custom-pro .farmas-left-side {
	flex: 0 0 50%;
	max-width: 50%;
	padding-right: 24px;
	box-sizing: border-box;
	min-width: 0;
	position: relative;
	z-index: 2;
}

.elementor-widget-farmas-custom-pro .farmas-right-side {
	flex: 0 0 50%;
	max-width: 50%;
	position: relative;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	min-width: 0;
	overflow: visible;
	z-index: 1;
}

.elementor-widget-farmas-custom-pro .farmas-years-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	gap: 16px;
	position: relative;
	margin-bottom: 30px;
	padding-top: 8px;
}

.elementor-widget-farmas-custom-pro .farmas-big-number {
	display: inline-block;
	font-size: 200px;
	font-weight: 700;
	line-height: 0.85;
	color: #2e4626;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
}

.elementor-widget-farmas-custom-pro .farmas-big-number.farmas-has-mask {
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	contain: paint;
}

.elementor-widget-farmas-custom-pro .farmas-years-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	background: #4a8928;
	border-radius: 50%;
	flex-shrink: 0;
	align-self: flex-start;
	margin-top: 18px;
}

.elementor-widget-farmas-custom-pro .farmas-years-text {
	display: flex;
	flex-direction: column;
	line-height: 1.05;
	padding-bottom: 8px;
	min-width: 0;
}

.elementor-widget-farmas-custom-pro .farmas-years-top {
	display: block;
	font-size: 48px;
	font-weight: 400;
	color: #2e4626;
}

.elementor-widget-farmas-custom-pro .farmas-years-bottom {
	display: block;
	font-size: 48px;
	font-weight: 800;
	color: #2e4626;
}

.elementor-widget-farmas-custom-pro .farmas-tagline {
	font-size: 30px;
	line-height: 1.7;
	color: #333333;
	max-width: 520px;
	margin: 0 0 40px;
}

.elementor-widget-farmas-custom-pro .farmas-tagline p {
	margin: 0;
}

.elementor-widget-farmas-custom-pro .farmas-tagline .farmas-brand-highlight {
	color: #4a8928;
	font-weight: 700;
}

.elementor-widget-farmas-custom-pro .farmas-stats {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 40px;
	border-top: 1px solid #eeeeee;
	padding-top: 30px;
	width: 100%;
}

.elementor-widget-farmas-custom-pro .farmas-stat {
	flex: 1 1 0;
	min-width: 0;
}

.elementor-widget-farmas-custom-pro .farmas-stat-num {
	display: block;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	color: #4a8928;
	margin-bottom: 6px;
}

.elementor-widget-farmas-custom-pro .farmas-stat-label {
	display: block;
	font-size: 11px;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888888;
}

/*
 * Right column — reference layout:
 * - Portrait image full width as background layer (taller than quote)
 * - Strip image under quote box (optional)
 * - Green quote + white offset overlapping top-left
 */
.elementor-widget-farmas-custom-pro .farmas-media-stack {
	position: relative;
	min-height: 598px;
	width: 100%;
	overflow: visible;
}

.elementor-widget-farmas-custom-pro .farmas-media-stack.farmas-has-strip {
	min-height: 620px;
}

.elementor-widget-farmas-custom-pro .farmas-photo-main {
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
	width: 100% !important;
	max-width: 100%;
	height: 598px;
	display: block;
	object-fit: cover;
	object-position: center top;
	z-index: 1;
	margin: 0;
}

.elementor-widget-farmas-custom-pro .farmas-photo-strip {
	position: absolute !important;
	top: 400px;
	left: 0;
	width: 55%;
	height: 200px;
	display: block;
	object-fit: cover;
	object-position: center;
	z-index: 2;
	margin: 0;
}

.elementor-widget-farmas-custom-pro .farmas-quote-offset {
	position: absolute !important;
	top: 20px;
	left: 20px;
	width: 330px;
	height: 400px;
	background: #ffffff;
	z-index: 4;
	pointer-events: none;
}

.elementor-widget-farmas-custom-pro .farmas-quote-panel {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 330px;
	height: 400px;
	background: #4a8928;
	padding: 40px 40px 48px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	box-sizing: border-box;
	overflow: hidden;
	container-type: size;
	--farmas-q-mark-ratio: 0.65;
	--farmas-q-mark-pos-x: 82%;
	--farmas-q-mark-pos-y: 88%;
	--farmas-q-mark-offset-x: 0px;
	--farmas-q-mark-offset-y: 0px;
	--farmas-q-mark-intensity: 0.5;
	--farmas-q-mark-text-intensity: 0.16;
}

.elementor-widget-farmas-custom-pro .farmas-quote-deco {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.elementor-widget-farmas-custom-pro .farmas-q-bg {
	position: absolute;
	left: calc(var(--farmas-q-mark-pos-x, 82%) + var(--farmas-q-mark-offset-x, 0px));
	top: calc(var(--farmas-q-mark-pos-y, 88%) + var(--farmas-q-mark-offset-y, 0px));
	display: block;
	user-select: none;
	--farmas-q-mark-flip-x: 1;
	--farmas-q-mark-flip-y: 1;
	transform: translate(-50%, -50%) scaleX(var(--farmas-q-mark-flip-x, 1)) scaleY(var(--farmas-q-mark-flip-y, 1));
	transform-origin: center center;
}

.elementor-widget-farmas-custom-pro .farmas-q-bg-text {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	line-height: 1;
	font-size: var(--farmas-q-mark-fixed, calc(var(--farmas-q-mark-ratio, 0.65) * 100cqw));
	color: #ffffff;
	opacity: var(--farmas-q-mark-text-intensity, 0.16);
}

.elementor-widget-farmas-custom-pro .farmas-q-bg-img {
	width: var(--farmas-q-mark-fixed, calc(var(--farmas-q-mark-ratio, 0.65) * 100cqw));
	height: auto;
	max-width: none;
	object-fit: contain;
	opacity: var(--farmas-q-mark-intensity, 0.5);
}

.elementor-widget-farmas-custom-pro .farmas-quote-content {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	max-width: 100%;
}

.elementor-widget-farmas-custom-pro .farmas-quote-text {
	color: #ffffff;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 24px;
	padding-top: 0;
	text-transform: none;
	font-family: inherit;
}

.elementor-widget-farmas-custom-pro .farmas-quote-author {
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
	text-transform: none;
	font-family: inherit;
}

/* Full-width grass */
.elementor-widget-farmas-custom-pro .farmas-grass-bg {
	position: absolute;
	bottom: 0;
	left: calc(50% - (var(--farmas-grass-width, 100vw) / 2));
	width: var(--farmas-grass-width, 100vw);
	height: 140px;
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% 100%;
	pointer-events: none;
	z-index: 0;
	contain: strict;
	backface-visibility: hidden;
	transform: translateZ(0);
}

.elementor-widget-farmas-custom-pro .farmas-media-stack.farmas-no-photo {
	min-height: 400px;
	background: #f5f5f5;
}

@media (max-width: 1199px) {
	.elementor-widget-farmas-custom-pro .farmas-big-number {
		font-size: 160px;
	}

	.elementor-widget-farmas-custom-pro .farmas-years-top,
	.elementor-widget-farmas-custom-pro .farmas-years-bottom {
		font-size: 38px;
	}

	.elementor-widget-farmas-custom-pro .farmas-tagline {
		font-size: 24px;
	}
}

@media (max-width: 991px) {
	.elementor-widget-farmas-custom-pro .farmas-section-container {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.elementor-widget-farmas-custom-pro .farmas-left-side,
	.elementor-widget-farmas-custom-pro .farmas-right-side {
		flex: 0 0 100%;
		max-width: 100%;
		padding-right: 0;
	}

	.elementor-widget-farmas-custom-pro .farmas-right-side {
		padding: 30px 0 0;
		margin-left: 0;
	}

	.elementor-widget-farmas-custom-pro .farmas-years-row {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.elementor-widget-farmas-custom-pro .farmas-big-number {
		font-size: 100px;
	}

	.elementor-widget-farmas-custom-pro .farmas-years-dot {
		display: none;
	}

	.elementor-widget-farmas-custom-pro .farmas-years-top,
	.elementor-widget-farmas-custom-pro .farmas-years-bottom {
		font-size: 28px;
	}

	.elementor-widget-farmas-custom-pro .farmas-tagline {
		font-size: 18px;
		max-width: 100%;
		margin-bottom: 25px;
	}

	.elementor-widget-farmas-custom-pro .farmas-stats {
		flex-wrap: wrap;
		gap: 20px;
	}

	.elementor-widget-farmas-custom-pro .farmas-stat {
		flex: 1 1 calc(50% - 10px);
	}

	.elementor-widget-farmas-custom-pro .farmas-media-stack,
	.elementor-widget-farmas-custom-pro .farmas-media-stack.farmas-has-strip {
		min-height: 520px;
	}

	.elementor-widget-farmas-custom-pro .farmas-photo-main {
		position: relative !important;
		height: 360px;
	}

	.elementor-widget-farmas-custom-pro .farmas-photo-strip {
		position: relative !important;
		top: auto;
		width: 100%;
		height: 180px;
		margin-top: 16px;
	}

	.elementor-widget-farmas-custom-pro .farmas-quote-offset,
	.elementor-widget-farmas-custom-pro .farmas-quote-panel {
		width: min(88%, 300px);
		height: auto;
		min-height: 300px;
		top: 0 !important;
		left: 0 !important;
	}

	.elementor-widget-farmas-custom-pro .farmas-photo-strip {
		top: 300px;
	}

	.elementor-widget-farmas-custom-pro .farmas-quote-panel {
		padding: 28px;
		container-type: size;
	}

	.elementor-widget-farmas-custom-pro .farmas-quote-text {
		font-size: 20px;
	}

	.elementor-widget-farmas-custom-pro .farmas-quote-author {
		font-size: 13px;
	}

	.elementor-widget-farmas-custom-pro .farmas-grass-bg {
		height: 100px;
		background-size: cover;
	}
}
