﻿/*
Theme Name: 소아암재단 2026
Theme URI: https://soaam.net
Author: dmain inc.
Author URI: https://dmain.io
Description: 소아암재단 테마
Version: 1.0
*/

/* 기본 리셋 */
html {
	box-sizing: border-box;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: clip;
}

*,
*::before,
*::after {
	box-sizing: inherit;
}

html,
body {
	margin: 0;
	padding: 0;
	min-width: 320px;
}

body {
	--admin-bar-height: 0px;
	--top-banner-height: 0px;
	--site-header-height: 100px;
	--hero-sub-banner-height: 94px;
	color: #111;
	background: #fff;
	font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	word-break: keep-all;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
svg,
video,
canvas,
iframe {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}

body.has-top-banner {
	--top-banner-height: 100px;
}

body.top-banner-closed {
	--top-banner-height: 0px;
}

body.admin-bar {
	--admin-bar-height: 32px;
}

/* 전체 레이아웃 */
.container {
	max-width: 1248px;
	padding-left: 24px;
	padding-right: 24px;
	margin: 0 auto;
}

/* 페이지 하단 여백 */
.pb-page {
	padding-bottom: 160px;
}
.pc_only {display: block;}
.mo_only {display: none;}
@media (max-width: 768px) {
	.pb-page {
		padding-bottom: 80px;
	}
    .pc_only {display: none;}
    .mo_only {display: block;}
}

/* icon-wrap: 아이콘 + 말풍선 세트 그룹 */
.icon-wrap {
	position: relative !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
}

/* bubble: CSS 말풍선 텍스트 길이 자동 조절 */
.wp-block-paragraph.bubble {
	position: absolute !important;
	top: 0 !important;
	left: 50% !important;
	transform: translate(-50%, -100%) !important;
	background: #fff !important;
	color: #555 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	padding: 5px 10px !important;
	border-radius: 20px !important;
	white-space: nowrap !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
	margin: 0 !important;
	pointer-events: none !important;
	z-index: 2 !important;
	width: max-content !important;
}

/* 말풍선 꼬리 */
.wp-block-paragraph.bubble::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #fff;
}

/* ma: 이미지 가운데 정렬 */
.wp-block-image.ma img,
.wp-block-image.ma {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* jc-center */
.jc-center { justify-content: center !important; }

/* shadow-l */
.shadow-l { box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.30) !important;}

/* full: Columns 블록 전체 너비 차지 */
.wp-block-columns.full {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* 상단 배너 */
.top-banner {
	position: fixed;
	top: var(--admin-bar-height);
	left: 0;
	width: 100%;
	height: 100px;
	z-index: 200;
	background: #111;
	color: #fff;
}

.top-banner[hidden] {
	display: none;
}

.top-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	height: 100%;
	position: relative;
}

.top-banner__content {
	display: flex;
	align-items: center;
	gap: 28px;
	min-width: 0;
	flex: 1;
}

.top-banner__image {
	flex: 0 0 auto;
	max-height: 100px;
	width: auto;
}

.top-banner__text {
	display: flex;
	align-items: center;
	gap: 32px;
	min-width: 0;
}

.top-banner__title {
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
	white-space: nowrap;
}

.top-banner__desc {
	font-size: 16px;
	line-height: 24px;
	white-space: normal;
}

.top-banner__actions {
	position: relative;
	width: 210px;
	height: 100%;
	flex: 0 0 210px;
}

.top-banner__close {
	position: absolute;
	top: 0;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 44px;
	background: #ff4a7e;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	font-weight: 300;
}

.top-banner__dismiss {
	position: absolute;
	right: 0;
	bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	font-weight: 500;
	cursor: pointer;
}

.top-banner__dismiss-input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: #ffffff;
}

.top-banner__dismiss-label {
	white-space: nowrap;
}

/* 헤더 */
.site-header {
	width: 100%;
	padding: 0 64px;
	height: 100px;
	display: flex;
	align-items: center;
	position: fixed;
	left: 0;
	top: calc(var(--admin-bar-height) + var(--top-banner-height));
	background: #fff;
    border-bottom: 1px solid #999;
	transition: background 0.3s, color 0.3s;
	z-index: 100;
}

.site-header-spacer {
	height: calc(var(--top-banner-height) + var(--site-header-height));
}
.site-header .header-inner {
	display: flex;
	align-items: center;
	width: 100%;
	height: 100%;
}
.site-header .logo {
	display: flex;
	align-items: center;
	height: 100%;
    margin-top: -3px;
}
.site-header .logo-img {
	height: 45px;
	width: auto;
	filter: none;
	transition: filter 0.3s;
}
.site-header .main-nav {
	margin-left: 72px;
	height: 100%;
	display: flex;
	align-items: center;
}
.site-header .header-util {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 32px;
	height: 100%;
}
.site-header .util-nav {
	height: 100%;
	display: flex;
	align-items: center;
}
.site-header .util-menu-list {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	height: 100%;
}
.site-header .util-menu-list > li,
.site-header .util-menu-list > li > a {
	display: flex;
	align-items: center;
	height: 100%;
}
.site-header .util-menu-list > li > a,
.site-header .header-search {
	color: #222;
	font-size: 20px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s;
    white-space: nowrap;
}
.site-header .header-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
}
.site-header .header-search i {
	font-size: 28px;
	line-height: 1;
}
.site-header .header-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 124px;
	height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ff78a3 0%, #ef4d85 100%);
	box-shadow: 0 6px 18px rgba(239, 77, 133, 0.28);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	font-weight: 800;
	text-decoration: none;
}
.site-header .gnb {
	display: flex;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
}
.site-header .gnb > li {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}
.site-header .gnb > li > a {
	color: #222;
	font-size: 22px;
    line-height: 24px;
	font-weight: 800;
	text-decoration: none;
	padding: 0 32px;
	height: 100%;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
	transform: translateY(0);
	transition: color 0.3s, transform 0.25s ease;
}

.site-header .gnb > li > a::after {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 32px;
	height: 14px;
	background: #fce4a7;
	opacity: 0;
	transform: scaleX(0.6);
	transform-origin: center;
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
	z-index: -1;
}

.site-header .gnb > li:hover > a::after,
.site-header .gnb > li:focus-within > a::after {
	opacity: 1;
	transform: scaleX(1);
}

.site-header .gnb > li:hover > a,
.site-header .gnb > li:focus-within > a {
	transform: translateY(-2px);
}

.site-header .gnb > li.current-menu-item > a::after,
.site-header .gnb > li.current-menu-ancestor > a::after,
.site-header .gnb > li.current_page_item > a::after,
.site-header .gnb > li.current-page-ancestor > a::after {
	background: #ffd85a;
	opacity: 1;
	transform: scaleX(1);
}

/* 메가메뉴 2단계 active 하이라이트(분홍) */
.site-header .mega-menu__grid > li.current-menu-item > a,
.site-header .mega-menu__grid > li.current-menu-ancestor > a {
	color: #111;
}
.site-header .mega-menu__grid > li.current-menu-item > a::after,
.site-header .mega-menu__grid > li.current-menu-ancestor > a::after {
	content: "";
	position: absolute;
	left: -4px;
	right: -4px;
	bottom: 10px;
	height: 12px;
	background: #FFF2D2;
	opacity: 1;
	transform: none;
	z-index: -1;
}
/* is-submenu-stack active: padding-right:16px 보정 */
.site-header .mega-menu__grid > li.is-submenu-stack.current-menu-item > a::after,
.site-header .mega-menu__grid > li.is-submenu-stack.current-menu-ancestor > a::after {
	right: 12px;
}
/* 메가메뉴 3단계 active 하이라이트(연분홍) */
.site-header .mega-menu__grid > li > .sub-menu li.current-menu-item > a {
	color: #111;
	position: relative;
}
.site-header .mega-menu__grid > li > .sub-menu li.current-menu-item > a::after {
	content: "";
	position: absolute;
	left: -2px;
	right: -2px;
	bottom: 2px;
	height: 10px;
	background: #FFF2D2;
	opacity: 1;
	z-index: -1;
}

