.csc-grid {
	display: grid;
	gap: 34px;
	margin: 20px 0;
}

.csc-card {
	display: block;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--csc-border, #e5e5e5);
	border-radius: var(--csc-radius, 12px);
	position: relative;
	overflow: visible;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.csc-card:hover,
.csc-card:focus {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.csc-image-wrap {
	position: relative;
	height: var(--csc-img-height, 260px);
	overflow: hidden;
	border-radius: var(--csc-radius, 12px) var(--csc-radius, 12px) 0 0;
}

.csc-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.csc-card:hover .csc-image-wrap img {
	transform: scale(1.08);
}

/* Logo circle: centered horizontally, half over the image / half below it */
.csc-logo-circle {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translate(-50%, 50%);
	width: 72px;
	height: 72px;
	background: #fff;
	border: 2px solid var(--csc-icon, #333);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
	z-index: 2;
	transition: transform 0.3s ease;
}

.csc-card:hover .csc-logo-circle {
	transform: translate(-50%, 50%) scale(1.1);
}

.csc-logo-circle img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.csc-content {
	padding: 46px 24px 32px;
	text-align: center;
}

.csc-title {
	color: var(--csc-title, #222);
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 12px;
}

.csc-desc {
	color: var(--csc-desc, #666);
	font-size: 14px;
	line-height: 1.65;
	margin: 0 0 24px;
}

.csc-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--csc-btn-bg, #333);
	color: var(--csc-btn-text, #fff);
	padding: 12px 22px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.3s ease;
}

.csc-card:hover .csc-btn {
	background: var(--csc-btn-hover, #111);
}

.csc-arrow {
	font-size: 17px;
	line-height: 1;
	transition: transform 0.3s ease;
}

.csc-card:hover .csc-arrow {
	transform: translateX(3px);
}

/* ---------- Responsive breakpoints ---------- */

@media (max-width: 1024px) {
	.csc-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.csc-grid {
		grid-template-columns: 1fr !important;
		gap: 20px;
		margin: 16px 0;
	}

	.csc-image-wrap {
		height: 200px !important;
	}

	.csc-logo-circle {
		width: 56px;
		height: 56px;
	}

	.csc-logo-circle img {
		width: 26px;
		height: 26px;
	}

	.csc-content {
		padding: 38px 18px 26px;
	}

	.csc-title {
		font-size: 19px;
		margin-bottom: 10px;
	}

	.csc-desc {
		font-size: 13.5px;
		margin-bottom: 18px;
	}

	.csc-btn {
		padding: 11px 18px;
		font-size: 13px;
	}
}

@media (max-width: 380px) {
	.csc-image-wrap {
		height: 170px !important;
	}

	.csc-logo-circle {
		width: 48px;
		height: 48px;
	}

	.csc-logo-circle img {
		width: 22px;
		height: 22px;
	}
}

/* Disable the lift-on-hover transform on touch devices so tapping a card
   doesn't leave it visually "stuck" in the hovered state. */
@media (hover: none) {
	.csc-card:hover,
	.csc-card:focus {
		transform: none;
		box-shadow: none;
	}

	.csc-card:hover .csc-image-wrap img {
		transform: none;
	}

	.csc-card:hover .csc-logo-circle {
		transform: translate(-50%, 50%);
	}

	.csc-card:hover .csc-btn {
		background: var(--csc-btn-bg, #333);
	}
}
