/* //구글번역바 사라지게 */

/*상단 플로팅 바 옵션 가리기  */
body { position: static !important; top:0px !important; }	
iframe.goog-te-banner-frame { display: none !important; }
.skiptranslate { display: none !important; }

.goog-logo-link { display:none !important; } 
.goog-te-gadget { color: transparent !important; overflow: hidden;} 
.goog-te-balloon-frame{display: none !important;} 
.goog-tooltip {display: none !important;}
.goog-tooltip:hover {display: none !important;}
.goog-text-highlight {background-color: transparent !important; border: none !important; box-shadow: none !important;}

/* 스킵 네비게이션 강제 노출을 위한 최상위 스타일 */
#skipNavi {position:absolute; left:0; top:0; width:100%; z-index:999999;}
#skipNavi p {display:none;}
#skipNavi a {
    display:block; 
    position:absolute; 
    left:0; 
    top:-500px; 
    width:100%; 
    height:1px; 
    line-height:1px; 
    font-size:1px; 
    text-align:center; 
    overflow:hidden;
    opacity: 0;
}
#skipNavi a:focus, 
#skipNavi a:active {
    position:fixed !important;
    top:0 !important; 
    height:auto !important; 
    padding:15px 0 !important; 
    background:#20262c !important; 
    font-size:15px !important; 
    font-weight:bold !important; 
    line-height:1.5 !important; 
    color:#fff !important; 
    text-decoration:none !important;
    overflow:visible !important;
    opacity: 1 !important;
}

/* ==========================================================================
   상단 헤더 반응형 레이아웃 (992px 브레이크포인트 기준)
========================================================================== */
header#skipMenu {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1050;
}

header#skipMenu .navbar {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

header#skipMenu .jb-header-layout {
    min-height: 76px;
    gap: 12px;
}

header#skipMenu .logo_img {
    max-height: 42px;
    width: auto;
}

/* 기본 리스트 스타일 초기화 */
header#skipMenu #cssmenu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header#skipMenu #cssmenu a {
    text-decoration: none;
}

/* 우측 전화번호 공통 */
header#skipMenu .jb-header-right .top-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 1.05rem !important;
    color: #003366;
}

header#skipMenu .jb-header-right .top-icon-wrapper i {
    background-color: #003366;
    color: #ffffff;
    font-size: 0.9rem;
}

header#skipMenu .jb-header-right .top-icon-wrapper a {
    color: #111111;
    font-weight: 700;
}

/* 모바일 햄버거 버튼 기본 스타일 */
header#skipMenu .jb-hamburger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

header#skipMenu .jb-hamburger::before,
header#skipMenu .jb-hamburger::after {
    content: '';
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    background-color: #003366;
    transition: transform 0.25s ease, top 0.25s ease;
}

header#skipMenu .jb-hamburger::before {
    top: 14px;
    box-shadow: 0 6px 0 #003366;
}

header#skipMenu .jb-hamburger::after {
    top: 26px;
}

header#skipMenu .jb-hamburger.is-active::before {
    top: 19px;
    box-shadow: none;
    transform: rotate(45deg);
}

header#skipMenu .jb-hamburger.is-active::after {
    top: 19px;
    transform: rotate(-45deg);
}

.jb-drawer-backdrop {
    display: none !important;
}