/* 메가메뉴 전체 너비 100% */
.site-header .gnb > li > .mega-menu {
	position: fixed;
	height: 382px;
	left: 0;
	right: 0;
	top: calc(var(--admin-bar-height) + var(--top-banner-height) + var(--site-header-height));
	width: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	z-index: 90;
	background: #fff;
	border-top: 1px solid #ebe5d8;
	box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.site-header .gnb > li:hover > .mega-menu,
.site-header .gnb > li:focus-within > .mega-menu,
.site-header .gnb > li.is-mega-open > .mega-menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.site-header .mega-menu__inner {
	width: 100%;
	padding: 48px 64px 48px 396px;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: start;
	column-gap: 24px;
	position: relative;
	z-index: 1;
}

.site-header .mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(4, 180px);
	grid-template-rows: repeat(6, minmax(44px, auto));
	grid-auto-rows: minmax(44px, auto);
	gap: 0 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-content: start;
	min-width: 0;
}

.site-header .mega-menu__grid > li {
	grid-column: var(--mega-column) / span 1;
	grid-row: var(--mega-row) / span 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 12px;
}

.site-header .mega-menu__grid > li.is-submenu-stack {
	position: relative;
}

.site-header .mega-menu__grid > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0;
	color: #636466;
	font-size: 20px;
	line-height: 28px;
	font-weight: 700;
	text-decoration: none;
	transform: translateX(0);
	transition: color 0.25s ease, transform 0.25s ease;
}
.site-header .mega-menu__grid > li.external > a::after{
	content: '\f14c';
    font-family: "Font Awesome 7 Pro";
    font-weight: 600;
    font-size: 24px;
    color: #f05b89;
    position: absolute;
    top: 50%;
	right:-30px;
    transform: translateY(-50%) translateX(0);
    pointer-events: none;
    line-height: 1;
}

.site-header .mega-menu__grid > li > a:hover,
.site-header .mega-menu__grid > li > a:focus-visible {
	color: #F05B89;
	transform: translateX(2px);
}

.site-header .mega-menu__grid > li.is-submenu-stack > a {
	min-height: 48px;
	margin-bottom: 0;
	color: #636466;
	font-weight: 700;
	grid-column: 1;
	grid-row: 1;
	white-space: nowrap;
	position: relative;
	z-index: 1;
	padding-right: 16px;
}
.site-header .mega-menu__grid > li.is-submenu-stack > a::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	z-index: -2;
}

.site-header .mega-menu__grid > li > .sub-menu {
	display: none;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}

.site-header .mega-menu__grid > li.is-submenu-stack > .sub-menu {
	position: absolute;
	left:198px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 24px;
	align-items: center;
	min-height: 48px;
}
.site-header .mega-menu__grid > li.is-submenu-stack > .sub-menu::before {
	content: "";
	position: absolute;
	display: block;
	left: -198px;
	right: calc(100% + 16px);
	top: 50%;
	height: 1px;
	background-color: #ccc;
	transform: translateY(-50%);
}
.site-header .mega-menu__grid > li.is-submenu-stack > .sub-menu a {
	font-size: 18px;
}

.site-header .mega-menu__grid > li > .sub-menu li {
	width: max-content;
	min-width: 0;
}

.site-header .mega-menu__grid > li > .sub-menu li a {
	display: inline-flex;
	align-items: center;
	padding: 0;
	color: #636466;
	font-size: 17px;
	line-height: 1.45;
	font-weight: 600;
	text-decoration: none;
	word-break: keep-all;
	transition: color 0.25s ease;
}

.site-header .mega-menu__grid > li > .sub-menu li a:hover,
.site-header .mega-menu__grid > li > .sub-menu li a:focus-visible {
	color: #F05B89;
}

.site-header .mega-menu__aside {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	column-gap: 24px;
	align-items: center;
	width:338px;
	min-width: 0;
    justify-items: end
}

.site-header .mega-menu__banner-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.site-header .mega-menu__banner-dot {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #ffd26b;
	opacity: 0.9;
	transition: background-color 0.25s ease, height 0.25s ease, transform 0.25s ease;
}

.site-header .mega-menu__banner-dot.is-active {
	height: 62px;
	background: #F05B89;
}

.site-header .mega-menu__banner-stage {
	position: relative;
	width: 100%;
	max-width: 282px;
	aspect-ratio: 1 / 1;
}

.site-header .mega-menu__banner-card {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(180deg, #f9d8e4 0%, #efc7d7 100%);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.site-header .mega-menu__banner-card.is-active {
	opacity: 1;
	transform: translateY(0);
}

.site-header .mega-menu__banner-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-header .mega-menu__banner-copy {
	position: absolute;
	left: 24px;
	top: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #fff;
	text-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.site-header .mega-menu__banner-eyebrow {
	font-size: 12px;
	line-height: 1.45;
	font-weight: 500;
	opacity: 0.92;
}

.site-header .mega-menu__banner-title {
	font-size: 22px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.04em;
}

/* 메인페이지 헤더: 투명/화이트 */
.site-header.is-main {
	background: transparent;
    border:transparent;
}
.site-header.is-main .logo-img,
.site-header.is-main .gnb > li > a,
.site-header.is-main .util-menu-list > li > a,
.site-header.is-main .header-search {
	color: #fff;
	filter: brightness(0) invert(1);
}

.site-header.is-main .gnb > li:hover > a,
.site-header.is-main .gnb > li:focus-within > a,
.site-header.is-main .gnb > li.current-menu-item > a,
.site-header.is-main .gnb > li.current-menu-ancestor > a,
.site-header.is-main .gnb > li.current_page_item > a,
.site-header.is-main .gnb > li.current-page-ancestor > a {
	color: #222;
	filter: none;
}
.site-header.is-main.scrolled,
.site-header.is-main.hovered,
.site-header.is-main.mega-open {
	background: #fff;
}
.site-header.is-main.scrolled .logo-img,
.site-header.is-main.hovered .logo-img,
.site-header.is-main.mega-open .logo-img,
.site-header.is-main.scrolled .gnb > li > a,
.site-header.is-main.hovered .gnb > li > a,
.site-header.is-main.mega-open .gnb > li > a,
.site-header.is-main.scrolled .util-menu-list > li > a,
.site-header.is-main.hovered .util-menu-list > li > a,
.site-header.is-main.mega-open .util-menu-list > li > a,
.site-header.is-main.scrolled .header-search,
.site-header.is-main.hovered .header-search,
.site-header.is-main.mega-open .header-search {
	color: #222;
	filter: none;
}

body.is-main-page .site-header-spacer {
	display: none;
}

body.is-main-page .main-hero-section {
	margin-top: var(--top-banner-height);
}

.main-hero-section {
	position: relative;
	min-height: calc(100vh - var(--admin-bar-height) - var(--top-banner-height));
	min-height: calc(100svh - var(--admin-bar-height) - var(--top-banner-height));
}

.main-hero-slider {
	position: relative;
	min-height: inherit;
}

.main-banner {
	position: absolute;
	inset: 0;
	min-height: calc(100vh - var(--admin-bar-height) - var(--top-banner-height));
	min-height: calc(100svh - var(--admin-bar-height) - var(--top-banner-height));
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.6s ease, visibility 0.6s ease;
}

.main-banner.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.main-banner__inner {
	--hero-title-bg: #efefef;
	--hero-title-color: #4d5060;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	min-height: calc(100vh - var(--admin-bar-height) - var(--top-banner-height));
	min-height: calc(100svh - var(--admin-bar-height) - var(--top-banner-height));
	padding: 0 24px calc(var(--hero-sub-banner-height) + 24px) 24px;
}

.main-banner__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	margin-bottom: 56px;
	font-size: 56px;
	line-height: 72px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--hero-title-color);
}

