/* ==========================================================================
   KCC 자체 헤더 (partials/kcc/header.php)
   Elementor 헤더 템플릿 20475 의 실측값을 옮긴 것. (2026-10-07 테스트 서버 대조 완료)
   - 데스크톱(1401px~): 로고 150px, 메뉴 20px/500, 항목 140px
   - 768~1400px: 컨테이너 1080px, 메뉴 16px, 항목 100px / 768~1140px: 항목 80px
   - 1024px 이하: 메뉴 숨김 + 토글, 로고 180px / 767px 이하: 로고 130x44
   - 상태: body.menu-white / #header-wrapper.is-dim = 흰 배경·회색 아이콘(글 페이지 기본)
           그 외(슬라이더 위) = 투명 배경·흰 글자
   - 주의: 드로어용 CSS(.menu-header, ul.sub-menu 등)가 같은 메뉴 클래스를 쓰므로
           .kcc-header 를 앞에 붙여 특이도를 높여 덮어쓴다.
   ========================================================================== */

.kcc-site-header {
	position: relative;
	z-index: 1000;
}

#header-wrapper.kcc-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 10vh;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background-color: transparent;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

/* 로그인 상태: WordPress 관리자 바(32px, 782px 이하 46px) 아래로 내림 */
.admin-bar #header-wrapper.kcc-header {
	top: 32px;
}
@media screen and (max-width: 782px) {
	.admin-bar #header-wrapper.kcc-header {
		top: 46px;
	}
}

#header-wrapper.kcc-header.is-dim {
	background-color: #fff;
	box-shadow: none;
	border-bottom: 1px solid #e8e8e8;
}

.kcc-header__inner {
	width: 1310px;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0; /* 운영 헤더 높이 92px(로고 51 + 40) 재현 */
	box-sizing: border-box;
}

/* 로고 (id 선택자: OceanWP/스니펫의 #site-header img 규칙보다 우선) */
#site-logo.kcc-header__logo {
	flex: 0 0 auto;
	display: block;
	width: 150px;
	min-width: 0; /* flex 아이템의 min-width:auto 가 img 고유폭(150)으로 축소를 막는 것 방지 */
	margin: 0;
	padding: 0;
	line-height: 0;
}
#site-logo.kcc-header__logo img {
	width: 100%;
	height: auto;
	margin: 0 !important;
	object-fit: contain;
}

/* 주 메뉴 */
.kcc-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}
.kcc-header .kcc-nav,
.kcc-header .kcc-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.kcc-header .kcc-nav {
	display: flex;
	align-items: center;
}
.kcc-header .kcc-nav > li {
	position: relative;
	display: block;
	min-width: 140px;
	width: auto;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}
.kcc-header .kcc-nav > li > a {
	display: flex;
	justify-content: center;
	width: 100%;
	padding: 10px 0;
	font-family: "Pretendard", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}
.menu-white .kcc-header .kcc-nav > li > a {
	color: #888;
}
.kcc-header .kcc-nav > li > a:hover,
.kcc-header .kcc-nav > li > a:focus,
.kcc-header .kcc-nav > li.current-menu-item > a,
.kcc-header .kcc-nav > li.current-menu-ancestor > a,
.kcc-header .kcc-nav > li.current-post-ancestor > a,
.menu-white .kcc-header .kcc-nav > li > a:hover,
.menu-white .kcc-header .kcc-nav > li > a:focus,
.menu-white .kcc-header .kcc-nav > li.current-menu-item > a,
.menu-white .kcc-header .kcc-nav > li.current-menu-ancestor > a,
.menu-white .kcc-header .kcc-nav > li.current-post-ancestor > a {
	color: #003af1;
}

/* 드롭다운 */
.kcc-header .kcc-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: block;
	width: auto;
	min-width: 100%;
	padding: 15px 0;
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	font-size: inherit;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 10;
}
.kcc-header .kcc-nav > li:hover > .sub-menu,
.kcc-header .kcc-nav > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.kcc-header .kcc-nav .sub-menu li {
	display: list-item;
	margin: 0;
	border: 0;
	width: auto;
	min-width: auto;
}
.kcc-header .kcc-nav .sub-menu a {
	display: block;
	padding: 10px 20px;
	font-family: "Pretendard", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: #888;
	text-decoration: none;
	white-space: nowrap;
}
.kcc-header .kcc-nav .sub-menu a:hover,
.kcc-header .kcc-nav .sub-menu .current-menu-item > a {
	color: #004098;
	background: #fff;
}

/* 검색·토글 */
.kcc-header__tools {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}
.kcc-header__search,
.kcc-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	background: none !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	cursor: pointer;
	color: #fff;
	line-height: 0;
}
.menu-white .kcc-header__search,
.menu-white .kcc-header__toggle {
	color: #888;
}
.kcc-header__search:hover,
.kcc-header__toggle:hover {
	color: #004098;
}
.kcc-header__search svg {
	width: 23px;
	height: 23px;
}
.kcc-header__toggle {
	display: none;
}
.kcc-header__toggle svg {
	width: 30px;
	height: 30px;
}

/* ---------- 반응형 ---------- */
@media screen and (max-width: 1400px) {
	.kcc-header__inner {
		width: 1080px;
	}
	.kcc-header .kcc-nav > li {
		min-width: 100px;
	}
	.kcc-header .kcc-nav > li > a {
		font-size: 16px;
	}
	.kcc-header__search svg {
		width: 18px;
		height: 18px;
	}
}

@media screen and (max-width: 1140px) {
	.kcc-header__inner {
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
	}
	.kcc-header .kcc-nav > li {
		min-width: 80px;
	}
}

@media screen and (max-width: 1024px) {
	#header-wrapper.kcc-header {
		padding: 0 4%;
	}
	.kcc-header__inner {
		padding: 16px 2px 16px 0;
	}
	#site-logo.kcc-header__logo {
		width: 180px;
	}
	.kcc-header__nav {
		display: none;
	}
	.kcc-header__toggle {
		display: inline-flex;
	}
	.kcc-header__search svg {
		width: 23px;
		height: 23px;
	}
}

@media screen and (max-width: 767px) {
	#header-wrapper.kcc-header {
		min-height: 9.5vh;
		padding: 0 0 0 2%;
	}
	.kcc-header__inner {
		padding: 16px 0 16px 15px; /* 운영 모바일 헤더 76px(로고 44 + 32), 로고 x=23px */
	}
	#site-logo.kcc-header__logo {
		width: 130px;
	}
	#site-logo.kcc-header__logo img {
		height: 44px;
	}
	.kcc-header__tools {
		gap: 4px;
	}
	.kcc-header__search {
		padding: 8px 5px 0 0;
	}
	.kcc-header__search svg {
		width: 28px;
		height: 28px;
	}
}
