@import
	url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard.css")
	;

.page-title {
	margin: 0 0 18px;
	text-align: center;
	font-size: 40px;
	font-weight: 800;
	color: #111;
	letter-spacing: -0.03em;
}

.section-desc {
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
	color: #666;
	line-height: 1.8;
}

.toggle-wrap {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.toggle-btn {
	min-width: 140px;
	height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid #d9e3f0;
	background: #fff;
	color: #4b5563;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
	margin-bottom: 35px;
}

.toggle-btn:hover {
	border-color: #93c5fd;
	background: #f8fbff;
}

.toggle-btn.active {
	background: #8fb7d8;
	border-color: #8fb7d8;
	color: #fff;
	box-shadow: 0 8px 20px rgba(143, 183, 216, 0.28);
}

.timeline-wrap {
	margin-top: 8px;
}

.interactive-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 34px;
	align-items: start;
}

.side-nav {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.mini-card {
	background: #fff;
	padding: 20px;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
	border: 2px solid transparent;
	text-align: left;
	outline: none;
	position: relative;
}

.mini-card:hover, .mini-card.active {
	border-color: var(--step-color);
	box-shadow: 0 0 22px var(--step-glow);
	transform: translateX(5px);
}

.step-name {
	font-size: 0.75rem;
	font-weight: 650;
	color: var(--step-color);
	margin-bottom: 4px;
	display: block;
}

.mini-card h3 {
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0 0 4px;
	color: #1e293b;
}

.keywords {
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 500;
	line-height: 1.5;
}

.step-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	color: #cbd5e1;
}

.arrow-icon {
	width: 18px;
	height: 18px;
}

.detail-view {
	background: #fff;
	padding: 40px;
	border-radius: 28px;
	border: 2px solid var(--step-color);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
	min-height: 590px;
	transition: opacity 0.25s ease;
}

.detail-header {
	margin-bottom: 25px;
	border-bottom: 2px solid rgba(226, 232, 240, 0.85);
	padding-bottom: 20px;
}

.tag, .gallery-badge {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 550;
	color: #fff;
	background: var(--step-color);
}

.detail-header h2 {
	font-size: 1.8rem;
	font-weight: 650;
	margin: 12px 0 4px;
	color: #111827;
}

.detail-keywords {
	font-weight: 500;
	margin-top: 5px;
	margin-bottom: 0;
	color: var(--step-color);
}

.detail-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.main-desc {
	line-height: 1.8;
	color: #667085;
	margin: 0;
	font-size: 0.98rem;
}

.item-list {
	list-style: none;
	display: grid;
	gap: 10px;
	padding: 0;
	margin: 0;
}

.item-list li {
	background: color-mix(in srgb, var(--step-color) 8%, #ffffff);
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: #1e293b;
	border: 1px solid color-mix(in srgb, var(--step-color) 22%, #e5e7eb);
}

.item-list li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	flex-shrink: 0;
	background: var(--step-color);
}

.detail-gallery {
	margin-top: 6px;
	padding-top: 22px;
	border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.gallery-head {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.gallery-desc {
	margin: 0;
	font-size: 0.9rem;
	color: #64748b;
	font-weight: 500;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.gallery-item {
	border: none;
	padding: 0;
	background: #f8fafc;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gallery-item img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

.image-modal-root {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.42);
}

.image-modal-root.show {
	display: flex;
}

.image-modal-panel {
	position: relative;
	width: min(860px, 92vw);
	max-height: 90vh;
	padding: 14px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.modal-image {
	display: block;
	width: 100%;
	max-height: calc(90vh - 28px);
	object-fit: contain;
	border-radius: 16px;
}

.modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.08);
	color: #111827;
	font-size: 1.65rem;
	cursor: pointer;
}

.fade-up-section {
	opacity: 0;
	transform: translateY(56px);
	transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-up-section.show {
	opacity: 1;
	transform: translateY(0);
}

.delay-1 {
	transition-delay: 0.12s;
}

.card-pink {
	--step-color: #f472b6;
	--step-glow: rgba(244, 114, 182, 0.25);
}

.card-yellow {
	--step-color: #f59e0b;
	--step-glow: rgba(245, 158, 11, 0.25);
}

.card-mint {
	--step-color: #10b981;
	--step-glow: rgba(16, 185, 129, 0.25);
}

.card-blue {
	--step-color: #60a5fa;
	--step-glow: rgba(96, 165, 250, 0.25);
}

@media ( max-width : 1080px) {
	.interactive-layout {
		grid-template-columns: 1fr;
	}
	.side-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.step-arrow {
		display: none;
	}
}

@media ( max-width : 640px) {
	.course-section {
		padding: 46px 16px 68px;
	}
	.page-title {
		font-size: 28px;
	}
	.side-nav {
		grid-template-columns: 1fr;
	}
	.detail-view {
		padding: 30px 24px;
		min-height: auto;
	}
	.gallery-grid {
		grid-template-columns: 1fr;
	}
}