.main-banner__title-line {
	display: inline-block;
	padding: 0 12px;
	background: var(--hero-title-bg);
}

.main-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px 28px 12px 112px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
	color: #5f6170;
	font-size: 26px;
	line-height: 1;
	font-weight: 700;
	position: relative;
	overflow: visible;
}

.main-banner__cta.main-banner__cta--no-image {
	padding-left: 40px;
}

.main-banner__cta-icon {
	position: absolute;
	left: 12px;
	bottom: 0;
	width: auto;
	height: auto;
	max-width: 100px;
	max-height: 100px;
	object-fit: contain;
}

.main-banner__cta-arrow {
	font-size: 24px;
	line-height: 1;
	font-weight: 500;
}

.main-hero-controls {
	position: absolute;
	left: 50%;
	bottom: calc(var(--hero-sub-banner-height) + 64px);
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 0 24px;
	z-index: 4;
}

.main-hero-pagination {
	display: flex;
	align-items: center;
	gap: 12px;
}

.main-hero-dot {
	position: relative;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 0;
	background: #fff;
	padding: 0;
	overflow: hidden;
	transition: width 0.3s ease, background 0.25s ease;
}

.main-hero-dot.is-active {
	width: 100px;
	border: 3px solid #fff;
	background: #fff;
}

.main-hero-dot::after {
	content: "";
	position: absolute;
	inset: 0;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #f05b89;
}

.main-hero-dot.is-active.is-animating::after {
	animation: hero-progress-fill var(--hero-progress-duration, 4500ms) linear forwards;
}

.main-hero-section.is-paused .main-hero-dot.is-active.is-animating::after {
	animation-play-state: paused;
}

.main-hero-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	color: #fff;
	position: relative;
}

.main-hero-toggle__pause,
.main-hero-toggle__play {
	display: block;
	position: relative;
}

.main-hero-toggle__pause {
	width: 14px;
	height: 18px;
}

.main-hero-toggle__pause::before,
.main-hero-toggle__pause::after {
	content: "";
	position: absolute;
	top: 0;
	width: 5px;
	height: 100%;
	background: currentColor;
}

.main-hero-toggle__pause::before {
	left: 0;
}

.main-hero-toggle__pause::after {
	right: 0;
}

.main-hero-toggle__play {
	display: none;
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 14px solid currentColor;
	margin-left: 2px;
}

.main-hero-toggle.is-paused .main-hero-toggle__pause {
	display: none;
}

.main-hero-toggle.is-paused .main-hero-toggle__play {
	display: block;
}

@keyframes hero-progress-fill {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

/* 스토리 슬라이더 dot */
.story-dot {
	position: relative;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: #FFD166;
	overflow: hidden;
	flex-shrink: 0;
	transition: width 0.3s ease, background 0.25s ease;
	cursor: pointer;
}

.story-dot.is-active {
	width: 48px;
	background: #F05B89;
}

/* 스토리 카테고리 배지 */
.story-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
}
.story-badge--sponsor {
    background-color: #F05B89;
    color: #fff;
}
.story-badge--support {
    background-color: #F6A8BA;
    color: #B40037;
}

.hero-sub-banner {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100%;
	height: var(--hero-sub-banner-height);
	transform: translateX(-50%);
	padding: 0 24px;
	z-index: 2;
	pointer-events: none;
}

.hero-sub-banner__inner {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 24px;
	height: 100%;
	align-items: end;
}

.hero-sub-banner__item {
	display: flex;
	align-items: center;
    justify-content: center;
	gap: 20px;
	height: 94px;
	padding: 0 16px;
	border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #FFE19C -60.11%, #FFF 100%);
    box-shadow: 0 4px 12px 0 #FFF inset;
	backdrop-filter: blur(6px);
	position: relative;
	overflow: hidden;
	pointer-events: auto;
}

.hero-sub-banner__item::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	border-bottom: 2px dashed rgba(99, 100, 102, 0.18);
}

.hero-sub-banner__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
}

.hero-sub-banner__icon-image {
	max-width: 60px;
	max-height: 60px;
	width: auto;
	height: auto;
}

.hero-sub-banner__icon-fa {
	font-size: 30px;
	line-height: 1;
	color: #f26ea4;
}

.hero-sub-banner__title {
	color: #636466;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.w100 { width:100%;}

/* 신청서 페이지 헤더 숨김 */
.page-template-template-applicant .entry-header { display: none;}




/* footer */
.site-footer {
    border-top:1px solid #343232;
	padding: 32px 0 56px;
	background: #fff;
	color: #5e6170;
}

.site-footer__top {
	display: grid;
	grid-template-columns: auto auto 1fr auto;
	align-items: center;
	column-gap: 40px;
	row-gap: 24px;
}

.site-footer__logo-link {
	display: inline-flex;
	align-items: center;
}

.site-footer__logo {
	width: 228px;
	height: auto;
    margin-top: -3px;
}

.footer-policy-menu {
	display: flex;
	align-items: center;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-policy-menu li a {
	color: #555560;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	text-decoration: none;
}
.footer-policy-menu li:last-child a {
    font-weight: 400;
}

.site-footer__partners {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 36px;
	min-width: 0;
}

.site-footer__partner-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.site-footer__partner-logo {
	height: 40px;
	width: auto;
	max-width: 180px;
}

.site-footer__socials {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f7adc3;
	color: #fff;
	font-size: 22px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	background: #F05B89;
}
.site-footer__social-link svg {
	max-width:28px;
    fill:#fff;
}

.site-footer__divider {
	height: 1px;
	margin: 32px 0 38px;
	background: #999;
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: start;
	column-gap: 56px;
	row-gap: 32px;
}

.site-footer__info {
	font-size: 18px;
	line-height: 32px;
	font-weight: 500;
}

.site-footer__line strong {
	font-weight: 800;
	color: #555560;
}

.site-footer__line span {
	margin: 0 10px;
	color: #a0a3b1;
}

.site-footer__copyright {
	margin-top: 32px;
	font-size: 16px;
	line-height: 24px;
	color: #555560;
}

.site-footer__award {
	display: flex;
	justify-content: center;
	padding-top: 8px;
    align-items: center;
    gap:24px;
}
.site-footer__award a.guidestar {
    width:127px;
}
.site-footer__award a.kine {
    width:92px;
}
.site-footer__award-image {
	width: 100%;
	height: auto;
}

.site-footer__accounts {
	display: flex;
    gap: 36px
}

.site-footer__accounts-title {
	color: #333645;
	font-size: 18px;
	line-height: 32px;
	font-weight: 800;
}

.site-footer__accounts-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__accounts-list li {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 14px;
	font-size: 18px;
	line-height: 32px;
	font-weight: 500;
}

.site-footer__accounts-list li span {
	color: #4f5261;
	font-weight: 700;
}

.site-footer__accounts-list li strong {
	color: #676a78;
	font-weight: 500;
}

.site-footer__account-copy {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	border: 0;
	background: transparent;
	color: #676a78;
	font-weight: 500;
	line-height: inherit;
	cursor: pointer;
	text-align: left;
}

.site-footer__account-copy:hover,
.site-footer__account-copy:focus-visible {
	color: #ef4d85;
	text-decoration: underline;
	text-underline-offset: 3px;
}


/* =============================================================
   ACF 지원서 양식 (template-applicant.php)
   style.css에서 로드한 acf-field.css 이후 로드하므로 !important 필요

/* --- 폰트 리셋/박스 기본 --- */
.acf-form,
.acf-form * {
    font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    box-sizing: border-box;
}

/* --- 폰트 리셋/박스 기본 --- */
.acf-form .acf-fields {
    display: block !important;
    width: 100%;
}

/* ACF가 .acf-fields에 display:table !important 강제 적용 무력화 */
.acf-form ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ul 기본 여백/패딩 제거 */
/* ACF가 .acf-field에 display:table-row 강제 적용 무력화 */
.acf-form > .acf-fields > .acf-field {
    display: grid !important;
    grid-template-columns: 282px 1fr;
    column-gap: 24px;
    align-items: start;
    padding: 24px 0;
    border: none;
    margin: 0;
    background: transparent;
}
.acf-form > .acf-fields > .acf-field.hide-field {
    display: none!important
}
.acf-form .acf-true-false { min-height: 48px; display: flex; align-items: center; }
.acf-form .acf-true-false label { display: flex; align-items: center; cursor: pointer; }
.acf-form .acf-true-false input[type="checkbox"] {
    appearance: none !important;
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    margin: 0 8px 0 0 !important;
}
.acf-form .acf-true-false input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -62%) scale(0) rotate(45deg);
    width: 5px; height: 9px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transition: transform 0.15s;
}
.acf-form .acf-true-false input[type="checkbox"]:checked {
    background: #F05B89;
    border-color: #F05B89;
}
.acf-form .acf-true-false input[type="checkbox"]:checked::after {
    transform: translate(-50%, -62%) scale(1) rotate(45deg);
}
/* > 직접 자식 선택자. group 내부 .acf-fields에는 적용되지 않음 */
/* acf-hidden 필드는 JS 숨기기 전 display:grid !important 덮어쓰기 처리 */
.acf-form > .acf-fields > .acf-field.acf-hidden,
.acf-form > .acf-fields > .acf-field[data-type="acfe_hidden"],
.acf-form > .acf-fields > .acf-field.js-page-hidden {
    display: none !important;
}


