/* middle_menu.css */
.wrap {
	width: 100%;
	margin: 0 auto;
	font-family: 'Nanum Gothic', sans-serif, 돋움;
	font-size: 0.8em;
	color: #232323;
	z-index: 100 !important;
}

/* @group core nav menu */
#nav {
	text-align: center;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #d5dce8;
	border-bottom: 1px solid #d5dce8;
	height: 50px;
	padding-left: 15px;
	padding-right: 15px;
	position: relative;
	z-index: 100 !important;
}

#nav li {
	text-align: center;
	display: inline-block;
	background: none;
	position: relative;
	z-index: 101 !important;
	margin: 0 1px;
	height: 50px;
}

#nav li a {
	display: block;
	padding: 0 10px;
	font-weight: 700;
	line-height: 50px;
	text-decoration: none;
	color: #FFFFFF;
	border-left: 1px solid transparent;
	border-right: 1px solid transparent;
	height: 50px;
}

#nav li a:hover, #nav li a.hov {
	background-color: #fff;
	border-left: 1px solid #d5dce8;
	border-right: 1px solid #d5dce8;
	color: #576482;
	height: 48px;
}

/* @group subnav - PC/일반 모드 정돈 */
#nav ul {
	position: absolute;
	left: 0px;
	top: 50px;
	width: 150px;
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid #d5dce8;
	background-color: #fffff0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 4px 4px;
	box-sizing: border-box;
	overflow: hidden;
	z-index: 99999 !important;
}	

#nav ul li {
	background-color: #fffff0;
	width: 100%;
	height: 44px;
	float: none;
	border: none;
	border-bottom: 1px solid #f0f0e8;
	text-align: left;
	box-sizing: border-box;
	margin: 0;
}

#nav ul li:last-child {
	border-bottom: none;
}

#nav ul li:hover {
	background-color: #f2f2e4;
}

#nav ul a {
	display: block;
	height: 44px;
	line-height: 44px;
	padding: 0 14px;
	color: #4e4e4e;
	font-size: 13px;
	font-weight: normal;
	text-decoration: none;
	border: none;
	white-space: nowrap;
	box-sizing: border-box;
}

#nav ul a:hover {
	text-decoration: none;
	color: #1e293b;
	background-color: transparent;
}

#nav #naninfo {
	display: none;
}

#nav #pcfavorite {
	display: none;
}

@media only screen and (min-width: 360px) {
  #nav #naninfo {
    display: inline-block;
  }
}
@media only screen and (min-width: 768px) {
  #nav #pcfavorite {
    display: inline-block;
  }
}

/** @group clearfix **/
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }


/* ========================================================
   [스마트 테마] 중앙 메뉴 자동 적응 스타일 (1차 메뉴 전용 적용)
======================================================== */
#nav.mmenu_theme_light {
	border-top: 1px solid #e2e8f0 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* 1차 메뉴 링크만 직접 지정 (> li > a) */
#nav.mmenu_theme_light > li > a {
	color: #0C2253 !important;
	font-weight: 800 !important;
}

#nav.mmenu_theme_light > li > a:hover,
#nav.mmenu_theme_light > li > a.hov {
	background-color: #f1f5f9 !important;
	color: #2563eb !important;
	border-left: 1px solid #cbd5e1 !important;
	border-right: 1px solid #cbd5e1 !important;
}

#nav.mmenu_theme_dark > li > a {
	color: #ffffff !important;
}

#nav.mmenu_theme_dark > li > a:hover,
#nav.mmenu_theme_dark > li > a.hov {
	background-color: rgba(255, 255, 255, 0.22) !important;
	color: #ffffff !important;
	border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
	border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* 2차 드롭다운 서브메뉴 - 모던 화이트 카드 & 선명한 차콜 텍스트 보장 */
#nav ul {
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
	border-radius: 8px !important;
}

#nav ul li {
	background-color: #ffffff !important;
	border-bottom: 1px solid #f1f5f9 !important;
}

#nav ul li:hover {
	background-color: #f8fafc !important;
}

#nav ul li a {
	color: #334155 !important;
	font-weight: 400 !important; /* bold 제거: normal 기본 굵기 */
	font-size: 13px !important;
}

#nav ul li a:hover {
	color: #2563eb !important;
	background-color: transparent !important;
}
