/*
 * 손으로 쓴 공통 규칙 — 생성 CSS(header·footer·single·pages)가 담지 못한 상태값.
 * 옛 화면에서 Elementor JS·위젯 CSS 가 하던 일(헤더 고정, 메뉴 화살표, 지금 페이지·하위 메뉴 열림 색, 펼침 메뉴 열림, 등장 효과)을 같은 값으로.
 * 값은 옛 헤더 CSS(post-446)·Elementor Pro widget-nav-menu.css·elementor/assets/lib/animations 그대로.
 */

/*
 * 헤더 고정 — 옛 Elementor 「고정: 위」(헤더 b3b8900 · 헤더2 457e851f, 데스크톱·태블릿·폰, 스크롤 효과는 같은 바탕색이라 겉모습 변화 없음).
 * 옛 화면은 컨테이너를 fixed 로 띄우고 같은 크기의 빈 칸을 남겼다(고정 중 z-index 99 — e-sticky .elementor-sticky--active) —
 * 헤더 전체를 sticky 로 붙여 같은 자리·같은 쌓임으로 둔다. 헤더 아래 빈 코드 칸(7512141 — HTML 위젯 script 만)도 같이 붙는다.
 */
.hn-hd {
	position: sticky;
	top: 0;
	z-index: 99;
}

/*
 * 하위 메뉴 화살표 — 옛 SmartMenus 가 링크 끝에 붙이던 것(.elementor-nav-menu .sub-arrow, caret-down 1em).
 * 색(fill)은 링크에서 물려받는다(옛 화면과 같음).
 */
.hn-hd .elementor-nav-menu .sub-arrow {
	align-items: center;
	display: flex;
	line-height: 1;
	margin-block-end: -10px;
	margin-block-start: -10px;
	padding: 10px;
	padding-inline-end: 0;
}

.hn-hd .elementor-nav-menu .sub-arrow .e-font-icon-svg {
	height: 1em;
	width: 1em;
}

/*
 * 가로 메뉴 첫 단계 링크 좌우 간격 14px — 옛 화면은 mu-plugin bemypet-honestamc-listing 이 첫 단계 항목에 honest-gnb-tight 클래스를 붙이고
 * <style id="honest-site-css"> 로 덮었다. 새 마크업도 같은 클래스라 그 규칙이 그대로 걸리지만, 테마만으로 같은 화면이 나오게 여기에도 둔다.
 */
.hn-hd .elementor-nav-menu--main .honest-gnb-tight > a.elementor-item {
	padding-left: 14px !important;
	padding-right: 14px !important;
}

/* 가로 메뉴: 하위 메뉴가 열린 링크(SmartMenus .highlighted)·지금 페이지(elementor-item-active) 색 — 옛 위젯 규칙(평소·마우스 올림과 같은 흰색). */
.hn-hd .hd-4797554d__horizontal .elementor-item:is(.highlighted, .elementor-item-active) {
	color: #ffffff;
	fill: #ffffff;
}

/* 하위 메뉴·펼침 메뉴 링크: 열림(.highlighted) 바탕 #657ABE, 지금 페이지 바탕 남색(옛 post-446 — 지금 페이지 규칙이 뒤라 마우스 올림도 이긴다).
   마우스 올림·포커스는 생성 CSS 에 있다. */
.hn-hd .hd-4797554d .elementor-nav-menu--dropdown a.highlighted {
	background-color: #657abe;
	color: #ffffff;
}

.hn-hd .hd-4797554d .elementor-nav-menu--dropdown a.elementor-item-active,
.hn-hd .hd-4797554d .elementor-nav-menu--dropdown a.elementor-item-active:is(:hover, :focus, .highlighted) {
	background-color: var(--e-global-color-primary);
	color: #ffffff;
}

/* 펼침 메뉴(1024px 이하) 열림 — 옛 .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container */
.hn-hd .hd-4797554d__toggle.elementor-active + .hd-4797554d__container {
	animation: hn-hide-scroll 0.3s backwards;
	max-height: var(--menu-height, 100vh);
	overflow-x: hidden;
	overflow-y: hidden;
	transform: scaleY(1);
}