/* 최상위 .acf-fields에만 적용 (group sub-fields 제외) */

/* --- 레이블 (컬럼 1) --- */
.acf-form > .acf-fields > .acf-field > .acf-label {
    grid-column: 1;
    padding: 10px 0 0;
    margin: 0;
    min-width: 0;
    border: none;
    background: transparent;
}

.acf-form .acf-label label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 20px;
    font-weight: 700;
    color: #343232;
    line-height: 1.5;
    margin: 0!important;
}

.acf-form .acf-label .acf-required {
    color: #F05B89;
    font-weight: 700;
    font-size: 16px;
    margin-left: 1px;
}

/* 레이블 description은 JS로 .acf-input 쪽으로 이동하므로 기본 숨김 */
.acf-form .acf-label p.description,
.acf-form .acf-label p.acf-instructions {
    display: none;
}

/* acf-input 쪽으로 이동한 description */
.acf-form .acf-input p.description,
.acf-form .acf-input p.acf-instructions {
    display: block;
    font-size: 16px;
    color: #636466;
    margin: 16px 0 0;
    line-height: 1.7;
}

/* acf-input 내 ul 기본 목록 스타일 */
.acf-form .acf-input ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 8px 0;
}
.acf-form .acf-input ul li {
    list-style: disc;
}

/* acf-input 내 링크 p1 색상 + 밑줄 */
.acf-form .acf-input a {
    color: #F05B89;
    text-decoration: underline;
	font-weight: 700;
}
.acf-form .acf-input a:hover {
    color: #F05B89;
    text-decoration: underline;
    opacity: 0.75;
}

/* ACF가 .acf-input에 display:table-cell 강제 적용 무력화 */
.acf-form > .acf-fields > .acf-field > .acf-input {
    display: block !important;
    grid-column: 2;
    padding: 0;
    min-width: 0;
}

.acf-form .acf-input .acf-input-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ACF가 input에 border/padding/background를 !important 강제 적용 무력화 */
.acf-form input[type="text"],
.acf-form input[type="email"],
.acf-form input[type="number"],
.acf-form input[type="tel"],
.acf-form input[type="url"],
.acf-form input[type="password"] {
    width: 100%;
    max-width: 480px;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #aaa !important;
    border-radius: 4px;
    font-size: 18px!important;
    color: #343232;
    background: #fff !important;
    outline: none;
    box-shadow: none !important;
    -webkit-appearance: none;
    transition: border-color 0.15s;
}

.acf-form input[type="text"]:focus,
.acf-form input[type="email"]:focus,
.acf-form input[type="number"]:focus,
.acf-form input[type="tel"]:focus,
.acf-form input[type="url"]:focus {
    border-color: #F05B89 !important;
    box-shadow: 0 0 0 3px rgba(240, 91, 137, 0.10) !important;
}

.acf-form input::placeholder { color: #C0C0C0; }

.acf-form textarea {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 12px 16px !important;
    border: 1px solid #aaa !important;
    border-radius: 4px;
    font-size: 18px!important;
    color: #343232;
    background: #fff !important;
    outline: none;
    box-shadow: none !important;
    resize: vertical;
    transition: border-color 0.15s;
}

.acf-form textarea:focus {
    border-color: #F05B89 !important;
    box-shadow: 0 0 0 3px rgba(240, 91, 137, 0.10) !important;
}
.acf-fields.-border {border:none!important;}
/* ACF가 select에 width/padding/background를 !important 강제 적용 무력화 (appearance:none 제거 시 브라우저 기본 드롭다운 → !important 필요) */
.acf-form select {
    height: 48px !important;
    padding: 0 40px 0 16px !important;
    border: 1px solid #aaa !important;
    border-radius: 4px;
    font-size: 18px!important;
    color: #343232;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%23636466' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: auto !important;
    min-width: 110px;
    cursor: pointer;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.15s;
}

.acf-form select:focus {
    border-color: #F05B89 !important;
    box-shadow: 0 0 0 3px rgba(240, 91, 137, 0.10) !important;
}

/* ACF Repeater 가로 테이블 레이아웃 재정의 (layout: table)
   ACF가 <table class="acf-table">를 직접 생성 → flex row로 재정의하여 체크박스/라디오 선택지를 가로로 표시 */

/* 테이블 전체: flex column (thead + tbody 순서) */
.acf-form .acf-table {
    display: flex !important;
    flex-direction: column;
    border: none !important;
    border-collapse: unset !important;
    width: auto !important;
    background: transparent !important;
}

/* 헤더(체크박스/라디오 컬럼명) 숨김
   대신 레이블의 select 옵션 텍스트로 대체 표시 */
.acf-form .acf-table thead {
    display: none !important;
}

/* tbody, tr: flex row로 */
.acf-form .acf-table tbody,
.acf-form .acf-table .acf-row {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    border: none !important;
}

/* 각 항목(td): 테이블 배치 제거, block으로 */
.acf-form .acf-table td.acf-field {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 0 !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    margin: 0 !important;
    flex: 0 0 auto;
    min-width: 0;
    vertical-align: unset !important;
}

/* td 내의 .acf-input */
.acf-form .acf-table td.acf-field > .acf-input {
    display: block !important;
    padding: 0 !important;
}

/* td 내의 select */
.acf-form .acf-table td.acf-field select {
    width: auto !important;
    min-width: 110px;
    max-width: none !important;
}

/* 라디오/체크박스 가로 배열 목록
   column-gap 대신 li margin-left + 컬럼 수 여백 조절 활용
   → 모든 항목의 좌측 여백이 컬럼 수에 따라 정렬 */
/* ACF가 ul 내에 빈 값 전달하는 input[type=hidden]을 직접 삽입 - flex item이 되어 gap이 벌어지므로 제거 */
.acf-form .acf-radio-list > input[type="hidden"],
.acf-form .acf-checkbox-list > input[type="hidden"] {
    display: none !important;
}

.acf-form .acf-radio-list,
.acf-form .acf-checkbox-list {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
}

.acf-form .acf-radio-list,
.acf-form .acf-checkbox-list { row-gap: 16px;  margin: 12px 0 0 -24px !important;}

.acf-form .acf-radio-list > li,
.acf-form .acf-checkbox-list > li {
    display: flex !important;
    margin: 0 0 0 24px !important;
    padding: 0 !important;
}

.acf-form .acf-radio-list li label,
.acf-form .acf-checkbox-list li label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #343232;
    cursor: pointer;
    line-height: 1;
}

