/****************************************
*     Wrap Site Common
****************************************/
.client-wrap {}
.client-wrap .client-sub-wrap {
	margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px;
	width: 100%; min-width: 340px; max-width: 1200px;
}

/****************************************
*     site Header
****************************************/
#client_header{
	background: #ffffff;
	border-bottom: 1px solid #eae3d8;
	position: sticky; top: 0;
	z-index: 50;
}
#client_header_inner {
	padding-top: 10px; padding-bottom: 10px;
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

/* Logo */
#client_header_logo {}
#client_header_logo img { width: auto; height: 34px; }

/* Menu */
#client_header_menu {
	margin-left: 20px;
	flex: 1;
	display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 5px;
}
#client_header_menu a {
	padding: 8px 15px;
	color: #4b5258;
	font-size: 1.0rem; font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	background: transparent;
	border: none; border-radius: 100px;
	/*display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 8px;*/
}
#client_header_menu a svg { height: 20px; fill: #4b5258; }
#client_header_menu a:hover { background: #f1f3f5; }
#client_header_menu a.active { color: #fff; background: #22baa7; }
#client_header_menu a.active svg { fill: #fff; }

/* Menu Item (드롭다운 컨테이너) */
#client_header_menu .menu_item {
	display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center;
	position: relative;
}
#client_header_menu .menu_item.lms a,
#client_header_menu .menu_item.study a {
	padding: 8px 30px;
	color: var(--color-g0);
	background: var(--color-g4);
}

/* Sub Dropdown */
#client_header_menu .menu_sub_dropdown {
	min-width: 180px;
	background: #fff;
	border: 1px solid #e7eaed; border-radius: 12px;
	display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px;
	position: absolute; top: calc(100% + 8px); left: 0;
	padding: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 100;
}
#client_header_menu .menu_item.has_sub:hover .menu_sub_dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
#client_header_menu .menu_sub_dropdown a {
	padding: 10px 14px;
	width: 100%;
	font-size: 0.95rem; font-weight: 600;
	white-space: nowrap;
	border-radius: 8px;
	display: block;
}
#client_header_menu .menu_sub_dropdown a:hover { background: #f1f3f5; }

/* Point */
#client_header_point span {
	padding: 8px 15px;
	min-width: 120px; height: 45px;
	color: #000;
	font-size: 1.0rem; font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #e7eaed; border-radius: 100px;
	display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px;
}
/*#client_header_point span svg { height: 20px; fill: #22baa7; }*/

/* User Info */
#client_header_user_info {
	padding: 8px 20px;
	height: 45px;
	color: #969ca3;
	font-size: 0.8rem; font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	background: #fff;
	border: 1px solid #e7eaed; border-radius: 100px;
	display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 8px;
	cursor: pointer;
}
#client_header_user_info span {
	color: #1a1e22;
	font-size: 1.0rem; font-weight: 600;
	line-height: 1.2;
}

/* Header Right (회원/로그인) */
#client_header_right {
	display: flex; flex-direction: row; align-items: center; gap: 8px;
	color: #4b5258;
	font-size: 0.92rem; font-weight: 600;
	white-space: nowrap;
}
#client_header_right .kh-header-sep {
	color: var(--color-dark-gray);
	font-weight: 400;
}

/* Mobile Menu Icon */
#client_header_popup_menu_icon{
	background: #fff;
	border: none;
	display: none;
	transition: background .15s;
	cursor: pointer;
}
#client_header_popup_menu_icon svg{ width: 26px; height: 26px; fill: #4b5258; }


/****************************************
*     Wrap site Popup Menu
****************************************/
/* Popup Menu Overlay */
#client_header_popup_menu_overlay{
	background: rgba(11,16,32,0.45);
	backdrop-filter: blur(5px);
	display: none;
	opacity: 0;
	position: fixed; inset: 0;
	transition: opacity .3s ease;
	z-index: 99;
}
#client_header_popup_menu_overlay.is-open{ display: block; opacity: 1; }

/* Popup Menu */
#client_header_popup_menu{
	width: 280px; height: 100%;
	background: #fff;
	box-shadow: -4px 0 24px rgba(11,16,32,0.12);
	display: flex; flex-direction: column;
	overflow-y: auto;
	position: fixed; top: 0; right: 0;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4,0,.2,1);
	z-index: 100;
}
#client_header_popup_menu.is-open{ transform: translateX(0); }

