/**
 * Tenbit Addon - Service Image Cards Widget Styles
 * Author: Team Tenbit Solutions
 */

.tenbit-img-cards-wrapper {
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

/* Cards Grid */
.tenbit-img-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 32px;
	width: 100%;
	box-sizing: border-box;
}

/* Individual Card */
.tenbit-img-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #FFFFFF;
	border: 1px solid #EEF2F6;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(11, 43, 92, 0.04);
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
	            box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), 
	            border-color 0.3s ease, 
	            background-color 0.3s ease;
	box-sizing: border-box;
}

.tenbit-img-card:hover {
	transform: translateY(-8px);
	border-color: #FFD3B8;
	box-shadow: 0 12px 28px rgba(255, 90, 0, 0.12);
}

/* Card Thumbnail */
.tenbit-img-card-thumb {
	position: relative;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background-color: #EEF2F6;
	flex-shrink: 0;
}

.tenbit-img-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tenbit-img-card:hover .tenbit-img-card-thumb img {
	transform: scale(1.06);
}

.tenbit-img-card-placeholder {
	width: 100%;
	height: 100%;
	background-color: #E5ECF4;
}

/* Card Content Body */
.tenbit-img-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 28px 24px 30px 24px;
	box-sizing: border-box;
}

/* Card Title */
.tenbit-img-card-title {
	margin: 0 0 6px 0;
	padding: 0;
	color: #0B2B5C;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	transition: color 0.3s ease;
	word-wrap: break-word;
}

.tenbit-img-card:hover .tenbit-img-card-title {
	color: #FF5A00;
}

/* Card Subtitle */
.tenbit-img-card-subtitle {
	color: #FF5A00;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 14px 0;
}

/* Card Description */
.tenbit-img-card-desc {
	color: #5A6578;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 24px 0;
	flex-grow: 1;
}

.tenbit-img-card-desc p {
	margin: 0 0 1em 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.tenbit-img-card-desc p:last-child {
	margin-bottom: 0;
}

/* CTA Button */
.tenbit-img-card-action {
	margin-top: auto;
}

.tenbit-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #FF5A00;
	color: #FFFFFF;
	padding: 12px 24px;
	border-radius: 25px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1;
	box-shadow: 0 4px 14px rgba(255, 90, 0, 0.25);
	transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
}

.tenbit-card-btn:hover,
.tenbit-card-btn:focus {
	background-color: #E04F00;
	color: #FFFFFF;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(255, 90, 0, 0.35);
}

.tenbit-btn-arrow {
	display: inline-block;
	margin-left: 8px;
	font-size: 15px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.tenbit-card-btn:hover .tenbit-btn-arrow {
	transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
	.tenbit-img-cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 24px;
	}

	.tenbit-img-card-thumb {
		height: 200px;
	}

	.tenbit-img-card-body {
		padding: 24px 20px 26px 20px;
	}
}

@media (max-width: 767px) {
	.tenbit-img-cards-grid {
		grid-template-columns: 1fr;
		row-gap: 20px;
	}

	.tenbit-img-card-thumb {
		height: 200px;
	}

	.tenbit-img-card-title {
		font-size: 19px;
	}
}
