@charset "utf-8";

/* 에스코어 드림 웹폰트 불러오기 */
@import url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream.woff') format('woff');

#hd *, #hd *::before, #hd *::after {
    box-sizing: border-box !important;
}

html { overflow-y: scroll; font-size: 16px; }
body { margin: 0; padding: 0; font-family: 'Malgun Gothic', dotum, sans-serif; color: #333; background-color: #f8f9fa; }
ul, ol, li { margin: 0; padding: 0; list-style: none !important; }
a { color: #333; text-decoration: none !important; }
a:hover { color: #75b927; }

#hd {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06) !important;
    border-bottom: 1px solid #eef0f2 !important;
}

.church-header-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important; 
    margin: 0 auto !important;
    padding: 0 3vw !important; 
    height: 5.2vw !important; 
    min-height: 68px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.church-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}
.church-logo img {
    height: 2.5vw !important; 
    min-height: 34px !important;
    width: auto !important;
}

/* [간격만 딱 반으로 축소] 기존 2.2vw -> 1.1vw로 변경 */
.church-gnb-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    gap: 0.9vw !important; 
    margin: 0 auto !important; 
}
.church-gnb-item {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.church-gnb-link {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 0.5vw !important; 
    font-size: 1.05vw !important; 
    font-weight: 700 !important;
    color: #2c3e50 !important;
    white-space: nowrap !important;
}
.church-gnb-link:hover {
    color: #75b927 !important;
}

/* 서브 메뉴(2단 드롭다운) 디자인 및 에스코어 드림 폰트 적용 */
.church-gnb-2d {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    min-width: 170px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
    border-radius: 0 0 10px 10px !important;
    border: 1px solid #e5e5e5 !important;
    border-top: 3px solid #75b927 !important;
    padding: 8px 0 !important;
    z-index: 10010 !important;
}
.church-gnb-item:hover .church-gnb-2d {
    display: block !important;
}
.church-gnb-2d li {
    border-bottom: 1px solid #f4f4f4;
}
.church-gnb-2d li:last-child {
    border-bottom: none;
}
.church-gnb-2d li a {
    display: block !important;
    padding: 11px 15px !important;
    color: #555 !important;
    font-size: clamp(16px, 0.8vw, 22px) !important; /* 최소 13px, 최대 15px로 크기 제한 */
    font-weight: 600 !important; 
    font-family: 'S-CoreDream', 'Malgun Gothic', sans-serif !important; 
    text-align: center !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}
.church-gnb-2d li a:hover {
    background: #f7faf2 !important;
    color: #75b927 !important;
    font-weight: 700 !important; 
}

.church-util-area {
    display: flex !important;
    align-items: center !important;
    gap: 1.5vw !important;
    flex-shrink: 0 !important;
}
.church-sns {
    display: flex !important;
    gap: 14px !important;
}
.church-sns a {
    font-size: 1.2vw !important;
    color: #666 !important;
}
.church-sns a:hover {
    color: #75b927 !important;
}

.church-auth {
    display: flex !important;
    align-items: center !important;
}
.church-auth a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.9vw !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    background: #1a56a7 !important;
    padding: 0.5vw 1.2vw !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}
.church-auth a:hover {
    background: #154388 !important;
    color: #ffffff !important;
}

.responsive-hamburger {
    display: none !important;
    background: none !important;
    border: 0 !important;
    font-size: 1.5rem !important;
    color: #222 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

#mobileMenuOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 20000;
}
#mobileMenuBox {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    z-index: 20001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.m-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.m-menu-close {
    background: none;
    border: 0;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}
.m-menu-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}
.m-menu-list > li {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 10px;
}
.m-menu-list > li > a {
    font-size: 1.1em;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
}
.m-sub-list {
    padding-left: 12px;
}
.m-sub-list li {
    margin-bottom: 6px;
}
.m-sub-list li a {
    font-size: 0.92em;
    color: #666;
    display: block;
}

#wrapper {
    width: 100%;
    min-height: 600px;
    padding-top: 5.2vw; 
    background: #f8f9fa;
}

/* ==========================================
   반응형 미디어쿼리 (1100px 이하) - 모바일 영역 완벽 고정 유지
   ========================================== */
@media (max-width: 1100px) {

    #hd .church-logo {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    #hd .church-util-area {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #hd .church-gnb-bar {
        display: none !important;
    }
    #hd .church-sns {
        display: none !important;
    }

    #hd .church-header-wrap {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        height: 70px !important;
        min-height: 70px !important;
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    #hd .church-logo {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        flex: 0 1 auto !important;
        overflow: hidden !important;
    }

    #hd .church-logo a {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    #hd .church-logo img {
        display: block !important;
        height: 38px !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    #hd .church-util-area {
        position: static !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        width: auto !important;
        min-width: max-content !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    #hd .church-auth {
        display: flex !important;
        align-items: center !important;
    }

    #hd .church-auth a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        border-radius: 18px !important;
    }

    #hd .responsive-hamburger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 24px !important;
        line-height: 1 !important;
        border: 0 !important;
        background: transparent !important;
        color: #222 !important;
        flex-shrink: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    #wrapper {
        padding-top: 70px !important;
    }
}