﻿@charset "utf-8";

/* ===================================================================
   PC (1025px ~ 1199px)
   =================================================================== */
@media screen and (min-width: 1025px) and (max-width: 1199px) {
    .inner-wrap,
    #wrap .inner-wrap,
    .gnb-area .inner-wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    .gnb-area h1 a img {
        width: 185px;
    }

    .gnb {
        position: static !important;
        transform: none !important;
    }

    .gnb > ul > li > a,
    .gnb ul > li > a {
        font-size: 16px;
        padding: 8px 12px;
    }
    .gnb-area .utility li {
        margin-left: 12px;
    }

    .gnb-area .search-bar.active .search-box {
        width: 250px;
    }
}

/* ===================================================================
   데스크톱 전체 (768px 이상): 모바일 전용 헤더 및 햄버거 토글 숨김
   =================================================================== */
@media screen and (min-width: 768px) {
    .mobile-show,
    #mobile_header,
    .drawer-toggle,
    .drawer-hamburger {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ===================================================================
   Tablet (768px ~ 1024px)
   =================================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .inner-wrap,
    #wrap .inner-wrap,
    .gnb-area .inner-wrap {
        width: 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .gnb-area {
        height: 64px;
    }

    .gnb-area .inner-wrap {
        height: 64px;
    }

    .gnb-area h1 a img {
        width: 145px;
    }

    .gnb {
        position: static !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    .gnb > ul > li > a,
    .gnb ul > li > a {
        font-size: 14px;
        font-weight: 700;
        padding: 6px 8px;
    }

    .gnb ul > li .sub-menu {
        min-width: 110px;
    }

    .gnb ul > li .sub-menu li a {
        padding: 6px 10px;
        font-size: 12px;
    }

    .gnb-area .utility {
        margin-left: 0;
    }

    .gnb-area .utility li {
        margin-left: 6px;
        font-size: 12px;
    }

    .gnb-area .utility li a {
        font-size: 12px;
    }

    .gnb-area .utility li.greeting-info {
        font-size: 11px;
    }

    .gnb-area .utility li.greeting-info b {
        font-size: 11px;
    }

    .gnb-area .search-bar {
        width: 34px;
        height: 34px;
        margin-left: 6px;
    }

    .gnb-area .search-bar .search-box {
        width: 34px;
        height: 34px;
    }

    .gnb-area .search-bar:not(.active) .search-box input[type="text"],
    .gnb-area .search-bar:not(.active) .search-box input.form-control {
        display: none !important;
    }

    .gnb-area .search-bar.active .search-box {
        width: 220px;
        height: 34px;
    }

    .gnb-area .search-bar .search-box .btn-search {
        width: 32px;
        height: 32px;
    }
}

/* ===================================================================
   Mobile ( ~ 767px)
   =================================================================== */
@media screen and (max-width: 767px) {
    /****************************************
    01. hidden contents
    ****************************************/
    .top-buttons-area,
    .utility-area,
    .gnb-bg,
    .gnb,
    .sitemap-area,
    .layer-popup-area,
    .youtube-area,
    .mobile-hidden {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
        position: relative;
        z-index: 2000;
    }

    #mobile_header {
        position: relative;
        z-index: 2000;
    }
    .gnb-nav-wrap {
        display:none;
    }

    /****************************************
    02. layout style
    ****************************************/
    .inner-wrap,
    #wrap .inner-wrap {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    #wrap {
        padding-top: 60px;
    }

    .pc-only-block {
        display: inline;
    }

    .table-responsive > table {
        table-layout: initial !important;
    }
    .table-responsive > table.paid-order-grid {
        min-width: 700px;
    }
    /****************************************
    03. header (#header & .gnb-area & .mobile-top)
    ****************************************/
    #header,
    #header.mobile-top,
    .mobile-top {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 60px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
        z-index: 1000 !important;
    }

    .gnb-area {
        height: 60px;
        border-bottom: none;
        background-color: transparent;
    }

    .gnb-area .inner-wrap {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 54px 0 16px;
        box-sizing: border-box;
        position: relative;
    }

    /* 로고 */
    .gnb-area h1 {
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
    }

    .gnb-area h1 a {
        display: flex;
        align-items: center;
    }

    .gnb-area h1 a img {
        display: block;
        width: auto;
        max-width: 170px;
        height: 32px;
        object-fit: contain;
    }

    /* 모바일 헤더 우측 컨트롤 */
    .gnb-area .utility {
        display: none;
    }

    .gnb-area .utility li {
        margin: 0;
    }

    .gnb-area .utility li.greeting-info {
        display: none !important;
    }

    /* 로그인 텍스트 숨김 (모바일 슬라이드 드로어 메뉴에 포함) */
    .gnb-area .utility li:not(:first-child) {
        display: none !important;
    }

    /* 장바구니 아이콘 버튼 */
    .gnb-area .utility li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: #f1f5f9;
        color: #475569;
        font-size: 0;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .gnb-area .utility li a:hover {
        background-color: #e2e8f0;
        color: #1e60d5;
    }

    .gnb-area .utility li a i {
        font-size: 16px;
        margin: 0;
    }

    /* 검색 바 (모바일) */
    .gnb-area .search-bar {
        display: block !important;
        position: relative !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 0 0 6px !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        flex-shrink: 0 !important;
    }

    .gnb-area .search-bar .search-box {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background-color: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.2s ease !important;
    }

    .gnb-area .search-bar:not(.active) .search-box input[type="text"],
    .gnb-area .search-bar:not(.active) .search-box input.form-control {
        display: none !important;
    }

    .gnb-area .search-bar.active .search-box {
        position: fixed !important;
        top: 10px !important;
        right: 56px !important;
        width: calc(100vw - 72px) !important;
        max-width: 280px !important;
        height: 40px !important;
        border-radius: 20px !important;
        z-index: 2500 !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
        border-color: #1e60d5 !important;
    }

    .gnb-area .search-bar.active .search-box input[type="text"],
    .gnb-area .search-bar.active .search-box input.form-control {
        display: block !important;
        flex: 1 !important;
        width: auto !important;
        height: 100% !important;
        padding: 0 12px 0 16px !important;
        font-size: 13px !important;
    }

    .gnb-area .search-bar .search-box .btn-search {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        background: transparent !important;
        color: #64748b !important;
    }

    .gnb-area .search-bar .search-box .btn-close {
        width: 30px !important;
        min-width: 30px !important;
        height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        color: #94a3b8 !important;
    }

    /* 모바일 햄버거 메뉴 버튼 */
    .drawer-hamburger {
        display: flex !important;
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        background-color: transparent !important;
        border: none !important;
        border-radius: 6px;
        z-index: 2100 !important;
        cursor: pointer;
        outline: none;
    }

    .drawer-hamburger-icon {
        position: relative;
        display: block;
        width: 20px;
        height: 2px;
        background-color: #1e293b !important;
        border-radius: 2px;
        transition: all 0.3s ease;
        margin: 0 auto;
    }

    .drawer-hamburger-icon::before,
    .drawer-hamburger-icon::after {
        content: '';
        position: absolute;
        left: 0;
        width: 20px;
        height: 2px;
        background-color: #1e293b !important;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .drawer-hamburger-icon::before {
        top: -6px;
    }

    .drawer-hamburger-icon::after {
        top: 6px;
    }

    .drawer-open .drawer-hamburger-icon {
        background-color: transparent !important;
    }

    .drawer-open .drawer-hamburger-icon::before {
        top: 0;
        transform: rotate(45deg);
        background-color: #ffffff !important;
    }

    .drawer-open .drawer-hamburger-icon::after {
        top: 0;
        transform: rotate(-45deg);
        background-color: #ffffff !important;
    }

    .drawer-right.drawer-open .drawer-hamburger,
    .drawer-open .drawer-hamburger {
        right: 12px !important;
        transform: none !important;
        z-index: 6500 !important;
    }

    /* drawer-footer */
    .drawer-navbar-default .drawer-submenu-item a:hover, .drawer-navbar-default .drawer-submenu-item a:focus {
        color: #fff;
    }

    .drawer-navbar-default .drawer-footer {
        height: auto;
        line-height: 1.5;
    }

        .drawer-navbar-default .drawer-footer .mobile-login-area {
            padding: 20px 0;
        }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-btn {
                display: inline-block;
                width: 70px;
                height: 30px;
                line-height: 30px;
                text-align: center;
                font-size: 13px;
                color: #333;
                border-radius: 1px;
                background-color: #fff;
            }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-btn {
                margin-right: 5px;
            }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-login-title {
                display: block;
                margin: 0 0 20px;
                font-size: 13px;
                color: #eee;
            }

                .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-login-title b {
                    color: #f39c12;
                }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-btn.logout {
                margin-right: 10px;
            }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-btn.admin {
                margin-right: 10px;
            }

            .drawer-navbar-default .drawer-footer .mobile-login-area .mobile-btn.lang {
            }

    .mobile-header-group {
        content: '';
        display: block;
        clear: both;
    }

    .drawer-brand {
        position: relative;
        width: 100%;
        height: 55px;
    }
    /*mobile-menue*/
    .mobile-info {
        float: left;
        width: 125px;
    }

        .mobile-info a {
            padding: 0 !important;
            font-size: 14px !important;
        }

        .mobile-info .m-picture {
            display: inline-block;
            vertical-align: middle;
            margin: 10px 0 0 15px;
            width: 35px;
            height: 35px;
            overflow: hidden;
            border: 1px solid #eee;
            border-radius: 50%;
            background-color: #ddd;
        }

            .mobile-info .m-picture img {
                width: 33px;
                height: auto;
            }

        .mobile-info .m-name {
            display: inline-block;
            overflow: hidden;
            width: 64px;
            margin: 0;
            padding: 10px 0 0 10px;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: middle;
            color: #fff;
            font-size: 13px;
        }
        .mobile-info .m-order-find {
                  position: absolute;
                right: 45px;
                top: 0px;
                font-size: 13px !important;
                padding: 17px !important;
        }

    .mobile-login {
        display: flex;
        align-items: center;
        height: 55px;
    }
    .drawer-navbar-default .drawer-brand a {
        flex: 0 1 44%;
    }
        .mobile-login:hover {
        }

        .mobile-login a:last-child {
            padding: 0 !important;
        }

        .mobile-login a {
            display: inline-block;
            padding: 0 5px 0 0 !important;
            line-height: 1;
            text-align: center;
        }

            .mobile-login a:hover {
                color: #fff !important;
            }

            .mobile-login a i {
                font-size: 18px;
            }

            .mobile-login a span {
                font-size: 10px;
            }

    /* *******************************************************************
	    도서안내 본문 검색바 (헤더 검색바 제외)
    ******************************************************************* */
    .sub-contents .search-bar,
    .search-bar:not(#headerSearchBar) {
        margin: 0 0 20px;
        padding: 10px;
        text-align: center;
        border: 1px solid #d7d7d7;
        border-radius: 2px;
        background-color: #f3f3f3;
    }

        .search-bar:not(#headerSearchBar) input[type=text] {
            display: inline-block;
            width: 220px;
            height: 44px;
            vertical-align: middle;
            border-radius: 2px;
        }

        .search-bar:not(#headerSearchBar) .btn {
            display: inline-block;
            width: 50px;
            height: 42px;
            vertical-align: middle;
            border-radius: 2px;
        }
    .pd-r20 {
        padding-right: 20px !important;
    }

    /*******************************************************************
       footer style
    ******************************************************************* */
    /*******************************************************************
	    #footer
    ******************************************************************* */
    #footer {
        padding: 0;
    }

        #footer .footer .inner-wrap {
            background: none;
        }

    /*******************************************************************
	    #footer - utility-footer
    ******************************************************************* */
    .utility-footer {
        background-color: #4d4d4d;
    }
        .utility-footer .inner-wrap {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 16px;
            gap: 8px;
            min-height: auto;
        }

        .utility-footer ul {
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            text-align: center;
        }

            .utility-footer ul li {
                float: none;
                width: auto;
                margin: 0 8px;
                padding: 6px 0;
            }

                .utility-footer ul li a {
                    height: auto;
                    line-height: 1.1;
                    padding: 0;
                    text-align: center;
                    font-size: 13px;
                    background-color: #4d4d4d;
                }

                    .utility-footer ul li a:hover {
                        background-color: #4d4d4d;
                    }

        .utility-footer .aik-homepage {
            width: 100%;
            justify-content: center;
            padding-bottom: 4px;
        }

    /*******************************************************************
	    #footer - address
    ******************************************************************* */
    address {
        display: none;
    }
        address p {
            margin: 0 0 20px;
            padding: 0;
            font-size: 13px;
        }
    .copyright {
        margin: 0;
        padding: 30px;
        text-align: center;
        font-size: 13px;
    }

    /****************************************
    03. mobile style
    ****************************************/
    .mobile-hidden {
        display: none !important;
    }

    .mobile-show {
        display: block !important;
    }

    /****************************************
    04. specific style
    ****************************************/


    /****************************************
    05. etc style
    ****************************************/
    /* header sticky */

}

/* phone ~ 360px */
@media screen and (max-width: 360px) {
    .gnb-area h1 a img {
        max-width: 130px;
        height: 26px;
    }

    .gnb-area .inner-wrap {
        padding-left: 10px;
        padding-right: 48px;
    }

    .gnb-area .utility li a,
    .gnb-area .search-bar {
        width: 32px !important;
        height: 32px !important;
    }

    .gnb-area .search-bar .search-box {
        width: 32px !important;
        height: 32px !important;
    }

    .gnb-area .search-bar .search-box .btn-search {
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
    }
}

@media print {
}