/* customizations */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

/* ========== 헤더: 흰색 2단(1차 + 2차 고정) ========== */
.header .header-inner {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	width: 100%;
	max-width: 100%;
	padding: 0 !important;
	background-color: #fff !important;
	box-shadow: 0 4px 24px rgba(27, 94, 32, 0.08) !important;
	border-radius: 0 0 14px 14px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-top: none;
	overflow: visible;
	font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#header-fixed.header-fixed-trans .header .header-inner,
#header-fixed .header .header-inner {
	background-color: #fff !important;
}

/* 1행: 로고 · 1차 메뉴 · 유틸 */
.header-row-top {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 72px;
	padding: 10px 8px 10px 12px;
	box-sizing: border-box;
}

@media (min-width: 992px) {
	.header-row-top {
		min-height: 64px;
		padding: 8px 20px 4px 24px;
		gap: 20px;
	}
}

/* 로고 */
.header .header-logo {
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 4px 8px 4px 0 !important;
	max-width: 42%;
}

@media (min-width: 992px) {
	.header .header-logo {
		max-width: 280px;
		padding-right: 16px !important;
	}
}

.header-logo-link {
	display: flex !important;
	align-items: center;
	text-decoration: none !important;
	line-height: 0;
}

.header-logo a img,
.header-logo-hero a img {
	height: 44px !important;
	width: auto !important;
	max-width: 100%;
	object-fit: contain;
	object-position: left center;
	display: block !important;
	filter: none !important;
}

@media (min-width: 992px) {
	.header-logo a img,
	.header-logo-hero a img {
		height: 58px !important;
	}
}

/* 1차 메뉴 영역 */
.header-row-top .gnb-wrap {
	flex: 1 1 auto;
	min-width: 0;
	display: flex !important;
	justify-content: center;
	align-items: center;
}

@media (min-width: 992px) {
	.gnb-wrap .gnb {
		width: auto !important;
		margin: 0 auto;
	}

	.gnb-wrap .gnb .gnb-nav {
		display: flex !important;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		gap: 0;
		margin: 0 !important;
	}

	.gnb-wrap .gnb .gnb-nav > li {
		position: relative;
	}

	.gnb-wrap .gnb .gnb-nav > li::before {
		bottom: 14px;
		height: 2px;
		background-color: #2e7d32;
		transition: width 0.25s ease, opacity 0.25s ease;
	}

	.gnb-wrap .gnb .gnb-nav > li:hover::before,
	.gnb-wrap .gnb .gnb-nav > li.active::before {
		width: 70%;
		opacity: 1;
	}

	.gnb-wrap .gnb .gnb-nav > li > a {
		padding: 0 18px !important;
		line-height: 64px !important;
		font-size: 1.0625rem !important;
		font-weight: 600 !important;
		letter-spacing: -0.02em;
		color: #1a2f24 !important;
		text-shadow: none !important;
		white-space: nowrap;
	}

	@media (min-width: 1200px) {
		.gnb-wrap .gnb .gnb-nav > li > a {
			padding: 0 26px !important;
			font-size: 1.125rem !important;
		}
	}

	.gnb-wrap .gnb .gnb-nav > li > a:hover,
	.gnb-wrap .gnb .gnb-nav > li.active > a {
		color: #1b5e20 !important;
	}

	.gnb-wrap .gnb .gnb-nav .nav-cate-icon {
		display: none !important;
	}

	.gnb-wrap .gnb .gnb-nav .dropdown-toggle::after {
		display: none !important;
	}

	/* PC 호버 드롭다운 숨김 — 2차는 하단 고정 바로 대체 */
	.gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}

	.gnb-wrap .gnb .gnb-nav > li > .cate-dropdown-open {
		display: none !important;
	}
}

.header-row-top .top-bar {
	flex: 0 0 auto;
	margin-left: auto;
}

.top-bar:before {
	display: none;
}

@media (min-width: 992px) {
	.top-bar .top-bar-list {
		height: 64px;
		border-radius: 10px;
		padding: 0 16px;
	}
}

/* ========== 2차 메뉴 고정 바 (PC만, d-none d-lg-block) ========== */
.header-subnav {
	width: 100%;
	border-top: 1px solid rgba(27, 94, 32, 0.12);
	background: linear-gradient(180deg, #f7faf7 0%, #f2f7f3 100%);
}

.header-subnav-inner {
	position: relative;
	width: 100%;
	max-width: 100%;
	padding: 6px 0 10px;
	box-sizing: border-box;
}

.header-subcol {
	min-width: 0;
	padding: 2px 8px;
	box-sizing: border-box;
	overflow: hidden;
	word-break: keep-all;
}

.header-subcol.is-active-main {
	background: rgba(46, 125, 50, 0.04);
	border-radius: 6px;
}

.header-subcol-head {
	display: none;
}

.header-sublinks {
	margin: 0;
	padding: 0;
}

.header-sublinks > li {
	margin: 0 0 5px;
	padding: 0;
}

.header-sublinks > li > a {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #2e3d35 !important;
	line-height: 1.45;
	text-decoration: none !important;
	word-break: keep-all;
	border-radius: 4px;
	padding: 2px 0;
	transition: color 0.2s ease;
}

.header-sublinks > li > a:hover {
	color: #1b5e20 !important;
}

.header-sublinks > li.active > a {
	color: #1b5e20 !important;
	font-weight: 700;
}

.header-subsub {
	margin: 4px 0 0 0;
	padding: 0 0 0 10px;
	border-left: 2px solid rgba(46, 125, 50, 0.25);
}

.header-subsub li {
	margin: 0 0 4px;
}

.header-subsub a {
	font-size: 0.8125rem;
	font-weight: 400;
	color: #5a6b62 !important;
	text-decoration: none !important;
	line-height: 1.4;
	word-break: keep-all;
}

.header-subsub a:hover {
	color: #2e7d32 !important;
}

.header-subsub li.active a {
	color: #1b5e20 !important;
	font-weight: 600;
}

.header-new-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 6px;
	border-radius: 50%;
	background: #c62828;
	vertical-align: middle;
}