/* 라디오 버튼 */
.acf-form .acf-radio-list input[type="radio"] {
    appearance: none !important;
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    margin: 0 !important;
}

.acf-form .acf-radio-list input[type="radio"]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.15s;
}

.acf-form .acf-radio-list input[type="radio"]:checked {
    background: #F05B89;
    border-color: #F05B89;
}

.acf-form .acf-radio-list input[type="radio"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

/* 체크박스 */
.acf-form .acf-checkbox-list input[type="checkbox"] {
    appearance: none !important;
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    margin: 0 !important;
}

.acf-form .acf-checkbox-list input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -62%) scale(0) rotate(45deg);
    width: 5px; height: 9px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transition: transform 0.15s;
}

.acf-form .acf-checkbox-list input[type="checkbox"]:checked {
    background: #F05B89;
    border-color: #F05B89;
}

.acf-form .acf-checkbox-list input[type="checkbox"]:checked::after {
    transform: translate(-50%, -62%) scale(1) rotate(45deg);
}

.acf-form .acf-checkbox-list .acf-other-input,
.acf-form .acf-checkbox-list input.other-input {
    max-width: 180px;
    height: 38px !important;
    padding: 0 12px !important;
    font-size: 14px;
    border-radius: 6px;
}

/* 오류 표시 --- */
.acf-form .acf-field.acf-error > .acf-input input,
.acf-form .acf-field.acf-error > .acf-input select,
.acf-form .acf-field.acf-error > .acf-input textarea {
    border-color: #F05B89 !important;
    box-shadow: 0 0 0 3px rgba(240, 91, 137, 0.10) !important;
}

/* 제출 버튼 — ACF 기본 submit 숨김 처리 (pager에서 관리하는 버튼을 사용) */
.post-35 .acf-form .acf-form-submit,
.post-1420 .acf-form .acf-form-submit,
.post-1044 .acf-form .acf-form-submit {
    display: none !important;
}

/* step_pager (이전 / 다음 버튼) --- */
.step_pager {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: #fff;
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 32px 0;
    border-top: 1px solid #aaa;
}

/* JS 제어 상태 클래스 */
.step_pager .page_btn.inactive { opacity: 0.35; pointer-events: none; }
.step_pager .page_btn.disabled { opacity: 0.35; cursor: not-allowed; }
.step_pager .page_btn.pager-btn-hidden { display: none !important; }
/* 필수 항목 오류 메시지 */
.step_pager_msg {
    position: absolute;
    bottom: -40px;
    right: 24px;
    text-align: right;
    color: #e0507a;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 공통 팝업 */
/* 사용법:
   HTML: <div class="ui-modal" id="my-modal">
             <div class="ui-modal__overlay"></div>
             <div class="ui-modal__box">
                 <button class="ui-modal__close" aria-label="닫기"><i class="fa-solid fa-xmark"></i></button>
                 <h3 class="ui-modal__title">제목</h3>
                 <div class="ui-modal__body">내용</div>
                 <div class="ui-modal__footer">
                     <button class="ui-modal__btn">확인</button>
                 </div>
             </div>
         </div>
   JS:  $('#my-modal').addClass('is-open');
        $('#my-modal .ui-modal__overlay, #my-modal .ui-modal__close').on('click', function(){ $('#my-modal').removeClass('is-open'); });
*/
.ui-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ui-modal.is-open {
    display: flex;
}
.ui-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}
.ui-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    padding: 36px 32px 28px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    animation: ui-modal-in 0.22s ease;
}
@keyframes ui-modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}
.ui-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(to bottom, #F05B89, #F386A4);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.15s;
}
.ui-modal__close:hover { opacity: 0.82; }
.ui-modal__title,
.editor-styles-wrapper .ui-modal__title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #F05B89 !important;
    margin: 0 0 16px !important;
    padding: 0;
    line-height: 1.4 !important;
}
.ui-modal__body {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 24px;
}
.ui-modal__footer {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.ui-modal__btn {
    height: 48px;
    padding: 0 32px;
    border-radius: 9999px;
    border: none;
    background: linear-gradient(to bottom, #F05B89, #F386A4);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.ui-modal__btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ui-modal__btn.secondary {
    background: linear-gradient(to bottom, #FFA5BA, #FFC0CF);
    color: #CB2D5A;
}

/* ACF Repeater / 파일 업로드 스타일 */
.acf-repeater .acf-table {
    display: block;
    border: none !important;
}
.acf-repeater .acf-table tbody,
.acf-repeater .acf-table tfoot { display: block; }

.acf-repeater .acf-table tr.acf-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
/* 순서 숫자 숨김 */
.acf-repeater .acf-table td.order { display: none !important; }
/* 파일 컬럼 */
.acf-repeater .acf-table td:not(.order):not(.remove) {
    flex: 1;
    padding: 0 !important;
    border: none !important;
}
.acf-repeater .acf-table td.remove {
    flex: 0 0 auto;
    padding: 0 !important;
    border: none !important;
}
/* 반복 항목 내 label 숨김 */
.acf-repeater .acf-row .acf-field > .acf-label { display: none !important; }
/* tfoot 추가 버튼 스타일 */
.acf-repeater .acf-table tfoot td {
    padding: 12px 0 0 !important;
    border: none !important;
}

/* 파일 업로더 레이아웃 */
.acf-file-uploader {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.acf-file-uploader .acf-file-value { font-size: 14px; color: #555; }
.acf-file-uploader .acf-file-filename { font-weight: 500; word-break: break-all; }
.acf-file-uploader p { margin: 0 !important; display: flex; gap: 8px; flex-wrap: wrap; }

/* 파일 업로더/삭제 버튼 */
.acf-button.button.acf-button-upload-file,
.acf-repeater .acf-actions .acf-button.button {
    display: inline-flex !important;
    align-items: center !important;
    height: 40px !important;
    padding: 0 20px !important;
    background: #fff !important;
    border: 1.5px solid #F05B89 !important;
    border-radius: 24px !important;
    color: #F05B89 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    box-shadow: none !important;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.acf-button.button.acf-button-upload-file:hover,
.acf-repeater .acf-actions .acf-button.button:hover {
    background: #F05B89 !important;
    color: #fff !important;
}
.acf-button.button.acf-button-remove-file {
    border-color: #ddd !important;
    color: #aaa !important;
}
.acf-button.button.acf-button-remove-file:hover {
    background: #eee !important;
    color: #888 !important;
}
/* 행 삭제 아이콘 */
.acf-repeater .acf-icon.-minus {
    background: transparent !important;
    border: 1.5px solid #ddd !important;
    border-radius: 50% !important;
    color: #bbb !important;
    width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
}
.acf-repeater .acf-icon.-minus:hover {
    border-color: #F05B89 !important;
    color: #F05B89 !important;
}

/* ACF 공지 메시지 (성공/오류)
   ACF가 .acf-notice에 스타일 강제 적용 무력화 */
.acf-form > .acf-notice {
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    font-size: 15px !important;
}

/* 기타 스타일 --- */

/* ACF Group 내부 sub-fields 스타일
   group의 inner .acf-fields는 최상위 .acf-fields가 아니므로 > .acf-fields > .acf-field 셀렉터가 적용되지 않음 → 별도 규칙 필요 */
.acf-form .acf-field[data-type="group"] .acf-fields {
    display: block !important;
    width: 100%;
    padding: 0;
}

.acf-form .acf-field[data-type="group"] .acf-fields > .acf-field {
    display: flex !important;
    flex-direction: column;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    background: transparent;
    margin: 0;
    width: 100% !important;
}

.acf-form .acf-field[data-type="group"] .acf-fields > .acf-field:last-child {
    border-bottom: none;
}

.acf-form .acf-field[data-type="group"] .acf-fields > .acf-field > .acf-label {
    padding: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    border: none;
    background: transparent;
}

.acf-form .acf-field[data-type="group"] .acf-fields > .acf-field > .acf-label label {
    font-size: 15px;
    font-weight: 600;
}

.acf-form .acf-field[data-type="group"] .acf-fields > .acf-field > .acf-input {
    display: block !important;
    padding: 0;
    width: 100%;
}

/* Side Line Headline */
.side-line {
    display: flex;
    align-items: center;
    gap: 1em;
    white-space: nowrap;
}
.side-line::before,
.side-line::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: currentColor;
}

/* ==========================================================================
   파트너스(후원하는 기업) 로고 리스트 + 팝업 레이아웃
   ========================================================================== */

/* 로고 리스트 */
.plist {
    display: grid;
    grid-template-columns: repeat(5, 224px);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.plist li {
    overflow: hidden;
}

.plist li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 224px;
    height: 100px;
    cursor: pointer;
}

.plist li a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.15s;
}

.plist li a:hover img {
    opacity: 0.8;
}

/* 배경 딤드 */
.modal-dimmed {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 8000;
    background: rgba(0, 0, 0, 0.16);
    cursor: pointer;
}

.modal-dimmed.is-open {
    display: block;
}

/* 팝업 레이아웃 */
.modal {
    display: none;
    position: fixed;
    z-index: 8001;
    /* top/left/transform은 JS에서 동적 지정 */
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.modal.is-open {
    display: block;
    animation: partner-modal-in 0.22s ease;
}

@keyframes partner-modal-in {
    from { opacity: 0; transform: translateX(-50%) translateY(calc(-100% + 8px)); }
    to   { opacity: 1; transform: translateX(-50%) translateY(-100%); }
}

/* 말풍선 꼬리 위치(가로 오프셋) — left는 JS에서 --modal-arrow-left 변수로 변경 */
.modal::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: var(--modal-arrow-left, 50%);
    transform: translateX(-50%);
    border: 16px solid transparent;
    border-top-color: #fff;
    border-bottom: none;
}

/* 닫기 버튼 */
#modal_close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(to bottom, #F05B89, #F386A4);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.15s;
}

#modal_close:hover {
    opacity: 0.85;
}

/* 이름 */
.modal h2,
#partner_name {
    font-size: 20px;
    font-weight: 700;
    color: #343232;
    margin: 0 0 6px;
    padding-right: 28px;
}

/* 날짜 */
#partner_date {
    display: block;
    font-size: 16px;
    color: #999999;
    margin-bottom: 16px;
}

