* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: "Pretendard-Medium", "Noto Sans KR", Arial, sans-serif;
    font-size: 14.5px;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    body.main .main-contents-img .slide img,
    #contents img {
        animation: imgFadeIn 1.2s ease both;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    body.main .main-contents-img .slide img,
    #contents img {
        animation-duration: 1.8s;
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.main .main-contents-img .slide img {
        animation: none;
    }

    body.main .main-contents-img .slide.active img {
        animation: imgFadeIn 1.2s ease both;
    }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    body.main .main-contents-img .slide.active img {
        animation-duration: 1.8s;
    }
}

@keyframes imgFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

input, textarea, select, button {
    font-family: inherit;
}

.hamburger-menu {
    display: none !important;
}

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ============================================== layout */
#wrap {
    min-height: 100vh;   /* fallback */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

#contents {
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px 24px 140px;
    flex: 1;
}

.header-top {
    position: relative;
    width: 100%;
}

/* header(ci + gnb) */
#header {
    width: 100%;
    min-height: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    z-index: 10;
    margin-bottom: 0;
    --header-pad: 100px;
    --gnb-offset: 20px;
    --depth2-shift: 24px;
    position: sticky;
    top: 0;
    transition: height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    isolation: isolate;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.88));
    pointer-events: none;
    z-index: 0;
}

#header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 138, 163, 0.22), transparent);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}
/* header */
#header .inner {
    display: flex;
    align-items: center;
    min-height: 100px;
    height: 100px;
    padding: 0 var(--header-pad);
    position: relative;
    transition: height 0.2s ease;
    z-index: 1;
}

/* header  */
.header-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.header-nav-area {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    gap: 24px;
    height: 100%;
    min-width: 0;
    margin-left: auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}


.header-utility {
    position: absolute;
    top: 50%;
    right: var(--header-pad);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
    z-index: 20;
    transition: transform 0.2s ease;
}

.admin-utility {
    position: relative;
    margin: 0;
}

.admin-utility summary {
    list-style: none;
}

.admin-utility summary::-webkit-details-marker {
    display: none;
}

.admin-utility .admin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(0, 143, 169, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, #00a6bb, #008fa9);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 143, 169, 0.16);
    user-select: none;
}

.admin-utility .admin-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 132px;
    padding: 8px;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.admin-utility[open] .admin-dropdown,
.admin-utility:hover .admin-dropdown,
.admin-utility:focus-within .admin-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-utility[open] .admin-toggle,
.admin-utility:hover .admin-toggle,
.admin-utility:focus-within .admin-toggle {
    filter: brightness(0.98);
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.2);
}

.admin-dropdown .admin-dropdown-head {
    display: grid;
    gap: 0;
    padding: 0 2px 4px;
}

.admin-dropdown .admin-dropdown-id {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.admin-dropdown .admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 143, 169, 0.18);
    background: #f8fbfd;
    color: #0f172a;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.admin-dropdown .admin-link.admin-home {
    background: linear-gradient(135deg, #00a6bb, #008fa9);
    border-color: transparent;
    color: #fff;
}

.admin-dropdown .admin-link.admin-logout:hover,
.admin-dropdown .admin-link.admin-logout:focus-visible {
    background: #eef6fb;
    border-color: rgba(0, 143, 169, 0.28);
}

.admin-dropdown .admin-link.admin-home:hover,
.admin-dropdown .admin-link.admin-home:focus-visible {
    filter: brightness(0.96);
}

.lang-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    border: 1px solid #d7e3ea;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1f2937;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    width: fit-content;
    isolation: isolate;
}

.lang-switch-mobile {
    display: none;
}

.lang-switch .lang-link {
    position: relative;
    z-index: 1;
    min-width: 40px;
    color: inherit;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.lang-switch .lang-link.is-active {
    color: #fff;
}

.lang-switch .lang-link:hover {
    color: #0f172a;
}

.lang-switch .lang-link.is-active:hover {
    color: #fff;
}

.lang-switch .lang-sep {
    display: none;
}

.lang-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: #0a8aa3;
    box-shadow: 0 6px 12px rgba(10, 138, 163, 0.28);
    transform: translateX(0);
    transition: transform 0.28s ease;
    z-index: 0;
    pointer-events: none;
}

html[lang="en"] .lang-switch::before {
    transform: translateX(100%);
    animation: langToggleEn 0.28s ease;
}

html[lang="ko"] .lang-switch::before {
    transform: translateX(0);
    animation: langToggleKo 0.28s ease;
}


@media (max-width: 768px) {
    .header-nav-area {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-left {
        gap: 10px;
    }

    .header-utility {
        display: none;
    }

    .lang-switch-mobile {
        display: inline-flex;
    }

    .lang-switch {
        padding: 3px;
        font-size: 11px;
    }

    .lang-switch .lang-link {
        min-width: 36px;
        padding: 5px 10px;
    }
}
#header .admin-status {
    position: static;
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    align-self: center;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 98px;
    padding: 6px 7px 7px;
    font-size: 12px;
    color: #35515a;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 252, 0.94));
    border: 1px solid rgba(0, 143, 169, 0.16);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

.admin-status .admin-status-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.admin-status .admin-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    color: #6b7280;
}

.admin-status .admin-id {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #1f2937;
}

.admin-status .admin-status-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-status .admin-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #008fa9;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    background: #008fa9;
    color: #fff;
}

.admin-status .admin-link:hover {
    border-color: #007d93;
    background: #007d93;
    color: #fff;
}

/* ============================================== header logo */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 60px;
    width: auto;
    transition: height 0.2s ease;
}

/* ============================================== gnb */
.ncsf-gnb {
    display: flex;
    margin-left: 0;
    align-self: flex-end;
    padding-bottom: 20px;
    transition: padding-bottom 0.2s ease;
}

@media (min-width: 769px) {
    body.is-header-compact #header,
    #header.is-compact {
        min-height: 72px;
        height: 72px;
        background: rgba(255, 255, 255, 0.76);
        border-bottom-color: rgba(226, 232, 240, 0.9);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    body.is-header-compact #header .inner,
    #header.is-compact .inner {
        min-height: 72px;
        height: 72px;
    }

    body.is-header-compact .header-logo img,
    #header.is-compact .header-logo img {
        height: 48px;
    }

    body.is-header-compact .ncsf-gnb,
    #header.is-compact .ncsf-gnb {
        padding-bottom: 10px;
    }

    body.is-header-compact #header,
    #header.is-compact {
        --depth2-shift: 14px;
    }

    body.is-header-compact .header-nav-area,
    #header.is-compact .header-nav-area {
        gap: 18px;
    }

    body.is-header-compact .header-utility,
    #header.is-compact .header-utility {
        right: calc(var(--header-pad) - 6px);
    }

    body.is-header-compact .ncsf-header.has-admin-status .header-nav-area,
    #header.is-compact.has-admin-status .header-nav-area {
        margin-right: 96px;
    }

    body.is-header-compact .admin-utility .admin-toggle,
    #header.is-compact .admin-utility .admin-toggle {
        min-height: 30px;
        padding: 0 12px;
        font-size: 11.5px;
    }

    body.is-header-compact .admin-utility .admin-dropdown,
    #header.is-compact .admin-utility .admin-dropdown {
        min-width: 126px;
        padding: 7px;
    }

    body.is-header-compact .admin-dropdown .admin-link,
    #header.is-compact .admin-dropdown .admin-link {
        min-height: 28px;
        font-size: 11px;
    }
}

.ncsf-header.has-lang-switch .ncsf-gnb {
    margin-top: 0;
}

.ncsf-header.has-admin-status .ncsf-gnb {
    margin-top: 0;
}

.ncsf-header.has-admin-status .header-nav-area {
    margin-right: 104px;
}

.ncsf-gnb .nav {
    display: flex;
    align-items: flex-start;
    gap: 55px;
    position: relative;
    padding: 8px 0 4px;
}

.ncsf-gnb .nav > li {
    position: relative;
    line-height: 1;
    z-index: 1;
}

.ncsf-gnb .nav > li.has-children::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: calc(var(--depth2-shift) + 18px);
}

.ncsf-gnb .nav > li > a {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 18px 12px;
    margin: 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.26s ease, transform 0.26s ease;
}

.ncsf-gnb .nav > li > a::before {
    display: none;
}

.ncsf-gnb .nav > li > a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10, 138, 163, 0.2), rgba(10, 138, 163, 0.95), rgba(10, 138, 163, 0.2));
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.ncsf-gnb .nav > li > a:hover,
.ncsf-gnb .nav > li > a:focus-visible,
.ncsf-gnb .nav > li:focus-within > a {
    color: #0a4f5b;
}

.ncsf-gnb .nav > li > a:hover::after,
.ncsf-gnb .nav > li > a:focus-visible::after,
.ncsf-gnb .nav > li:focus-within > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.ncsf-gnb .nav-hover-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 46px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(218, 244, 248, 0.88)),
        linear-gradient(135deg, rgba(10, 138, 163, 0.18), rgba(10, 138, 163, 0.04));
    border: 1px solid rgba(10, 138, 163, 0.14);
    box-shadow:
        0 14px 28px rgba(10, 138, 163, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
    transform: translate3d(var(--nav-indicator-x, 0px), -52%, 0);
    transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.ncsf-gnb .nav.is-indicator-visible .nav-hover-indicator {
    opacity: 1;
}

/* ============================================== depth(sub menu) */
#header .nav > li .depth2 {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, calc(var(--depth2-shift) + 4px)) scale(0.96);
    margin-top: 0;
    min-width: 170px;
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(0, 143, 169, 0.94), rgba(0, 176, 198, 0.9));
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 40px rgba(0, 93, 110, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.36s ease, transform 0.36s ease, visibility 0.36s ease;
    transform-origin: top center;
    overflow: hidden;
}

#header .nav > li .depth2::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 10px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    opacity: 0.7;
    pointer-events: none;
}

#header .nav > li .depth2 > li {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
    transition: opacity 0.34s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.34s ease;
}

#header .nav > li .depth2 > li:nth-child(1) { transition-delay: 40ms; }
#header .nav > li .depth2 > li:nth-child(2) { transition-delay: 85ms; }
#header .nav > li .depth2 > li:nth-child(3) { transition-delay: 130ms; }
#header .nav > li .depth2 > li:nth-child(4) { transition-delay: 175ms; }
#header .nav > li .depth2 > li:nth-child(5) { transition-delay: 220ms; }
#header .nav > li .depth2 > li:nth-child(6) { transition-delay: 265ms; }

#header .nav > li:hover > .depth2 > li,
#header .nav > li:focus-within > .depth2 > li,
#header .nav > li .depth2:hover > li {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}


/* hover */
#header .nav > li:hover > .depth2,
#header .nav > li:focus-within > .depth2,
#header .nav > li .depth2:hover {
    padding: 18px 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, var(--depth2-shift)) scale(1);
}

/* 
#header .nav > li:hover .depth2,
#header .nav > li:focus-within .depth2 {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
 */

/* hover gap  */
#header .nav > li .depth2::before {
    content: "";
    position: absolute;
    top: calc(-1 * (var(--depth2-shift) + 12px));
    left: 0;
    width: 100%;
    height: calc(var(--depth2-shift) + 12px);
}

#header .nav > li .depth2 a {
    display: block;
    padding: 11px 14px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    transition: transform 0.26s ease, background 0.26s ease, color 0.26s ease, box-shadow 0.26s ease;
}

@media (min-width: 769px) {
    #header .nav > li .depth2 a {
        position: relative;
        text-decoration: none;
    }

    #header .nav > li .depth2 a:hover,
    #header .nav > li .depth2 a:focus-visible {
        transform: translateX(6px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    }
}

/* ============================================== main page(body.main) */
body.main #header {
    border-bottom: none;
}

/*  body/footer  */
body.main #contents {
    padding: 0 24px 40px;
}


body.main .header-top {
    overflow: visible;
}

body.sub .header-top {
    height: auto;
}

body.main .main-contents-img {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    isolation: isolate;
    background: #0a4c58;
}

body.main .main-contents-img .slider {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.main .main-contents-img .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
    transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), transform 7s ease-out;
    will-change: opacity, transform;
}

body.main .main-contents-img .slide.active {
    opacity: 1;
    transform: scale(1.02);
    z-index: 1;
}

body.main .main-contents-img .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.main .slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

@media (min-width: 769px) {
    body.main .slider-dots {
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(6, 30, 40, 0.26);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 10px 24px rgba(2, 8, 23, 0.16);
        backdrop-filter: blur(8px);
    }
}

body.main .slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
}

body.main .slider-dots .dot.active {
    background: #fff;
}

body.main .main-contents-img .slider-meta {
    display: none;
}

@media (min-width: 769px) {
    body.main .main-contents-img {
        --hero-spot-x: 50%;
        --hero-spot-y: 42%;
    }

    body.main .main-contents-img .slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), rgba(207, 248, 255, 0.08) 30%, rgba(0, 143, 169, 0.24) 66%, rgba(0, 97, 114, 0.2) 100%);
        mix-blend-mode: soft-light;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.28s ease;
    }

    body.main .main-contents-img::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(44vw 44vw at var(--hero-spot-x) var(--hero-spot-y), rgba(148, 239, 250, 0.34), transparent 60%),
            linear-gradient(180deg, rgba(5, 31, 37, 0.03) 0%, rgba(0, 73, 86, 0.1) 38%, rgba(0, 66, 79, 0.22) 100%);
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        transition: background-position 0.3s ease, opacity 0.28s ease;
    }

    body.main .main-contents-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(90deg, rgba(0, 78, 93, 0.12), transparent 24%, transparent 76%, rgba(0, 78, 93, 0.1)),
            radial-gradient(circle at center, transparent 54%, rgba(0, 70, 84, 0.1) 100%);
        z-index: 2;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    body.main .main-contents-img:hover .slide.active::after,
    body.main .main-contents-img:focus-within .slide.active::after {
        opacity: 0.46;
    }

    body.main .main-contents-img:hover::before,
    body.main .main-contents-img:focus-within::before,
    body.main .main-contents-img:hover::after,
    body.main .main-contents-img:focus-within::after {
        opacity: 1;
    }

    body.main .main-contents-img .slide.active img {
        animation: imgFadeIn 1.3s ease both, heroPan 8.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
        will-change: transform;
    }

    body.main .main-contents-img .slide img {
        filter: saturate(1.1) contrast(1.02) brightness(1.12);
    }

    body.main .slider-dots {
        bottom: 46px;
        gap: 12px;
    }

    body.main .slider-dots .dot {
        width: 11px;
        height: 11px;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(7, 24, 32, 0.24);
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.08),
            0 4px 10px rgba(2, 8, 23, 0.16);
        transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
    }

    body.main .slider-dots .dot.active {
        transform: scale(1.12);
        background: #fff;
        border-color: rgba(0, 143, 169, 0.24);
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, 0.12),
            0 6px 14px rgba(2, 8, 23, 0.2);
    }

    body.main .main-contents-img .slider-progress {
        bottom: 28px;
        width: clamp(180px, 22vw, 300px);
    }

    body.main .main-contents-img .slider-meta {
        display: none !important;
    }
}

@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
    body.main .main-contents-img .slide.active img {
        animation: none;
        transform: none;
    }
}