/* ========== 서브페이지: 2차 바 숨김 + 1차 호버 드롭다운 복원 ========== */
@media (min-width: 992px) {
	/* 서브페이지에서 2차 고정 바 숨김 */
	.sub-header .header-subnav {
		display: none !important;
	}

	/* 서브페이지에서 기존 호버 드롭다운 복원 */
	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu {
		display: block !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
		position: absolute !important;
		top: 100%;
		left: 50%;
		transform: translateX(-50%) translateY(10px);
		min-width: 180px;
		padding: 12px 16px;
		margin: 0;
		background: #fff !important;
		border: 1px solid rgba(0,0,0,0.08);
		border-radius: 10px;
		box-shadow: 0 8px 32px rgba(27,94,32,0.12);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
		z-index: 1000;
	}

	.sub-header .gnb-wrap .gnb .gnb-nav > li:hover > ul.dropdown-menu {
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		transform: translateX(-50%) translateY(0);
	}

	/* 드롭다운 항목 스타일 */
	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu > li {
		border-bottom: none;
	}

	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu > li > a {
		display: block;
		padding: 7px 8px !important;
		font-size: 0.875rem !important;
		font-weight: 500;
		color: #2e3d35 !important;
		background: none !important;
		border-radius: 6px;
		line-height: 1.5;
		white-space: nowrap;
		transition: background 0.15s ease, color 0.15s ease;
	}

	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu .submenu-marker {
		display: none;
	}

	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu > li > a:hover {
		background: rgba(46,125,50,0.08) !important;
		color: #1b5e20 !important;
	}

	.sub-header .gnb-wrap .gnb .gnb-nav > li > ul.dropdown-menu > li.active > a {
		color: #1b5e20 !important;
		font-weight: 700;
	}

	/* 서브페이지 헤더 배경 살짝 반투명 (히어로 이미지 비침) */
	.sub-header .header-inner {
		background-color: rgba(255,255,255,0.92) !important;
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}
}

/* ========== 모바일 ========== */
@media (max-width: 991px) {
	.header {
		padding: 8px 6px !important;
	}

	.header .header-inner {
		border-radius: 10px;
		padding: 0 !important;
	}

	.header-row-top {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 6px 10px;
		gap: 0;
	}

	.header .header-logo {
		flex: 0 1 auto;
		padding-left: 0 !important;
		margin: 0 !important;
		max-width: 60%;
		order: 1;
	}

	.header-logo a img,
	.header-logo-hero a img {
		height: 36px !important;
	}

	/* 탑바: 오른쪽 끝 고정 */
	.header-row-top .top-bar {
		flex: 0 0 auto;
		margin-left: auto !important;
		order: 2;
	}

	/* 탑바 배경/그라디언트 제거, 컴팩트하게 */
	.top-bar .top-bar-list {
		background: none !important;
		height: auto !important;
		padding: 0 4px !important;
		gap: 2px;
		border-radius: 0;
	}

	/* 검색·로그인 숨기고 메뉴버튼만 표시 */
	.top-bar .top-bar-list > li.top-bar-btn-adm,
	.top-bar .top-bar-list > li.top-bar-btn-login,
	.top-bar .top-bar-list > li.btn-search {
		display: none !important;
	}

	.top-bar .top-bar-list > li.mobile-nav-trigger {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		background: rgba(27,94,32,0.08);
		border-radius: 10px;
		margin: 0;
	}

	.top-bar .top-bar-list > li.mobile-nav-trigger span {
		display: flex !important;
		align-items: center;
		justify-content: center;
	}

	.top-bar .top-bar-list > li.mobile-nav-trigger img {
		width: 22px !important;
		filter: brightness(0) saturate(100%) invert(25%) sepia(60%) saturate(600%) hue-rotate(100deg);
	}

	/* gnb-wrap 모바일에서 숨김 (오프캔버스로만 접근) */
	.header-row-top .gnb-wrap {
		flex: 0 0 0px;
		width: 0;
		overflow: hidden;
		padding: 0 !important;
		margin: 0 !important;
	}
}

/* ========== 푸터 로고 ========== */
.footer-top .footer-logo a img {
	height: 72px !important;
	width: auto !important;
}
@media (max-width: 991px) {
	.footer-top .footer-logo a img {
		height: 54px !important;
	}
}