/* 구분선 */
#partner_date::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #ccc;
    margin: 16px 0;
}

/* 설명 */
#partner_description {
    font-size: 14px;
    color: #343232;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* 하단 버튼 */
.modal .modal-actions {
    display: flex;
    gap: 10px;
}

#partner_homepage,
#partner_tag {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 32px;
    background: linear-gradient(to bottom, #F05B89, #F386A4);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

#partner_homepage:hover,
#partner_tag:hover {
    opacity: 0.88;
}

.root_daum_roughmap .cont {display: none;}
/* 파트너 섹션 끝 */



/* 명예의전당 */

/* 탭 컨트롤러 */
.dh-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 64px;
}

.dh-tab {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.dh-tab.is-active {
    opacity: 1;
}

.dh-tab:hover {
    opacity: 0.8;
}

.dh-tab img {
    display: block;
    height: 166px;
    width: auto;
}

/* 아이템 리스트 */
.dhlist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dhlist__item {
    flex: 0 0 282px;
}

.dhlist__item a {
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
    aspect-ratio: 282 / 376;
	padding: 36px 24px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.25);
    transition: opacity 0.15s;
    overflow: hidden;
}

.dhlist__item--gold a{
    background-image: url('img/bg_gold.webp');
}

.dhlist__item--grand a{
    background-image: url('img/bg_grand.webp');
}

.dhlist__item--noble a{
    background-image: url('img/bg_noble.webp');
}

.dhlist__item a:hover {
    opacity: 0.85;
}

.dhlist__item a img {
    width: 100%;
    object-fit: cover;
	border-radius: 12px;
}

.dhlist__title {
	display: block;
    margin: 16px 0 0;
    font-size: 24px;
	line-height: 36px;
    font-weight: 700;
	color:#fff;
}

.dhlist__date {
	display: block;
    font-size: 18px;
	line-height: 34px;
    color: #fff;
    margin: 0;
}

/* empty state */
.dh-empty {
    padding: 0;
    text-align: center;
}

.dh-empty img {
    max-width: 1200px;
    width: 100%;
    height: auto;
}

/* 모달 */
.dh-modal {
    display: none;
    position: fixed;
    z-index: 8001;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 400px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.dh-modal.is-open {
    display: block;
    animation: partner-modal-in 0.22s ease;
}

.dh-modal::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: var(--modal-arrow-left, 50%);
    transform: translateX(-50%);
    border: 16px solid transparent;
    border-top-color: #fff;
    border-bottom: none;
}

#dh_modal_close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2A54A1;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.15s;
}

#dh_modal_close:hover { opacity: 0.85; }

.dh-modal__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dh-modal__badge {
    flex-shrink: 0;
    text-align: center;
    width: 60px;
}

.dh-modal__badge img {
    height: 100%;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.dh-modal__badge #dh_category_label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #2A54A1;
}

.dh-modal__header {
    flex: 1;
    text-align: left;
    padding-right: 28px;
}

#dh_name {
    font-size: 20px;
    font-weight: 700;
    color: #343232;
    margin: 0 0 4px;
}

#dh_date {
    display: block;
    font-size: 16px;
    color: #999;
}

.dh-modal__divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 14px 0;
}

.dh-modal__body {
    font-size: 14px;
    color: #343232;
    line-height: 1.7;
    margin-bottom: 20px;
}

.dh-modal .modal-actions {
    display: flex;
    gap: 10px;
}

#dh_tag {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 32px;
    background: #2A54A1;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s;
}

#dh_tag:hover { opacity: 0.88; }

/* 끝 */



/* =============================================================
   [kakao_share] 숏코드 — 카카오톡 공유하기
   ============================================================= */
