/* Designed For Every Generation - base structural styles.
   Colors, fonts, spacing, sizes are controlled live from the Elementor
   Style tab (inline CSS generated by Elementor overrides sensible
   defaults set here). This file only sets structural/layout rules. */

.dfeg-section {
	width: 100%;
	box-sizing: border-box;
}

.dfeg-section * {
	box-sizing: border-box;
}

.dfeg-header {
	text-align: center;
}

.dfeg-title {
	margin: 0;
	line-height: 1.2;
}

.dfeg-subtitle {
	margin: 0;
	line-height: 1.4;
}

/* Cards grid - column count controlled by the "Columns" control per-breakpoint */
.dfeg-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
	width: 100%;
}

.dfeg-card {
	display: block;
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dfeg-card:hover {
	transform: translateY(-3px);
}

.dfeg-card-inner {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0;
	width: 100%;
}

.dfeg-card-image {
	flex: 0 0 38%;
	overflow: hidden;
}

.dfeg-card-image img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.dfeg-card-text {
	flex: 1;
	min-width: 0;
}

.dfeg-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.dfeg-icon-box i,
.dfeg-icon-box svg {
	line-height: 1;
}

.dfeg-card-title {
	line-height: 1.3;
	margin-bottom: 4px;
	word-break: break-word;
}

.dfeg-card-desc {
	line-height: 1.5;
	word-break: break-word;
}

/* ---------- Responsive fallback (in case columns control isn't set) ---------- */
@media (max-width: 1024px) {
	.dfeg-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.dfeg-cards {
		grid-template-columns: repeat(1, 1fr);
	}

	.dfeg-card-image {
		flex: 0 0 auto;
		width: 100% !important;
		margin-bottom: 12px;
	}

	.dfeg-card-image img {
		height: auto !important;
		max-height: 180px;
	}

	.dfeg-card-text {
		margin-left: 0 !important;
	}
}

@media (max-width: 480px) {
	.dfeg-title {
		font-size: 24px !important;
	}
}
