/* Grid Layout */
.mc-add7ed6b-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
}

@media (max-width: 1024px) {
	.mc-add7ed6b-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.mc-add7ed6b-grid {
		grid-template-columns: 1fr;
	}
}

/* Card Styling */
.mc-add7ed6b-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 480px;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none !important;
	background-color: #1a1a1a;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.mc-add7ed6b-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Image & Overlay */
.mc-add7ed6b-image-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
}

.mc-add7ed6b-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	/* Default background position (overridden by Elementor controls) */
	background-position: center center;
	transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-add7ed6b-card:hover .mc-add7ed6b-img {
	transform: scale(1.08);
}

.mc-add7ed6b-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(26,26,26,0.9) 100%);
	z-index: 2;
	transition: opacity 0.4s ease, background 0.4s ease;
}

.mc-add7ed6b-card:hover .mc-add7ed6b-overlay {
	background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.95) 100%);
}

/* Content Container */
.mc-add7ed6b-content {
	position: relative;
	z-index: 3;
	padding: 40px 32px 32px 32px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	height: 100%;
}

.mc-add7ed6b-text-content {
	transform: translateY(24px);
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-add7ed6b-card:hover .mc-add7ed6b-text-content {
	transform: translateY(0);
}

.mc-add7ed6b-title {
	color: #ffffff;
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 16px 0;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.5px;
}

.mc-add7ed6b-desc {
	color: #e0e0e0;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 24px 0;
	opacity: 0;
	transition: opacity 0.4s ease;
	display: -webkit-box;
	/* Increased to 10 lines to allow for much longer descriptions */
	-webkit-line-clamp: 10;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mc-add7ed6b-card:hover .mc-add7ed6b-desc {
	opacity: 1;
}

/* Action / Button Area */
.mc-add7ed6b-action {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 20px;
	transition: border-color 0.4s ease;
}

.mc-add7ed6b-card:hover .mc-add7ed6b-action {
	border-top-color: rgba(255,255,255,0.25);
}

.mc-add7ed6b-btn {
	display: inline-flex;
	align-items: center;
	color: #fbd300; /* Safety Yellow Default */
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
}

.mc-add7ed6b-card:hover .mc-add7ed6b-btn {
	color: #ffffff;
}

.mc-add7ed6b-arrow {
	margin-left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-add7ed6b-card:hover .mc-add7ed6b-arrow {
	transform: translateX(6px);
}

/* Entrance Animations */
.mc-add7ed6b-animate-up {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-add7ed6b-animate-up.mc-add7ed6b-is-visible {
	opacity: 1;
	transform: translateY(0);
}