	/**
 * Custom Cards Container for Elementor - Frontend & Editor Styles
 */

.custom-cards-container {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.custom-cards-container *,
.custom-cards-container *::before,
.custom-cards-container *::after {
	box-sizing: border-box;
}

/* Grid Layout */
.custom-cards-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	align-items: stretch;
}

/* Equal Height */
.custom-cards-equal-height-yes .custom-cards-grid {
	align-items: stretch;
}

.custom-cards-equal-height-yes .custom-card-item {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.custom-cards-equal-height-yes .custom-card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.custom-cards-equal-height-yes .custom-card-button-wrap {
	margin-top: auto;
}

/* Individual Card Item */
.custom-card-item {
	position: relative;
	background: var(--color-bg-grey);
	border: 1px solid var(--color-bg-grey);
	border-radius: 12px;
	padding: 24px 20px;
	overflow: hidden;
	transition: all 0.3s ease-in-out;
}

.custom-card-item:hover {
	background: #ffffff;
	border-color: var(--color-safety-orange);
	box-shadow: 0 10px 25px rgba(222, 128, 40, 0.2);
}

.custom-card-item:hover	.custom-card-title {
	color: var(--color-safety-orange);
}

/* Card Overlay Link (for entire card clickability) */
.custom-card-overlay-link {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
	display: block;
	text-indent: -9999px;
	overflow: hidden;
	background: transparent;
}

/* Card Image */
.custom-card-image-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin-bottom: 16px;
	border-radius: 8px;
	z-index: 1;
}

.custom-card-image-wrap img,
.custom-card-image-wrap .custom-card-img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

.custom-card-image-link {
	display: block;
	position: relative;
	z-index: 6;
	text-decoration: none;
}

/* Image Hover Effects */
.custom-cards-image-effect-zoom .custom-card-item:hover .custom-card-image-wrap img {
	transform: scale(1.06);
}

.custom-cards-image-effect-fade .custom-card-item:hover .custom-card-image-wrap img {
	opacity: 0.85;
}

/* Card Content Area */
.custom-card-content {
	position: relative;
	z-index: 2;
}

/* Title */
.custom-card-title {
	margin: 0 0 12px 0;
	line-height: 1.35;
	transition: color 0.3s ease;
}

.custom-card-title a {
	text-decoration: none;
	position: relative;
	z-index: 6;
	transition: color 0.3s ease;
}

/* Description / Text Box */
.custom-card-description {
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.custom-card-description p {
	margin: 0 0 10px 0;
}

.custom-card-description p:last-child {
	margin-bottom: 0;
}

/* Button / Link */
.custom-card-button-wrap {
	display: block;
	position: relative;
	z-index: 6;
	padding-top: 6px;
}

.custom-card-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-safety-orange);
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.custom-card-button-icon {
	display: inline-block;
	transition: transform 0.25s ease;
}

.custom-card-item:hover .custom-card-button-icon,
.custom-card-button:hover .custom-card-button-icon {
	transform: translateX(4px);
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
	.custom-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}
}

@media screen and (max-width: 767px) {
	.custom-cards-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
		gap: 16px;
	}

	.custom-card-item {
		padding: 20px 16px;
	}
}
