@charset "utf-8";


@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('/_assets/fonts/Pretendard-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --primary: #009DE3;
}

* {
    word-break: keep-all;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard',
        'Noto Emoji',
        'Segoe UI Emoji',

        sans-serif;
    font-weight: 400;
    font-style: normal;
    position: relative;

}

/* iOS Safe Area 지원 - 상단 헤더 */
@supports (padding-top: env(safe-area-inset-top)) {
    #main-header {
        padding-top: env(safe-area-inset-top);
        min-height: calc(60px + env(safe-area-inset-top));
    }
}

/* iOS Safe Area 지원 - 모바일 오프캔버스 메뉴 */
@supports (padding-top: env(safe-area-inset-top)) {
    #mobileOffcanvas > nav > div:first-child {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }
}



.fade-in {
    opacity: 0;
    transform: translateY(30px);

}

.fade-left {
    opacity: 0;
    transform: translateX(-30px);

}

.fade-right {
    opacity: 0;
    transform: translateX(30px);

}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.6em 2em;
    font-weight: 500;
}

.btn-1 {
    border-radius: 20px;
    background-color: #0D64B6;
    color: #fff;
}

.btn-2 {
    background-color: #0D64B6;
    color: #fff;
    border-radius: 10px;
}

.input {
    padding: 0.75em 0 0.75em 1em;
    width: 100%;
    border-radius: 10px;
    border: 1px solid #D9D9D9;
}

.input::placeholder {
    color: #c2c2c2 !important;
    font-weight: 400 !important;
}

.input:focus {
    outline: none;
    border: 1px solid #0D64B6;
}

.input:focus::placeholder {
    color: #0D64B6;
}

/* Custom Checkbox */
.checkbox {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #D9D9D9;
    border-radius: 0.375rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    vertical-align: middle;
}

.checkbox:checked {
    border-color: #28A46B;
    background: #28A46B url('../imgs/icons/checked.png') no-repeat center center;
    background-size: 70%;
}

.checkbox:checked::after {
    display: none;
}

.checkbox:focus {
    outline: 0;
    outline-offset: 2px;
}

.checkbox:disabled {
    background: #f3f3f3 !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed;
    opacity: 0.7;
    background-image: none !important;
}

.checkbox:checked:disabled {
    background: #e5e7eb url('../imgs/account/checked.png') no-repeat center center !important;
    background-size: 70% 70%;
    opacity: 0.5;
}

/* Custom Radio */
.radio {
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #D9D9D9;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    vertical-align: middle;

}

.radio:checked {
    border-color: #28A46B;
    background: #28A46B;
}

.radio:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50%;
    height: 50%;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    pointer-events: none;
}

.radio:focus {
    outline: 0;
    outline-offset: 2px;
}

.radio:disabled {
    background: #f3f3f3 !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.radio:checked:disabled {
    background: #a7f3d0 !important;
    border-color: #a7f3d0 !important;
    opacity: 0.5;
}

.alert {
    width: 28px;
    height: 28px;
    display: inline-block;
    background-image: url('../imgs/icons/alert.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.alert.new {
    background-image: url('../imgs/icons/alert_new.png');
}

/* Popup Modal */
.popup-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.popup-modal__content {
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1rem;
    min-width: 280px;
    max-width: 345px;
    text-align: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s, transform 0.3s;
}

/* Animation */
@keyframes popup-in {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes popup-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.animate-popup-in {
    animation: popup-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-popup-out {
    animation: popup-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


/* PC에서 모바일 미리보기용 래퍼 */
.wrap {
    width: 100%;
    min-height: 100vh;
    margin-left: auto;
    margin-right: auto;
    background: #fff;

}

#bottom-nav {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .wrap {
        width: 430px;
        min-height: 100vh;
        margin-left: auto;
        margin-right: auto;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);

    }
    #bottom-nav {
        width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .container {
        max-width: 375px !important;
    }

    #mobileOffcanvas {
        display: none;
        width: 430px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

}

/* 스와이퍼 pagination 커스텀 */
.section4 .swiper-pagination-bullet {
    background: #EFEFEF !important;
    opacity: 1;
    width: 12px !important;
    height: 12px !important;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.15);
}

