:root {
    --bg: #f3f5f8;
    --ink: #13233f;
    --muted: #4c5c78;
    --line: #d4d9e2;
    --card: rgba(255, 255, 255, 0.74);
    --accent: #f28b2b;
    --accent-2: #0f65a8;
    --hero-mask: linear-gradient(125deg, rgba(9, 28, 51, 0.86), rgba(15, 101, 168, 0.48));
}

* {
    box-sizing: border-box;
}

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

body.napiri-2026 {
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(242, 139, 43, 0.14), transparent 48%),
        radial-gradient(circle at 85% 12%, rgba(15, 101, 168, 0.18), transparent 40%),
        var(--bg);
    color: var(--ink);
    font-family: 'Space Grotesk', 'Noto Sans KR', sans-serif;
    line-height: 1.5;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image: linear-gradient(transparent 96%, rgba(19, 35, 63, 0.18) 100%);
    background-size: 100% 6px;
    z-index: 0;
}

.shell {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

body.napiri-2026 > .container {
    width: min(1180px, calc(100% - 3rem));
    margin: 2rem auto 3rem;
}

.sub-hero {
    position: relative;
    min-height: clamp(180px, 28vh, 320px);
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(212, 217, 226, 0.7);
}

.sub-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(9, 28, 51, 0.6), rgba(15, 101, 168, 0.35));
}

.nap-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(212, 217, 226, 0.7);
}

.nav-inner {
    width: min(1260px, calc(100% - 2.4rem));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand img {
    width: auto;
    max-height: 54px;
}

.brand-text {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 9px;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
}

.nav-menu-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.24rem;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 500;
    padding: 0.64rem 0.86rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-item:hover > a,
.nav-item.active > a {
    background: rgba(15, 101, 168, 0.12);
    color: #0a568f;
}

.depth2,
.depth3 {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    position: absolute;
    left: 0;
    top: calc(100% + 0.5rem);
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(8, 23, 41, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.18s ease;
}

.depth2 li,
.depth3 li {
    position: relative;
}

.depth2 a,
.depth3 a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    border-radius: 10px;
    padding: 0.56rem 0.7rem;
    font-size: 0.9rem;
}

.depth2 a:hover,
.depth3 a:hover,
.depth2 li.active > a,
.depth3 li.active > a {
    background: rgba(15, 101, 168, 0.11);
    color: #0a568f;
}

.depth3 {
    top: -0.1rem;
    left: calc(100% + 0.35rem);
}

.nav-item:hover > .depth2,
.depth2 li:hover > .depth3 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-toggle,
.tool-link {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 0.48rem 0.86rem;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
}

.search-toggle:hover,
.tool-link:hover {
    border-color: var(--accent-2);
    color: var(--accent-2);
}

.search-panel {
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height 0.24s ease, border-color 0.24s ease;
}

.search-panel.is-open {
    max-height: 120px;
    border-top-color: var(--line);
}

.search-form {
    width: min(1260px, calc(100% - 2.4rem));
    margin: 0 auto;
    display: flex;
    gap: 0.7rem;
    padding: 0.8rem 0 1rem;
}

.search-form input[type='text'] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.94rem;
}

.search-form button {
    border: 0;
    background: var(--accent-2);
    color: #fff;
    border-radius: 10px;
    padding: 0.72rem 1rem;
    font-weight: 600;
}

.hero {
    position: relative;
    min-height: clamp(520px, 76vh, 820px);
    background-position: center;
    background-size: cover;
    display: grid;
    place-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-mask);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: min(900px, calc(100% - 2.4rem));
    color: #fff;
    padding: 6rem 0 4.6rem;
    animation: rise-in 0.8s ease both;
}

