/* Latest Case Studies Cards — front-end styles */

.lcc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0; /* cards touch each other like the design; set e.g. 16px for gaps */
	width: 100%;
}

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

/* Card: full-size image with text on the bottom */
.lcc-grid .lcc-card {
	position: relative;
	display: block;
	height: 370px;
	overflow: hidden;
	text-decoration: none !important;
	color: #ffffff !important;
	background: #1a4d4d;
}

.lcc-grid .lcc-card__bg,
.lcc-grid .lcc-card img.lcc-card__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center !important;
	display: block;
	transition: transform 0.5s ease;
}

.lcc-grid .lcc-card__bg--placeholder {
	background: #1a4d4d;
}

.lcc-grid .lcc-card:hover .lcc-card__bg {
	transform: scale(1.05);
}

/* Dark gradient so white text stays readable on any image */
.lcc-grid .lcc-card__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 75%);
}

.lcc-grid .lcc-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 25px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

/* Title: 20px / 600 */
.lcc-grid .lcc-card__title {
	display: block;
	color: #ffffff !important;
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	margin: 0 0 14px;
}

/* Sub industries: 14px / 400 */
.lcc-grid .lcc-card__tax {
	display: block;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	margin: 0 0 18px;
}

/* Read More + arrow: 16px / 500 */
.lcc-grid .lcc-card__readmore {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
}

.lcc-grid .lcc-card__arrow {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.25s ease;
}

.lcc-grid .lcc-card:hover .lcc-card__arrow {
	transform: translateX(4px);
}

.lcc-no-results {
	text-align: center;
	color: #666;
	padding: 40px 0;
}

/* Responsive */
@media (max-width: 1024px) {
	.lcc-grid.lcc-cols-3,
	.lcc-grid.lcc-cols-4 { grid-template-columns: repeat(2, 1fr); }
	.lcc-grid .lcc-card { height: 380px; }
}

@media (max-width: 600px) {
	.lcc-grid.lcc-cols-2,
	.lcc-grid.lcc-cols-3,
	.lcc-grid.lcc-cols-4 { grid-template-columns: 1fr; }
	.lcc-grid .lcc-card { height: 340px; }
}
