@charset "UTF-8";

/* ─── 히어로 ─── */
.ft-hero {
	min-height: 44vh;
	display: flex;
	align-items: flex-end;
	padding: 160px 80px 56px;
	background: #f5f3ef;
	border-bottom: 1px solid var(--color-border);
}

.ft-hero-inner {
	max-width: 1200px;
	width: 100%;
}

.ft-eyebrow {
	font-size: clamp(14px, calc(8px + 0.5vw), 16px);
	font-family: var(--font-sub-title);
	color: #0d5e3f;
	margin-bottom: 16px;
}

.ft-title {
	font-size: clamp(52px, calc(28px + 4vw), 104px);
	font-family: var(--font-sub-title);
	font-weight: 900;
	color: var(--color-text-main);
	margin-bottom: 20px;
}

.ft-desc {
	font-size: clamp(16px, calc(10px + 0.6vw), 20px);
	font-family: var(--font-sub-title);
	color: var(--color-text-sub);
}

/* ─── 필터 ─── */
.ft-filter-wrap {
	position: sticky;
	top: 90px;
	z-index: 2;
	background: #f5f3ef;
	border-bottom: 1px solid var(--color-border);
	padding: 16px 80px;
	transition: top 0.25s ease;
}

.ft-filter {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ft-filter-btn {
	font-size: clamp(14px, calc(8px + 0.5vw), 18px);
	font-family: var(--font-sub-title);
	font-weight: 600;
	color: var(--color-text-sub);
	background: transparent;
	border: 1px solid var(--color-border-strong);
	border-radius: 100px;
	padding: 6px 20px;
	cursor: pointer;
	transition:
		color 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease;
}

.ft-filter-btn:hover {
	color: var(--color-text-main);
	border-color: var(--color-text-main);
}

.ft-filter-btn.is-active {
	color: #fff;
	background: #0d5e3f;
	border-color: #0d5e3f;
}

/* ─── 산책로 섹션 ─── */
.ft-trail {
	background: #f5f3ef;
	padding: 80px 0 120px;
}

.ft-trail-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 80px;
	position: relative;
}

/* ─── 산책로 SVG 경로 ─── */
.ft-path-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.ft-path-line {
	fill: none;
	stroke: #0d5e3f;
	stroke-width: 2.5;
	vector-effect: non-scaling-stroke;
}

/* ─── 잎사귀 ─── */
.ft-leaf {
	position: absolute;
	top: 0;
	left: 0;
	width: 40px;
	height: 40px;
	pointer-events: none;
	will-change: transform;
	opacity: 0;
	transition: opacity 0.3s ease;
	filter: drop-shadow(0 2px 4px rgba(13, 94, 63, 0.25));
}

.ft-leaf.is-active {
	opacity: 1;
}

.ft-leaf img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ─── 세그먼트 (각 기사 행) ─── */
.ft-segments {
	position: relative;
}

.ft-segment {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin-bottom: 64px;
	position: relative;
}


/* ─── 빈 칸 ─── */
.ft-seg-empty {
	min-height: 1px;
}

/* ─── 카드 래퍼 ─── */
.ft-seg-card {
	padding: 0 0 0 40px;
}

.ft-segment--left .ft-seg-card {
	padding: 0 40px 0 0;
}

/* ─── 카드 ─── */
.ft-card {
	display: flex;
	gap: 16px;
	background: var(--color-bg-main);
	border: 1px solid rgba(13, 94, 63, 0.14);
	border-radius: 12px;
	padding: 20px;
	text-decoration: none;
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease;
	opacity: 0;
	transform: translateY(16px);
}

.ft-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(13, 94, 63, 0.12);
}

.ft-segment.is-visible .ft-card {
	opacity: 1;
	transform: translateY(0);
	transition:
		opacity 0.5s ease,
		transform 0.5s ease,
		box-shadow 0.22s ease;
}

/* 썸네일 */
.ft-card-thumb {
	flex-shrink: 0;
	width: 90px;
	height: 90px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--color-bg-card);
}