body.main .main-contents-img .slider .slider-ripple {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    transform: scale(0);
    opacity: 0.75;
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

body.main .main-contents-img .slider .slider-ripple {
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.2);
    animation: sliderRippleWave 2600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    filter: blur(0.35px);
}

@keyframes sliderRippleWave {
    0% {
        transform: scale(0.04);
        opacity: 0.6;
    }
    70% {
        opacity: 0.35;
    }
    to {
        transform: scale(1.75);
        opacity: 0;
    }
}

body.main .main-contents-img .slider-progress {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: clamp(140px, 24vw, 260px);
    height: 4px;
    background: rgba(7, 24, 32, 0.26);
    border-radius: 999px;
    overflow: hidden;
    z-index: 19;
    pointer-events: none;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.14) inset,
        0 8px 18px rgba(2, 8, 23, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.main .main-contents-img .slider-progress .bar {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(90deg, rgba(196, 245, 252, 0.4), rgba(255,255,255,0.98) 55%, rgba(0,143,169,0.95));
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: 0 0 12px rgba(255,255,255,0.3);
}

body.main .main-contents-img .slider-progress .bar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(50%, -50%);
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 0 2px rgba(7, 24, 32, 0.18),
        0 0 12px rgba(0,143,169,0.7);
}

body.main .main-contents-img .slider-progress.is-animating .bar {
    animation: sliderProgress var(--slide-interval, 5000ms) linear both;
}

@keyframes sliderProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes heroPan {
    from {
        transform: scale(1.02) translate3d(var(--slide-pan-x, -1.5%), var(--slide-pan-y, 0.8%), 0);
    }
    to {
        transform: scale(1.09) translate3d(calc(var(--slide-pan-x, -1.5%) * -0.35), calc(var(--slide-pan-y, 0.8%) * -0.35), 0);
    }
}

/* ============================================== sub page(body.sub) */
body.sub .header-top {
    height: auto;
}

body.sub main {
    margin: 0;
    padding: 0;
}

body.sub #contents {
    padding-top: 80px;
}

body.sub #contents h1,
body.sub #contents h2,
body.sub #contents h3,
body.sub #contents h4,
body.sub #contents h5,
body.sub #contents h6 {
    margin-top: 0;
}

/* ============================================== sub(about page) */
body.sub #container #contents.about {
    padding-top: 24px;
    padding-bottom: 12px;
}

#contents.about {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px 120px;
}

#contents.about img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#contents.about h3 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: 40px;
}

#contents.about h3:not(:first-child) {
    margin-top: 120px;
}

#contents.about .intro {
    font-size: 21px;
    line-height: 1.9;
    font-weight: 400;
    color: #222;
    letter-spacing: -0.01em;
}

#contents.about p {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

#contents.about p + p {
    margin-top: 30px;
}

/* ============================================== sub(organizaion page) */
body.sub #container #contents.organization {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 12px;
}

/* easter egg (organization page) */
.easter-egg {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 420ms ease, visibility 0s linear 420ms;
}

.easter-egg.is-show {
    opacity: 1;
    visibility: visible;
    transition: opacity 420ms ease;
}

.easter-egg .egg-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(12, 12, 12, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 28px 36px;
    border-radius: 14px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 0.01em;
    white-space: pre-line;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
}

.easter-egg.is-show .egg-card {
    animation: eggPop 480ms ease forwards, eggPulse 2600ms ease-in-out 480ms infinite;
}

@keyframes eggPop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes eggPulse {
    0%,
    100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 255, 255, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .easter-egg {
        transition: none;
    }

    .easter-egg .egg-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ============================================== sub(ncsfci page) */
body.sub #container #contents.ncsfci {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px;
}

/* ============================================== sub(history page) */
body.sub #container #contents.history {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    padding-bottom: 12px;
}

/* ============================================== sub(location page) */
.sub.location #contents.location {
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 40px 160px;
}

.sub.location #contents.location h2 {
    text-align: center;
    padding-bottom: 20px;
    font-size: 40px;
    font-weight: 700;
    color: #222;
}

.sub.location .loc-map .img-wrap img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* temp: hide location image (keep markup for later use) */
.sub.location .loc-map .img-wrap {
    display: none;
}

.sub.location .loc-map .kakao-map {
    width: 100%;
    height: 520px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f3f3f3;
}

.sub.location .sec {
    padding: 40px 0;
    border-bottom: 1px solid #ddd;
}

.sub.location .sec:last-child {
    border-bottom: none;
}

.sub.location .info-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.sub.location .label {
    width: 120px;
    flex-shrink: 0;
    font-weight: 600;
    color: #222;
}

.sub.location .label-text {
    font-size: 16px;
}

.sub.location .btn-copy {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.sub.location .btn-copy img {
    width: 18px;
    height: 18px;
}

.sub.location .map-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.sub.location .btn-map {
    display: inline-block;
    min-width: 190px;
    height: 44px;
    line-height: 42px;
    padding: 0 32px;
    border: 1px solid #111;
    border-radius: 2px;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-align: center;
    background: #fff;
    transition: all 0.2s ease;
}

.sub.location .btn-map:hover {
    background: #111;
    color: #fff;
}

.sub.location .sec h3 {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
}

.sub.location .metro-list {
    display: block;
}

.sub.location .metro-list li {
    margin-bottom: 30px;
}

.sub.location .metro-list li:last-child {
    margin-bottom: 0;
}

.sub.location .metro-list p {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    color: #222;
    margin: 0;
}

.sub.location .metro-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    margin-right: 4px;
}

.sub.location .line-2 { background: #007d11; }
.sub.location .line-6 { background: #b4500a; }

.sub.location .bus-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #222;
    margin-bottom: 8px;
}

.sub.location .tag {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}

.sub.location .tag.bus.main  { background: #3d5bab; }
.sub.location .tag.bus.local { background: #5bb025; }
.sub.location .tag.bus.tour  { background: #f99d1c; }

.sub.location .info-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 17px;
    color: #666;
    white-space: nowrap;
}

.text-bold {
    font-weight: 700;
    color: #222;
}

.col_bl {
    color: #008fa9;
}

.col_or {
    color: #F88B00;
}

.col_gr {
    color: #666;
}

/* ============================================== sub(process page) */
body.sub #container #contents.processIng {
    max-width: none;
    padding: 24px 0 12px;
}

body.sub #container #contents.processIng .n_processIng {
    width: 100%;
    margin-bottom: 60px;
}

body.sub #container #contents.processIng .img_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

body.sub #container #contents.processIng .img_wrap img {
    width: 100%;
    height: auto;
    display: block;
}

body.sub #container #contents.processIng .content-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

body.sub #container #contents.processIng .youtube-player {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 40px;
}

body.sub #container #contents.processIng .youtube-player iframe {
    width: 100%;
    height: 675px;
    display: block;
    border: none;
}

/* ============================================== sub(notice page) */
body.sub.notice #contents.notice {
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 40px 160px;
}

.notice-title {
    font-size: 40px;
    font-weight: 700;
    color: #222;
    margin-bottom: 60px;
    text-align: center;
}

.notice-search {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.notice-bulk-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.notice-bulk-actions .notice-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.notice-bulk-actions .notice-check input {
    width: 16px;
    height: 16px;
    accent-color: #0a8aa3;
}

.notice-bulk-actions .input-text {
    height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #d8e2ea;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.notice-bulk-actions .btn-submit {
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #0a8aa3;
    background: #0a8aa3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(10, 138, 163, 0.22);
    transition: filter 0.2s ease, transform 0.2s ease;
}

.notice-bulk-actions .btn-submit:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.notice-search select {
    width: 100px;
    height: 40px;
    border: 1px solid #ddd;
    padding: 0 20px;
    margin-right: 5px;
    font-size: 14px;
}

.notice-search input {
    height: 40px;
    width: 260px;
    border: 1px solid #ddd;
    border-left: none;
    padding: 0 12px;
}

.notice-search button {
    height: 40px;
    min-width: 72px;
    width: auto;
    padding: 0 14px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.notice-top {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.btn-write {
    padding: 8px 25px;
    font-size: 14px;
    border: 1px solid #222;
    background: #fff;
    transition: 0.2s;
}

.btn-write:hover {
    background: #222;
    color: #fff;
}

.notice-table {
    width: 100%;
    table-layout: fixed;
    margin-top: 10px;
    border-top: 2px solid #000;
    border-collapse: collapse;
}

.notice-table td:nth-child(3) {
    text-align: center;
}

.notice-table thead {
    border-top: 2px solid #000;
}

.notice-table thead tr {
    height: 55px;
    background: #f5f5f5;
}

.notice-table thead th {
    background: #f5f5f5;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-align: center;
    vertical-align: middle;
    border-top: 2px solid #000;
    border-bottom: 1px solid #ddd;
    padding: 0 10px;
}

.notice-table tbody td {
    padding: 18px 12px;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.notice-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0a8aa3;
}

.notice-table td.title {
    text-align: left;
}

.notice-table td.title a {
    color: #222;
}

.notice-table td.title a:hover {
    text-decoration: underline;
}

.notice-table tr.notice {
    background: #fafafa;
}

.notice-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.notice-actions form {
    margin: 0;
}

.notice-actions .btn-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
    color: #0f172a;
    white-space: nowrap;
    transition: 0.2s;
}

.notice-actions .btn-list:hover {
    background: #eef2f7;
}

.notice-actions .btn-edit {
    border-color: rgba(0, 143, 169, 0.35);
    color: #0a8aa3;
    background: #ecfeff;
}

.notice-actions .btn-edit:hover {
    background: #cffafe;
    color: #0e7490;
}

.notice-actions .btn-delete {
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
    background: #fef2f2;
}

.notice-actions .btn-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.notice-table td:last-child {
    white-space: nowrap;
}

.badge-notice {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    background: #008fa9;
    color: #fff;
}

.notice-table img,
.notice-table .ico-file,
.ico-file-img {
    display: inline-block;
}

.notice-table .ico-file {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/common/icon/file_icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.notice-paging {
    margin-top: 40px;
    position: relative;
    z-index: 50;
    margin-bottom: 80px;
    text-align: center;
}

.notice-paging li {
    display: inline-block;
    margin: 0 4px;
}

.notice-paging a,
.notice-paging span {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    color: #888;
    pointer-events: auto;
    cursor: pointer;
}

.notice-paging .current {
    color: #008fa9;
    font-weight: 600;
}

/* admin notice (modern) */
body.sub.notice.admin #contents.notice.admin-notice {
    max-width: 1200px;
}

body.sub.notice.admin .notice-search,
body.sub.notice.admin .notice-bulk-actions {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

body.sub.notice.admin .notice-search {
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
}

body.sub.notice.admin .notice-search select,
body.sub.notice.admin .notice-search input {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    color: #0f172a;
}

body.sub.notice.admin .notice-search input {
    width: min(360px, 48vw);
    border-left: 1px solid #e2e8f0;
}

body.sub.notice.admin .notice-search select:focus,
body.sub.notice.admin .notice-search input:focus {
    outline: none;
    border-color: rgba(10, 138, 163, 0.65);
    box-shadow: 0 0 0 3px rgba(10, 138, 163, 0.15);
    background: #fff;
}

body.sub.notice.admin .notice-search button {
    height: 42px;
    border-radius: 12px;
    border: none;
    padding: 0 18px;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}

body.sub.notice.admin .notice-search button:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

body.sub.notice.admin .notice-bulk-actions {
    justify-content: space-between;
    margin-top: 14px;
    margin-bottom: 20px;
}

body.sub.notice.admin .notice-bulk-actions .input-text {
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: none;
}

body.sub.notice.admin .notice-bulk-actions .btn-submit {
    height: 38px;
    border-radius: 12px;
}

body.sub.notice.admin .notice-table {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.sub.notice.admin .notice-table thead tr,
body.sub.notice.admin .notice-table thead th {
    background: #f8fafc;
    border-top: none;
}

body.sub.notice.admin .notice-table thead th {
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    font-weight: 700;
}

body.sub.notice.admin .notice-table tbody td {
    border-bottom: 1px solid #edf1f5;
    color: #475569;
}

body.sub.notice.admin .notice-table tbody tr:hover {
    background: #f8fafc;
}

body.sub.notice.admin .notice-table tr.notice {
    background: #ecfeff;
}

body.sub.notice.admin .notice-table tr.notice:hover {
    background: #d9f7fb;
}

body.sub.notice.admin .badge-notice {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    box-shadow: 0 6px 12px rgba(0, 143, 169, 0.18);
}

body.sub.notice.admin .notice-actions .btn-list {
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
}

body.sub.notice.admin .notice-top {
    gap: 12px;
    margin-top: 18px;
}

body.sub.notice.admin .notice-top .btn-write {
    border-radius: 12px;
    border-color: transparent;
    font-weight: 700;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

body.sub.notice.admin .notice-top .btn-write:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 143, 169, 0.24);
}

body.sub.notice.admin .notice-top .btn-admin-home {
    background: #ecfeff;
    border-color: rgba(0, 143, 169, 0.35);
    color: #0a8aa3;
    box-shadow: none;
}

body.sub.notice.admin .notice-top .btn-admin-home:hover {
    background: #0a8aa3;
    border-color: #0a8aa3;
    color: #fff;
    filter: none;
    transform: none;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.18);
}

body.sub.notice.admin .notice-paging {
    margin-top: 32px;
}

body.sub.notice.admin .notice-paging a,
body.sub.notice.admin .notice-paging span {
    min-width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 10px;
    border: 1px solid transparent;
}

body.sub.notice.admin .notice-paging a:hover {
    border-color: rgba(10, 138, 163, 0.25);
    background: #ecfeff;
    color: #0a8aa3;
}

@media (max-width: 768px) {
    body.sub.notice.admin #contents.notice.admin-notice {
        padding: 96px 16px 130px;
    }

    body.sub.notice.admin .admin-header {
        margin-bottom: 24px;
    }

    body.sub.notice.admin .notice-search {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    body.sub.notice.admin .notice-search select,
    body.sub.notice.admin .notice-search input,
    body.sub.notice.admin .notice-search button {
        width: 100%;
        height: 44px;
        margin: 0;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    body.sub.notice.admin .notice-search input {
        border-left: 1px solid #e2e8f0;
    }

    body.sub.notice.admin .notice-search button {
        border: none;
    }

    body.sub.notice.admin .notice-bulk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    body.sub.notice.admin .notice-bulk-actions .notice-check {
        width: 100%;
    }

    body.sub.notice.admin .notice-bulk-actions .input-text,
    body.sub.notice.admin .notice-bulk-actions .btn-submit {
        width: 100%;
        height: 40px;
        border-radius: 12px;
    }

    body.sub.notice.admin .notice-top {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    body.sub.notice.admin .notice-top .btn-write {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    body.sub.notice.admin .notice-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-top-width: 1px;
    }

    body.sub.notice.admin .notice-table thead tr,
    body.sub.notice.admin .notice-table tbody tr {
        white-space: nowrap;
    }
}

/* ============================================== sub(notice_view page) */
body.sub.notice.view #contents.notice-view {
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 40px 160px;
}

.notice-view .notice-title {
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #222;
}

.notice-view .view-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 2px solid #000;
    border-bottom: 1px solid #ddd;
}

.notice-view .view-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-view .badge-notice {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: #008fa9;
    color: #fff;
    line-height: 1;
}

.notice-view .view-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    margin: 0;
}

.notice-view .view-meta {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    color: #999;
    white-space: nowrap;
}

.notice-view .view-content {
    max-width: 1050px;
    margin: 40px auto 80px;
    font-size: 17px;
    color: #333;
    word-break: keep-all;
}

.view-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.notice-view .view-attach {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 24px 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notice-view .view-attach h4 {
    min-width: 80px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.notice-view .attach-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notice-view .attach-list li {
    margin-bottom: 6px;
}

.notice-view .attach-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
}

.notice-view .attach-list a:hover {
    text-decoration: underline;
}

.notice-view .view-actions {
    margin-top: 120px;
    display: flex;
    justify-content: center;
}

.notice-view .left-actions {
    display: flex;
    gap: 15px;
}

.notice-view .btn {
    padding: 10px 25px;
    font-size: 14px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    transition: 0.2s;
    cursor: pointer;
    line-height: normal;
}

.notice-view .btn-list,
.notice-view .btn-edit {
    border-color: #222;
    color: #222;
}

.notice-view .btn-list:hover,
.notice-view .btn-edit:hover {
    background: #222;
    color: #fff;
}

.notice-view .btn-delete {
    border-color: #c00;
    color: #c00;
}

.notice-view .btn-delete:hover {
    background: #c00;
    color: #fff;
}

/* ============================================== sub(notice_write/notice_modify page) */
body.sub.notice.write #contents.notice-write,
body.sub.notice.modify #contents.notice-write {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 160px;
}

#contents.notice-write .write-table,
#contents.notice-modify .write-table {
    width: 100%;
    border-top: 2px solid #000;
    border-bottom: 1px solid #ddd;
}