@keyframes hn-hide-scroll {
	0%,
	to {
		overflow: hidden;
	}
}

.hn-hd .hd-4797554d__toggle.elementor-active .hd-4797554d__open {
	display: none;
}

.hn-hd .hd-4797554d__toggle.elementor-active .hd-4797554d__close {
	display: inline;
}

/* 헤더 스크롤 효과 — 옛 헤더 사용자 CSS(post-446, 컨테이너 326a6869): 10px 이상 내리면 바탕 남색. 맨 위에서는 투명. */
.hn-hd .hd-326a6869.elementor-sticky--effects {
	background-color: #213167 !important;
}

/*
 * 등장 효과(옛 Elementor entrance animation — .elementor-invisible 로 감췄다가 화면에 들어오면 .animated + 효과 이름).
 * 동작은 page.js(data-hn-anim · data-hn-delay). 기본 1.25초, 「느리게」(animated-slow) 2초, 「빠르게」(animated-fast) 0.75초.
 * 효과 모양은 옛 elementor/assets/lib/animations/styles/*.css 그대로.
 */
[data-hn-anim]:not(.hn-animated) {
	visibility: hidden;
}

.hn-animated {
	animation-duration: 1.25s;
}

.hn-animated.animated-slow {
	animation-duration: 2s;
}

.hn-animated.animated-fast {
	animation-duration: 0.75s;
}

.hn-fadeIn {
	animation-name: hn-fadeIn;
}

.hn-fadeInUp {
	animation-name: hn-fadeInUp;
}

.hn-fadeInDown {
	animation-name: hn-fadeInDown;
}

/* 정직한이 더 쓰는 효과 — fadeInLeft 45곳 · fadeInRight 6곳 · zoomIn 18곳(옛 문서 _animation, 2026-11-27 census) */
.hn-fadeInLeft {
	animation-name: hn-fadeInLeft;
}

.hn-fadeInRight {
	animation-name: hn-fadeInRight;
}

.hn-zoomIn {
	animation-name: hn-zoomIn;
}

@keyframes hn-fadeInLeft {
	from {
		opacity: 0;
		transform: translate3d(-100%, 0, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hn-fadeInRight {
	from {
		opacity: 0;
		transform: translate3d(100%, 0, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hn-zoomIn {
	from {
		opacity: 0;
		transform: scale3d(0.3, 0.3, 0.3);
	}

	50% {
		opacity: 1;
	}
}

@keyframes hn-fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes hn-fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes hn-fadeInDown {
	from {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hn-animated {
		animation: none !important;
	}
}

/* 배경 영상 iframe(유튜브·비메오): 옛 Elementor .elementor-background-video-embed { max-width: none } — 상자를 16:9 로 덮게 키운 폭이
 * 옛 테마 기본 CSS 의 iframe { max-width: 100% } 에 눌리지 않게(눌리면 영상 위아래·양옆에 검은 띠). 추출 때 그 자리는 빈 div 라 이 규칙이 빠졌다. */
[data-hn-video][data-hn-video] iframe {
	max-width: none;
}

/* 치료케이스 거르기 — 옛 Elementor Pro widget-loop-filter.css 의 속성 규칙. 눌림 표시는 page.js 가 클래스를 바꿔 끼우는데(생성 CSS 의 눌림·평소 모양),
 * 그 클래스에 옛 「All」 자리 값(order: -1)까지 들어 있어 누른 버튼이 맨 앞으로 갔다 — 자리는 옛것처럼 「All」(data-filter=__all)에만.
 * 눌린 버튼 바탕은 없음(옛 [aria-pressed=true]) — 없으면 누른 뒤 초점 때문에 옛 테마 기본 button:focus 분홍 바탕이 보였다. */
.hn-p [data-hn-filter] button[data-filter] { order: 0; }
.hn-p [data-hn-filter] button[data-filter="__all"] { order: -1; }
.hn-p [data-hn-filter] button[aria-pressed="true"] { background-color: initial; }
