@charset "UTF-8";

/* ========================================
   INFAITH HEADER
======================================== */

.if-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    font-family: inherit;
}

.if-header a {
    text-decoration: none;
}

/* ========================================
   1. 상단 유틸리티 메뉴
======================================== */

.if-top {
    height: 35px;
    background: #f5f6f8;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

.if-top button, 
.if-top a {
    padding: 0 10px;
    color: #666;
    line-height: 35px;
    font-size: 12px;
}

.if-top a:hover {
    color: #154b78;
}

.if-top-line {
    color: #ccc;
}

/* ========================================
   2. 메인 헤더
======================================== */

.if-main {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.if-main > .container > .d-flex {
    /* 필요하면 min-height 지정 */
}

/* 로고 */

.if-logo {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    color: #154b78;
    line-height: 1.2;
}

.if-logo > div {
    position: absolute;
    top: 10px;
    z-index: 1002;
}

/* ========================================
   3. 데스크탑 주 메뉴
======================================== */

.if-navbar {
    padding: 0;
}

.if-desktop-nav {
    display: block;
}

.if-desktop-nav .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.if-desktop-nav .nav-link {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s;
}

.if-desktop-nav .nav-link:hover,
.if-desktop-nav .nav-link:focus {
    color: #17649b;
}

/* 전체 메뉴 버튼 */

.if-all-menu-btn .btn {
    padding: 8px 12px;
    border: 0;
    color: #333;
    font-size: 28px;
    box-shadow: none;
}

.if-all-menu-btn .btn:hover {
    color: #17649b;
}

/* ========================================
   4. 모바일 메뉴 버튼
======================================== */

.if-mobile-toggle {
    display: none;
    padding: 5px 10px;
    border: 0;
    background: transparent;
    color: #333;
    font-size: 28px;
    cursor: pointer;
}

.if-mobile-toggle:hover {
    color: #17649b;
}

.if-mobile-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* ========================================
   5. 전체 메뉴
======================================== */

.menu_all {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    width: 100%;
    padding: 30px 0 40px;
    background: #fff;
    border-top: 2px solid #17649b;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.menu_all.show {
    display: block;
}

/* 전체 메뉴 제목 영역 */

.if-menu-all-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.if-menu-all-header h5 {
    margin: 0;
    color: #154b78;
    font-size: 20px;
    font-weight: 700;
}

.if-menu-all-header button {
    border: 0;
    background: transparent;
    color: #555;
    font-size: 22px;
}

/* 전체 메뉴 그룹 */

.if-menu-group {
    margin-bottom: 25px;
}

.if-menu-group h6 {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #154b78;
    color: #154b78;
    font-size: 16px;
    font-weight: 700;
}

.if-menu-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.if-menu-group li {
    margin-bottom: 9px;
}

.if-menu-group li a {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    transition: all .2s;
}

.if-menu-group li a:hover {
    padding-left: 5px;
    color: #17649b;
}

/* 전체 메뉴 선택 항목 애니메이션 */

.if-menu-group.menu-highlight {
    animation: menu-highlight 2s ease;
}

/* 검색 버튼 */
.if-search-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 3px 10px;
    font-size: 15px;
    cursor: pointer;
}

.if-search-toggle:hover {
    color: #0d6efd;
}

/* 검색창 */
.if-search-form {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    /* padding: 10px 0 12px; */
}

.if-search-form input[type="text"] {
    width: 260px;
    height: 28px;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.if-search-form button {
    width: 36px;
    height: 28px;
    border: 0;
    border-radius: 3px;
    background: #333;
    color: #fff;
    cursor: pointer;
}
.if-search-form button {
    background: #164eaa;
}
.if-search-form button:hover {
    background: #0d6efd;
}
#ifSearchBox {
    /* margin-right: 5px; */
}
@media (max-width: 575.98px) {
    .if-search-form input[type="text"] {
        width: 100%;
    }
}

@keyframes menu-highlight {
    0%, 50% {
        background-color: transparent;
        transform: translateY(0);
    }

    15%, 35%, 65%, 85% {
        background-color: #e8f6fc;
    }

    25%, 75% {
        background-color: #e8f6fc;
        transform: translateY(-5px);
    }

    50%, 100% {
        background-color: transparent;
        transform: translateY(0);
    }
}

/* ========================================
   6. 모바일 메뉴
======================================== */

/* 모바일 메뉴 기본 상태 */

.if-mobile-nav {
    width: 100%;
}

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

.mobile-submenu {
    background: #f7f8fa;
}

.mobile-submenu ul {
    margin: 0;
    padding: 5px 15px;
    list-style: none;
}

.mobile-submenu li {
    margin: 0;
}

.mobile-submenu li a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 13px;
    text-decoration: none;
}

