/* common.css */
@charset "UTF-8";

/* =========================
   Root
========================= */
:root {
    --color-text: #222;
    --color-white: #fff;
    --color-border: #e5e5e5;
    --color-primary: #27c1b2;
    --color-primary-dark: #2778d3;

    /* 폰트 역할 분리 */
    --font-base: "Noto Sans KR", sans-serif;
    --font-ui: "PretendardGOV", "Noto Sans KR", sans-serif;
    --font-display: "Paperlogy", "PretendardGOV", "Noto Sans KR", sans-serif;

    --container-width: 1440px;
    --container-gap: 40px;
    --visual-width: 1830px;
}

/* =========================
   Base Typography
========================= */
html,
body {
    width: 100%;
    min-width: 320px;
}

body {
    font-family: var(--font-base);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    word-break: keep-all;
}

/* 본문 입력 요소는 본문 폰트 */
input,
textarea,
select {
    font-family: var(--font-base);
}

/* 버튼은 UI 폰트 */
button {
    font-family: var(--font-ui);
}

/* 타이틀 계열 */
h1, h2, h3, h4, h5, h6,
.display-font {
    font-family: var(--font-display);
}

/* =========================
   Common Elements
========================= */
a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    vertical-align: top;
    object-fit: contain;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

input,
textarea,
select,
button {
    color: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
}

[hidden],
.hidden {
    display: none !important;
}

.blind,
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================
   Layout Helpers
========================= */
#wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

#container {
    position: relative;
    width: 100%;
}

#container.main {
    margin: 32px 0 0;
}

.container {
    max-width: var(--container-width);
    width: calc(100% - var(--container-gap));
    margin: 0 auto;
}

.visual-container {
    width: calc(100% - var(--container-gap));
    max-width: var(--visual-width);
    margin: 0 auto;
}

/* =========================
   Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #d8dde6;
    background: #fff;
    z-index: 800;
    overflow: visible;
}

.header-inner {
    min-height: 100px;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    column-gap: 40px;
    align-items: center;
}

.logo-area {
    flex: 0 0 168px;
    width: 168px;
    min-width: 168px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: auto;
    min-width: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

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

.gnb {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.gnb-list {
    max-width: 780px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    list-style: none;
}

.gnb-list > li {
    flex: 0 0 auto;
    position: relative;
}

.gnb-list > li::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 220px;
    height: 38px;
    transform: translateX(-50%);
    display: none;
}

.gnb-list > li:hover::after,
.gnb-list > li:focus-within::after {
    display: block;
}

.gnb-list > li > a {
    display: block;
    font-family: var(--font-ui);
    font-size: 20px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.gnb-depth2 {
    position: absolute;
    top: calc(100% + 38px);
    left: 50%;
    min-width: 180px;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 300;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.gnb-list > li:hover > .gnb-depth2,
.gnb-list > li:focus-within > .gnb-depth2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.gnb-depth2 > li > a {
    display: block;
    padding: 10px 20px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}

.gnb-depth2 > li > a:hover {
    color: #003B96;
    background: #f5f7fb;
}

/* 전체메뉴 PC 2depth */
.site-menu-depth2 {
    margin: 10px 0 0;
    padding: 0 0 0 8px;
    list-style: none;
}

.site-menu-depth2 > li + li {
    margin-top: 6px;
}

.site-menu-depth2 > li > a {
    display: block;
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: #666;
}

.site-menu-depth2 > li > a:hover {
    color: #003B96;
}

.mobile-depth2 {
    display: none;
    margin: 0;
    padding: 8px 0 12px;
    list-style: none;
    background: #f8f9fb;
}

.mobile-menu-list > li.is-open > .mobile-depth2 {
    display: block;
}

.mobile-menu-list .mobile-depth2 > li {
    border-bottom: 0;
}

.mobile-menu-list .mobile-depth2 > li > a {
    min-height: 42px;
    padding: 0 20px 0 34px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: transparent;
}

.mobile-menu-actions {
    display: none;
}

.site-menu-grid > li {
    display: flex;
    flex-direction: column;
}

.site-menu-depth2 {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.site-menu-depth2 > li + li {
    margin-top: 6px;
}

.site-menu-depth2 > li > a {
    display: block;
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: #666;
}

.site-menu-depth2 > li > a:hover {
    color: #003B96;
}

.header-util {
    width: auto;
    min-width: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    justify-self: end;
    flex-wrap: nowrap;
}

.util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    color: var(--color-text);
    flex: 0 0 auto;
}

.util-btn img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
}

.header-direct-link {
    height: 46px;
    padding: 15px 18px;
    border-radius: 52px;
    background: linear-gradient(90deg, #003B96 0%, #5B1C87 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    white-space: nowrap;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.header-direct-link i {
    font-size: 16px;
    line-height: 1;
}

/* =========================
   Site Menu Panel
========================= */
.site-menu-panel {
    position: fixed;
    inset: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.site-menu-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-menu-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.site-menu-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 560px;
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.14);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.site-menu-panel.is-open .site-menu-wrap {
    transform: translateX(0);
}

.site-menu-head {
    flex: 0 0 auto;
    height: 100px;
    padding: 0 40px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-menu-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111;
}

.site-menu-close {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    flex: 0 0 40px;
}

.site-menu-close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 2px;
    background: #111;
    transform-origin: center;
}