#contents.notice-write .write-table th,
#contents.notice-modify .write-table th {
    background: #f8f8f8;
    font-weight: 600;
    text-align: left;
    padding: 20px;
    vertical-align: top;
    width: 180px;
}

#contents.notice-write .write-table td,
#contents.notice-modify .write-table td {
    padding: 20px;
}

#contents.notice-write .input-text,
#contents.notice-modify .input-text,
#contents.notice-write .textarea,
#contents.notice-modify .textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 15px;
}

#contents.notice-write .textarea,
#contents.notice-modify .textarea {
    resize: vertical;
}

#contents.notice-write .file-btn,
#contents.notice-modify .file-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: 0.2s;
}

#contents.notice-write .file-btn:hover,
#contents.notice-modify .file-btn:hover {
    background: #222;
    color: #fff;
}

#contents.notice-write .file-list,
#contents.notice-modify .file-list {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

#contents.notice-modify .file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

body.sub.notice.modify .write-table td {
    padding: 20px;
}

body.sub.notice.modify .file-list-existing {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

body.sub.notice.modify .file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

body.sub.notice.modify .btn-delete-file {
    padding: 4px 10px;
    font-size: 13px;
    border: 1px solid #c00;
    background: #fff;
    color: #c00;
    cursor: pointer;
    transition: 0.2s;
}

body.sub.notice.modify .btn-delete-file:hover {
    background: #c00;
    color: #fff;
}

body.sub.notice.modify .file-upload {
    margin-top: 8px;
}

#contents.notice-write .file-btn,
#contents.notice-modify .file-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: 0.2s;
}

#contents.notice-write .file-btn:hover,
#contents.notice-modify .file-btn:hover {
    background: #222;
    color: #fff;
}

body.sub.notice.modify .file-list {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

body.sub.notice.modify .file-list li {
    margin-top: 4px;
}

#contents.notice-write .write-actions,
#contents.notice-modify .write-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

#contents.notice-write .btn-submit,
#contents.notice-modify .btn-submit {
    padding: 8px 20px;
    font-size: 14px;
    background: #222;
    color: #fff;
    border: 1px solid #222;
    cursor: pointer;
    transition: 0.2s;
}

#contents.notice-write .btn-submit:hover,
#contents.notice-modify .btn-submit:hover {
    background: #000;
}

#contents.notice-write .btn-list,
#contents.notice-modify .btn-list,
#contents.notice-modify .btn-cancel {
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #222;
    background: #fff;
    color: #222;
    cursor: pointer;
    transition: 0.2s;
}

#contents.notice-write .btn-list:hover,
#contents.notice-modify .btn-list:hover,
#contents.notice-modify .btn-cancel:hover {
    background: #222;
    color: #fff;
}

/* ============================================== admin popup manage */
.admin-popup .popup-preview {
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
    max-width: 520px;
}

.admin-popup .popup-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.admin-popup .popup-preview video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.admin-popup .popup-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.admin-popup .popup-status-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-size: 14px;
    color: #334155;
}

@media (max-width: 768px) {
    body.admin-popup #contents.notice-write {
        padding: 96px 16px 130px;
    }

    body.admin-popup .admin-header {
        margin-bottom: 20px;
    }

    body.admin-popup .write-table {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
    }

    body.admin-popup .write-table colgroup {
        display: none;
    }

    body.admin-popup .write-table tbody,
    body.admin-popup .write-table tr,
    body.admin-popup .write-table th,
    body.admin-popup .write-table td {
        display: block;
        width: 100%;
    }

    body.admin-popup .write-table tr {
        border-bottom: 1px solid #e2e8f0;
    }

    body.admin-popup .write-table tr:last-child {
        border-bottom: none;
    }

    body.admin-popup .write-table th {
        padding: 12px 14px 6px;
        background: #f8fafc;
        font-size: 13px;
    }

    body.admin-popup .write-table td {
        padding: 8px 14px 14px;
    }

    body.admin-popup .popup-preview {
        max-width: none;
    }

    body.admin-popup .file-btn {
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    body.admin-popup .nav-check {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    body.admin-popup .write-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.admin-popup .write-actions .btn-submit,
    body.admin-popup .write-actions .btn-list {
        width: 100%;
        height: 44px;
        border-radius: 12px;
        justify-content: center;
    }
}

/* ============================================== admin slider manage */
.admin-slider .slider-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-slider .slider-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.admin-slider .slider-thumb {
    width: 220px;
    border: 1px solid #e2e8f0;
    padding: 6px;
    background: #fff;
    border-radius: 12px;
}

.admin-slider .slider-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.admin-slider .slider-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-slider .slider-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #444;
}

.admin-slider .slider-check input {
    margin: 0;
}

.admin-slider .slider-delete {
    color: #c00;
}

.admin-slider .slider-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
}

.admin-slider .slider-empty {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .admin-slider .slider-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-slider .slider-thumb {
        width: 100%;
        max-width: 360px;
    }

    .admin-menu {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-card {
        padding: 24px 20px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .admin-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .admin-user {
        width: 100%;
        justify-content: space-between;
    }
}

/* ============================================== footer */
.footer {
    background: #111;
    color: #666;
    padding: 24px 0 8px;
    margin-top: auto;
    z-index: 10;
    position: relative;
}

@media (min-width: 769px) {
    /* PC footer layout */
    .footer {
        background: #111;
        color: #666;
        padding: 32px 0 24px;
        border-top: 1px solid #222;
    }

    .footer_top {
        max-width: 100%;
        padding: 0 32px;
        align-items: flex-start;
        display: flex;
        justify-content: space-between;
        gap: 24px;
        text-align: left;
    }

    .footer-grid {
        display: block;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        gap: 0.7em;
        align-items: flex-start;
        flex: 1 1 auto;
        min-width: 420px;
    }

    .footer-logo img {
        height: 36px;
        width: auto;
        display: block;
    }

    .footer-logo,
    .footer_partners,
    .footer_info,
    .footer_links,
    .footer_copyright {
        width: 100%;
        text-align: left;
    }

    .footer-right {
        display: none;
    }

    .footer_partners {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 24px;
        padding: 8px 0 0;
        margin: 0 0 16px 0;
        justify-content: flex-start;
    }

    .footer_partners img {
        height: 40px;
        width: auto;
        object-fit: contain;
        filter: grayscale(0.1);
    }

    .footer_info {
        text-align: left;
        font-size: 14px;
        line-height: 1.7;
    }

    .footer_notice {
        flex: 0 1 auto;
        max-width: 320px;
        margin-left: auto;
    }

    .footer_notice_title,
    .footer_notice_desc {
        text-align: right;
    }

    .footer_links {
        text-align: left;
        margin-top: 10px;
        font-size: 13px;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 40px;
    }

    .footer .footer_copyright {
        text-align: left;
        margin-top: 10px;
        font-size: 12px;
        color: #888;
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 40px;
    }
}

.footer_top {
    margin-top: auto;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

@media (min-width: 769px) {
    .footer_top {
        max-width: 100%;
        padding: 0 32px;
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }
}

.footer_logo img {
    height: 24px;
}

.footer_info {
    text-align: left;
    font-size: 15px;
}

.footer_info p {
    color: #666;
    margin: 0;
}

.footer_notice {
    background: transparent;
    color: #f2f2f2;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer_notice_title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #f5f5f5;
    text-align: left;
}

.footer_notice_desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #e6e6e6;
    text-align: left;
}

.footer_notice_desc .notice-pc,
.footer_notice_desc .notice-mobile {
    display: block;
}

.footer_notice_desc .notice-mobile {
    display: none;
}

@media (min-width: 769px) {
    .footer_notice_title,
    .footer_notice_desc {
        text-align: right;
    }
}

.footer_copyright p {
    margin: 0;
}

@media (min-width: 769px) {
    .footer-address {
        display: block;
        margin-top: 4px;
    }
}

/* footer labels only */
.footer_info > p > span > span {
    color: #fff;
}

.footer .footer_copyright {
    margin-top: 16px;
    text-align: left;
    font-size: 13px;
    color: #666;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer_links {
    margin-top: 7px;
    text-align: left;
    font-size: 14px;
    color: #aaa;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.footer_links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    display: inline-block;
    text-decoration: none;
}

.footer_links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0.6;
    transition: transform 420ms ease, opacity 420ms ease;
}

.footer_links a:hover::after,
.footer_links a:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

.footer_links span {
    margin: 0 8px;
    color: #555;
}

/* footer scroll-in motion */
.footer-left {
    opacity: 0;
    transform: translateX(-14px);
    transition: transform 1200ms ease, opacity 1200ms ease;
}

.footer_notice {
    opacity: 0;
    transform: translateX(14px);
    transition: transform 1200ms ease, opacity 1200ms ease;
}

.footer.is-inview .footer-left,
.footer.is-inview .footer_notice {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .footer-left,
    .footer_notice {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* break helper: neutral on desktop, only breaks on mobile */
.footer_links span.footer_links_break {
    display: inline;
    margin: 0;
    width: 0;
}

/* align footer links/copyright with left column */
.footer-left .footer_links,
.footer-left .footer_copyright {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    margin-top: 0;
    line-height: 1.7;
}

.footer-left .footer_links,
.footer-left .footer_copyright {
    margin: 0;
}

.footer-left .footer_links,
.footer-left .footer_copyright,
.footer_info {
    padding: 0;
}

body.sub.notice.login #contents.notice.notice-login {
    max-width: 360px;
    margin: 0 auto;
    padding: 140px 24px 180px;
    text-align: center;
}

.notice-login .login-card {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    text-align: left;
}

.notice-login .login-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(10, 138, 163, 0.2), transparent 70%);
    pointer-events: none;
}

.notice-login .login-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ecfeff;
    color: #0a8aa3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
}

.notice-login .login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.notice-login .login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

.notice-login .login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-login .login-field input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notice-login .login-field input:focus {
    outline: none;
    border-color: #0a8aa3;
    box-shadow: 0 0 0 3px rgba(10, 138, 163, 0.15);
    background: #fff;
}

.notice-login .login-actions {
    margin-top: 8px;
}

.notice-login .btn-login {
    width: 100%;
    height: 52px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(0, 143, 169, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.notice-login .btn-login:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.notice-login .login-error {
    margin-top: 18px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 600;
}

@media (max-width: 768px) {
    body.sub.notice.login #contents.notice-login {
        padding: 110px 16px 140px;
    }

    .notice-login .login-card {
        padding: 28px 24px 32px;
    }
}
body.sub.admin #contents.admin-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 40px 180px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 36px;
}

.admin-header.has-lang-tabs {
    align-items: flex-start;
}

.admin-header.has-downloads {
    align-items: flex-start;
}