.mobile-submenu li a:hover {
    color: #17649b;
}

/* ========================================
   7. 태블릿 및 작은 데스크탑
======================================== */

@media (max-width: 1199.98px) {

    .if-desktop-nav .nav-link {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 14px;
    }

    .if-logo-name {
        font-size: 26px;
    }

}

/* ========================================
   8. 모바일
======================================== */

@media (max-width: 991.98px) {

    /* 헤더 배치 */

    .if-main > .container > .d-flex {
        min-height: 75px;
        flex-wrap: wrap;
    }

    /* 데스크탑 메뉴 숨김 */

    .if-desktop-nav {
        display: none !important;
    }

    /* 모바일 메뉴 버튼 */

    .if-mobile-toggle {
        display: block;
    }

    /* 모바일 메뉴 영역 */

    .if-navbar {
        width: 100%;
    }

    /*
     * Bootstrap의 .navbar-collapse 규칙과
     * 충돌하지 않도록 navbar-collapse 클래스 사용 안 함
     */

    .if-mobile-nav {
        width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
        border-top: 1px solid #eee;
    }

    .if-mobile-nav .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        gap: 0;
    }

    .if-mobile-nav .nav-link {
        display: block;
        padding: 13px 5px !important;
        border-bottom: 1px solid #eee;
    }

    /* 전체 메뉴 버튼 숨김 */

    .if-all-menu-btn {
        display: none;
    }

    /* 모바일 대메뉴 아코디언 화살표 */

    .mobile-menu-arrow {
        display: inline-block;
        float: right;
        font-size: 12px;
        transition: transform .2s;
    }

    .if-mobile-nav .nav-link[aria-expanded="true"] .mobile-menu-arrow {
        transform: rotate(180deg);
    }

    /* 모바일 소메뉴 */

    .mobile-submenu {
        margin-bottom: 5px;
    }

    /* 모바일 전체 메뉴 */

    .menu_all {
        position: static;
        padding: 20px 0;
        box-shadow: none;
    }

    .if-menu-group {
        margin-bottom: 20px;
    }

}

/* ========================================
   9. 작은 모바일
======================================== */

@media (max-width: 575.98px) {

    .if-main > .container > .d-flex {
        min-height: auto;
    }

    .if-logo-name {
        font-size: 24px;
    }

    .if-logo-desc {
        font-size: 8px;
    }

    .if-logo img {
        width: 30%;
    }

    .if-top {
        height: 30px;
    }

    .if-top a {
        line-height: 30px;
    }

    .if-menu-group h6 {
        font-size: 14px;
    }

    .if-menu-group li a {
        font-size: 12px;
    }

}

/* ========================================
   10. 데스크탑 전용
======================================== */

@media (min-width: 992px) {

    /* 모바일 메뉴 완전히 숨김 */

    .if-mobile-toggle,
    .if-mobile-nav {
        display: none !important;
    }

    .mobile-menu-arrow {
        display: none !important;
    }

    .mobile-submenu {
        display: none !important;
    }

}