.section4 .swiper-pagination-bullet-active {
    background: #0D65B7 !important;
}

/* Toggle Switch (for Tailwind 2.x and pure CSS) */
.toggle-switch {
    position: relative;
    width: 56px;
    /* w-14 */
    height: 28px;
    /* h-7 */
    display: inline-block;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 56px;
    height: 28px;
    background: #e5e7eb;
    /* gray-200 */
    border-radius: 50px;
    transition: background 0.2s;
}

.toggle-knob {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
    width: 20px;
    height: 20px;
    background: #71717a;
    /* zinc-500 */
    border-radius: 50%;
    transition: left 0.2s, background 0.2s;
}

.toggle-switch input[type="checkbox"]:checked+label .toggle-bg {
    background: #d1fae5;
    /* emerald-50 */
}

.toggle-switch input[type="checkbox"]:checked+label .toggle-knob {
    left: 29px;
    background: #0D65B7;
    /* sky-700 */
}

.notice * {
    opacity: 0.7;
}

/* 검색기간 라디오 커스텀 */
.search-radio-wrap {
    display: flex;
    gap: 0.5rem;
}

.search-radio {
    display: none;
}

.search-radio-label {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid #d4d4d8;
    /* zinc-300 */
    color: #222;
    font-size: 0.95rem;
    font-weight: 500;
    background: #fff;
    transition: background 0.15s, color 0.15s, border 0.15s;
    display: inline-block;
}

.search-radio:checked+.search-radio-label {
    background: #0D65B7;
    color: #fff;
    border-color: #0D65B7;
}

/* tab-content 아코디언 애니메이션 */
.tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.tab-content.open {
    /* max-height: 80px;  기존 고정값 삭제 */
    /* max-height: auto; 는 트랜지션이 안 되므로, JS에서 동적으로 적용 */
    padding-top: 1rem;
    padding-bottom: 1rem;
    opacity: 1;
}

.tab-menu {
    min-width: 100px;
}

.tab-menu.active {
    border-bottom: 4px solid #0D64B6 !important;
    font-weight: 600 !important;
    color: #0D64B6 !important;
}



.jqpop-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;visibility:hidden;transition:.2s;}
.jqpop-modal.show{opacity:1;visibility:visible;}
.jqpop-overlay{position:absolute;inset:0;background:rgba(0,0,0,.55);}
.jqpop-box{position:relative;z-index:10;background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.25);width:92%;max-width:420px;overflow:hidden;padding:16px;}
.jqpop-close-btn{position:absolute;top:10px;right:10px;width:32px;height:32px;border:none;border-radius:50%;background:rgba(0,0,0,.8);color:#fff;font-size:18px;cursor:pointer;z-index:11;transition:.15s;}
.jqpop-viewport{position:relative;min-height:140px;margin-bottom:70px;}
.jqpop-item{display:none;text-align:center;}
.jqpop-img{width:100%;display:block;border-radius:10px;object-fit:cover;}
.jqpop-text{font-size:15px;color:#222;line-height:1.6;margin-top:10px;text-align:center;}
.jqpop-nav{position:relative;bottom:0;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px;padding:10px 0;}
.jqpop-btn{background:#000;color:#fff;border:none;border-radius:20px;padding:8px 14px;font-size:13px;cursor:pointer;transition:.15s;}
.jqpop-btn[disabled]{opacity:.4;cursor:default;}
.jqpop-btn:hover:not([disabled]){background:#222;}
@media(max-width:768px){.jqpop-box{width:94%;border-radius:12px;padding:12px;}.jqpop-btn{font-size:12px;padding:6px 10px;}.jqpop-text{font-size:14px;}}