.admin-header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-downloads {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-download-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-download-select {
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d8e2ea;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.admin-download-select:focus-visible {
    outline: 2px solid #0a8aa3;
    outline-offset: 2px;
}

.admin-downloads-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.admin-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d8e2ea;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.admin-download:hover {
    background: #0a8aa3;
    border-color: #0a8aa3;
    color: #fff;
    transform: translateY(-1px);
}

.admin-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.admin-lang-tabs {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid #d7e3ea;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    align-self: flex-start;
    width: fit-content;
    isolation: isolate;
}

.admin-lang-tabs::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: #0a8aa3;
    box-shadow: 0 6px 12px rgba(10, 138, 163, 0.28);
    transform: translateX(0);
    transition: transform 0.28s ease;
    z-index: 0;
    pointer-events: none;
}

body[data-lang="en"] .admin-lang-tabs::before {
    transform: translateX(100%);
    animation: langToggleEn 0.28s ease;
}

body[data-lang="ko"] .admin-lang-tabs::before {
    transform: translateX(0);
    animation: langToggleKo 0.28s ease;
}

.admin-lang-tabs a {
    position: relative;
    z-index: 1;
    min-width: 40px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.admin-lang-tabs a.is-active {
    color: #fff;
}

.admin-lang-tabs a.is-active:hover {
    color: #fff;
}


.admin-lang-tabs a:hover {
    color: #0f172a;
}

.admin-lang-tabs a.is-active:hover {
    color: #fff;
}

@keyframes langToggleEn {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

@keyframes langToggleKo {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.admin-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.admin-metric .metric-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.admin-metric .metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.admin-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.btn-logout {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-logout:hover {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
    gap: 18px;
    text-align: center;
    justify-content: center;
}

.admin-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #f4f8fb);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
    text-align: center;
}

.admin-card::after {
    content: "";
    position: absolute;
    top: -45%;
    right: -35%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 143, 169, 0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.admin-card strong {
    display: flex;
    width: 100%;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    text-align: center;
    line-height: 1.35;
    letter-spacing: -0.3px;
    min-height: 2.7em;
    align-items: center;
    justify-content: center;
}


.admin-card span {
    font-size: 14px;
    color: #777;
}

.admin-card:hover {
    border-color: #008fa9;
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.14);
}

.admin-card:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    body.sub.admin #contents.admin-dashboard {
        padding: 96px 16px 130px;
    }

    .admin-title {
        font-size: 24px;
    }

    .admin-header {
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }

    .admin-header-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .admin-downloads {
        width: 100%;
        padding: 12px 14px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        justify-content: space-between;
    }

    .admin-downloads-label {
        width: 100%;
        font-size: 12px;
        color: #64748b;
    }

    .admin-download-form {
        width: 100%;
        flex-wrap: nowrap;
    }

    .admin-download-select {
        flex: 1;
        height: 36px;
        border-radius: 12px;
    }

    .admin-download {
        height: 36px;
        min-width: 90px;
        border-radius: 12px;
        justify-content: center;
        box-shadow: none;
    }

    .admin-metrics {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    }

    .admin-metric:last-child {
        grid-column: 1 / -1;
    }

    .admin-menu {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-card {
        padding: 18px 18px 18px 22px;
        text-align: left;
        justify-content: flex-start;
        min-height: 72px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    }

    .admin-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: linear-gradient(180deg, #00b2c1, #008fa9);
        border-radius: 16px 0 0 16px;
    }

    .admin-card::after {
        content: "›";
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        height: auto;
        background: none;
        opacity: 1;
        color: #94a3b8;
        font-size: 22px;
    }

    .admin-card strong {
        min-height: auto;
        text-align: left;
        justify-content: flex-start;
        font-size: 16px;
        line-height: 1.3;
    }
}

/* admin extra actions */
.admin-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-actions form {
    margin: 0;
}

.admin-actions .btn-submit {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.24);
    cursor: pointer;
}

.admin-actions .btn-submit:hover {
    filter: brightness(0.96);
}

.admin-actions .btn-list {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    transition: 0.2s;
}

.admin-actions .btn-list:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-flash {
    margin: -12px 0 28px;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
    border: 1px solid #d8f3f5;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.admin-flash::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00b2c1, #008fa9);
}

@media (prefers-reduced-motion: no-preference) {
    .admin-flash {
        animation: adminFlashIn 260ms ease;
    }
}

@keyframes adminFlashIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* admin nav/page manage */
.admin-nav .write-table {
    display: block;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.admin-nav .write-table colgroup {
    display: none;
}

.admin-nav .write-table tbody,
.admin-nav .write-table tr,
.admin-nav .write-table th,
.admin-nav .write-table td {
    display: block;
    width: 100%;
}

.admin-nav .write-table tr {
    margin-bottom: 16px;
}

.admin-nav .write-table th {
    padding: 0 4px 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.admin-nav .write-table td {
    padding: 0;
    background: transparent;
}

.admin-nav .nav-item-row,
.admin-nav .nav-child-row {
    display: grid;
    align-items: center;
    gap: 8px 10px;
    grid-auto-flow: row;
}

.admin-nav .nav-item-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    grid-template-columns: minmax(180px, 1.2fr) minmax(240px, 1.6fr) 84px auto auto;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.admin-nav .nav-child-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 10px;
    grid-template-columns: 44px minmax(160px, 1fr) minmax(220px, 1.4fr) 72px auto auto;
}

.admin-nav .nav-order {
    max-width: 90px;
    min-width: 70px;
}

.admin-nav .nav-children {
    margin-top: 10px;
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px dashed #d8e1ea;
    border-left: 3px solid rgba(0, 143, 169, 0.35);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav .nav-child-label {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
    padding: 3px 6px;
    border-radius: 999px;
    text-align: center;
    min-width: 32px;
}

.admin-nav .nav-help {
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

.admin-nav .nav-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 8px;
    white-space: nowrap;
}

.admin-nav .nav-check.nav-delete {
    color: #b91c1c;
    background: #fff5f5;
    border-color: #fecaca;
}

.admin-nav .nav-check input {
    accent-color: #008fa9;
}

.admin-nav .input-text:focus {
    outline: none;
    border-color: #0a8aa3;
    box-shadow: 0 0 0 3px rgba(10, 138, 163, 0.12);
    background: #fff;
}

.admin-page-edit .page-section {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.admin-page-edit .page-section-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.admin-page-edit .page-section-list .page-section {
    margin-bottom: 0;
}

.admin-page-edit .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page-edit .section-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-page-edit .section-toggle {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-page-edit .section-toggle:hover {
    border-color: #008fa9;
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

.admin-page-edit .page-section.is-collapsed .section-fields {
    display: none;
}

.admin-page-edit .page-section.is-collapsed {
    padding-bottom: 14px;
}

.admin-page-edit .page-section.is-collapsed .section-title-badge {
    background: #fff;
}
.admin-page-edit .section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-page-edit .section-order-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.admin-page-edit .section-order-input {
    width: 70px;
    text-align: center;
}

/* page builder */
.admin-page-edit {
    --builder-canvas-height: clamp(420px, 68vh, 720px);
    --builder-palette-height: clamp(170px, 24vh, 220px);
}

.admin-page-edit .page-builder {
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-page-edit .builder-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "toolbar toolbar"
        "canvas sidebar";
    gap: 12px 18px;
    align-items: stretch;
}

.admin-page-edit .builder-left {
    grid-area: canvas;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
}

.admin-page-edit .builder-canvas-area {
    display: contents;
}

.admin-page-edit .builder-right {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: var(--builder-canvas-height);
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
}

.admin-page-edit .builder-canvas-wrap {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    height: var(--builder-canvas-height);
}

.admin-page-edit .builder-toolbar {
    grid-area: toolbar;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    width: 100%;
}

.admin-page-edit .builder-body {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-page-edit .builder-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.admin-page-edit .builder-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}


.admin-page-edit .builder-palette {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    flex: 0 0 auto;
    height: var(--builder-canvas-height);
    max-height: var(--builder-canvas-height);
    overflow: auto;
}

.admin-page-edit .palette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.admin-page-edit .palette-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page-edit .palette-sub {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
}

.admin-page-edit .palette-section {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-page-edit .palette-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-page-edit .palette-item {
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: grab;
    min-height: 44px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-page-edit .palette-item:hover {
    border-color: #008fa9;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.14);
    transform: translateY(-1px);
}

.admin-page-edit .palette-item:active {
    cursor: grabbing;
}

.admin-page-edit .palette-label {
    display: none;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page-edit .palette-meta {
    font-size: 10px;
    font-weight: 700;
    color: #008fa9;
    background: #ecfeff;
    border: 1px solid rgba(0, 143, 169, 0.25);
    padding: 2px 6px;
    border-radius: 999px;
}

.admin-page-edit .palette-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-page-edit .palette-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-page-edit .palette-presets-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.admin-page-edit .preset-card {
    border: 1px solid #dbe7f3;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-page-edit .palette-controls-row--wide {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.admin-page-edit .palette-action.is-danger {
    border-color: #fca5a5;
    color: #b91c1c;
    background: #fff5f5;
}

.admin-page-edit .palette-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-page-edit .palette-guide {
    gap: 10px;
}

.admin-page-edit .palette-guide-toggle {
    border: 1px solid #dbe7f3;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-page-edit .palette-guide-toggle:hover {
    border-color: #008fa9;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.12);
    transform: translateY(-1px);
}

.admin-page-edit .palette-guide-box {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-page-edit .palette-guide-item strong {
    font-weight: 700;
    color: #0f172a;
}

.admin-page-edit .preset-card:hover {
    border-color: #008fa9;
    box-shadow: 0 8px 14px rgba(0, 143, 169, 0.12);
    transform: translateY(-1px);
}

.admin-page-edit .preset-card.is-active {
    border-color: #008fa9;
    background: #ecfeff;
    box-shadow: 0 0 0 2px rgba(0, 143, 169, 0.18);
}

.admin-page-edit .palette-controls-title {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.admin-page-edit .palette-controls-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.admin-page-edit .palette-action {
    width: 100%;
    font-size: 11.5px;
    padding: 6px 8px;
    border-radius: 8px;
}

.admin-page-edit .builder-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-page-edit .builder-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.admin-page-edit .builder-action {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-page-edit .builder-action:hover {
    border-color: #008fa9;
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

.admin-page-edit .builder-action.is-primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.24);
}

.admin-page-edit .builder-preview-controls {
    margin-left: auto;
}

.admin-page-edit .builder-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #cde7ec;
    background: #ecfeff;
}

.admin-page-edit .builder-grid-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.admin-page-edit .builder-grid-controls input {
    width: 84px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 0 10px;
    background: #fff;
    font-size: 12px;
}

.admin-page-edit .builder-canvas {
    padding: 16px;
    min-height: 360px;
    max-width: var(--builder-max-width, 1200px);
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(var(--builder-cols, 12), minmax(0, 1fr));
    grid-auto-rows: var(--builder-row-height-display, var(--builder-row-height, 36px));
    gap: var(--builder-gap-display, var(--builder-gap, 14px));
    position: relative;
    transform: scale(var(--builder-canvas-scale, 1));
    transform-origin: top left;
    will-change: transform;
    touch-action: none;
}


.admin-page-edit .builder-templates {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 12px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    height: var(--builder-canvas-height);
    min-height: 0;
}

.admin-page-edit .template-header h3 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page-edit .template-header p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.admin-page-edit .template-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-page-edit .template-grid.template-scroll {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-page-edit .page-builder.is-templates-collapsed .builder-shell {
    grid-template-rows: auto;
    grid-template-areas: "toolbar toolbar";
}

.admin-page-edit .page-builder.is-templates-collapsed .builder-left,
.admin-page-edit .page-builder.is-templates-collapsed .builder-right {
    display: none;
}

.admin-page-edit .template-card {
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #f8fafc;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-page-edit .template-card:hover {
    border-color: #008fa9;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.12);
    transform: translateY(-1px);
}

.admin-page-edit .template-card.is-active {
    border-color: #008fa9;
    box-shadow: 0 0 0 2px rgba(0, 143, 169, 0.18), 0 10px 18px rgba(0, 143, 169, 0.16);
    background: #ecfeff;
}

.admin-page-edit .template-thumb {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 12px;
    gap: 4px;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px dashed #dbe7f3;
    min-height: 72px;
}

.admin-page-edit .template-thumb .thumb-block {
    background: rgba(0, 143, 169, 0.22);
    border: 1px solid rgba(0, 143, 169, 0.35);
    border-radius: 6px;
}

.admin-page-edit .template-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.admin-page-edit .builder-canvas-wrap.is-drag-over {
    border-color: #008fa9;
    box-shadow: 0 18px 32px rgba(0, 143, 169, 0.18);
}

.admin-page-edit .builder-canvas::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 12px;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: calc(100% / var(--builder-cols, 12)) var(--builder-row-height-display, var(--builder-row-height, 36px));
    opacity: 0.4;
    pointer-events: none;
}

.admin-page-edit .builder-block {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: grab;
    z-index: 1;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;
}

.admin-page-edit .builder-block:hover {
    border-color: rgba(0, 143, 169, 0.35);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
    transform: translateY(-2px) scale(1.01);
}

.admin-page-edit .builder-block.is-selected {
    border-color: #008fa9;
    box-shadow: 0 0 0 2px rgba(0, 143, 169, 0.18), 0 16px 28px rgba(15, 23, 42, 0.18);
}

.admin-page-edit .builder-block.is-dragging,
.admin-page-edit .builder-block.is-resizing {
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
    border-color: rgba(0, 143, 169, 0.45);
    transform: translateY(-1px);
}

.admin-page-edit .builder-block-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    width: 100%;
    transform: scale(var(--builder-ui-scale, 1));
    transform-origin: left top;
}

.admin-page-edit .builder-block-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfe3ff;
    background: #f1fbff;
    color: #0a8aa3;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.admin-page-edit .builder-block-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-page-edit .builder-block-meta {
    display: none;
    font-size: calc(10px * var(--builder-ui-scale, 1));
    font-weight: 700;
    color: #008fa9;
    background: #ecfeff;
    border: 1px solid rgba(0, 143, 169, 0.25);
    padding: calc(2px * var(--builder-ui-scale, 1)) calc(6px * var(--builder-ui-scale, 1));
    border-radius: 999px;
}

.admin-page-edit .builder-block-delete {
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 10px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.admin-page-edit .builder-block-delete {
    display: none;
}

.admin-page-edit .builder-block-delete:hover {
    border-color: #fca5a5;
    box-shadow: 0 6px 12px rgba(185, 28, 28, 0.18);
    transform: translateY(-1px);
}

.admin-page-edit .builder-resize-handle {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    border-radius: 0 0 3px 0;
    cursor: se-resize;
    opacity: 0.8;
    touch-action: none;
}

.admin-page-edit .builder-help {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

@media (max-width: 1024px) {
    .admin-page-edit {
        --builder-canvas-height: clamp(360px, 52vh, 640px);
        --builder-palette-height: clamp(160px, 22vh, 200px);
    }

    .admin-page-edit .builder-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "toolbar"
            "canvas"
            "sidebar";
    }

    .admin-page-edit .builder-left {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-page-edit .builder-right {
        height: auto;
    }

    .admin-page-edit .builder-palette {
        height: auto;
        max-height: none;
    }

    .admin-page-edit .builder-templates {
        height: auto;
        max-height: none;
    }

    .admin-page-edit .template-grid.template-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

}

.admin-page-edit .section-layout {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.admin-page-edit .section-layout label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

body.admin-page-edit.layout-enabled .section-layout {
    display: none;
}

body.admin-page-edit.layout-enabled .section-order-label,
body.admin-page-edit.layout-enabled .section-order-input,
body.admin-page-edit.layout-enabled .section-move,
body.admin-page-edit.layout-enabled .section-drag {
    display: none;
}

.admin-page-edit .section-move,
.admin-page-edit .section-drag {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-page-edit .section-move:hover,
.admin-page-edit .section-drag:hover {
    border-color: #008fa9;
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

.admin-page-edit .section-drag {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    cursor: grab;
    position: relative;
}

.admin-page-edit .section-drag::before {
    content: "";
    width: 12px;
    height: 2px;
    background: #64748b;
    box-shadow: 0 -4px 0 #64748b, 0 4px 0 #64748b;
    border-radius: 2px;
}

.admin-page-edit .section-drag:active {
    cursor: grabbing;
}

.admin-page-edit .section-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-page-edit .section-delete input {
    display: none;
}

.admin-page-edit .page-section.is-marked-delete {
    border-color: #fecaca;
    background: #fff5f5;
    opacity: 0.75;
}

.admin-page-edit .page-section.is-marked-delete .section-fields {
    display: none;
}

.admin-page-edit .page-section.is-marked-delete .section-title-badge::after {
    content: " (삭제 예정)";
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
    margin-left: 6px;
}

.admin-page-edit .section-drag {
    cursor: grab;
    background: #f8fafc;
}

.admin-page-edit .page-section.is-dragging {
    opacity: 0.7;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.admin-page-edit .section-title-badge {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 999px;
}

.admin-page-edit .section-delete {
    font-size: 13px;
    color: #dc2626;
}

.admin-page-edit .section-fields .field-label {
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.admin-page-edit .section-preview {
    margin-bottom: 10px;
}

.admin-page-edit .section-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
}

.admin-page-edit .gallery-admin-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.admin-page-edit .gallery-admin-item {
    position: relative;
    border: 1px solid #e2e8f0;
    padding: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.admin-page-edit .gallery-admin-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.admin-page-edit .gallery-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 999px;
}

.admin-page-edit .new-section-fields {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

/* admin form controls */
.admin-nav .input-text,
.admin-page-edit .input-text,
.admin-popup .input-text,
.admin-slider .input-text,
.admin-settings .input-text,
.admin-page-edit .textarea,
.admin-popup .textarea {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
}

.admin-page-edit .textarea,
.admin-popup .textarea {
    background: #fff;
}

.admin-nav .write-table,
.admin-popup .write-table,
.admin-slider .write-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.admin-nav .write-table th,
.admin-popup .write-table th,
.admin-slider .write-table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.admin-nav .write-table td,
.admin-popup .write-table td,
.admin-slider .write-table td {
    background: #fff;
}

body.admin-nav #contents.notice-write .write-table {
    border: none;
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
}

body.admin-nav #contents.notice-write .write-table th {
    width: 110px;
    padding: 10px 12px;
    background: transparent;
    font-size: 12px;
    color: #64748b;
    vertical-align: top;
}

body.admin-nav #contents.notice-write .write-table td {
    padding: 10px 12px;
    background: transparent;
}

body.admin-nav #contents.notice-write .input-text {
    padding: 8px 10px;
    font-size: 13px;
}

.admin-nav .btn-submit,
.admin-page-edit .btn-submit,
.admin-popup .btn-submit,
.admin-slider .btn-submit,
.admin-settings .btn-submit {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.24);
}

.admin-nav .btn-list,
.admin-page-edit .btn-list,
.admin-popup .btn-list,
.admin-slider .btn-list,
.admin-settings .btn-list {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

.admin-nav .btn-list:hover,
.admin-page-edit .btn-list:hover,
.admin-popup .btn-list:hover,
.admin-slider .btn-list:hover,
.admin-settings .btn-list:hover {
    background: #f1f5f9;
}

.admin-settings .input-text:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(10, 138, 163, 0.15);
    background: #fff;
}

.admin-settings .input-text::placeholder {
    color: #94a3b8;
}

.admin-settings .btn-submit,
.admin-settings .btn-list {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.admin-settings .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 143, 169, 0.25);
}

.admin-settings .btn-submit:focus-visible,
.admin-settings .btn-list:focus-visible {
    outline: 2px solid rgba(10, 138, 163, 0.45);
    outline-offset: 2px;
}

.admin-popup .file-btn,
.admin-slider .file-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.admin-popup .file-btn:hover,
.admin-slider .file-btn:hover {
    background: #1e293b;
}

body.admin-nav #contents.notice-write .btn-submit,
body.admin-page-edit #contents.notice-write .btn-submit,
body.admin-popup #contents.notice-write .btn-submit,
body.admin-slider #contents.notice-write .btn-submit {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    border-radius: 12px;
    padding: 10px 22px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.24);
}

body.admin-nav #contents.notice-write .btn-submit:hover,
body.admin-page-edit #contents.notice-write .btn-submit:hover,
body.admin-popup #contents.notice-write .btn-submit:hover,
body.admin-slider #contents.notice-write .btn-submit:hover {
    background: linear-gradient(135deg, #00a7b7, #007f97);
}

body.admin-nav #contents.notice-write .btn-list,
body.admin-page-edit #contents.notice-write .btn-list,
body.admin-popup #contents.notice-write .btn-list,
body.admin-slider #contents.notice-write .btn-list {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
}

body.admin-nav #contents.notice-write .btn-list:hover,
body.admin-page-edit #contents.notice-write .btn-list:hover,
body.admin-popup #contents.notice-write .btn-list:hover,
body.admin-slider #contents.notice-write .btn-list:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-nav .nav-new {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.admin-nav .nav-new-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.admin-nav .nav-new-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.admin-nav .nav-new-row .field-label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.admin-nav .nav-new-row .nav-check {
    margin-left: 6px;
}

@media (max-width: 980px) {
    .admin-nav .nav-item-row,
    .admin-nav .nav-child-row {
        display: flex;
        flex-wrap: wrap;
    }
}

/* admin settings */
body.admin-settings {
    background:
        radial-gradient(circle at 6% 0%, rgba(0, 143, 169, 0.12), transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(0, 178, 193, 0.14), transparent 46%),
        linear-gradient(180deg, #f5fbfd 0%, #f8fafc 55%, #f6f7fb 100%);
    overflow-x: hidden;
}

body.admin-settings #wrap {
    background: transparent;
}

body.admin-settings #contents.admin-dashboard {
    max-width: 1180px;
    position: relative;
    --admin-accent: #0a8aa3;
    --admin-accent-strong: #008fa9;
    --admin-border: #dbe5ee;
    --admin-muted: #64748b;
    --admin-surface: #ffffff;
    --admin-soft: #f3f7fa;
    --admin-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.admin-settings #contents.admin-dashboard::before {
    content: "";
    position: absolute;
    top: -60px;
    right: 12px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 143, 169, 0.24), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body.admin-settings #contents.admin-dashboard > * {
    position: relative;
    z-index: 1;
}

.admin-settings .admin-header {
    border-bottom: none;
    padding: 26px 28px;
    margin-bottom: 30px;
    border-radius: 20px;
    border: 1px solid var(--admin-border);
    background: linear-gradient(135deg, rgba(0, 143, 169, 0.12), rgba(255, 255, 255, 0.95));
    box-shadow: var(--admin-shadow);
}

.admin-settings .admin-header-left {
    gap: 8px;
}

.admin-settings .admin-title {
    font-size: 30px;
}

.admin-settings .admin-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--admin-muted);
}

.admin-settings .admin-section {
    margin-bottom: 26px;
    padding: 26px;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    background: var(--admin-surface);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-settings .admin-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 178, 193, 0.6), rgba(0, 143, 169, 0.22), transparent 70%);
    opacity: 0.8;
}

