/* FlexTG · Related Case Studies (shortcode) */

html .ftg-cs-related {
	visibility: visible;
}

.ftg-cs-related {
	--red: #d31a2d;
	--ink: #12161a;
	--white: #ffffff;
	--text: #1c1c1c;
	--muted: #5a5a5a;
	--font: 'Aptos', 'Segoe UI', system-ui, sans-serif;

	font-family: var(--font);
	color: var(--text);
}

.ftg-cs-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 10px;
}

.ftg-cs-related__heading {
	margin: 0;
	font-size: clamp(32px, 4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.ftg-cs-related__heading-strong {
	font-weight: 700;
}

.ftg-cs-related__heading-light {
	font-weight: 400;
	font-style: italic;
}

.ftg-cs-related__all {
	flex: 0 0 auto;
	margin-bottom: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 2px solid var(--red);
	padding-bottom: 4px;
}

.ftg-cs-related__all:hover {
	color: var(--ink);
}

.ftg-cs-related__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ftg-cs-related__card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	background: var(--white);
	padding: 28px;
	color: var(--text);
	text-decoration: none;
	border-top: 2px solid transparent;
	transition: border-color 0.15s;
	height: 100%;
}

.ftg-cs-related__card:hover {
	color: var(--text);
	border-top-color: var(--red);
}

.ftg-cs-related__category {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--red);
}

.ftg-cs-related__title {
	margin: 0;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.ftg-cs-related__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ftg-cs-related__link {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}

@media (max-width: 1024px) {
	.ftg-cs-related__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.ftg-cs-related__list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 599px) {
	.ftg-cs-related__card {
		padding: 22px;
	}
}
