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

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

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

.tn-svc-heading {
	margin: 0 0 10px;
	line-height: 1.2;
}

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

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

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

/* Card — image is full-bleed so no padding on the card itself */
.tn-svc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Full-bleed image */
.tn-svc-card__image {
	position: relative;
	width: 100%;
	height: 240px;
	overflow: hidden;
	flex-shrink: 0;
}

.tn-svc-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.tn-svc-card:hover .tn-svc-card__image img {
	transform: scale(1.04);
}

/* Hover overlay (colour set by style control) */
.tn-svc-card__image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background 0.3s ease;
}

/* Title sits below the image */
.tn-svc-card__title {
	margin: 0;
	line-height: 1.3;
	transition: color 0.25s ease;
}

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

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