/*
 * ESS Differentiators — centered circle (hub) with feature items down the
 * left and right, mirrored so their text faces the hub, plus optional dashed
 * connector lines. Collapses to a single stacked column on small screens.
 */

.ess-diff {
	width: 100%;
	max-width: var(--ess-container, 1200px);
	margin: 0 auto;
	padding: 40px 20px;
}

/* --- Header --- */
.ess-diff__header {
	max-width: 620px;
	margin-bottom: 20px;
}
.ess-diff__heading {
	margin: 0 0 6px;
	font-family: var(--ess-font-heading, "Playfair Display", serif);
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 46px);
	line-height: 1.1;
	letter-spacing: .5px;
	color: #2b3a4b;
}
.ess-diff__subheading {
	font-family: var(--ess-font-body, "Poppins", sans-serif);
	font-weight: 700;
	font-size: clamp(13px, 1.3vw, 17px);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--ess-blue, #4cbfea);
}
.ess-diff__intro {
	margin-top: 14px;
	font-family: var(--ess-font-body, "Poppins", sans-serif);
	font-size: 16px;
	line-height: 1.7;
	color: #6b7885;
}

/* --- Hub & spokes grid --- */
.ess-diff__grid {
	/* One source of truth for the gutter width, reused by the connectors so
	   they span exactly from each item to the circle. */
	--diff-gap: clamp(30px, 5vw, 90px);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: var(--diff-gap);
}

.ess-diff__col {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 48px;
}

/* --- Center circle --- */
.ess-diff__hub {
	display: flex;
	justify-content: center;
}
.ess-diff__circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	width: 300px;
	height: 300px;
	padding: 30px;
	border: 1px solid var(--ess-blue, #4cbfea);
	border-radius: 50%;
	text-align: center;
}
.ess-diff__circle-title {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}
.ess-diff__circle-t1 {
	font-family: var(--ess-font-heading, "Playfair Display", serif);
	font-weight: 600;
	font-size: clamp(13px, 1.3vw, 18px);
	letter-spacing: .5px;
	color: #2b3a4b;
}
.ess-diff__circle-t2 {
	font-family: var(--ess-font-heading, "Playfair Display", serif);
	font-weight: 800;
	font-size: clamp(16px, 1.6vw, 24px);
	letter-spacing: .3px;
	color: var(--ess-blue, #4cbfea);
}
/* Thin divider under the title, echoing the reference. */
.ess-diff__circle-title::after {
	content: "";
	display: block;
	width: 46px;
	height: 2px;
	margin: 12px auto 0;
	background: var(--ess-blue, #4cbfea);
}
.ess-diff__circle-icon img {
	width: 64px;
	height: auto;
	opacity: .8;
}

/* --- Feature item (white card) --- */
.ess-diff__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	background: #fff;
	padding: 15px;
	border-radius: 12px;
	box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .18);
}
.ess-diff__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 75px;
	height: 75px;
	background: var(--ess-blue, #4cbfea);
	border-radius: 50%;
}
.ess-diff__icon img {
	width: 46%;
	height: auto;
}
.ess-diff__item-title {
	margin: 0 0 8px;
	font-family: var(--ess-font-heading, "Playfair Display", serif);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.3;
	color: #2b3a4b;
}
.ess-diff__item-desc {
	font-family: var(--ess-font-body, "Poppins", sans-serif);
	font-size: 13px;
	line-height: 1.6;
	color: #6b7885;
}

/* Mirror the right column so icons sit outward and text faces the hub. */
.ess-diff__col--left .ess-diff__item-body { text-align: left; }
.ess-diff__col--right .ess-diff__item {
	flex-direction: row-reverse;
	text-align: right;
}

/* --- Connector lines (desktop only) --- */
/* A dashed line living in the gutter between each item and the circle. It
   spans the whole gap (+ a few px to meet the circle's edge), aligned to the
   icon's vertical centre. */
.ess-diff--connectors .ess-diff__item::before {
	content: "";
	position: absolute;
	top: 50%; /* icon is vertically centred, so the line tracks the card centre */
	width: calc(var(--diff-gap) + 6px);
	border-top: 1px dashed #bcd4e6;
}
.ess-diff--connectors .ess-diff__col--left .ess-diff__item::before {
	left: 100%;
}
.ess-diff--connectors .ess-diff__col--right .ess-diff__item::before {
	right: 100%;
}

/* --- Responsive (tablet & below) --- */
@media (max-width: 1024px) {
	/* Stack: hub on top, then all items in one column (no connectors). */
	.ess-diff__grid {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}
	.ess-diff__hub { order: -1; }
	.ess-diff__col { gap: 36px; }
	/* Each item stacks vertically: icon on top, then title, then description. */
	.ess-diff__item,
	.ess-diff__col--right .ess-diff__item {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		gap: 14px;
	}
	.ess-diff--connectors .ess-diff__item::before { display: none; }
}
@media (max-width: 480px) {
	.ess-diff__icon { width: 64px; height: 64px; }
}
