/* Fugen Developments Section
   ------------------------------------------------------------------ */

.fg-dev {
	--fg-accent: #1668b8;
	--fg-badge: #12b76a;
	--fg-bg: transparent;
	--fg-cols: 3;
	--fg-pad: 0;
	--fg-gap: 30px;
	--fg-max: 100%;
	--fg-ink: #16324f;
	--fg-muted: #6b7b8c;
	--fg-card: #fff;
	--fg-radius: 10px;

	background: var(--fg-bg);
	padding: var(--fg-pad);
	box-sizing: border-box;
}

.fg-dev *,
.fg-dev *::before,
.fg-dev *::after {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.fg-dev__head {
	max-width: 760px;
	margin: 0 auto 52px;
	text-align: center;
}

.fg-dev__eyebrow {
	margin: 0 0 12px;
	color: #4aa3e0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.fg-dev__title {
	margin: 0 0 18px;
	color: var(--fg-ink);
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 800;
	line-height: 1.15;
}

.fg-dev__title span {
	color: var(--fg-accent);
}

.fg-dev__sub {
	margin: 0;
	color: var(--fg-muted);
	font-size: 16px;
	line-height: 1.7;
}

/* ---------- Grid ---------- */

.fg-dev__grid {
	display: grid;
	grid-template-columns: repeat(var(--fg-cols), minmax(0, 1fr));
	gap: var(--fg-gap);
	max-width: var(--fg-max);
	margin: 0 auto;
	align-items: stretch;
}

/* Header tabhi dikhta hai jab shortcode mein diya jaye */
.fg-dev__head:empty {
	display: none;
}

/* ---------- Card ---------- */

.fg-dev-card {
	display: flex;
	flex-direction: column;
	background: var(--fg-card);
	border-radius: var(--fg-radius);
	overflow: hidden;
	box-shadow: 0 2px 18px rgba(22, 50, 79, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fg-dev-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(22, 50, 79, 0.14);
}

.fg-dev-card.is-hidden,
.fg-dev-card[hidden] {
	display: none;
}

.fg-dev-card.is-revealing {
	animation: fgDevIn 0.4s ease both;
}

@keyframes fgDevIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: none; }
}

.fg-dev-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 11;
	min-height: 220px;
	overflow: hidden;
	background: #dde7ef;
}

/* Purane browsers ke liye aspect-ratio fallback */
@supports not (aspect-ratio: 1 / 1) {
	.fg-dev-card__media {
		height: 260px;
	}
}

.fg-dev-card__imglink {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

/* Theme ka `img{height:auto}` yahan override karna zaruri hai */
.fg-dev .fg-dev-card__media .fg-dev-card__img,
.fg-dev .fg-dev-card__media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	display: block;
	border-radius: 0;
	transition: transform 0.6s ease;
}

.fg-dev-card:hover .fg-dev-card__img {
	transform: scale(1.05);
}

.fg-dev-card__img--empty {
	background: linear-gradient(135deg, #dde7ef, #c9d9e6);
}

.fg-dev-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--fg-badge);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	line-height: 1;
}

.fg-dev-card__badge--completed { background: #12b76a; }
.fg-dev-card__badge--in-progress { background: #12b76a; }
.fg-dev-card__badge--coming-soon { background: #f79009; }
.fg-dev-card__badge--sold { background: #d92d20; }

.fg-dev-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 26px 26px 24px;
}

.fg-dev .fg-dev-card__title {
	margin: 0 0 10px;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.fg-dev-card__title a {
	color: var(--fg-ink);
	text-decoration: none;
}

.fg-dev-card__title a:hover {
	color: var(--fg-accent);
}

.fg-dev-card__loc {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 20px;
	color: var(--fg-accent);
	font-size: 14.5px;
}

.fg-dev-card__excerpt {
	margin: 0 0 20px;
	color: var(--fg-muted);
	font-size: 14.5px;
	line-height: 1.65;
}

/* ---------- Meta grid ---------- */

.fg-dev-card__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin: 0 0 22px;
	padding-top: 20px;
	border-top: 1px solid #e6edf3;
}

.fg-dev-card__meta-item {
	min-width: 0;
}

.fg-dev .fg-dev-card__meta dt {
	margin: 0 0 4px;
	color: var(--fg-ink);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.fg-dev .fg-dev-card__meta dd {
	margin: 0;
	color: var(--fg-muted);
	font-size: 13.5px;
	line-height: 1.45;
	word-break: break-word;
}

/* ---------- Card link ---------- */

.fg-dev-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--fg-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-decoration: none;
}

.fg-dev-card__link:hover {
	gap: 10px;
}

.fg-dev-card__link svg {
	transition: transform 0.2s ease;
}

.fg-dev-card__link:hover svg {
	transform: translateY(2px);
}

/* ---------- Button ---------- */

.fg-dev__actions {
	margin-top: 46px;
	text-align: center;
}

.fg-dev__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 190px;
	padding: 15px 34px;
	border: 0;
	border-radius: 5px;
	background: var(--fg-accent);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.fg-dev__btn:hover {
	background: #12558f;
	box-shadow: 0 8px 20px rgba(22, 104, 184, 0.28);
}

.fg-dev__btn:active {
	transform: translateY(1px);
}

.fg-dev__btn:focus-visible {
	outline: 3px solid rgba(22, 104, 184, 0.4);
	outline-offset: 3px;
}

/* Screen-reader announcement */
.fg-dev__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.fg-dev__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.fg-dev__grid {
		grid-template-columns: 1fr;
		--fg-gap: 24px;
	}
	.fg-dev__head {
		margin-bottom: 36px;
	}
	.fg-dev-card__body {
		padding: 22px 20px 20px;
	}
	.fg-dev__btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fg-dev-card,
	.fg-dev-card__img,
	.fg-dev-card.is-revealing {
		transition: none;
		animation: none;
	}
}
