/* =========================================================
   Featured Work Grid Widget — Front-end Styles
   ========================================================= */

.fwpg-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

.fwpg-wrapper * {
	box-sizing: border-box;
}

.fwpg-inner {
	max-width: 1320px;
	margin: 0 auto;
	width: 100%;
}

/* Header row */
.fwpg-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.fwpg-header-left {
	flex: 1 1 auto;
	min-width: 260px;
}

.fwpg-header-right {
	flex: 0 0 auto;
}

.fwpg-eyebrow {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #D98A2E;
	margin: 0 0 10px;
}

.fwpg-heading {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.15;
	color: #16233F;
}

.fwpg-description {
	margin: 0;
	max-width: 380px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: #5A6B85;
	text-align: left;
}

/* Grid */
.fwpg-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 32px;
	width: 100%;
}

/* Card */
.fwpg-card {
	position: relative;
	display: block;
	height: 560px;
	border-radius: 24px;
	overflow: hidden;
	text-decoration: none;
	isolation: isolate;
}

.fwpg-card-media {
	position: absolute;
	inset: 0;
	background-color: #2A3345;
	transition: transform 500ms ease;
	will-change: transform;
}

.fwpg-card-empty-hint {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient( 45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent );
	background-size: 24px 24px;
}

.fwpg-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient( to top, rgba(10,15,25,0.85) 0%, rgba(10,15,25,0) 65% );
	pointer-events: none;
	transition: opacity 500ms ease;
}

.fwpg-card-text {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	z-index: 2;
}

.fwpg-card-location {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #E0A24E;
	margin: 0 0 6px;
}

.fwpg-card-title {
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #FFFFFF;
	margin: 0;
}

/* Hover effects */
.fwpg-card:hover .fwpg-card-media {
	transform: scale( 1.08 );
}

.fwpg-wrapper[data-fwpg-lift="yes"] .fwpg-card,
.fwpg-card.fwpg-lift {
	transition: transform 400ms ease, box-shadow 400ms ease;
}

.fwpg-card.fwpg-lift:hover {
	transform: translateY( -6px );
}

/* =========================================================
   Responsive — Tablet (1024px)
   ========================================================= */
@media ( max-width: 1024px ) {
	.fwpg-grid {
		grid-template-columns: repeat( 2, 1fr );
	}

	.fwpg-card {
		height: 460px;
	}

	.fwpg-heading {
		font-size: 36px;
	}

	.fwpg-header {
		align-items: flex-start;
	}
}

/* =========================================================
   Responsive — Mobile (767px)
   ========================================================= */
@media ( max-width: 767px ) {
	.fwpg-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.fwpg-card {
		height: 380px;
	}

	.fwpg-heading {
		font-size: 28px;
	}

	.fwpg-description {
		max-width: 100%;
		font-size: 16px;
	}

	.fwpg-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-bottom: 32px;
	}

	.fwpg-card-title {
		font-size: 20px;
	}
}

@media ( max-width: 380px ) {
	.fwpg-card {
		height: 320px;
	}

	.fwpg-heading {
		font-size: 24px;
	}
}

/* Respect reduced-motion preference */
@media ( prefers-reduced-motion: reduce ) {
	.fwpg-card-media,
	.fwpg-card,
	.fwpg-card-overlay {
		transition: none !important;
	}
}