.hero-kicker {
    margin: 0;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.hero h1 {
    margin: 0.7rem 0 1rem;
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.05;
}

.hero p {
    margin: 0 auto;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 760px;
    color: rgba(255, 255, 255, 0.96);
}

.hero-cta {
    margin-top: 2rem;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(242, 139, 43, 0.88);
    border-radius: 999px;
    padding: 0.82rem 1.3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    background: #dd7a1d;
}

.section {
    position: relative;
    z-index: 1;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.dynamic-content {
    padding-top: 2.4rem;
    padding-bottom: 0;
}

.dynamic-content .shell {
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(7, 28, 49, 0.09);
    padding: clamp(1.2rem, 2vw, 2rem);
}

.section-highlight .shell {
    text-align: center;
}

.eyebrow {
    color: var(--accent-2);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.section-highlight h2,
.section-head h2 {
    margin: 0.55rem 0 0.85rem;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.section-lead {
    margin: 0 auto;
    color: var(--muted);
    max-width: 760px;
    font-size: 1rem;
}

.section-values {
    position: relative;
    overflow: hidden;
    padding-top: 2.8rem;
    padding-bottom: 3.2rem;
}

.section-values::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(112deg, rgba(9, 28, 51, 0.86), rgba(15, 101, 168, 0.72)),
        url('/hero_background.png') center/cover no-repeat;
    opacity: 0.9;
}

.section-values .shell {
    position: relative;
    z-index: 1;
}

.cards {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card {
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    padding: 1.35rem 1.2rem;
    box-shadow: 0 14px 28px rgba(3, 18, 34, 0.24);
    backdrop-filter: blur(3px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(3, 18, 34, 0.32);
}

.value-card h3 {
    margin: 0;
    color: #10243f;
    font-size: 1.14rem;
}

.value-card p {
    margin: 0.72rem 0 0;
    color: #2f4462;
    font-size: 0.94rem;
}

.section-works {
    background: linear-gradient(180deg, #fff, #eef2f8);
    border-top: 1px solid rgba(212, 217, 226, 0.8);
    border-bottom: 1px solid rgba(212, 217, 226, 0.8);
}

.section-head {
    text-align: center;
    margin-bottom: 1.3rem;
}

.works-widget {
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 1rem;
    box-shadow: 0 14px 36px rgba(9, 28, 51, 0.08);
}

.works-widget .zbxe_widget_output {
    width: 100%;
    display: block;
}

.works-widget .widgetContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.works-widget .widgetContainer [class*='col-'] {
    width: auto;
    float: none;
    padding: 0;
}

.works-widget .sec3_img {
    margin: 0;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 10px 20px rgba(9, 28, 51, 0.16);
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: pointer;
}

.works-widget .sec3_img:hover {
    transform: translateY(-3px);
    filter: saturate(1.04);
}

.works-widget ul,
.works-widget li,
.works-widget figure {
    margin: 0;
    padding: 0;
    list-style: none;
}

.section-pay {
    padding-top: 2.4rem;
    padding-bottom: 1.8rem;
}

.pay-shell {
    text-align: center;
    background: linear-gradient(138deg, rgba(18, 50, 90, 0.95), rgba(8, 23, 42, 0.95));
    border-radius: 18px;
    border: 1px solid #31517a;
    box-shadow: 0 16px 30px rgba(7, 20, 37, 0.22);
    padding: 1.8rem 1.2rem 1.9rem;
}

.pay-shell h2 {
    margin: 0;
    color: #f1f6ff;
    font-size: 1.5rem;
}

.pay-shell p {
    margin: 0.56rem 0 1rem;
    color: #b7c9e4;
    font-size: 0.94rem;
}

.section-subpage {
    padding-top: 2rem;
}

.nap-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid #1b3353;
    background: linear-gradient(180deg, #111f32, #0a131f);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-logo img {
    width: auto;
    max-height: 56px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.24));
}

.footer-info {
    padding-top: 1.8rem;
    padding-bottom: 1.1rem;
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #264267;
    border-radius: 16px;
    padding: 1rem 1rem 1.08rem;
}

.info-card h3 {
    margin: 0;
    font-size: 0.98rem;
    color: #edf4ff;
}

.info-card p {
    margin: 0.56rem 0 0;
    color: #b0c2dc;
    font-size: 0.92rem;
}

.info-card a {
    color: #9acbff;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.pay-now-btn {
    margin-top: 0.86rem;
    display: inline-block;
    min-width: 212px;
    height: 46px;
    line-height: 46px;
    padding: 0 1rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #006aff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.pay-now-btn:hover {
    text-decoration: none;
    background-color: #0058d9;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0 1.8rem;
    border-top: 1px solid rgba(70, 108, 148, 0.45);
}

.footer-row p {
    margin: 0;
    color: #8ea8c9;
    font-size: 0.86rem;
    text-align: right;
}

.footer-logo-bottom {
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-social a {
    text-decoration: none;
    color: #d6e8ff;
    border: 1px solid #365982;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 0.34rem 0.68rem;
    font-size: 0.84rem;
}

.footer-social a:hover {
    border-color: #7ab9ff;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 920px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu-wrap {
        display: none;
        position: absolute;
        left: 1.2rem;
        right: 1.2rem;
        top: calc(100% + 0.4rem);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: 0 14px 28px rgba(7, 28, 49, 0.15);
        padding: 0.9rem;
        flex-direction: column;
        align-items: stretch;
    }

    .nap-nav.menu-open .nav-menu-wrap {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-item > a {
        padding: 0.62rem 0.7rem;
        border-radius: 10px;
    }

    .depth2,
    .depth3 {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        box-shadow: none;
        border-radius: 8px;
        min-width: 0;
        margin-left: 0.72rem;
        display: none;
        padding: 0.2rem;
    }

    .nav-item.has-children.open > .depth2,
    .depth2 li.has-children.open > .depth3 {
        display: block;
    }

    .nav-tools {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 68vh;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 1.2rem;
        gap: 0.8rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
    }

    .footer-row p {
        text-align: center;
    }

    .works-widget .widgetContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(1180px, calc(100% - 1.6rem));
    }

    body.napiri-2026 > .container {
        width: min(1180px, calc(100% - 1.6rem));
        margin: 1.2rem auto 2rem;
    }

    .sub-hero {
        min-height: 180px;
    }

    .nav-inner {
        width: min(1260px, calc(100% - 1.6rem));
    }

    .search-form {
        width: min(1260px, calc(100% - 1.6rem));
        flex-direction: column;
    }

    .footer-logo img {
        max-height: 46px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .works-widget .widgetContainer {
        grid-template-columns: 1fr;
    }

    .works-widget .sec3_img {
        height: 240px;
    }

    .hero-content {
        padding: 5rem 0 3.6rem;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }
}
