/**
 * JT Features / Icon Box widget - static structural styles.
 *
 * Extracted from the widget's own inline <style> block. Uses the widget's
 * stable wrapper class (.jt-features-wrapper) instead of the per-instance
 * Elementor element ID, since every rule here is instance-agnostic - the
 * per-instance dynamic values (icon color, divider color/style, icon
 * background) stay in a small inline <style> block in the widget's
 * render() method, scoped by ID as before.
 */

.jt-features-wrapper .wk-features {
	display: grid;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
	gap: var(--jt-grid-gap, 24px);
}

.jt-features-wrapper .wk-feature-item {
	display: flex;
	align-items: var(--jt-align-item-flex, center);
	justify-content: flex-start;
	text-align: var(--jt-align-text, left);
	gap: var(--jt-item-gap, 16px);
	padding: var(--jt-box-pad, 24px 28px);
	border-radius: var(--jt-box-radius, 16px);
	background-color: var(--jt-box-bg, #ffffff);
	position: relative;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.jt-features-wrapper .wk-feature-item:hover {
	box-shadow: var(--jt-box-shadow, 0 10px 30px -10px rgba(15, 23, 42, 0.04));
	border-color: var(--jt-box-border-color, rgba(15, 23, 42, 0.06));
}

/* Premium Delicate Vertical Divider */
.jt-features-wrapper .wk-feature-item.has-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 0;
	height: 40%; /* Shorter height for a refined, modern look */
	transform: translateY(-50%);
	background-color: transparent;
	transition: background-color 0.3s ease;
	display: block;
}
.jt-features-wrapper .wk-feature-item:last-child.has-divider::after {
	display: none;
}

.jt-features-wrapper .wk-icon {
	flex-shrink: 0;
	display: flex;
	justify-content: center;
}

.jt-features-wrapper .jt-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 50%;
	font-size: 22px;
	background-color: #fff5f5;
	box-shadow: 0 4px 12px rgba(250, 52, 52, 0.08);
	transition: none !important;
	line-height: 1;
}
.jt-features-wrapper .jt-feature-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
.jt-features-wrapper .wk-feature-item:hover .jt-feature-icon {
	transform: none !important;
	background-color: #fff5f5 !important;
	box-shadow: 0 4px 12px rgba(250, 52, 52, 0.08) !important;
}
.jt-features-wrapper .wk-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: var(--jt-align-content-flex, flex-start);
	flex-grow: 1;
}
.jt-features-wrapper .jt-feature-title {
	margin: 0 0 6px 0;
	transition: color 0.3s ease;
}
.jt-features-wrapper .jt-feature-subtitle {
	margin: 0;
}

.jt-features-wrapper .jt-features-bottom-hr {
	width: 100%;
	height: 1px;
	background-color: rgba(15, 23, 42, 0.08);
	margin-top: var(--jt-grid-gap, 20px);
	display: block;
}

/* Tablet */
@media (max-width: 992px) {
	.jt-features-wrapper .wk-features {
		gap: var(--jt-grid-gap, 20px);
	}
	.jt-features-wrapper .wk-feature-item {
		padding: 16px 20px;
	}
}

@media (max-width: 768px) {
	.jt-features-wrapper .wk-features {
		display: grid;
		gap: var(--jt-grid-gap, 15px);
	}
	.jt-features-wrapper .wk-feature-item {
		width: 100%;
		padding: 16px;
	}
	.jt-features-wrapper .wk-feature-item.has-divider::after {
		display: none;
	}
}