.admin-settings .admin-section:hover {
    border-color: rgba(0, 143, 169, 0.35);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.admin-settings .admin-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-settings .admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-settings .admin-section-head .admin-section-title {
    margin-bottom: 0;
}

.admin-settings .admin-section-toggle {
    border: 1px solid var(--admin-border);
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-settings .admin-section-toggle:hover {
    border-color: rgba(0, 143, 169, 0.5);
    box-shadow: 0 8px 16px rgba(0, 143, 169, 0.14);
    transform: translateY(-1px);
}

.admin-settings .admin-section-body[hidden] {
    display: none;
}


.admin-settings .admin-section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--admin-accent), var(--admin-accent-strong));
    box-shadow: 0 4px 10px rgba(0, 143, 169, 0.35);
}

.admin-settings .admin-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.admin-settings .admin-status-card {
    padding: 16px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: var(--admin-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.admin-settings .admin-status-card strong {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.admin-settings .admin-status-card span {
    font-size: 13px;
    color: var(--admin-muted);
}

.admin-settings .admin-status-grid.is-metrics .admin-status-card strong {
    font-size: 12px;
    color: var(--admin-muted);
}

.admin-settings .admin-status-grid.is-metrics .admin-status-card span {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.4px;
}

.admin-settings .admin-status-card.is-ok {
    border-color: #99f6e4;
    background: #ecfeff;
}

.admin-settings .admin-status-card.is-ok span {
    color: #0f766e;
}

.admin-settings .admin-status-card.is-bad {
    border-color: #fecaca;
    background: #fff1f2;
}

.admin-settings .admin-status-card.is-bad span {
    color: #b91c1c;
}

.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.admin-inline-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

.admin-inline-form .input-text {
    min-width: 160px;
}

.admin-settings .admin-section > .admin-inline-form {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
}

.admin-settings .admin-inline-form label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-muted);
}

.admin-settings .admin-inline-form label.nav-check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--admin-border);
    background: #fff;
    cursor: pointer;
}

.admin-settings .admin-inline-form label.nav-check input {
    margin: 0;
}

.admin-settings .admin-inline-form .input-text {
    min-width: 0;
    height: 42px;
}

.admin-settings .admin-inline-form .btn-submit,
.admin-settings .admin-inline-form .btn-list {
    height: 42px;
    padding: 0 18px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #0f172a;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-settings .admin-table-wrap {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.admin-settings .admin-table {
    min-width: 640px;
}

.admin-settings .admin-log-table {
    min-width: 900px;
}

.admin-settings .admin-table th {
    font-size: 12.5px;
    letter-spacing: 0.02em;
    color: #475569;
    white-space: nowrap;
}

.admin-settings .admin-table td {
    font-size: 13.5px;
    color: #1f2937;
}

.admin-settings .admin-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.admin-settings .admin-table tbody tr:hover {
    background: #eef7fa;
}

.admin-settings .admin-table .btn-submit,
.admin-settings .admin-table .btn-list {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 10px;
}

.admin-settings .admin-table .btn-submit {
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.18);
}

.admin-settings .admin-log-table th:nth-child(1),
.admin-settings .admin-log-table td:nth-child(1),
.admin-settings .admin-log-table th:nth-child(2),
.admin-settings .admin-log-table td:nth-child(2),
.admin-settings .admin-log-table th:nth-child(3),
.admin-settings .admin-log-table td:nth-child(3),
.admin-settings .admin-log-table th:nth-child(4),
.admin-settings .admin-log-table td:nth-child(4) {
    white-space: nowrap;
}

.admin-role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    line-height: 1;
    border: 1px solid transparent;
}

.admin-role-super {
    background: #ecfeff;
    color: #0a8aa3;
    border-color: rgba(10, 138, 163, 0.25);
}

.admin-role-content {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

.admin-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions-inline form {
    margin: 0;
}

.admin-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-muted {
    color: #94a3b8;
    font-size: 13px;
}

.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.admin-media-card {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.admin-media-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.admin-media-card span {
    font-size: 13px;
    color: #64748b;
}

.admin-settings .admin-media-card {
    background: var(--admin-soft);
    border-color: var(--admin-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.admin-2fa-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 12px;
}

.admin-2fa-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.admin-2fa-info span {
    font-size: 13px;
    color: #64748b;
}

.admin-2fa-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.admin-settings .admin-2fa-card {
    border-color: rgba(10, 138, 163, 0.25);
    background: linear-gradient(135deg, rgba(0, 178, 193, 0.12), rgba(248, 250, 252, 0.95));
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.admin-2fa-actions {
    justify-content: flex-start;
}

.admin-media-form {
    margin-top: 10px;
}

.admin-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 16px 0 10px;
}

.admin-orphan-list {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    max-height: 240px;
    overflow: auto;
}

.admin-orphan-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    color: #475569;
    margin-bottom: 6px;
}

.admin-orphan-item:last-child {
    margin-bottom: 0;
}

.admin-settings .admin-orphan-list {
    border-color: var(--admin-border);
    background: #f8fafc;
}

.admin-settings .admin-orphan-item {
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.admin-settings .admin-orphan-item:hover {
    background: #eef7fa;
    border-color: rgba(0, 143, 169, 0.18);
}

@keyframes adminSectionIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .admin-settings .admin-section {
        opacity: 0;
        transform: translateY(12px);
        animation: adminSectionIn 600ms ease forwards;
    }

    .admin-settings .admin-section:nth-of-type(1) { animation-delay: 60ms; }
    .admin-settings .admin-section:nth-of-type(2) { animation-delay: 120ms; }
    .admin-settings .admin-section:nth-of-type(3) { animation-delay: 180ms; }
    .admin-settings .admin-section:nth-of-type(4) { animation-delay: 240ms; }
    .admin-settings .admin-section:nth-of-type(5) { animation-delay: 300ms; }
    .admin-settings .admin-section:nth-of-type(6) { animation-delay: 360ms; }
    .admin-settings .admin-section:nth-of-type(7) { animation-delay: 420ms; }
    .admin-settings .admin-section:nth-of-type(8) { animation-delay: 480ms; }
}

.admin-password .admin-section {
    margin: 0 auto;
    padding: 28px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
    max-width: 520px;
    position: relative;
    overflow: hidden;
}

.admin-password .admin-section::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(10, 138, 163, 0.18), transparent 70%);
    pointer-events: none;
}

.admin-password .admin-password-help {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.admin-password .admin-password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-password .admin-password-form .input-text {
    width: 100%;
    height: 46px;
    font-size: 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-password .admin-password-form .input-text:focus {
    outline: none;
    border-color: #0a8aa3;
    box-shadow: 0 0 0 3px rgba(10, 138, 163, 0.15);
}

.admin-password .admin-actions {
    justify-content: flex-start;
    gap: 10px;
}

.admin-2fa-setup-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    align-items: start;
}

.admin-2fa-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-2fa-qr img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px;
}

.admin-2fa-fallback {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 6px;
}

.admin-2fa-secret {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 1px;
}

.admin-2fa-reset {
    font-size: 12px;
    color: #0a8aa3;
    text-decoration: none;
}

.admin-2fa-reset:hover {
    text-decoration: underline;
}

.admin-2fa-timer {
    margin: 10px 0 18px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.admin-2fa-timer-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 8px;
}

.admin-2fa-timer-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00b2c1, #008fa9);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.admin-2fa-timer-text {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.admin-2fa-timer-text strong {
    color: #0f172a;
}

@media (max-width: 768px) {
    .admin-2fa-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-password .admin-section {
        padding: 20px;
    }
}

.admin-log-table td {
    vertical-align: top;
}

.admin-log-detail {
    font-size: 12.5px;
    color: #475569;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
    max-width: 360px;
}

@media (max-width: 768px) {
    body.admin-settings #contents.admin-dashboard {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-settings .admin-header {
        padding: 20px;
        border-radius: 18px;
    }

    .admin-settings .admin-section {
        padding: 18px;
        border-radius: 18px;
    }

    .admin-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-inline-form .input-text {
        width: 100%;
        min-width: 0;
    }

    .admin-settings .admin-section > .admin-inline-form {
        grid-template-columns: 1fr;
    }

    .admin-settings .admin-section > .admin-inline-form .btn-submit,
    .admin-settings .admin-section > .admin-inline-form .btn-list {
        width: 100%;
        justify-self: stretch;
    }

    .admin-settings .admin-status-grid.is-metrics .admin-status-card span {
        font-size: 20px;
    }

    .admin-settings .admin-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .admin-actions-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-log-detail {
        max-width: none;
    }
}

/* front content sections */
.content-section {
    margin-bottom: 60px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* organization page: last section margin fix (easter-egg div after sections) */
body.sub.organization #contents.organization .content-section:last-of-type {
    margin-bottom: 0;
}

.content-section .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.content-section .content-body p {
    margin: 0 0 18px;
}

.content-section .content-body p:last-child {
    margin-bottom: 0;
}

.content-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.content-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.content-video .video-frame {
    position: relative;
    padding-top: 56.25%;
}

.content-video .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* page grid layout */
.page-grid {
    max-width: var(--grid-max-width, 1200px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 12), minmax(0, 1fr));
    grid-auto-rows: minmax(var(--grid-row-height, 36px), auto);
    gap: var(--grid-gap, 14px);
}

.page-block {
    min-width: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.page-block .block-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.page-block .block-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.page-block .block-body p {
    margin: 0 0 16px;
}

.page-block .block-body p:last-child {
    margin-bottom: 0;
}

.page-block .block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.page-block .block-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.page-block .block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.page-block .block-video {
    position: relative;
    padding-top: 56.25%;
}

.page-block .block-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .page-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .page-block {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

/* section cards (space/about/organization/history/process) */
.space-page #contents.processIng .content-section,
.space-page #contents.processIng .n_processIng,
.space-page #contents.processIng .youtube-player,
body.sub.about #contents.about .content-section,
body.sub.organization #contents.organization .content-section,
body.sub.history #contents.history .content-section,
body.sub.processIng:not(.space-page) #contents.processIng .content-section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

body.sub.about #contents.about .content-section:last-child,
body.sub.history #contents.history .content-section:last-child,
body.sub.processIng:not(.space-page) #contents.processIng .content-section:last-child {
    margin-bottom: 0;
}

body.sub.about #contents.about .content-section.content-image,
body.sub.organization #contents.organization .content-section.content-image,
body.sub.history #contents.history .content-section.content-image,
body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-image {
    padding: 0;
    overflow: hidden;
}

body.sub.about #contents.about .content-section.content-video,
body.sub.organization #contents.organization .content-section.content-video,
body.sub.history #contents.history .content-section.content-video,
body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-video {
    padding: 0;
    overflow: hidden;
}

body.sub.about #contents.about .content-section.content-image .section-title,
body.sub.organization #contents.organization .content-section.content-image .section-title,
body.sub.history #contents.history .content-section.content-image .section-title,
body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-image .section-title,
body.sub.about #contents.about .content-section.content-video .section-title,
body.sub.organization #contents.organization .content-section.content-video .section-title,
body.sub.history #contents.history .content-section.content-video .section-title,
body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-video .section-title {
    padding: 24px 24px 0;
}

.space-page #contents.processIng > * {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.space-page #contents.processIng > *:last-child {
    margin-bottom: 0 !important;
}

