/* Projects Listing Widget Styles - Horizontal Card Layout (Desktop & Mobile) */

.projects-listing-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0;
	box-sizing: border-box;
}

.projects-grid {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* Base Card Style */
.project-item {
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #ddd;
}

.project-link-wrapper {
	text-decoration: none !important;
	color: inherit;
	display: flex;
	flex-direction: row;
	width: 100%;
	min-height: 220px;
}

/* Image Section (Left side - Desktop) */
.project-image-wrapper {
	width: 320px;
	min-width: 320px;
	position: relative;
	overflow: hidden;
	margin-bottom: 0;
	align-self: stretch; /* Forces parent height matching */
}

.project-image-wrapper a {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.project-image {
	width: 100%;
	height: 100%;
	min-height: 100%;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s ease;
}

.project-link-wrapper:hover .project-image {
	transform: scale(1.04);
}

/* Content Section (Right side) */
.project-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 25px 30px;
	flex-grow: 1;
}

.project-meta-top {
	margin-bottom: 8px;
}

.project-meta-tag {
	font-family: inherit;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #777777;
	font-weight: 600;
}

.project-title {
	font-family: inherit;
	font-size: 1.25rem;
	line-height: 1.4;
	color: #1a1a1a;
	margin: 0 0 10px 0;
	font-weight: 600;
	transition: color 0.3s ease;
}

.project-link-wrapper:hover .project-title {
	color: #0073aa;
}

.project-excerpt {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.6;
	color: #666666;
	margin-bottom: 15px;
}

/* Bottom CTA Row */
.project-cta {
	display: flex;
	align-items: center;
	font-family: inherit;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	color: #333333;
	border-top: 1px solid #f0f0f0;
	padding-top: 12px;
	margin-top: auto;
}

.project-cta .cta-arrow {
	margin-left: 6px;
	transition: transform 0.3s ease;
}

.project-link-wrapper:hover .project-cta .cta-arrow {
	transform: translateX(4px);
}

/* Mobile Adjustments - Guarantees Visible Images without Stretching */
@media (max-width: 768px) {
	.project-link-wrapper {
		flex-direction: row;
		min-height: 150px;
		height: 150px; /* Fixed height for consistent image rendering */
	}

	.project-image-wrapper {
		width: 140px;
		min-width: 140px;
		height: 100%;
	}

	.project-content {
		padding: 12px 15px;
		width: calc(100% - 140px);
		justify-content: space-between;
	}

	.project-title {
		font-size: 0.95rem;
		margin-bottom: 4px;
	}

	.project-excerpt {
		font-size: 11px;
		line-height: 1.35;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.project-cta {
		padding-top: 6px;
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.project-link-wrapper {
		height: 140px;
	}

	.project-image-wrapper {
		width: 120px;
		min-width: 120px;
	}

	.project-content {
		width: calc(100% - 120px);
		padding: 10px;
	}
}