/* ==========================================================================
   PC 화면 (992px 이상): 1줄 가로 메뉴 + 롤오버 세로 드롭다운
========================================================================== */
@media (min-width: 992px) {
    /* 모바일 전용 헤더 및 햄버거 버튼 완전 숨김 */
    header#skipMenu .jb-drawer-head,
    header#skipMenu .jb-hamburger {
        display: none !important;
    }

    header#skipMenu .jb-header-center {
        flex: 1 1 auto;
        min-width: 0;
    }

    header#skipMenu #cssmenu {
        display: flex !important;
        justify-content: center;
        width: 100%;
    }

    /* 1차 메뉴 한 줄 정렬 */
    header#skipMenu #cssmenu > ul {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: auto;
    }

    header#skipMenu #cssmenu > ul > li {
        position: relative;
        flex: 0 0 auto;
    }

    header#skipMenu #cssmenu > ul > li > a {
        display: block;
        padding: 26px 14px;
        font-size: 1rem;
        font-weight: 600;
        color: #111111;
        white-space: nowrap;
        transition: color 0.2s ease;
    }

    header#skipMenu #cssmenu > ul > li:hover > a,
    header#skipMenu #cssmenu > ul > li:focus-within > a {
        color: #003366;
    }

    /* 2차 서브메뉴 드롭다운 */
    header#skipMenu #cssmenu > ul > li > ul {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(6px);
        min-width: 180px;
        background-color: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-top: 3px solid #003366;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1060;
    }

    /* 롤오버 또는 키보드 포커스 시 서브메뉴 표시 */
    header#skipMenu #cssmenu > ul > li:hover > ul,
    header#skipMenu #cssmenu > ul > li:focus-within > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    header#skipMenu #cssmenu > ul > li > ul > li {
        display: block;
        width: 100%;
        text-align: center;
    }

    header#skipMenu #cssmenu > ul > li > ul > li > a {
        display: block;
        padding: 11px 16px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #333333;
        border-bottom: 1px solid #f1f3f5;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

    header#skipMenu #cssmenu > ul > li > ul > li:last-child > a {
        border-bottom: 0;
    }

    header#skipMenu #cssmenu > ul > li > ul > li > a:hover {
        background-color: #003366;
        color: #ffffff;
    }
}

/* ==========================================================================
   태블릿 & 모바일 화면 (991.98px 이하): 상단 드롭다운 메뉴
========================================================================== */
@media (max-width: 991.98px) {
    header#skipMenu .jb-header-layout {
        min-height: 64px;
    }

    /* 상단 바 우측 전화번호는 숨기고 햄버거 버튼만 노출 */
    header#skipMenu .jb-header-right .top-icon-wrapper {
        display: none !important;
    }

    header#skipMenu .jb-hamburger {
        display: inline-block !important;
    }

    /* 드롭다운 패널 (#cssmenu) */
    header#skipMenu #cssmenu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background-color: #ffffff;
        border-top: 1px solid #e5e7eb;
        border-bottom: 2px solid #003366;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        z-index: 1060;
    }

    header#skipMenu #cssmenu.is-open {
        display: block !important;
    }

    /* 드롭다운 상단 유틸(전화번호) 영역 정리 */
    header#skipMenu .jb-drawer-head {
        display: block;
        background-color: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
    }

    header#skipMenu .jb-drawer-head-row {
        display: none; /* 상단 로고 중복 방지를 위해 숨김 */
    }

    header#skipMenu .jb-drawer-utils .top-icon-wrapper {
        font-size: 0.95rem !important;
        color: #003366;
    }

    header#skipMenu .jb-drawer-utils .top-icon-wrapper a {
        color: #111111;
        text-decoration: none;
    }

    /* 1차 메뉴 세로 목록 */
    header#skipMenu #cssmenu > ul {
        display: block !important;
        width: 100% !important;
    }

    header#skipMenu #cssmenu > ul > li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #eef0f3;
    }

    header#skipMenu #cssmenu > ul > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 700;
        color: #111111;
    }

    /* 2차 서브메뉴 아코디언 */
    header#skipMenu #cssmenu > ul > li > ul {
        display: none;
        background-color: #f8fafc;
        border-top: 1px solid #eef0f3;
    }

    header#skipMenu #cssmenu > ul > li.sub-open > ul {
        display: block;
    }

    header#skipMenu #cssmenu > ul > li > ul > li > a {
        display: block;
        padding: 11px 32px;
        font-size: 0.92rem;
        font-weight: 500;
        color: #4b5563;
        border-bottom: 1px solid #eef0f3;
    }

    header#skipMenu #cssmenu > ul > li > ul > li:last-child > a {
        border-bottom: 0;
    }
}