.space-page #contents.processIng .n_processIng {
    width: auto;
}

.space-page #contents.processIng .img_wrap {
    padding: 0;
    max-width: none;
}

.space-page #contents.processIng .youtube-player {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 20px;
    padding: 0;
    overflow: hidden;
}

body.sub.space-page #container #contents.processIng .youtube-player {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 20px;
}


.space-page #contents.processIng .youtube-player iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

body.sub.space-page #container #contents.processIng .youtube-player iframe {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.space-page #contents.processIng .n_processIng,
.space-page #contents.processIng .content-section.content-image {
    padding: 0;
    overflow: hidden;
}

.space-page #contents.processIng .youtube-player {
    padding: 0;
    overflow: hidden;
}

.space-page #contents.processIng .youtube-player .section-title {
    padding: 24px 24px 0;
}

.space-page #contents.processIng .content-section.content-image img,
.space-page #contents.processIng .n_processIng img {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    display: block;
}

.space-page #contents.processIng .content-section:last-child,
.space-page #contents.processIng .youtube-player:last-child,
.space-page #contents.processIng .n_processIng:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .space-page #contents.processIng .content-section,
    .space-page #contents.processIng .n_processIng,
    .space-page #contents.processIng .youtube-player,
    body.sub.about #contents.about .content-section,
    body.sub.organization #contents.organization .content-section,
    body.sub.history #contents.history .content-section,
    body.sub.processIng:not(.space-page) #contents.processIng .content-section {
        padding: 18px;
        margin-bottom: 16px;
    }

    .space-page #contents.processIng .youtube-player {
        margin: 16px auto;
        padding: 18px;
    }

    body.sub.about #contents.about .content-section.content-image,
    body.sub.organization #contents.organization .content-section.content-image,
    body.sub.history #contents.history .content-section.content-image,
    body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-image {
        padding: 0;
        overflow: hidden;
    }

    body.sub.about #contents.about .content-section.content-video,
    body.sub.organization #contents.organization .content-section.content-video,
    body.sub.history #contents.history .content-section.content-video,
    body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-video {
        padding: 0;
        overflow: hidden;
    }

    body.sub.about #contents.about .content-section.content-image .section-title,
    body.sub.organization #contents.organization .content-section.content-image .section-title,
    body.sub.history #contents.history .content-section.content-image .section-title,
    body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-image .section-title,
    body.sub.about #contents.about .content-section.content-video .section-title,
    body.sub.organization #contents.organization .content-section.content-video .section-title,
    body.sub.history #contents.history .content-section.content-video .section-title,
    body.sub.processIng:not(.space-page) #contents.processIng .content-section.content-video .section-title {
        padding: 18px 18px 0;
    }
}
/* Scroll reveal items */
.scroll-reveal-item,
.scroll-reveal-image {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: transform, opacity;
}

.scroll-reveal-item.is-visible,
.scroll-reveal-image.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-item,
    .scroll-reveal-image {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.main-popup {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 12, 20, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000; 
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.main-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-inner {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
    width: min(92vw, 720px);
    height: auto;
    max-height: 85vh;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: transform 1s ease, opacity 1s ease;
    will-change: transform, opacity;
    box-shadow: 0 30px 80px rgba(2, 8, 23, 0.25);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 769px) {
    .popup-inner {
        width: min(92vw, 820px);
    }
}

.popup-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #00b2c1, #008fa9);
    pointer-events: none;
}

.main-popup.is-open .popup-inner {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.popup-img {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.popup-img img,
.popup-img video {
    width: 100%;
    max-width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.popup-img.has-video {
    cursor: pointer;
}

.popup-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.popup-img.has-video.is-hover .popup-video {
    opacity: 1;
}

.popup-img.has-video.is-hover img {
    opacity: 0;
}

.popup-content {
    text-align: left;
    margin-top: 0;
    color: #0f172a;
}

.popup-content h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.popup-content p {
    margin: 6px 0 0;
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
}

.popup-footer {
    margin-top: 2px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
}

.popup-footer label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 0;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.popup-footer input {
    width: 16px;
    height: 16px;
    accent-color: #0a8aa3;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #0f172a;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.popup-close:hover {
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

.popup-close:focus-visible {
    outline: 2px solid #0a8aa3;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .popup-inner {
        padding: 16px;
        border-radius: 16px;
    }

    .popup-content h3 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14.5px;
    }
}



.main-contents-img{
    width: 100%;
}

.main-contents-img .slide img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 1024px) {

    #header {
        --header-pad: 32px;
    }

    .ncsf-gnb .nav > li > a {
        font-size: 18px;
    }

    #contents {
        padding: 80px 20px 100px;
    }
}

@media (max-width: 768px) {

    /* main image */
    .main-contents-img {
        height: 60vh;
        overflow: hidden;
    }

    .main-contents-img .slider {
        height: 100%;
        position: relative;
    }

    .main-contents-img .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transform: scale(1.04);
        transform-origin: center center;
        transition: opacity 0.8s ease, transform 6s ease-out;
        pointer-events: none;

        background-size: cover;
        /* background-size: contain; */
        background-position: center;
        background-repeat: no-repeat;

        will-change: opacity, transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;

    }
    
    .main-contents-img .slide img {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        height: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    .main-contents-img .slide.active {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
        z-index: 2;
    }

    body.main .main-contents-img .slide,
    body.main .main-contents-img .slide.active {
        transform: none !important;
    }

    .main-contents-img .slider-dots {
        position: absolute;
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        z-index: 5;
        display: flex;
        gap: 8px;
    }

    .main-contents-img .slider-progress {
        display: none;
    }
}

@media (max-width: 768px) {
    /* header */
    #header {
        min-height: 72px;
        height: 72px;
        --header-pad: 16px;
        background: #fff;
        border-bottom: 1px solid #eee;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: visible;
    }

    #header::before,
    #header::after {
        display: none;
    }

    #header .inner {
        min-height: 72px;
        height: 72px;
        padding: 0 var(--header-pad);
    }

    .header-wrap {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        height: 100%;
    }

    .header-actions {
        grid-column: 3;
        justify-self: end;
        align-self: center;
    }

    .header-left {
        align-self: center;
    }

    .header-logo {
        margin: 0;
        line-height: 1;
    }

    .header-logo a {
        display: inline-flex;
        align-items: center;
    }

    .header-logo img {
        height: 50px;
    }

    #header .admin-status {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e5e5;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

    .ncsf-gnb {
        display: none;
    }
    .hamburger-menu {
        display: block !important;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        justify-self: end;
        align-self: center;
        margin: 0;
    }

    .hamburger-menu .bar {
        display: block;
        width: 22px;
        height: 3px;
        background: #222;
        margin: 5px 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(6, 30, 40, 0.5);
        backdrop-filter: blur(6px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.7s ease, visibility 0.7s ease;
    }

    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: -110%;
    width: 86%;
    max-width: 360px;
    height: 100%;
    background: #fff;
    padding: 18px 16px 16px;
    border-radius: 24px 0 0 24px;
    box-shadow: -20px 0 40px rgba(15, 23, 42, 0.18);
    transition: right 0.7s ease, opacity 0.7s ease, transform 0.7s ease;
    opacity: 0.96;
    transform: translateX(18px);
    display: flex;
    flex-direction: column;
}

.mobile-menu-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(0, 143, 169, 0.06), rgba(255, 255, 255, 0));
    pointer-events: none;
    border-radius: 24px 0 0 0;
}

    .mobile-menu-overlay.open .mobile-menu-panel {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: flex-end;
        padding: 8px 4px 14px;
        border-bottom: none;
    }

    .mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 34px;
        padding: 0 12px;
        font-size: 13.5px;
        font-weight: 600;
        font-family: "Pretendard-Medium", "Noto Sans KR", Arial, sans-serif;
        line-height: 1.2;
        background: #ecfeff;
        border: 1px solid rgba(0, 143, 169, 0.3);
        border-radius: 999px;
        color: #008fa9;
        box-shadow: 0 8px 16px rgba(0, 143, 169, 0.14);
        cursor: pointer;
        transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    }

    .mobile-menu-close:active {
        transform: translateY(1px) scale(0.98);
        box-shadow: 0 5px 12px rgba(0, 143, 169, 0.12);
    }

    /* Tabs */
    .mobile-menu-tabs {
        display: flex;
        border-bottom: 1px solid #ddd;
    }

    .mobile-menu-tabs .tab {
        flex: 1;
        padding: 14px 8px;
        font-size: 14px;
        font-weight: 600;
        background: #f7f7f7;
        border: none;
        cursor: pointer;
        color: #666;
    }

    .mobile-menu-tabs .tab.active {
        background: #fff;
        color: #008fa9;
        border-bottom: 2px solid #008fa9;
    }

    /* Tab Content */
    .mobile-menu-content {
        overflow-y: auto;
        padding: 16px;
    }

    .tab-content {
        display: none;
    }

    .tab-content.active {
        display: block;
    }

    .tab-content a {
        display: block;
        padding: 12px 0;
        font-size: 15px;
        color: #222;
        border-bottom: 1px solid #eee;
    }

    .tab-content a:last-child {
        border-bottom: none;
    }

    /* Mobile accordion menu */
    .mobile-menu-tabs,
    .tab-content {
        display: none;
    }