.site-menu-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.site-menu-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

.site-menu-pc {
    display: block;
    padding: 48px 40px 60px;
}

.site-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu-grid > li > a {
    display: flex;
    align-items: center;
    min-height: 84px;
    padding: 0 24px;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #fff;
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 600;
    color: #111;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-menu-grid > li > a:hover {
    border-color: #003B96;
    color: #003B96;
    box-shadow: 0 8px 24px rgba(0, 59, 150, 0.08);
}

.site-menu-mobile {
    display: none;
}

.mobile-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
    padding: 0 20px;
    background: #f5f7fb;
    border-bottom: 1px solid #e5e5e5;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    color: #003B96;
}

.mobile-menu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu-list li a {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 20px;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background: #fff;
}

body.menu-open {
    overflow: hidden;
}

/* =========================
   Footer
========================= */
.site-footer {
    width: 100%;
    min-height: 240px;
    background: #FAFAFA;
    border-top: 0;
}

.footer-inner {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-logo {
    display: block;
    width: auto;
    height: 58px;
    max-width: none;
}

.footer-address {
    margin: 0 0 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--color-text);
    white-space: nowrap;
}

.footer-copy {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--color-text);
    white-space: nowrap;
}

/* =========================================================
   Pagination
========================================================= */
.pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.pagination-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    text-decoration: none;
    font-family: "PretendardGOV", "Noto Sans KR", sans-serif;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: -1px;
    color: #464C53;
    vertical-align: middle;
}

.pagination-nav span {
    display: inline-flex;
    align-items: center;
    height: 40px;
    line-height: 1;
}

.pagination-nav img {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 20px;
    object-fit: contain;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: "PretendardGOV", "Noto Sans KR", sans-serif;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: -1px;
    color: #4b5563;
    text-decoration: none;
    box-sizing: border-box;
}

.pagination-link.is-active {
    border-radius: 50%;
    background: #003b96;
    font-weight: 700;
    color: #ffffff;
}

.pagination-prev img {
    margin-right: -1px;
}

.pagination-next img {
    margin-left: -1px;
}

.pagination-prev span {
    order: 1;
}

.pagination-next span {
    order: 0;
}

.pagination-next img {
    order: 1;
}

.pagination-nav.is-disabled {
    color: #8a949e;
    pointer-events: none;
}

.pagination-nav.is-disabled img {
    opacity: 0.6;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 40px;
    font-family: "PretendardGOV", "Noto Sans KR", sans-serif;
    font-size: 18px;
    line-height: 27px;
    font-weight: 400;
    letter-spacing: -1px;
    color: #4b5563;
    text-decoration: none;
    box-sizing: border-box;
}

.pagination-link.is-active {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #003b96;
    font-weight: 700;
    color: #ffffff;
}

.pagination-link:not(.is-active):hover,
.pagination-nav:not(.is-disabled):hover {
    color: #003b96;
}

.pagination-ellipsis {
    pointer-events: none;
}

/* =========================
   Utility
========================= */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.font-base { font-family: var(--font-base) !important; }
.font-ui { font-family: var(--font-ui) !important; }
.font-display { font-family: var(--font-display) !important; }

.fw-400 { font-weight: 400 !important; }
.fw-500 { font-weight: 500 !important; }
.fw-700 { font-weight: 700 !important; }

.w-full { width: 100% !important; }

.no_data p {
    text-align: center;
    padding: 20px 0;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1400px) {
    .header-inner {
        grid-template-columns: 168px minmax(0, 1fr) auto;
        column-gap: 40px;
    }

    .gnb-list {
        gap: 44px;
    }

    .gnb-list > li > a {
        font-size: 17px;
    }

    .header-util {
        margin-left: 0;
    }
}

