/**
 * EB Core Values Widget Styles
 *
 * Grid of value cards with icon, title, description.
 */

.eb-core-values {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), 1fr);
	gap: 24px;
}

.eb-core-values__card {
	background-color: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 40px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	overflow: hidden;
}

.eb-core-values__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Card with background image */
.eb-core-values__card--has-bg {
	background-size: cover;
	background-position: center;
	color: #fff;
	border-color: transparent;
}

.eb-core-values__card--has-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.eb-core-values__card--has-bg > * {
	position: relative;
	z-index: 2;
}

.eb-core-values__card--has-bg .eb-core-values__icon {
	color: #fff;
}

.eb-core-values__card--has-bg .eb-core-values__title {
	color: #fff;
}

.eb-core-values__card--has-bg .eb-core-values__desc {
	color: rgba(255, 255, 255, 0.85);
}

/* Icon */
.eb-core-values__icon {
	font-size: 48px;
	color: #B09360;
	margin-bottom: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.eb-core-values__icon svg {
	width: 48px;
	height: 48px;
	fill: currentColor;
}

.eb-core-values__icon i {
	font-size: inherit;
}

/* Title */
.eb-core-values__title {
	font-size: 18px;
	font-weight: 600;
	color: #1E1B4B;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1.3;
}

/* Description */
.eb-core-values__desc {
	font-size: 14px;
	line-height: 1.7;
	color: #4B5563;
	margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.eb-core-values {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.eb-core-values {
		grid-template-columns: 1fr;
	}

	.eb-core-values__card {
		padding: 32px 24px;
	}
}