.mobile-menu-accordion {
    padding: 4px 0 8px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .acc-trigger {
        width: 100%;
        text-align: left;
        padding: 14px 14px;
        font-size: 15px;
        font-weight: 600;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        cursor: pointer;
        color: #0f172a;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
        position: relative;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .acc-trigger::after {
        content: "";
        position: absolute;
        right: 14px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #94a3b8;
        border-bottom: 2px solid #94a3b8;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s ease, border-color 0.2s ease;
    }

    .acc-trigger.active {
        background: #ecfeff;
        color: #008fa9;
        border-color: rgba(0, 143, 169, 0.35);
        box-shadow: 0 10px 22px rgba(0, 143, 169, 0.12);
    }

    .acc-trigger.active::after {
        border-color: #008fa9;
        transform: translateY(-50%) rotate(-135deg);
    }

    .acc-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-4px);
        padding: 0 8px;
        transition: max-height 0.7s ease, opacity 0.7s ease, transform 0.7s ease, padding 0.7s ease;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .acc-panel.open {
        max-height: 520px;
        opacity: 1;
        transform: translateY(0);
        padding: 8px 8px 12px;
    }

    .acc-panel a,
    .acc-link {
        display: block;
        padding: 10px 12px;
        font-size: 14.5px;
        color: #1f2937;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        opacity: 1;
        transform: none;
        animation: none;
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .acc-link:last-child,
    .acc-panel a:last-child {
        border-bottom: none;
    }

    .acc-panel a:hover,
    .acc-link:hover {
        background: #ecfeff;
        border-color: rgba(0, 143, 169, 0.35);
        color: #008fa9;
        transform: translateY(-1px);
    }

.mobile-admin-status {
    margin-top: 12px;
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fbfd;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

    .mobile-admin-info {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #555;
    }

    .mobile-admin-info .admin-id {
        font-weight: 600;
        color: #006b7f;
        background: #e6f6f8;
        border: 1px solid #c9edf2;
        padding: 2px 8px;
        border-radius: 999px;
    }

    .mobile-admin-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

.mobile-admin-actions .admin-link {
    flex: 1 1 auto;
    text-align: center;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mobile-admin-actions .admin-link.admin-home {
    background: linear-gradient(135deg, #00b2c1, #008fa9);
    color: #fff;
}

.mobile-admin-actions .admin-link.admin-logout {
    background: #f8fafc;
    color: #0f172a;
    border-color: #b7e3ea;
}

    .mobile-admin-actions .admin-link:active {
        transform: translateY(1px);
        box-shadow: 0 5px 12px rgba(0, 0, 0, 0.08);
    }

    @keyframes accOpen {
        from { opacity: 0; transform: translateY(-4px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(about page) */
    body.sub #container #contents.about {
        padding: 20px 16px;
    }

    body.sub.about #container #contents.about img {
        width: 100%;
        height: auto;
    }

    body.sub.about #container #contents.about h3 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    body.sub.about #container #contents.about p {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(organization/history/space) */
    body.sub #container #contents.organization,
    body.sub #container #contents.history,
    body.sub #container #contents.processIng {
        padding-top: 20px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* mobile: show full YouTube frame (no crop) */
    body.sub #container #contents.processIng .youtube-player {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 9;
    }

    body.sub #container #contents.processIng .youtube-player iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(organization page) */
    body.sub.organization #container #contents.organization {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(process page_youtube) */
    body.sub.processIng #container #contents.processIng {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    body.sub.processIng #container #contents.processIng .n_processIng {
        margin-bottom: 0;
    }

    body.sub.processIng #container #contents.processIng .img_wrap {
        padding: 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    body.sub.processIng #container #contents.processIng .img_wrap img {
        width: 100%;
        height: auto;
        display: block;
    }

    body.sub #container #contents.processIng .youtube-player {
        margin: 10px auto;
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        max-width: 1200px;
        padding: 0 12px;
        box-sizing: border-box;
    }


    body.sub.processIng #container #contents.processIng .mb40 {
        margin: 0;
        padding: 0;
        height: 0;
    }

    body.sub #container #contents.processIng .youtube-player iframe {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        display: block;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(location page) */
    body.sub.location #container #contents.location {
        padding: 32px 16px 56px;
    }

    body.sub.location #container #contents.location h2 {
        font-size: 28px;
        margin-bottom: 24px;
        line-height: 1.3;
    }

    .sub.location .loc-map .kakao-map {
        height: 240px;
        margin-bottom: 12px;
    }

    .sub.location .info-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sub.location .label {
        width: auto;
        font-size: 16px;
        font-weight: 600;
    }

    .sub.location .label-text,
    .sub.location .info-text {
        font-size: 16px;
        line-height: 1.5;
    }

    .sub.location .map-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        margin-top: 8px;
    }

    .sub.location .btn-map {
        flex: 1;
        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        height: 40px;
        font-size: 14px;
        padding: 0 12px;
        line-height: normal;
        box-sizing: border-box;
    }

    .sub.location .sec {
        padding: 28px 0;
    }

    .sub.location .sec h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .sub.location .metro-list p {
        font-size: 16px;
        line-height: 1.5;
        flex-wrap: wrap;
    }

    .sub.location .metro-line {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 2px;
    }

    .sub.location .bus-row {
        font-size: 16px;
        line-height: 1.5;
        flex-wrap: wrap;
        gap: 6px;
    }

    .sub.location .tag {
        font-size: 14px;
        padding: 3px 6px;
    }
}

    
@media (max-width: 420px) {
    body.sub.location #container #contents.location h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .sub.location .info-row {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .sub.location .label {
        font-size: 14px;
        font-weight: 600;
    }

    .sub.location .label-text,
    .sub.location .info-text {
        flex: 1;
        font-size: 14px;
        line-height: 1.4;
        word-break: break-word;
    }

    .sub.location .btn-copy {
        flex-shrink: 0;
        width: 32px;
        height: 32px;
        padding: 0;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sub.location .btn-map {
        height: 40px;
        font-size: 13px;
    }

    .sub.location .sec {
        padding: 24px 0;
    }

    .sub.location .sec h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .sub.location .metro-list p {
        font-size: 14px;
        line-height: 1.5;
    }

    .sub.location .metro-line {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-right: 2px;
    }

    .sub.location .bus-row {
        font-size: 14px;
        line-height: 1.5;
        gap: 6px;
    }

    .sub.location .tag {
        font-size: 12px;
        padding: 3px 6px;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile sub(notice_view page) */
    .notice-view .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .notice-view .view-meta {
        font-size: 14px;
        gap: 16px;
    }

    .notice-view .view-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile notice view buttons */
    .notice-view .left-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile notice list */
    body.sub.notice #contents.notice {
        padding: 32px 16px 72px;
    }

    .notice-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .notice-search {
        background: #f7f7f7;
        padding: 12px;
        border-radius: 8px;
        gap: 8px;
    }

    .notice-search select,
    .notice-search input,
    .notice-search button {
        height: 44px;
        font-size: 15px;
        border-radius: 6px;
    }

    .notice-search input {
        border-left: 1px solid #ddd;
    }

    .notice-search button {
        background: #111;
        border-color: #111;
    }

    .notice-bulk-actions {
        justify-content: flex-start;
        padding: 4px 0 0;
    }

    .notice-bulk-actions .input-text {
        width: auto;
        flex: 1 1 140px;
    }

    .notice-bulk-actions .btn-submit {
        min-width: 80px;
    }

    /* table -> card list */
    .notice-table {
        display: block;
        width: 100%;
        border: none;
    }

    .notice-table colgroup,
    .notice-table thead {
        display: none;
    }

    .notice-table tbody,
    .notice-table tr,
    .notice-table td {
        display: block;
        width: 100%;
        border: none;
    }

    .notice-table tbody tr {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 14px 14px 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    }

    .notice-table td {
        padding: 0;
        text-align: left;
    }

    .notice-table td.title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .notice-table td.title a {
        display: block;
        color: #222;
    }

    .notice-table td:nth-child(1),
    .notice-table td:nth-child(3),
    .notice-table td:nth-child(5) {
        display: none;
    }

    .notice-table td:nth-child(4) {
        font-size: 13px;
        color: #888;
    }

    .notice-table tr.notice .badge-notice {
        margin-bottom: 6px;
    }

    .notice-paging {
        margin: 24px 0 0;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile notice write/modify */
    body.sub.notice.write #contents.notice-write,
    body.sub.notice.modify #contents.notice-write {
        padding: 32px 16px 72px;
    }

    #contents.notice-write .write-table,
    #contents.notice-modify .write-table {
        border: none;
    }

    #contents.notice-write .write-table tbody,
    #contents.notice-write .write-table tr,
    #contents.notice-write .write-table th,
    #contents.notice-write .write-table td,
    #contents.notice-modify .write-table tbody,
    #contents.notice-modify .write-table tr,
    #contents.notice-modify .write-table th,
    #contents.notice-modify .write-table td {
        display: block;
        width: 100%;
    }

    #contents.notice-write .write-table tr,
    #contents.notice-modify .write-table tr {
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 12px;
        background: #fff;
    }

    #contents.notice-write .write-table th,
    #contents.notice-modify .write-table th {
        width: 100%;
        padding: 0 0 8px;
        background: transparent;
        font-size: 14px;
        color: #666;
    }

    #contents.notice-write .write-table td,
    #contents.notice-modify .write-table td {
        padding: 0;
    }

    #contents.notice-write .input-text,
    #contents.notice-modify .input-text,
    #contents.notice-write .textarea,
    #contents.notice-modify .textarea {
        height: 44px;
        border-radius: 6px;
        font-size: 15px;
    }

    #contents.notice-write .textarea,
    #contents.notice-modify .textarea {
        height: auto;
        min-height: 160px;
    }

    /* tinymce container */
    #contents.notice-write .tox-tinymce,
    #contents.notice-modify .tox-tinymce {
        width: 100% !important;
        max-width: 100%;
        border-radius: 8px;
    }

    #contents.notice-write .file-btn,
    #contents.notice-modify .file-btn {
        width: 100%;
        height: 44px;
        text-align: center;
        border-radius: 6px;
    }

    #contents.notice-write .write-actions,
    #contents.notice-modify .write-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 24px;
    }

    #contents.notice-write .btn-submit,
    #contents.notice-modify .btn-submit,
    #contents.notice-write .btn-list,
    #contents.notice-modify .btn-list,
    #contents.notice-modify .btn-cancel {
        width: 100%;
        height: 46px;
        font-size: 15px;
        border-radius: 6px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile footer */
    .footer {
        padding: 16px 0 6px;
    }

    .footer_top {
        padding: 0 16px;
        gap: 8px;
    }

    .footer_logo img {
        height: 20px;
    }

    .footer_info {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.5;
    }

    .footer_info p {
        margin: 2px 0;
    }

    .footer .footer_copyright {
        margin-top: 10px;
        font-size: 12px;
        padding: 0;
        line-height: 1.5;
    }

    .footer_links {
        margin-top: 10px;
        font-size: 12px;
        padding: 0;
        line-height: 1.5;
    }

    .footer-left .footer_links,
    .footer-left .footer_copyright {
        margin-top: 10px;
    }

    .footer_links span {
        margin: 0 6px;
    }

    .footer_links span.footer_links_break {
        display: block;
        width: 100%;
        height: 0;
        margin: 4px 0 0;
    }

    /* mobile footer notice */
    .footer_notice {
        max-width: 100%;
        padding-left: 10px;
        border-left: 2px solid rgba(255,255,255,0.12);
    }

    .footer_notice_title {
        font-size: 12.5px;
        letter-spacing: -0.2px;
        margin-bottom: 6px;
    }

    .footer_notice_desc {
        font-size: 11.5px;
        line-height: 1.55;
        color: rgba(255,255,255,0.75);
    }

    .footer_notice_desc .notice-pc {
        display: none;
    }

    .footer_notice_desc .notice-mobile {
        display: block;
    }
}

@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (min-width: 769px) {
    .notice-home,
    .home-cards,
    .main-hero {
        display: none;
    }
}


/* Policy, terms */
#contents.policy {
    max-width: 1000px;
}

#contents.policy h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}

.policy-animate {
    opacity: 0;
    transform: translateX(-12px);
    animation: policySlideRight 1200ms ease both;
}

#contents.policy h1,
#contents.policy h2 {
    opacity: 0;
    transform: translateX(-12px);
    animation: policySlideRight 1200ms ease both;
}

.policy-contents {
    opacity: 0;
    transform: translateX(-12px);
    animation: policySlideRight 1200ms ease both;
    animation-delay: 120ms;
}

@keyframes policySlideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* location page: match policy motion */
.sub.location #contents.location h2,
.sub.location #contents.location h3,
.sub.location #contents.location p,
.sub.location #contents.location .label-text,
.sub.location #contents.location #addressText,
.sub.location #contents.location .info-text,
.sub.location #contents.location .btn-map,
.sub.location #contents.location .tag,
.sub.location #contents.location .metro-line {
    opacity: 0;
    transform: translateX(-12px);
    animation: policySlideRight 1200ms ease both;
}

@media (prefers-reduced-motion: reduce) {
    #contents.policy h1,
    #contents.policy h2,
    .policy-contents {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .sub.location #contents.location h2,
    .sub.location #contents.location h3,
    .sub.location #contents.location p,
    .sub.location #contents.location .label-text,
    .sub.location #contents.location #addressText,
    .sub.location #contents.location .info-text,
    .sub.location #contents.location .btn-map,
    .sub.location #contents.location .tag,
    .sub.location #contents.location .metro-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.policy-icon {
    font-size: 22px;
}

.policy-contents {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

#contents.policy {
    padding: 120px 40px 160px;
}

#contents.policy h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 28px;
}

.policy-contents {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.policy-contents h3 {
    margin-top: 40px;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    border-left: 3px solid #008fa9;
    padding-left: 10px;
}

.policy-contents p {
    margin-bottom: 14px;
}

.policy-contents ul,
.policy-contents ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.policy-contents li {
    margin-bottom: 6px;
}

.policy-note {
    font-size: 14px;
    color: #666;
    background: #f7f7f7;
    padding: 12px 14px;
    border-radius: 8px;
}

.policy-date {
    margin-top: 40px;
    font-size: 14px;
    color: #555;
    text-align: right;
}


/* Policy mobile */

@media (max-width: 767px) {

    #contents.policy {
        padding: 72px 16px 96px;
    }

    #contents.policy h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .policy-icon {
        font-size: 20px;
    }

    .policy-contents {
        font-size: 14.5px;
        line-height: 1.8;
        padding: 18px 16px;
        border-radius: 10px;
    }

    .policy-contents h3 {
        font-size: 16px;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    .policy-contents p {
        margin-bottom: 12px;
    }

    .policy-contents ul,
    .policy-contents ol {
        padding-left: 18px;
        margin-bottom: 14px;
    }

    .policy-date {
        margin-top: 24px;
        font-size: 13px;
        text-align: left;
    }
}

@media (max-width: 420px) {

    #contents.policy {
        padding: 56px 14px 88px;
    }

    #contents.policy h2 {
        font-size: 22px;
        gap: 6px;
    }

    .policy-icon {
        font-size: 18px;
    }

    .policy-contents {
        font-size: 14px;
        line-height: 1.7;
        padding: 16px 14px;
    }

    .policy-contents h3 {
        font-size: 15px;
        margin-top: 22px;
        margin-bottom: 8px;
    }

    .policy-contents li {
        margin-bottom: 6px;
    }

    .policy-note {
        font-size: 12.5px;
    }

    .policy-date {
        font-size: 12.5px;
        text-align: left;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile main typography & spacing */
    body {
        font-size: 15px;
        line-height: 1.7;
    }

    body.main #contents {
        padding: 24px 16px 48px;
    }

    .main-contents-img {
        height: 62vh;
        min-height: 420px;
    }

    /* footer breathing room */
    .footer {
        padding: 20px 0 10px;
    }

    .footer_top {
        padding: 0 16px;
        gap: 10px;
    }

    .footer_info {
        font-size: 13.5px;
        line-height: 1.6;
    }

    /* address on new line (keep label + address together) */
    .footer_info p span:last-of-type {
        display: inline-block;
    }

    .footer_info p span:last-of-type::before {
        content: "";
        display: block;
        margin-top: 4px;
    }

    .footer_info p span:last-of-type::after {
        content: "\00a0";
    }

    .footer_links {
        font-size: 12.5px;
        margin-top: 10px;
    }

    .footer .footer_copyright {
        font-size: 12px;
        margin-top: 10px;
    }

    .footer-contact {
        display: block;
        white-space: nowrap;
    }

    .footer-address {
        display: block;
        margin-top: 0;
        white-space: nowrap;
        font-size: inherit;
        letter-spacing: -0.2px;
        word-spacing: -1px;
    }
}

@media (max-width: 768px) {
    /* ============================================== mobile hero + cards */
    body.main .main-contents-img {
        position: relative;
        height: 32vh !important;
        min-height: 210px !important;
        max-height: 300px !important;
    }

    body.main .main-contents-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0);
        z-index: 2;
        pointer-events: none;
    }

    .main-hero {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 14px;
        z-index: 3;
        color: #fff;
        background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.45));
        padding: 10px 12px;
        border-radius: 10px;
    }

    .main-hero h1 {
        font-size: 24px;
        line-height: 1.2;
        margin: 0 0 6px;
        text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    }

    .main-hero p {
        font-size: 14px;
        margin: 0 0 10px;
        color: rgba(255,255,255,0.9);
        text-shadow: 0 2px 16px rgba(0,0,0,0.6);
    }

    .main-hero .hero-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        padding: 0 14px;
        border-radius: 18px;
        background: #008fa9;
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

    .home-cards {
        margin: 16px 0 8px;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 78%;
        gap: 12px;
        overflow-x: auto;
        padding: 6px 16px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .home-card {
        display: block;
        border: 1px solid #008fa9;
        border-radius: 14px;
        background: #fff;
        color: #222;
        box-shadow: 0 6px 20px rgba(0,0,0,0.06);
        overflow: hidden;
        scroll-snap-align: start;
        transition: transform 240ms ease, box-shadow 240ms ease;
    }

    .home-card.scroll-reveal-item {
        opacity: 0;
        transform: translate3d(0, 12px, 0);
        transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
        transition-delay: var(--reveal-delay, 0s);
        will-change: transform, opacity;
    }

    .home-card.scroll-reveal-item.is-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .home-card .card-img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        display: block;
        transition: transform 500ms ease;
    }

    .home-card .card-body {
        padding: 12px 14px 14px;
    }

    .home-card .card-title {
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 6px;
    }

    .home-card .card-desc {
        font-size: 13px;
        color: #666;
        margin: 0 0 10px;
        line-height: 1.5;
    }

    .home-card .card-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 32px;
        padding: 0 12px;
        border-radius: 16px;
        background: #008fa9;
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        text-decoration: none;
        transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
    }

    .home-card .card-btn:active {
        transform: translateY(1px);
        filter: brightness(0.95);
        box-shadow: none;
    }

    .home-card .card-btn:focus-visible {
        outline: 2px solid rgba(0, 143, 169, 0.5);
        outline-offset: 2px;
    }

    @media (hover: hover) and (pointer: fine) {
        .home-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(0,0,0,0.12);
        }

        .home-card:hover .card-img {
            transform: scale(1.03);
        }
    }

    .home-card {
        border-top: 2px solid #008fa9;
    }

    .home-card .card-title::before {
        content: "";
        color: #008fa9;
        margin-right: 0;
    }

    /* reduce gap between main content and footer on mobile */
    body.main #contents {
        padding-bottom: 20px;
    }
}


/* terms mobile */

@media (max-width: 767px) {

    #contents.policy {
        padding: 80px 20px 120px;
    }

    #contents.policy h2 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .policy-icon {
        font-size: 20px;
    }

    .policy-contents {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .policy-contents h3 {
        font-size: 16.5px;
        margin-top: 32px;
        margin-bottom: 10px;
    }

    .policy-contents ul,
    .policy-contents ol {
        padding-left: 18px;
        margin-bottom: 14px;
    }

    .policy-date {
        margin-top: 32px;
        font-size: 13.5px;
    }
}

@media (max-width: 420px) {

    #contents.policy {
        padding: 60px 16px 100px;
    }

    #contents.policy h2 {
        font-size: 22px;
        gap: 6px;
    }

    .policy-icon {
        font-size: 18px;
    }

    .policy-contents {
        font-size: 14px;
        line-height: 1.65;
    }

    .policy-contents h3 {
        font-size: 15.5px;
        margin-top: 28px;
        margin-bottom: 8px;
    }

    .policy-contents li {
        margin-bottom: 6px;
    }

    .policy-note {
        font-size: 13px;
    }

    .policy-date {
        font-size: 13px;
    }
}