.kakao-share-wrap {
	width:100%;
	max-width: 996px;
	padding:0 24px;
	margin: 80px auto 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.kakao-share-bubble {
    display: flex;
    align-items: center;
    gap: 16px;
	margin-right: -130px;
    margin-bottom: -38px;
    position: relative;
    z-index: 1;
}

.kakao-share-mascot {
    display: block;
    width: 136px;
    height: auto;
    flex-shrink: 0;
}

.editor-styles-wrapper p.kakao-share-bubble__text {
    font-size: 20px;
    font-weight: 700;
    color: #E24878;
    margin: 0 0 18px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Tag search badge */
.tag-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    height: 32px;
    padding: 0 16px;
    background: #E24878;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 검색 결과 카드 썸네일 */
.search-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.search-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.group:hover .search-card__thumb img {
    transform: scale(1.04);
}

.kakao-share-row {
	position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
	z-index: 2;
}

.kakao-share-label {
    font-size: 24px;
	line-height: 48px;
    font-weight: 800;
    color: #555560;
    white-space: nowrap;
    flex-shrink: 0;
	margin-right: 32px;
}

.kakao-share-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 5px solid #FBE300;
    border-radius: 9999px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
    padding: 0 0 0 24px;
    height: 64px;
    gap: 12px;
    min-width: 0;
}

.kakao-share-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 18px !important;
    color: #343232 !important;
    box-shadow: none !important;
    padding: 0 !important;
    height: auto !important;
    max-width: 100% !important;
}

.kakao-share-input::placeholder {
    color: #bbb;
}

.kakao-share-counter {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width:96px;
    font-size: 16px;
	padding: 0;
    color: #333;
	background-color:#eee ;
    white-space: nowrap;
    flex-shrink: 0;
}

.kakao-share-btn {
    height: 64px;
    padding: 0 36px 0 32px;
    border-radius: 9999px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
    border: none;
    background: #FBE300;
    color: #343232;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.kakao-share-btn:hover {
    opacity: 0.85;
}

/* 증서 신청 */
.blood_certifcate_box,
.donation_certifcate_box {padding-bottom: 160px;}
/* =============================================================
   후원 증서 (Step 4) — template-donation-certificate.php
   ============================================================= */

/* 전체 배경 — 컨테이너 밖으로 full-width */
.cert-page-wrap {
    position: relative;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    background: #FDF8ED;
    padding: 100px 16px 160px;
}

/* A4 스테이지 — 중앙 정렬 */
.cert-stage {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}

/* A4 용지 (588×832px) */
.cert-a4 {
    position: relative;
    width: 588px;
    min-height: 832px;
    background: #fff;
    padding: 32px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

/* 배경 심볼 */
.cert-bg-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* 외각선 (padding 32px 위치) */
.cert-border {
    position: relative;
    z-index: 1;
    min-height: calc(832px - 64px);
    border: 3px solid #F6A8BA;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 발급번호 */
.editor-styles-wrapper p.cert-issue-no {
    align-self: flex-start;
    font-size: 11px;
    color: #000;
    margin: 0 0 32px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* 제목 */
.editor-styles-wrapper h2.cert-title {
    font-size: 40px !important;
    font-weight: 700 !important;
    color: #000 !important;
    letter-spacing: 0.15em;
    margin: 0 0 48px !important;
    line-height: 1.2 !important;
    text-align: center;
}

/* 사진 + 정보 영역 */
.cert-info-row {
    display: flex;
    align-items:center;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 36px;
    align-self: stretch;
}

/* 사진 wrap (항상 표시) */
.cert-photo-wrap {
    flex: 0 0 50%;
    display: flex;
    align-items: flex-start;
	justify-content: center;
}

/* 사진 */
.cert-photo {
    height: 100%;
	max-height: 160px;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    display: block;
	margin-right: 24px;
}

/* 정보 DL */
.cert-info {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex: 0 0 50%;
}

.cert-info__row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 18px;
}

.cert-info__row dt {
    width: 75px;
    font-weight: 700;
    color: #343232;
    flex-shrink: 0;
}

.cert-info__row dd {
    margin: 0;
    color: #343232;
}

/* 본문 */
.editor-styles-wrapper p.cert-body {
    font-size: 18px ;
    line-height: 2;
    color: #343232;
    text-align: center;
    margin: auto;
	display: flex;
	align-items: center;
}

/* 하단 서명 영역 */
.cert-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 36px;
}

.editor-styles-wrapper p.cert-footer__date {
    font-size: 18px;
    color: #000;
    margin: 0;
    text-align: center;
}

.cert-footer__sign {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #000;
    padding-right: 36px;
}

.cert-footer__org,
.cert-footer__name {
    font-size: 20px;
	font-weight: 700;
    color: #000;
}

/* 직인 — absolute 오버랩 */
.cert-stamp {
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: auto;
    pointer-events: none;
}

.cert-footer__logo {
    height: 32px;
    width: auto;
    margin: 16px auto 24px;
}

/* 발행 버튼 */
.cert-print-btn {
    margin-top: 8px;
}

/* 버튼 로딩 스피너 */
.cert-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cert-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes cert-spin {
    to { transform: rotate(360deg); }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0; /* JS로 동적 조정 */
    left: 0;
    right: 0;
    height: 300px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
    transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #999;
}
.search-overlay:not([hidden]) {
    clip-path: inset(0 0 0% 0);
    pointer-events: auto;
}
.search-overlay[hidden] {
    display: flex !important;
    clip-path: inset(0 0 100% 0);
    pointer-events: none;
}
.search-dimmed {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-dimmed.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.search-overlay__inner {
    width: 100%;
    max-width: 760px;
    padding: 0 24px;
    position: relative;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.search-overlay__form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    padding: 6px 6px 6px 28px;
}
.search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    color: #222;
    background: transparent;
    padding: 10px 0;
}
.search-overlay__input::placeholder {
    color: #bbb;
}
.search-overlay__btn {
    flex-shrink: 0;
    height: 52px;
    padding: 0 32px;
    background: #E24878;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.search-overlay__btn:hover {
    background: #c73060;
}
.search-overlay.is-content-visible .search-overlay__inner {
    opacity: 1;
}
.search-overlay__close {
    position: absolute;
    top: 24px;
    right: 96px;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 56px;
    color: #222;
    transition: color 0.2s;
}
.search-overlay__close:hover {
    color: #E24878;
}
.search-overlay.is-content-visible .search-overlay__close {
    opacity: 1;
}
@media (max-width: 768px) {
    .search-overlay {
        height: auto;
        padding: 32px 0;
    }
    .search-overlay__input {
        font-size: 15px;
    }
    .search-overlay__btn {
        height: 44px;
        padding: 0 20px;
        font-size: 14px;
    }
}

/* =================================================================
   모바일 메뉴 컴포넌트 (기본값 — 표시/숨김 제어는 responsive.css)
   ================================================================= */

/* 햄버거 버튼 — 기본값은 숨김, 1024px 이하에서 표시 */
.mob-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #222;
    margin-left: auto;
    flex-shrink: 0;
}
.mob-menu-toggle i {
    font-size: 28px;
    line-height: 1;
}

/* 모바일 메뉴 패널 */
.mob-menu {
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}
.mob-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

/* hidden 속성이 있어도 flex 레이아웃 유지 (transform 애니메이션용) */
.mob-menu[hidden] {
    display: flex !important;
}

/* 모바일 메뉴 헤더 */
.mob-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
}
.mob-menu__logo-img {
    height: 30px;
    width: auto;
}
.mob-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #222;
    font-size: 28px;
    flex-shrink: 0;
}
.mob-menu__topper {
    background-color: #f1f1f1;
    padding:16px 24px
}
.mob-menu__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding:0;
}

