/* =========================================================================
   TN Cards Grid widget — structural CSS only.
   Appearance (colors, typography) is generated by Elementor from the
   widget's Style-tab controls and must not be duplicated here.
   ========================================================================= */

.tn-cards-widget {
	width: 100%;
}

/* Section header */
.tn-cards-header {
	margin-bottom: 40px;
}

.tn-cards-heading {
	margin: 0 0 12px;
	line-height: 1.2;
}

.tn-cards-desc {
	margin: 0;
	line-height: 1.6;
}

/* Grid */
.tn-cards-grid {
	display: grid;
	gap: 24px;
}

.tn-cards-grid.tn-cols-1 { grid-template-columns: 1fr; }
.tn-cards-grid.tn-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tn-cards-grid.tn-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tn-cards-grid.tn-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.tn-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tn-card:hover {
	transform: translateY(-4px);
}

/* Image */
.tn-card__image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	flex-shrink: 0;
}

.tn-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Body */
.tn-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.tn-card__title {
	margin: 0 0 10px;
	line-height: 1.3;
}

.tn-card__description {
	margin: 0 0 16px;
	line-height: 1.6;
	flex: 1 1 auto;
}

/* Footer / CTA */
.tn-card__footer {
	display: flex;
	margin-top: auto;
	padding-top: 8px;
}

.tn-card__btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.tn-card__btn:hover {
	transform: translateY(-2px);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
	.tn-cards-grid.tn-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.tn-cards-grid.tn-cols-2,
	.tn-cards-grid.tn-cols-3,
	.tn-cards-grid.tn-cols-4 { grid-template-columns: 1fr; }
}
