/**
 * Feature Cards Elementor - Frontend Styles
 * Icons positioned top-left, slightly overlapping the card top border.
 * No background, no circle, no container shape on icons.
 *
 * @package FeatureCardsElementor
 */

/* Section */
.fce-section {
	width: 100%;
	box-sizing: border-box;
}

/* Cards Grid */
.fce-cards-wrapper {
	display: grid;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Individual Card */
.fce-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
}

/* Equal height support */
.fce-equal-height .fce-card {
	height: 100%;
}

.fce-equal-height .fce-card-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Icon - top-left, slightly overlapping top border, transparent, no background */
.fce-icon {
	position: absolute;
	top: -30px;          /* default, overridden by Elementor control */
	left: 40px;          /* default, overridden by Elementor control */
	transform: none;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	line-height: 1;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	width: auto;
	height: auto;
	transition: color 0.25s ease, fill 0.25s ease;
}

.fce-icon i,
.fce-icon svg {
	display: block;
	line-height: 1;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	transition: inherit;
}

.fce-icon svg {
	fill: currentColor;
}

/* Card Inner (white box) */
.fce-card-inner {
	position: relative;
	background-color: #ffffff;
	border-radius: 3px;
	box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);
	box-sizing: border-box;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
	width: 100%;
}

/* Title */
.fce-title {
	margin: 0;
	padding: 0;
	font-weight: 700;
	color: #111111;
	line-height: 1.25;
	letter-spacing: -0.3px;
	transition: color 0.25s ease;
}

/* Description */
.fce-description {
	margin: 0;
	padding: 0;
	color: #6b7280;
	line-height: 1.7;
	flex-grow: 1;
}

/* Button / Link */
.fce-button {
	display: inline-block;
	margin-top: auto;
	text-decoration: none;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #1a1a1a;
	transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
	line-height: 1.4;
}

.fce-button:hover,
.fce-button:focus {
	opacity: 0.75;
	text-decoration: none;
}

/* Ensure content doesn't overflow */
.fce-card-inner > * {
	max-width: 100%;
}

/* Editor / Preview tweaks */
.elementor-editor-active .fce-card {
	min-height: 50px;
}
