/*============================================*/
/* DAYTHREE INDUSTRY CARDS - HTML MATCH       */
/*============================================*/

/* --- 1. NUKE ELEMENTOR DEFAULTS --- */
.elementor-widget-daythree-industry-cards .elementor-widget-container {
	transition: none !important;
	transform: none !important;
	animation: none !important;
	-webkit-font-smoothing: antialiased;
}

/* --- 2. Container --- */
.trusted-container {
	max-width: 1825px;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 50px;
	justify-content: center;
	align-items: center;
}

/* --- 3. Header --- */
.trusted-header {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-align: center;
	max-width: 1200px;
}

.trusted-header h2 {
	font-family: "Rubik", sans-serif;
	font-weight: bold;
	font-size: 48px;
	line-height: 1.5;
	color: #4d4d4d;
	margin: 0;
}

.trusted-header .trusted-highlight {
	background: linear-gradient(90deg, #c8102e 0%, #5d3fd3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	display: inline-block;
}

.trusted-header p {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: #4d4d4d;
}

/* --- 4. Grid --- */
.trusted-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px;
	width: 100%;
	align-items: stretch !important;
}

/* --- 5. Card Base --- */
.industry-card {
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

	position: relative;
	background: #fff;
	width: 100%;
	height: 100% !important;
	min-height: 440px;

	transform: translateZ(0);
	isolation: isolate;

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.industry-card:hover {
	box-shadow: 0 15px 30px rgba(91, 66, 216, 0.25);
	z-index: 10;
}

/* --- 6. Image --- */
.industry-card .card-image {
	display: block;
	width: 100%;
	height: 240px !important;
	object-fit: cover !important;
	margin: 0 !important;

	/* Absolute keeps it pinned to top (Anti-Jitter) */
	position: absolute !important;
	top: 0;
	left: 0;
	z-index: 1;
}

/* --- 7. Content Box --- */
.industry-card .card-content {
	background-color: #5b42d8;
	/* Matches HTML: padding: 30px 25px */
	padding: 30px 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	width: 100%;

	/* Absolute Positioning (Anti-Jitter) */
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 2;

	/* Start pushed down by image height */
	transform: translateY(240px);

	/* Gap is 0 initially, becomes 50px on hover */
	gap: 0;

	transition: all 0.4s ease;
	will-change: transform;
}

.industry-card .card-title {
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	/* Matches HTML: 28px */
	font-size: 28px;
	line-height: 1.5;
	color: #ffffff;
	width: 100%;
	margin: 0;
	transition: margin-bottom 0.4s ease;
}

.industry-card .card-desc {
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);

	/* Collapse Logic */
	max-height: 0;
	margin: 0;
	padding: 0;
	opacity: 0;
	overflow: hidden;
	transition: all 0.4s ease;
}

/* --- 8. BUTTON --- */
.industry-card .card-btn {
	position: relative;
	overflow: hidden;
	z-index: 1;
	background-color: #464646;
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 50px;
	text-decoration: none;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	font-weight: 400;
	border: 2px solid #464646;
	transition: color 0.5s ease;
	cursor: pointer;
	margin-top: 15px;
}

.industry-card .card-btn::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 100%;
	left: 50%;
	width: 300%;
	height: 300%;
	background-color: #ffffff;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.6s ease-out;
}

.industry-card .card-btn:hover {
	color: #464646;
}

.industry-card .card-btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
}

/* --- 9. HOVER LOGIC (Desktop) --- */
@media (min-width: 769px) {
	.industry-card:hover .card-content {
		/* Slide UP */
		transform: translateY(0);

		/* Matches HTML: gap: 50px on hover */
		gap: 50px;
		justify-content: center;
	}

	.industry-card:hover .card-desc {
		max-height: 200px;
		opacity: 1;
	}

	/* HTML has margin-top: 0 on hover */
	.industry-card:hover .card-btn {
		margin-top: 0;
	}
}

/* --- 10. RESPONSIVE BREAKPOINTS (MATCHING HTML CSS) --- */

/* 1. 1440px Breakpoint */
@media (max-width: 1440px) {
	.trusted-grid {
		gap: 24px;
	}

	.industry-card .card-title {
		font-size: 22px;
	}

	.industry-card .card-content {
		/* Matches HTML: padding 30px 10px */
		padding: 30px 10px;
	}
}

/* 2. 1024px Breakpoint */
@media (max-width: 1024px) {
	.trusted-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.trusted-header h2 {
		font-size: 36px;
	}

	.industry-card .card-title {
		font-size: 24px;
	}
}

/* 3. 768px Mobile Breakpoint */
@media (max-width: 768px) {
	.trusted-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.industry-card {
		height: auto !important;
		min-height: auto !important;
	}

	.industry-card .card-image {
		position: relative !important;
		height: 240px !important;
		/* Remove absolute positioning */
		top: auto !important;
		left: auto !important;
	}

	.industry-card .card-content {
		position: relative !important;
		transform: none !important;
		height: auto !important;
		padding: 30px 25px;
		gap: 20px !important; /* Show gap between elements */
		justify-content: flex-start;
		/* Remove absolute positioning */
		top: auto !important;
		left: auto !important;
	}

	.industry-card .card-desc {
		max-height: none !important;
		opacity: 1 !important;
		overflow: visible !important;
		margin: 0;
	}

	.industry-card .card-title {
		margin: 0;
	}

	.industry-card .card-btn {
		margin-top: 0;
	}

	/* Disable hover effects on mobile */
	.industry-card:hover .card-content {
		transform: none !important;
		gap: 20px !important;
	}

	.industry-card:hover .card-desc {
		max-height: none !important;
	}

	.industry-card:hover {
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
		transform: none !important;
	}
}