/* ============================================== Modern notice (front) */
body.sub.notice:not(.admin) #contents.notice,
body.sub.notice.view:not(.admin) #contents.notice-view {
    max-width: 1200px;
    padding: 110px 32px 140px;
}

body.sub.notice:not(.admin) .notice-title,
body.sub.notice.view:not(.admin) .notice-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 28px;
}

body.sub.notice:not(.admin) .notice-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 20px;
}

body.sub.notice:not(.admin) .notice-search select,
body.sub.notice:not(.admin) .notice-search input,
body.sub.notice:not(.admin) .notice-search button {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

body.sub.notice:not(.admin) .notice-search select {
    width: 110px;
    padding: 0 14px;
    background: #fff;
}

body.sub.notice:not(.admin) .notice-search input {
    width: min(360px, 42vw);
    padding: 0 12px;
    border-left: 1px solid #e2e8f0;
    background: #fff;
}

body.sub.notice:not(.admin) .notice-search button {
    min-width: 86px;
    padding: 0 16px;
    border: 1px solid #008fa9;
    background: #008fa9;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.18);
}

body.sub.notice:not(.admin) .notice-search button:hover {
    filter: brightness(1.05);
}

body.sub.notice:not(.admin) .notice-search button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

body.sub.notice:not(.admin) .notice-table {
    border-top: none;
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
}

body.sub.notice:not(.admin) .notice-table thead tr {
    background: transparent;
}

body.sub.notice:not(.admin) .notice-table thead th {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12.5px;
    font-weight: 600;
    padding: 0 12px 8px;
    text-align: center;
}

body.sub.notice:not(.admin) .notice-table tbody td {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 14px;
    font-size: 15px;
    color: #1f2937;
}

body.sub.notice:not(.admin) .notice-table tbody tr td:first-child {
    border-left: 1px solid #e2e8f0;
    border-radius: 14px 0 0 14px;
}

body.sub.notice:not(.admin) .notice-table tbody tr td:last-child {
    border-right: 1px solid #e2e8f0;
    border-radius: 0 14px 14px 0;
}

body.sub.notice:not(.admin) .notice-table td.title a {
    color: #0f172a;
    font-weight: 600;
}

body.sub.notice:not(.admin) .notice-table td.title a:hover {
    color: #008fa9;
    text-decoration: none;
}

body.sub.notice:not(.admin) .badge-notice {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #0ea5e9;
    color: #fff;
}

body.sub.notice:not(.admin) .notice-table tr.notice td {
    background: #f0f9ff;
    border-color: #bae6fd;
}

body.sub.notice:not(.admin) .notice-table .ico-file {
    opacity: 0.65;
}

body.sub.notice:not(.admin) .notice-top {
    justify-content: flex-end;
    margin-top: 18px;
    gap: 8px;
}

body.sub.notice:not(.admin) .btn-write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #008fa9;
    background: #008fa9;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.sub.notice:not(.admin) .btn-write.btn-admin-home {
    background: #fff;
    color: #008fa9;
    border-color: #008fa9;
    box-shadow: none;
}

body.sub.notice:not(.admin) .btn-write:hover {
    filter: brightness(1.05);
}

body.sub.notice:not(.admin) .btn-write:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

body.sub.notice:not(.admin) .notice-paging {
    margin: 32px 0 80px;
}

body.sub.notice:not(.admin) .notice-paging li {
    margin: 0 3px;
}

body.sub.notice:not(.admin) .notice-paging a,
body.sub.notice:not(.admin) .notice-paging span {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #64748b;
    font-weight: 600;
}

body.sub.notice:not(.admin) .notice-paging a:hover {
    background: #f1f5f9;
    color: #008fa9;
}

body.sub.notice:not(.admin) .notice-paging .current {
    background: #008fa9;
    color: #fff;
    border-color: #008fa9;
}

body.sub.notice.view:not(.admin) .notice-view .view-header {
    max-width: 1200px;
    margin: 0 auto 36px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.sub.notice.view:not(.admin) .notice-view .view-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

body.sub.notice.view:not(.admin) .notice-view .view-meta {
    color: #64748b;
    font-size: 14px;
    gap: 20px;
}

body.sub.notice.view:not(.admin) .notice-view .view-content {
    max-width: 1050px;
    margin: 24px auto 60px;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    font-size: 16.5px;
    line-height: 1.9;
    color: #1f2937;
    word-break: normal;
    overflow-wrap: break-word;
}

body.sub.notice.view:not(.admin) .notice-view .view-attach {
    max-width: 1050px;
    margin: 0 auto 40px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px dashed #e2e8f0;
    background: #f8fafc;
}

body.sub.notice.view:not(.admin) .notice-view .view-actions {
    margin-top: 60px;
}

body.sub.notice.view:not(.admin) .notice-view .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-weight: 600;
    color: #0f172a;
    line-height: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.sub.notice.view:not(.admin) .notice-view .btn-list {
    background: #008fa9;
    border-color: #008fa9;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 143, 169, 0.18);
}

body.sub.notice.view:not(.admin) .notice-view .btn-edit:hover {
    background: #f1f5f9;
}

body.sub.notice.view:not(.admin) .notice-view .btn-delete {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}

body.sub.notice.view:not(.admin) .notice-view .btn-delete:hover {
    background: #fee2e2;
    color: #b91c1c;
}

body.sub.notice.view:not(.admin) .notice-view .btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 6px 14px rgba(0, 143, 169, 0.16);
}

body.sub.notice:not(.admin) #contents.notice,
body.sub.notice.view:not(.admin) #contents.notice-view {
    animation: noticePageEnter 520ms ease both;
}

@keyframes noticePageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sub.notice:not(.admin) #contents.notice,
    body.sub.notice.view:not(.admin) #contents.notice-view {
        animation: none;
    }
}


/* Notice mobile */
@media (max-width: 768px) {
  /* notice page: search area stack */
  body.sub.notice:not(.admin) .notice-search {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.sub.notice:not(.admin) .notice-search select,
  body.sub.notice:not(.admin) .notice-search input,
  body.sub.notice:not(.admin) .notice-search button {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  /* notice table: allow horizontal scroll */
  body.sub.notice:not(.admin) .notice-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sub.notice:not(.admin) .notice-table thead,
  body.sub.notice:not(.admin) .notice-table tbody,
  body.sub.notice:not(.admin) .notice-table tr,
  body.sub.notice:not(.admin) .notice-table th,
  body.sub.notice:not(.admin) .notice-table td {
    white-space: nowrap;
  }

  body.sub.notice:not(.admin) #contents.notice,
  body.sub.notice.view:not(.admin) #contents.notice-view {
    padding: 84px 16px 110px;
  }

  body.sub.notice:not(.admin) .notice-title,
  body.sub.notice.view:not(.admin) .notice-title {
    margin-bottom: 18px;
  }

  body.sub.notice.view:not(.admin) .notice-view .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.sub.notice.view:not(.admin) .notice-view .view-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.sub.notice.view:not(.admin) .notice-view .view-content {
    padding: 20px;
  }
}

/* ============================================== Modern location (front) */
body.sub.location #container #contents.location {
    max-width: 1200px;
    padding: 110px 32px 140px;
    animation: locationPageEnter 520ms ease both;
}

body.sub.location #container #contents.location .location-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 28px;
}

body.sub.location #container #contents.location .location-panel {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body.sub.location #container #contents.location .location-map-panel {
    padding: 24px;
}

body.sub.location #container #contents.location .loc-map .kakao-map {
    width: 100%;
    height: 520px;
    margin-bottom: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe7ef;
    background: #f8fafc;
}

body.sub.location #container #contents.location .location-address-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px dashed #d8e5ee;
    border-radius: 14px;
    background: #f8fafc;
}

body.sub.location #container #contents.location .info-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

body.sub.location #container #contents.location .label {
    width: auto;
    min-width: 52px;
}

body.sub.location #container #contents.location .label-text {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

body.sub.location #container #contents.location .info-text {
    margin: 0;
    flex: 1 1 360px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    color: #1f2937;
    white-space: normal;
}

body.sub.location #container #contents.location .btn-copy {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d1dde8;
    border-radius: 999px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body.sub.location #container #contents.location .btn-copy img {
    width: 18px;
    height: 18px;
}

body.sub.location #container #contents.location .btn-copy:hover {
    background: #eef6fb;
    border-color: #9fc5da;
}

body.sub.location #container #contents.location .btn-copy:active {
    transform: translateY(1px) scale(0.97);
}

body.sub.location #container #contents.location .map-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: 0;
}

body.sub.location #container #contents.location .btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 42px;
    line-height: 1;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid #008fa9;
    background: #fff;
    color: #008fa9;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.sub.location #container #contents.location .map-actions .btn-map:first-child {
    background: #008fa9;
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 143, 169, 0.18);
}

body.sub.location #container #contents.location .map-actions .btn-map:last-child {
    box-shadow: none;
}

body.sub.location #container #contents.location .btn-map:hover {
    filter: brightness(1.05);
}

body.sub.location #container #contents.location .btn-map:active {
    transform: translateY(1px) scale(0.98);
}

body.sub.location #container #contents.location .location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

body.sub.location #container #contents.location .location-transport-panel {
    padding: 24px;
    border-bottom: none;
}

body.sub.location #container #contents.location .location-transport-panel h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
}

body.sub.location #container #contents.location .metro-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.sub.location #container #contents.location .metro-list li {
    margin: 0;
}

body.sub.location #container #contents.location .metro-list p {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: #1f2937;
}

body.sub.location #container #contents.location .metro-lines {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 2px;
}

body.sub.location #container #contents.location .metro-line {
    width: 22px;
    height: 22px;
    margin-right: 0;
    font-size: 12px;
    font-weight: 700;
}

body.sub.location #container #contents.location .route-desc {
    color: #475569;
}

body.sub.location #container #contents.location .bus-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 0;
    font-size: 15px;
    color: #1f2937;
    border-top: 1px solid #e2e8f0;
}

body.sub.location #container #contents.location .bus-row:first-of-type {
    border-top: none;
    padding-top: 0;
}

body.sub.location #container #contents.location .bus-row:last-of-type {
    padding-bottom: 0;
}

body.sub.location #container #contents.location .bus-desc {
    margin: 0;
    line-height: 1.6;
    color: #334155;
}

body.sub.location #container #contents.location .tag {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

@keyframes locationPageEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sub.location #container #contents.location {
        animation: none;
    }
}

@media (max-width: 1024px) {
    body.sub.location #container #contents.location .location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body.sub.location #container #contents.location {
        padding: 84px 16px 110px;
    }

    body.sub.location #container #contents.location .location-title {
        margin-bottom: 18px;
    }

    body.sub.location #container #contents.location .location-map-panel {
        padding: 16px;
    }

    body.sub.location #container #contents.location .loc-map .kakao-map {
        height: 320px;
    }

    body.sub.location #container #contents.location .location-address-wrap {
        margin-top: 12px;
        padding: 14px;
        gap: 12px;
    }

    body.sub.location #container #contents.location .info-row {
        align-items: flex-start;
        gap: 8px;
    }

    body.sub.location #container #contents.location .info-text {
        flex: 1 1 100%;
        font-size: 15px;
    }

    body.sub.location #container #contents.location .map-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    body.sub.location #container #contents.location .btn-map {
        width: 100%;
        min-width: 0;
        height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    body.sub.location #container #contents.location .location-grid {
        gap: 14px;
        margin-top: 14px;
    }

    body.sub.location #container #contents.location .location-transport-panel {
        padding: 18px;
    }

    body.sub.location #container #contents.location .location-transport-panel h3 {
        margin-bottom: 12px;
        font-size: 21px;
    }

    body.sub.location #container #contents.location .metro-list p,
    body.sub.location #container #contents.location .bus-row {
        font-size: 14px;
    }

    body.sub.location #container #contents.location .tag {
        padding: 5px 9px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    body.sub.location #container #contents.location .location-title {
        font-size: 28px;
    }

    body.sub.location #container #contents.location .loc-map .kakao-map {
        height: 260px;
    }

    body.sub.location #container #contents.location .location-transport-panel {
        padding: 16px;
    }
}

@media (max-width: 768px) {
  body.sub.organization,
  body.sub.location,
  body.sub.notice:not(.admin) {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 60%, #eaf4f7 100%);
  }

  body.sub.organization main#container,
  body.sub.location main#container,
  body.sub.notice:not(.admin) main#container {
    position: relative;
    background: transparent;
  }

  body.sub.organization main#container::after,
  body.sub.location main#container::after,
  body.sub.notice:not(.admin) main#container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0) 0%, rgba(234, 244, 247, 0.9) 100%);
    pointer-events: none;
  }
}
/* ============================================== English layout tweaks */
html[lang="en"] body {
    letter-spacing: 0;
    word-spacing: 0;
}

html[lang="en"] .ncsf-gnb .nav {
    gap: 36px;
}

html[lang="en"] .ncsf-gnb .nav > li > a {
    font-size: 18px;
    letter-spacing: 0;
}

html[lang="en"] #header .nav > li .depth2 {
    min-width: 160px;
}
html[lang="en"] #header .nav > li .depth2 a {
    font-size: 15px;
    white-space: normal;
    line-height: 1.3;
}

html[lang="en"] .notice-view .view-content,
html[lang="en"] .content-body,
html[lang="en"] .notice-table .title,
html[lang="en"] .footer,
html[lang="en"] .section-title,
html[lang="en"] .notice-title {
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 1280px) {
    html[lang="en"] .ncsf-gnb .nav {
        gap: 28px;
    }

    html[lang="en"] .ncsf-gnb .nav > li > a {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    html[lang="en"] .ncsf-gnb .nav > li > a {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    html[lang="en"] .home-card .card-title::before {
        content: "";
        margin-right: 0;
    }
}

/* PC + 모바일 한/영 토글 숨김 → 영문 홈페이지 활성화 후 삭제 */
.lang-switch,
.lang-switch-mobile {
  display: none !important;
}

/* Mobile: match desktop header/main and main/footer spacing */
@media (max-width: 768px) {
  #contents {
    padding-top: 120px;
    padding-bottom: 140px;
  }

  body.main #contents {
    padding-top: 0;
    padding-bottom: 40px;
  }

  body.sub #contents {
    padding-top: 80px;
  }

  body.sub #container #contents.about,
  body.sub #container #contents.organization,
  body.sub #container #contents.history,
  body.sub #container #contents.processIng {
    padding-top: 24px;
    padding-bottom: 12px;
  }

  body.sub.location #contents.location {
    padding-top: 120px;
    padding-bottom: 160px;
  }

  body.sub.notice #contents.notice,
  body.sub.notice.view #contents.notice-view,
  body.sub.notice.write #contents.notice-write,
  body.sub.notice.modify #contents.notice-write {
    padding-top: 120px;
    padding-bottom: 160px;
  }

  body.sub.notice.login #contents.notice-login {
    padding-top: 140px;
    padding-bottom: 180px;
  }

  body.sub.admin #contents.admin-dashboard {
    padding-top: 120px;
    padding-bottom: 180px;
  }
}

@media (max-width: 768px) {
  /* organization page only: remove main-footer gap */
  body.sub.organization #wrap {
    min-height: auto;
  }

  body.sub.organization .footer {
    margin-top: 0 !important;
  }
}