@media (max-width: 1280px) {
    :root {
        --container-gap: 24px;
    }

    .header-inner {
        min-height: 100px;
        display: grid;
        grid-template-columns: 168px minmax(0, 1fr) auto;
        column-gap: 24px;
        align-items: center;
        padding: 0;
    }

    .logo-area {
        flex: 0 0 168px;
        width: 168px;
        min-width: 168px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo {
        width: auto;
        min-width: 0;
    }

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

    .gnb {
        display: none;
    }

    .header-util {
        width: auto;
        min-width: auto;
        margin-left: auto;
        gap: 16px;
    }

    .header-direct-link {
        height: 42px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .header-direct-link i {
        font-size: 14px;
    }

    .site-menu-head {
        height: 84px;
        padding: 0 24px;
    }

    .site-menu-pc {
        padding: 32px 24px 40px;
    }

    .site-menu-grid > li > a {
        min-height: 72px;
        font-size: 18px;
    }
}

@media (max-width: 1024px) {
    .site-menu-body {
        height: calc(100dvh - 60px);
        overflow: hidden;
    }

    .site-menu-pc {
        display: none;
    }

    .site-menu-mobile {
        display: block;
        position: relative;
        height: 100%;
        min-height: 0;
        padding-bottom: 60px;
        box-sizing: border-box;
        overflow-y: auto;
        background: #fff;
    }

    .mobile-menu-actions {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        display: flex;
        width: 100%;
        height: 60px;
        margin: 0;
        padding: 0;
        background: #fff;
    }

    .mobile-menu-action-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 60px;
        flex: 1 1 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;
        box-sizing: border-box;
    }

    .mobile-menu-action-btn.is-login,
    .mobile-menu-action-btn.is-logout {
        background: #003b96;
        color: #fff;
    }

    .mobile-menu-action-btn.is-login {
        width: 100%;
        flex: 1 1 100%;
    }

    .mobile-menu-action-btn.is-mypage {
        background: #fff;
        color: #003b96;
        border-top: 1px solid #003b96;
        border-right: 1px solid #003b96;
        border-bottom: 1px solid #003b96;
    }

    .mobile-menu-action-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        flex: 0 0 16px;
    }

    .mobile-menu-action-icon svg {
        display: block;
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
    }

    #wrap,
    #container {
        width: 100%;
        overflow-x: hidden;
    }

    .container,
    .visual-container {
        width: calc(100% - 32px);
        max-width: none;
    }

    .site-header {
        position: fixed;
        z-index: 800;
        background: #fff;
        border-bottom: 1px solid #d8dde6;
    }

    #container {
        padding-top: 68px;
    }

    #container.main {
        margin-top: 0;
    }

    .header-inner {
        min-height: 64px;
        padding: 16px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo-area {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
    }

    .logo {
        width: auto;
        min-width: 0;
    }

    .logo img {
        display: block;
        width: auto;
        height: 40px;
        max-width: 180px;
    }

    .header-util {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        width: auto;
        min-width: 0;
    }

    .util-search,
    .util-user,
    .util-logout {
        display: none;
    }

    .gnb,
    .header-direct-link {
        display: none;
    }

    .site-menu-wrap {
        max-width: 100%;
        width: 100%;
    }

    .site-menu-head {
        height: 72px;
        padding: 0 16px;
    }

    .site-menu-title {
        font-size: 22px;
    }

    .site-menu-close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .site-menu-close span {
        width: 20px;
    }

    .pagination-wrap {
        margin-top: 32px;
        width: 100%;
        padding: 0;
    }

    .pagination {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pagination-list {
        gap: 4px;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .pagination-nav {
        height: 32px;
        gap: 4px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .pagination-nav span {
        height: 32px;
        font-size: 14px;
        line-height: 1;
    }

    .pagination-nav img {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
    }

    .pagination-link,
    .pagination-ellipsis {
        min-width: 32px;
        width: 32px;
        height: 32px;
        font-size: 14px;
        line-height: 32px;
        letter-spacing: 0;
        padding: 0;
    }

    .pagination-link.is-active {
        min-width: 32px;
        width: 32px;
        height: 32px;
    }

    .site-footer {
        min-height: auto;
    }

    .footer-inner {
        min-height: auto;
        padding: 48px 16px;
    }

    .footer-logo-link {
        margin-bottom: 20px;
    }

    .footer-logo {
        height: 50px;
        max-width: 260px;
    }

    .footer-address,
    .footer-copy {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.5;
    }

    .footer-address {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .footer-copy {
        max-width: 100%;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-wrap {
        display: none;
    }

    .container,
    .visual-container {
        width: calc(100% - 24px);
    }

    .header-inner {
        min-height: 68px;
        padding-top: 12px;
        row-gap: 10px;
    }

    .logo,
    .logo-area img {
        /* max-width: 92px; */
    }

    .header-util {
        gap: 12px;
    }

    .header-util button {
        font-size: 20px;
    }

    .header-direct-link {
        height: 34px;
        padding: 0 12px;
        font-size: 11px;
    }

    .gnb {
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
    }

    .gnb-list {
        padding: 0 12px 8px;
        gap: 22px;
    }

    .gnb-list > li > a {
        font-size: 15px;
    }

    .pagination {
        gap: 6px;
    }

    .pagination-link,
    .pagination-ellipsis {
        min-width: 28px;
        width: 28px;
        height: 28px;
        font-size: 13px;
        line-height: 28px;
    }

    .pagination-link.is-active {
        min-width: 28px;
        width: 28px;
        height: 28px;
    }

    .pagination-nav {
        font-size: 13px;
    }

    .pagination-nav span {
        font-size: 13px;
        height: 28px;
    }

    .site-menu-head {
        padding: 0 12px;
    }

    .mobile-direct-link,
    .mobile-menu-list li a {
        padding-left: 16px;
        padding-right: 16px;
    }
}