.wiki-container {
	display: flex;
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	gap: 30px;
}

.wiki-sidebar {
	width: 280px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	padding: 20px;
	height: fit-content;
	position: sticky;
	top: 120px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	align-self: flex-start;
}

.wiki-content {
	flex: 1;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
	margin-bottom: 5px;
}

.sidebar-title {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	padding: 12px 40px 12px 15px;
	border-radius: 8px;
	background: linear-gradient(135deg, #6a5acd 0%, #5a4fcf 100%);
	color: white;
	box-shadow: 0 2px 10px rgba(106, 90, 205, 0.3);
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-title:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}

.sidebar-title::after {
	content: '▼';
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.sidebar-title.collapsed::after {
	transform: translateY(-50%) rotate(-90deg);
}

.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	background: rgba(248, 249, 250, 0.8);
	border-radius: 8px;
	padding: 10px;
	max-height: 500px;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.sidebar-menu.collapsed {
	max-height: 0;
	opacity: 0;
	padding: 0 10px;
}

.sidebar-menu li {
	margin-bottom: 8px;
}

.sidebar-menu a {
	display: block;
	padding: 12px 15px;
	color: #555;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.sidebar-menu a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	background: #6a5acd;
	transition: height 0.3s ease;
	border-radius: 0 2px 2px 0;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	background: #6a5acd;
	color: white;
	transform: translateX(5px);
}

.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
	height: 20px;
}

.content-section {
	display: none;
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
	animation: fadeInUp 0.5s ease-out;
}

.content-section.active {
	display: block;
}

.content-section:last-child {
	border-bottom: none;
}

.content-section h2 {
	color: #6a5acd;
	margin-bottom: 30px;
	font-size: 32px;
	text-align: center;
	padding-bottom: 15px;
	border-bottom: 3px solid #6a5acd;
}

.content-section h3 {
	color: #333;
	margin-bottom: 15px;
	margin-top: 25px;
	font-size: 22px;
}

/* 미디어 컨테이너 개선 */
.media-container {
	display: flex;
	gap: 30px;
	margin: 40px 0;
	align-items: flex-start;
}

.media-item {
	flex: 1;
}

.guide-image {
	width: 100%;
	max-width: 500px;
	height: auto;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image:hover {
	transform: scale(1.03);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* 동영상 컨테이너 개선 */
.video-container {
	position: relative;
	background: #000;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 500px;
}

.guide-video {
	width: 100%;
	height: auto;
	display: block;
	min-height: 300px;
}

.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.video-container:hover .video-overlay {
	opacity: 0;
}

.play-button {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: rgba(106, 90, 205, 0.9);
	border: 4px solid white;
	color: white;
	font-size: 32px;
	cursor: pointer;
	transition: all 0.3s ease;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.play-button:hover {
	background: #6a5acd;
	transform: scale(1.1);
	box-shadow: 0 8px 25px rgba(106, 90, 205, 0.4);
}

.guide-table {
	width: 100%;
	border-collapse: collapse;
	margin: 30px 0;
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guide-table th {
	background: #6a5acd;
	color: white;
	padding: 18px;
	text-align: left;
	font-weight: bold;
	font-size: 16px;
}

.guide-table td {
	padding: 15px 18px;
	border-bottom: 1px solid #eee;
	font-size: 15px;
}

.guide-table tr:last-child td {
	border-bottom: none;
}

.guide-table tr:nth-child(even) {
	background: #f8f9fa;
}

.info-box {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 25px;
	border-radius: 12px;
	margin: 30px 0;
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.warning-box {
	background: #fff3cd;
	border: 2px solid #ffeaa7;
	color: #856404;
	padding: 25px;
	border-radius: 12px;
	margin: 30px 0;
}

.tip-box {
	background: #d1ecf1;
	border: 2px solid #bee5eb;
	color: #0c5460;
	padding: 25px;
	border-radius: 12px;
	margin: 30px 0;
}

.breadcrumb {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 15px 25px;
	border-radius: 10px;
	margin-bottom: 30px;
	font-size: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumb a:hover {
	color: white;
	text-decoration: underline;
}

#breadcrumb-current {
	color: white;
	font-weight: bold;
}



/* 클래스 그리드 */
.class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.class-card {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 25px;
	border-radius: 12px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.class-card h4 {
	color: #6a5acd;
	margin-bottom: 15px;
	font-size: 20px;
}

.class-card p {
	color: #666;
	font-size: 15px;
	line-height: 1.6;
}

/* 애니메이션 */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 클래스 소개 전용 스타일 */
.race-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 15px;
	padding: 30px;
	margin: 30px 0;
	border-left: 5px solid #6a5acd;
}

.race-section h3 {
	color: #6a5acd;
	margin-bottom: 15px;
	font-size: 24px;
	border-bottom: 2px solid #6a5acd;
	padding-bottom: 10px;
}

.class-tree {
	margin: 25px 0;
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.class-tree h4 {
	color: #495057;
	margin-bottom: 20px;
	font-size: 18px;
	text-align: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 10px;
	border-radius: 5px;
}

.progression {
	display: flex;
	align-items: center;
	margin: 15px 0;
	flex-wrap: wrap;
	gap: 10px;
}

.class-step {
	background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-weight: 500;
	font-size: 14px;
	white-space: nowrap;
}

.arrow {
	color: #6c757d;
	font-weight: bold;
	font-size: 18px;
	margin: 0 5px;
}

.branch {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.class-branch {
	background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
	color: white;
	padding: 6px 12px;
	border-radius: 15px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
	.wiki-container {
		flex-direction: column;
		padding: 15px;
	}

	.race-section {
		padding: 20px;
		margin: 20px 0;
	}

	.progression {
		flex-direction: column;
		align-items: flex-start;
	}

	.arrow {
		transform: rotate(90deg);
		margin: 5px 0;
	}

	.branch {
		margin-left: 20px;
	}

	.class-step,
	.class-branch {
		font-size: 12px;
		padding: 6px 10px;
	}

	.wiki-sidebar {
		width: 100%;
		position: static;
	}

	.media-container {
		flex-direction: column;
		gap: 20px;
	}

	.media-item {
		width: 100%;
	}

	.guide-image,
	.video-container {
		max-width: 100%;
	}

	.class-grid {
		grid-template-columns: 1fr;
	}

	.play-button {
		width: 80px;
		height: 80px;
		font-size: 24px;
	}

	.content-section h2 {
		font-size: 26px;
	}
}

@media (max-width: 480px) {
	.wiki-content {
		padding: 25px;
	}

	.content-section h2 {
		font-size: 22px;
	}

	.content-section h3 {
		font-size: 18px;
	}

	.play-button {
		width: 60px;
		height: 60px;
		font-size: 18px;
	}

	.guide-image {
		border-radius: 10px;
	}

	.video-container {
		border-radius: 10px;
	}
}