/* Icon Box Widget - Style 4: Overlapping circles */
.ktheme-iconbox-style-4 {
	box-sizing: border-box;
	max-inline-size: 100%;
	--ktheme-circle-max-size: 672px;
	--ktheme-circle-item-spacing: -12.5%;
	--ktheme-circle-icon-text-gap: clamp(40px, 6vw, 88px);
}

.ktheme-iconbox-style-4 .ktheme-iconbox-circle-group {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-inline-size: 0;
	max-inline-size: 100%;
	margin: 0 auto;
	padding: 26px 0 90px;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-item {
	box-sizing: border-box;
	position: relative;
	z-index: var(--ktheme-circle-index);
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-inline-size: 0;
	min-block-size: 0;
	max-inline-size: var(--ktheme-circle-max-size);
	aspect-ratio: 1;
	padding: clamp(24px, 4vw, 64px);
	overflow: hidden;
	border-radius: 50%;
	background-color: #eaeaea;
	color: #39363f;
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.18s ease, filter 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-item:not(:first-child) {
	margin-inline-start: var(--ktheme-circle-item-spacing);
}

.ktheme-iconbox-style-4 a.ktheme-iconbox-item:hover,
.ktheme-iconbox-style-4 a.ktheme-iconbox-item.ktheme-iconbox-item-hover-state {
	color: inherit;
	filter: brightness(0.98);
	text-decoration: none;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-item:focus-visible {
	z-index: calc(var(--ktheme-circle-count) + 1);
	outline: 3px solid var(--color-brand-primary, #5e6ad2);
	outline-offset: 4px;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(42px, 5vw, 72px);
	height: clamp(42px, 5vw, 72px);
	margin: 0 0 var(--ktheme-circle-icon-text-gap);
	color: currentColor;
	transition: color 0.18s ease;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-icon i {
	color: currentColor;
	font-size: clamp(42px, 5vw, 72px);
}

.ktheme-iconbox-style-4 .ktheme-iconbox-icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-content {
	min-inline-size: 0;
	max-inline-size: min(100%, 18em);
	overflow-wrap: anywhere;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-title,
.ktheme-iconbox-style-4 .ktheme-iconbox-description {
	margin: 0;
	color: currentColor;
	transition: color 0.18s ease;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-title {
	font-size: clamp(1.25rem, 2vw, 2rem);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-description {
	margin-top: 0.125rem;
	font-size: clamp(1rem, 1.5vw, 1.5rem);
	font-weight: 600;
	line-height: 1.45;
}

.ktheme-iconbox-style-4 .ktheme-iconbox-footer {
	margin-top: 2rem;
}

@media (max-width: 1023.98px) {
	.ktheme-iconbox-style-4 {
		--ktheme-circle-item-spacing: -10%;
	}

	.ktheme-iconbox-style-4 .ktheme-iconbox-circle-group {
		padding-bottom: 64px;
	}
}

@media (max-width: 767.98px) {
	.ktheme-iconbox-style-4 {
		--ktheme-circle-max-size: 360px;
		--ktheme-circle-item-spacing: -8%;
	}

	.ktheme-iconbox-style-4 .ktheme-iconbox-circle-group {
		flex-direction: column;
		padding: 20px 0 48px;
	}

	.ktheme-iconbox-style-4 .ktheme-iconbox-item {
		flex: 0 1 auto;
		inline-size: min(100%, var(--ktheme-circle-max-size));
		max-inline-size: 100%;
		padding: clamp(16px, 5vw, 24px);
	}

	.ktheme-iconbox-style-4 .ktheme-iconbox-item:not(:first-child) {
		margin-inline-start: 0;
		margin-block-start: var(--ktheme-circle-item-spacing);
	}

	.ktheme-iconbox-style-4 .ktheme-iconbox-icon {
		margin-bottom: min(var(--ktheme-circle-icon-text-gap), clamp(20px, 8vw, 32px));
	}
}
