/*
 * 손으로 쓴 공통 규칙 — 생성 CSS(header·footer·pages·single)가 담지 못한 상태값.
 * 옛 화면에서 Elementor JS·위젯 CSS 가 하던 일(헤더 고정, 메뉴 화살표·열림·「지금 페이지」 색, 펼침 메뉴 열림)을 같은 값으로.
 *
 * 선택자 세기: 헤더 HTML 위젯 코드(옛것 그대로, body 안)가 스크롤 뒤 메뉴 글자색을 (0,5,0) 선택자로 바꾸고,
 * 추가 CSS 가 지금 페이지 조상 메뉴 색을 (0,4,1) 로 바꾼다. 옛 Elementor 규칙은 그보다 세거나(마우스 올림·지금 페이지 0,6,0)
 * 약했다(평소 글자색). 같은 결과가 나오도록 아래 규칙을 옛 규칙과 같은 세기 순서로 맞췄다.
 */

/* 헤더 고정 — 옛 Elementor 「고정: 위」(데스크톱·태블릿·폰, z-index 1000). 자리를 비우지 않고 붙어 다닌다. */
.dth-hd {
	position: sticky;
	top: 0;
	z-index: 1000;
}

/* 하위 메뉴 화살표 — 옛 SmartMenus 가 링크 끝에 붙이던 것(widget-nav-menu.css .elementor-nav-menu .sub-arrow). */
.dth-hd .hd-c3953f9 .sub-arrow {
	align-items: center;
	display: flex;
	line-height: 1;
	margin-block-end: -10px;
	margin-block-start: -10px;
	padding: 10px;
	padding-inline-end: 0;
}

.dth-hd .hd-c3953f9 .sub-arrow .e-font-icon-svg {
	height: 1em;
	width: 1em;
}

/* 가로 메뉴: 마우스 올림·하위 메뉴 열림·지금 페이지(옛 post-20 — 마우스 올림 #E49575, 지금 페이지 보조색) */
.dth-hd .hd-c3953f9 .hd-c3953f9__horizontal .elementor-nav-menu .elementor-item:is(:hover, :focus, .highlighted) {
	color: #e49575;
	fill: #e49575;
}

.dth-hd .hd-c3953f9 .hd-c3953f9__horizontal .elementor-nav-menu .elementor-item.elementor-item-active {
	color: #e49575;
	fill: #e49575;
}

.dth-hd .hd-c3953f9 .hd-c3953f9__horizontal .elementor-nav-menu .elementor-item.elementor-item-active {
	color: var(--e-global-color-secondary);
}

.dth-hd .hd-c3953f9 .hd-c3953f9__horizontal .elementor-nav-menu .elementor-item:is(.highlighted, .elementor-item-active)::after {
	opacity: 1;
}

/* 펼침 메뉴: 마우스 올림·지금 페이지(옛 post-20 — 글자 흰색, 바탕 #234695) */
.dth-hd .hd-c3953f9 .hd-c3953f9__container .elementor-nav-menu a:is(:hover, :focus, .highlighted, .elementor-item-active) {
	color: #ffffff;
	background-color: #234695;
}

.dth-hd .hd-c3953f9 .hd-c3953f9__horizontal .elementor-nav-menu .elementor-sub-item:is(:hover, :focus, .highlighted, .elementor-item-active) {
	color: #ffffff;
	background-color: #234695;
}

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

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

.dth-hd .hd-c3953f9__toggle.is-open .hd-c3953f9__open {
	display: none;
}

.dth-hd .hd-c3953f9__toggle.is-open .hd-c3953f9__close {
	display: block;
}

/* 진료 케이스 거르기 결과가 없을 때(옛 Loop Grid .e-loop-nothing-found-message — 빈 칸, 위아래 30px) */
.dth-p .e-loop-nothing-found-message {
	color: #1f2124;
	padding-block-end: 30px;
	padding-block-start: 30px;
	text-align: center;
}

.dth-p .e-loop-nothing-found-message[hidden] {
	display: none;
}

/*
 * 등장 효과(옛 Elementor entrance animation — .elementor-invisible 로 감췄다가 화면에 들어오면 .animated + 효과 이름).
 * 동작은 carousel.js(data-dth-anim · data-dth-delay). 이 사이트는 모두 「느리게」(animated-slow, 2초).
 * 효과 모양은 옛 elementor/assets/lib/animations/styles/*.css 그대로. 슬라이드 글 등장(contentAnim)도 같은 효과를 쓴다.
 */
[data-dth-anim]:not(.dth-animated) {
	visibility: hidden;
}

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

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

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

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

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

.dth-fadeInLeft {
	animation-name: dth-fadeInLeft;
}

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

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

	to {
		opacity: 1;
	}
}

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

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

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

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

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

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

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

	50% {
		opacity: 1;
	}
}

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