/* 검색 영역 */
.mob-menu__search-wrap {
    margin-bottom: 12px;
}
.mob-menu__search-form {
    display: flex;
    align-items: center;
    gap: 0;
    height: 52px;
    padding: 4px 4px 4px 20px;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    background: #f8f8f8;
    overflow: hidden; /* 실제 모바일에서 버튼이 pill 밖으로 삐져나오는 것 방지 */
}
.mob-menu__search-form:focus-within {
    border-color: #ef4d85;
    background: #fff;
    margin-bottom: 0;
}
.mob-menu__search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #222;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.mob-menu__search-input:focus {
    background: transparent;
}
.mob-menu__search-btn {
    flex-shrink: 0;
    height: 42px;
    padding: 0 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff78a3 0%, #ef4d85 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* 유틸 메뉴 (ENG, 기부금영수증, 나의 후원, 후원하기) */
.mob-menu__util {
    display: flex;
    align-items: center;
    gap: 2vw;
    flex-wrap: nowrap;
    justify-content: space-between;
}
.mob-util-list {
    display: flex;
    gap: 2vw;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex: 1;
}
.mob-util-list > li {
    flex: 1;
}
.mob-util-list > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    padding: 0 3vw;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    background: #fff;
    white-space: nowrap;
    
}
.mob-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff78a3 0%, #ef4d85 100%);
    box-shadow: 0 4px 12px rgba(239, 77, 133, 0.28);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

/* GNB 2컬럼 영역 */
.mob-menu__gnb {
    flex: 1;
    margin: 0;
    min-height: 220px;
}
.mob-gnb {
    display: flex;
    height: 100%;
    padding-top: 24px;
    padding-left: 16px;
}

/* 좌측 탭 목록 */
/* 모바일 GNB 탭+배너 래퍼 */
.mob-gnb__tabs-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 120px;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.mob-gnb__tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}
.mob-gnb__tab {
    position: relative;
    cursor: pointer;
}
.mob-gnb__tab a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 0 0 28px;
    font-size: 17px;
    font-weight: 800;
    color: #777;
    text-decoration: none;
    line-height: 56px;
    word-break: keep-all;
}
.mob-gnb__tab.is-active a {
    color: #f05b89;
    background: #FFF2D2;
    border-radius: 28px 0 0 36px;
}

/* 모바일 GNB 배너 */
.mob-banner {
    width: 104px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
}
.mob-banner__stage {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.mob-banner__card {
    position: absolute;
    inset: 0;
    display: none;
    text-decoration: none;
}
.mob-banner__card.is-active {
    display: block;
}
.mob-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mob-banner__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 104px;
}
.mob-banner__prev,
.mob-banner__next {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F05B89;
    color: #fff;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.mob-banner__prev:hover,
.mob-banner__next:hover {
    opacity: 0.8;
}
.mob-banner__dots {
    display: flex;
    align-items: center;
    gap: 4px;
}
.mob-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD166;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s;
}
.mob-banner__dot.is-active {
    background: #F05B89;
}

/* 우측 서브메뉴 패널 */
.mob-gnb__panels {
    flex: 1;
    background: #FFF2D2;
    overflow-y: auto;
}
.mob-gnb__panel {
    display: none;
    list-style: none;
    margin: 0;
    padding: 8px 24px 24px;
}
.mob-gnb__panel.is-active {
    display: block;
}
.mob-gnb__sub-item {
    border-bottom:1px solid #AAAAAA;
}
.mob-gnb__sub-item a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.mob-gnb__sub-item a:hover,
.mob-gnb__sub-item a:focus {
    color: #E24878;
}

/* 2뎁스 row (링크 + +/- 버튼) */
.mob-gnb__sub-row {
    display: flex;
    align-items: center;
}
.mob-gnb__sub-row > a {
    flex: 1;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 48px;
    color: #555560;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.mob-gnb__sub-row > a:hover,
.mob-gnb__sub-row > a:focus {
    color: #f05b89;
}

/* +/- 토글 버튼 */
.mob-gnb__toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #f05b89;
    font-size: 14px;
    padding: 0;
}

/* 3뎁스 목록 (기본 hidden) */
.mob-gnb__grand {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
}
.mob-gnb__grand[hidden] {
    display: none;
}
.mob-gnb__grand-item a {
    display: block;
    padding: 0;
    font-size: 16px;
    line-height: 48px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    border-top: 1px solid #D9D9D9;
    transition: color 0.15s;
}
.mob-gnb__grand-item:last-child a {
    border-bottom: none;
}
.mob-gnb__grand-item a:hover,
.mob-gnb__grand-item a:focus {
    color: #f05b89;
}

/* 현재 페이지 메뉴 링크 */
.mob-gnb__sub-row > a.is-current,
.mob-gnb__grand-item a.is-current {
    color: #f05b89;
    font-weight: 700;
}

/* 딤드 오버레이 */
.mob-menu-dimmed {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.32s, visibility 0.32s;
    visibility: hidden;
    pointer-events: none;
}
.mob-menu-dimmed.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mob-menu-dimmed[hidden] {
    display: block !important;
}

/* ================================================================
   후원자님 메시지 카드
   ================================================================ */
.msg-card__sticker {
    position: absolute;
    width: 28.37%;   /* 80/282 */
    aspect-ratio: 80 / 42;
}
.msg-card__body {
    display: flex;
    flex-direction: column;
    padding: 15%;
    flex: 1;
}
.msg-card__name {
    font-size: 20px;
    font-weight: 700;
    color: #343232;
    margin-top: 4px;
    margin-bottom: 20px;
}
.msg-card__text {
    font-size: 18px;
    color: #555560;
    line-height: 2;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.msg-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: auto;
}
.msg-card__tag {
    font-size: 16px;
    font-weight: 700;
    color: #F05B89;
}
.msg-card__sep,
.msg-card__date {
    font-size: 16px;
    color: #636466;
}
.acf-form > .acf-fields > .acf-field[data-name="show_message"],
.acf-form > .acf-fields > .acf-field[data-name="delivered"] { display: none!important; }

/* ── 관리자 열람 페이지 (single-treatment) ── */
body.single-treatment .entry-title {
    font-size: 36px;
    margin: 64px 0 32px;
}
body.single-treatment .acf-field-acfe-recaptcha,
body.single-treatment [data-type="acfe_recaptcha"],
body.single-treatment .acf-field-message,
body.single-treatment [data-type="message"] {
    display: none !important;
}
body.single-treatment .acf-form .acf-label p.description,
body.single-treatment .acf-form .acf-label p.acf-instructions,
body.single-treatment .acf-form .acf-input p.description,
body.single-treatment .acf-form .acf-input p.acf-instructions {
    display: none !important;
}

/* ── 관리자 열람 페이지 인쇄(PDF) 설정 ── */
@page {
    @bottom-right {
        content: counter(page) " / " counter(pages);
        font-size: 9pt;
        color: #888;
    }
}
@media print {
    body.single-treatment {
        zoom: 0.5;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    body.single-treatment .entry-title {
        margin-top: 0 !important;
    }
    body.single-treatment #site-header,
    body.single-treatment .site-footer,
    body.single-treatment .treatment-download-wrap,
    body.single-treatment .editor-styles-wrapper {
        display: none !important;
    }
    [data-type="acfe_recaptcha"],
    [data-type="message"] {
        display: none !important;
    }
    body.single-treatment #primary {
        max-width: 100%;
        padding: 0;
    }
    body.single-treatment textarea {
        overflow: visible !important;
        resize: none !important;
    }
}

/* FAQ 섹션 래퍼 padding */
.wp-block-group:has(.faq-wrap) { padding-bottom: 160px !important; margin-bottom: 0 !important; }
.wp-block-group:has(> .faq-wrap) { padding-bottom: 0 !important; }