.ft-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 카드 내용 */
.ft-card-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
	min-width: 0;
}

.ft-card-cat {
	display: inline-block;
	align-self: flex-start;
	font-size: clamp(12px, calc(7px + 0.4vw), 14px);
	font-family: var(--font-sub-title);
	font-weight: 700;
	color: #fff;
	background: #0d5e3f;
	border-radius: 4px;
	padding: 2px 8px;
	margin-bottom: 4px;
}

.ft-card-title {
	font-size: clamp(14px, calc(7px + 0.8vw), 20px);
	font-family: var(--font-sub-title);
	font-weight: 700;
	color: var(--color-text-main);
}

.ft-card-desc {
	font-size: clamp(14px, calc(7px + 0.5vw), 16px);
	font-family: var(--font-sub-title);
	color: var(--color-text-sub);
}

.ft-card-date {
	font-size: clamp(12px, calc(7px + 0.4vw), 14px);
	font-family: var(--font-sub-title);
	color: var(--color-text-muted);
	margin-top: 4px;
}

/* ─── 필터 희미해짐 ─── */
.ft-segment.is-dimmed {
	opacity: 0.2;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

/* ─── 반응형 ─── */
@media (max-width: 999px) {
	.ft-hero {
		padding: 120px 48px 48px;
	}
	.ft-filter-wrap {
		top: 70px;
		padding: 14px 48px;
	}
	.ft-trail-inner {
		padding: 0 48px;
	}
}

@media (max-width: 768px) {
	.ft-hero {
		min-height: auto;
		padding: 100px 24px 32px;
	}
	.ft-filter-wrap {
		padding: 12px 24px;
	}
	.ft-trail {
		padding: 48px 0 80px;
	}
	.ft-trail-inner {
		padding: 0 24px;
	}

	/* 모바일: 정중앙 1열 */
	.ft-path-svg,
	.ft-leaf {
		display: none;
	}
	.ft-segments {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 0 24px;
		position: relative;
	}
	/* 중앙 세로 선 */
	.ft-segments::before {
		content: '';
		position: absolute;
		left: 50%;
		top: 0;
		bottom: 0;
		width: 2px;
		background: rgba(13, 94, 63, 0.2);
		transform: translateX(-50%);
	}
	.ft-segment {
		display: block;
		width: 100%;
		max-width: 360px;
		margin-bottom: 20px;
		position: relative;
	}
	.ft-segment::before,
	.ft-segment::after {
		display: none;
	}
	.ft-seg-empty {
		display: none;
	}
	.ft-seg-card,
	.ft-segment--left .ft-seg-card {
		padding: 0;
	}
	.ft-card {
		opacity: 1;
		transform: none;
	}
	.ft-segment.is-visible .ft-card {
		transition: box-shadow 0.22s ease;
	}
	/* 카드 사이 나뭇잎 */
	.ft-segment::after {
		content: '';
		display: block;
		width: 28px;
		height: 28px;
		background: url('/sub/motion/images/leaf.png') center / contain no-repeat;
		margin: 10px auto 0;
	}
	.ft-segment:last-child::after {
		display: none;
	}
}

@media (max-width: 499px) {
	.ft-card {
		flex-direction: column;
	}
	.ft-card-thumb {
		width: 100%;
		height: 160px;
	}
	.ft-filter-btn {
		padding: 5px 14px;
	}
}

/* ─── 다크모드 ─── */
body.dark .ft-hero,
body.dark .ft-trail,
body.dark .ft-filter-wrap {
	background: #0a1a12;
}

body.dark .ft-card {
	border-color: rgba(13, 94, 63, 0.25);
}

body.dark .ft-card:hover {
	box-shadow: 0 8px 24px rgba(13, 94, 63, 0.2);
}

body.dark .ft-line-track {
	background: rgba(13, 94, 63, 0.18);
}

body.dark .ft-filter-btn.is-active {
	background: #0d5e3f;
	border-color: #0d5e3f;
}

body.dark .ft-eyebrow {
	color: #3db87a;
}