/* Popup Menu Header */
#popup_menu_header{
	padding: 16px 20px;
	/*background: #fafafa;*/
	background: linear-gradient(160deg,#23b06b,#178f81);
	border-bottom: 1px solid #e7eaed;
	display: flex; align-items: center; justify-content: space-between;
	flex-shrink: 0;
}
#popup_menu_header img{ width: auto; height: 28px; }
#popup_menu_header #popup_menu_close{
	padding: 6px;
	background: #fff;
	border: 1px solid #969ca3; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s;
	cursor: pointer;
}
#popup_menu_header #popup_menu_close svg{ width: 20px; height: 20px; fill: #4b5258; }

/* Popup Menu User Info */
#popup_menu_user_info{
	padding: 15px 30px;
	border-bottom: 1px solid #e7eaed;
}

#popup_menu_user_info .user_info{
	margin-bottom: 10px;
	display: flex; flex-direction: start; align-items: center; gap: 20px;
}
#popup_menu_user_info .user_info .avatar {
	width: 44px; height: 44px;
	color: #fff;
	font-size: 1.0rem; font-weight: 700;
	background: linear-gradient(135deg, #28a77b, #15835e);
	border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
#popup_menu_user_info .user_info .name {
	color: #969ca3;
	font-size: 0.8rem; font-weight: 400;
	line-height: 1.4;
}
#popup_menu_user_info .user_info .name span {
	color: #1a1e22;
	font-size: 1.1rem; font-weight: 600;
}

#popup_menu_user_info hr{
	border-width: 2px 0 0 0; border-style: dotted; border-color: #e7eaed;
}

#popup_menu_user_info .point {
	margin-top: 10px;
	display: flex; flex-direction: start; align-items: center; gap: 20px;
}
#popup_menu_user_info .point .point-icon {
	width: 44px; height: 44px;
	color: #fff;
	background: linear-gradient(135deg, #28a77b, #15835e);
	border-radius: 50%; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
#popup_menu_user_info .point .point-icon svg { width: 22px; height: 22px; fill: #fff; }
#popup_menu_user_info .point .point-text {
	color: #0f5f44;
	font-size: 1.1rem; font-weight: 600;
	line-height: 1.4;
}
#popup_menu_user_info .point span {
	color: #15835e;
	font-size: 0.8rem; font-weight: 400;
}

/* Popup Menu Item */
#popup_menu_item {}
#popup_menu_item a {
	padding: 15px 10px 15px 30px;
	color: #4b5258;
	font-size: 1.0rem; font-weight: 600;
	letter-spacing: 1px;
	line-height: 1;
	white-space: nowrap;
	background: #fff;
	border-bottom: 1px solid #e7eaed;
	display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: start; align-items: center; gap: 8px;
	position: relative;
}
#popup_menu_item a svg { height: 20px; fill: #4b5258; }
#popup_menu_item a:hover{ background: #f1f3f5; }
#popup_menu_item a.sub {
	padding-left: 46px;
	color: #7c848b;
	font-size: 0.92rem; font-weight: 500;
	background: #fafbfc;
}
#popup_menu_item a.sub::before {
	content: '›';
	margin-right: 6px;
	color: #b5bcc2;
}

/* 팝업 메뉴 하단 버튼 그룹 (관리툴/학습하기/로그아웃) */
#popup_menu_footer {
	padding: 18px 20px;
	display: flex; flex-direction: column; gap: 10px;
	border-top: 1px solid #e7eaed;
}
#popup_menu_footer .pm_btn {
	height: 48px;
	color: #4b5258; font-size: 0.98rem; font-weight: 700;
	background: #fff;
	border: 1px solid #dbe2e3; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s;
}
#popup_menu_footer .pm_btn.primary {
	color: #fff;
	background: #22baa7; border-color: #22baa7;
}
#popup_menu_footer .pm_btn.primary:hover { background: #1aa392; border-color: #1aa392; }
#popup_menu_footer .pm_btn.ghost:hover { background: #f4f6f7; border-color: #c8d0d2; }
#popup_menu_item a.active::before {
	content: '';
	width: 10px;
	background: #22baa7;
	position: absolute; top: 0; bottom: 0; left: 0;
}


/****************************************
*     반응형 960px
****************************************/
@media (max-width: 960px) {
	.client-wrap .client-sub-wrap { padding-left: 15px; padding-right: 15px; }

	#client_header_logo { flex: 1; }
	#client_header_menu, #client_header_point, #client_header_user_info { display: none; }
	#client_header_right { display: none; }
	#client_header_popup_menu_icon{ display: flex; }
}

/****************************************
*     반응형 560px
****************************************/
@media (max-width: 560px) {
	.client-wrap .client-sub-wrap { padding-left: 10px; padding-right: 10px; }

	#client_header_popup_menu{ width: 100%; }
}
