/* =============================================
   노가다아이 헤더 스타일
   /theme/rb.basic/rb.layout_hd/basic/style.css
   =============================================
   [NGD] 표시 = 노가다아이 추가/변경
   원본 리빌더 스타일은 주석으로 보관
   ============================================= */


/* -----------------------------------------------
   원본 리빌더 스타일 (그대로 유지)
----------------------------------------------- */
.row_gnbs {position: relative;}
.row_gnbs .cbp-hrmenu > ul, .cbp-hrmenu .cbp-hrsub-inner {padding-left: 0px; padding-right: 0px;}
.row_gnbs .cbp-hrmenu > ul > li {padding-left: 0px; padding-right: 30px;}
.row_gnbs .cbp-hrmenu > ul {float:none !important; line-height: 100%;}
.gnb_wrap .row_gnbs nav {float:none;}

/* [NGD] 원본 search_top_wrap 주석 보관 (ngd_search_wrap 으로 대체)
.search_top_wrap {float:left; position: relative; width: 250px;}
.search_top_wrap input {border:0px;border-radius: 40px; height:40px; width: 100%; color:#000;}
.search_top_wrap input::placeholder{font-family:'font-R',sans-serif; color:#999;}
.search_top_wrap button {position: absolute; top:10px; right:15px;}
.search_top_wrap input:focus {border:1px solid #ddd;}
.search_top_wrap_inner {position: relative;}
*/

/* 게시판 fixed 버튼 위치조정 */
.rb_bbs_wrap .btns_gr_wrap {top:185px !important;}

/* [NGD] 원본 co_header0 스타일 보관
.co_header0 .rows_gnb_wrap {border-top:1px solid rgba(0,0,0,0.05);}
.co_header0 .search_top_wrap input {background-color: rgba(0,0,0,0.05);}
.ser_display_none .search_top_wrap_inner {display: none;}
*/

.cbp-hrmenu .cbp-hrsub-inner > div {min-width: 140px;}
/* [NGD] 원본 margin-left: -30px → 0으로 변경 */
.cbp-hrmenu .cbp-hrsub {margin-left: 0;}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li{position: relative; min-height:32.2px;}
/* [NGD] 원본 cbp-hrsub padding 조정 */
#cbp-hrmenu .cbp-hropen .cbp-hrsub {padding: 16px 20px; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,0.10); border: 1px solid #e5e7eb;}
.cbp-hrmenu .cbp-hrsub-inner > div i {position: absolute; top:7px; right:-5px; opacity: 0.5; transition: transform 220ms ease, opacity 220ms ease;}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li:hover i {opacity: 0;}
.cbp-hrmenu .cbp-hrsub-inner > div a {padding-right: 20px;}

#cbp-hrmenu .cbp-hrsub-3 {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    left: 100%;
    top: -10px;
    background-color: #fff;
    min-width: 120px;
    padding: 15px 20px;
    border-radius: 8px; /* [NGD] 원본 10px → 8px */
    box-shadow: 0 4px 24px rgba(0,0,0,0.10); /* [NGD] 원본 0px 0px 20px rgba(0,0,0,0.05) */
    border: 1px solid #e5e7eb; /* [NGD] 추가 */
    transform: translate3d(0, 6px, 0);
    transition: transform 220ms ease, opacity 220ms ease;
    z-index: 9;
}
#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover > .cbp-hrsub-3 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}
#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover > .cbp-hrsub-3 a {padding-top: 4px; padding-bottom: 4px; font-family: 'font-R'; font-size: 13px; padding-right: 0px;}
#cbp-hrmenu .cbp-hrsub > .cbp-hrsub-inner ul > li:hover {position: relative;}

/* [NGD] 원본 #header 스타일 변경
   원본: box-shadow:none; border-bottom:1px solid #eee; padding-bottom:0px;
   변경: border 제거, padding/margin 강제 리셋, 스크롤 transition 추가 */
#header {
    box-shadow: none !important;
    border-bottom: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: top 0.3s;
}
/* [NGD] 원본: top:-60px → -75px (1단 높이만큼 조정) */
#header.gnb_up {top: -85px !important;}

/* [NGD] 원본 gnb_wrap.inner flex 구조 주석 보관 (ngd_top_inner 로 이동)
.gnb_wrap .inner {display: flex; align-items: center; gap:30px}
.gnb_wrap .snb_wrap {float:none; margin-left: auto; display: flex; align-items: center; gap:30px;}
.gnb_wrap .logo_wrap {margin-right: 0px;}
.gnb_wrap ul {line-height: 100%;}
.gnb_wrap .snb_wrap .qm_wrap a {padding-left: 0px; padding-right: 0px; line-height: 100%; margin: 0px; float:none; width: auto;}
.gnb_wrap #ol_after_scrap {margin-top: 0px;}
.gnb_wrap .snb_wrap .qm_wrap {display: flex; align-items: center; gap:10px;}
.gnb_wrap .snb_wrap .member_info_wrap {margin-left: 0px;}
.gnb_wrap .snb_wrap .my_btn_wrap {float:none; margin-left: 0px;}
.gnb_wrap .snb_wrap .my_btn_wrap button {background-color: #fff; border:1px solid #ddd; height:35px; color:#000;}
.gnb_wrap .snb_wrap .qm_wrap a span {left: 10px; border-radius: 20px; min-width: 18px; text-align: center; top:-4px}
.gnb_wrap .snb_wrap .member_info_wrap a .notranslate font {opacity: 0.6;}
.gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {background-image: url(../../rb.img/icon/arr_down.svg);}
.gnb_wrap .snb_wrap .qm_wrap a svg {opacity: .3; margin-top: 3px;}
.gnb_wrap .snb_wrap .qm_wrap a:hover svg {opacity: 1;}
*/

.gnb_wrap .rows_gnb_wrap {margin-top: 0px; border-top:0px; padding-bottom: 0px;} /* [NGD] padding-bottom 0으로 */
.gnb_wrap .rows_gnb_wrap .cbp-hrmenu > ul > li {padding-right: 0px;}
.gnb_wrap .rows_gnb_wrap nav {width: 100%;}
.gnb_wrap .rows_gnb_wrap nav .swiper-slide-gnb {width: auto !important;}
.swiper-container-gnb {overflow: inherit !important;}
/* [NGD] 원본 snb_q_wrap → 이용안내/공고등록 버튼 스타일로 변경
   원본: .gnb_wrap .snb_q_wrap {display:flex; align-items:center; gap:25px; flex:0 0 auto;}
         .gnb_wrap .snb_q_wrap a {opacity: 0.6} */
.gnb_wrap .rows_gnb_wrap {display: flex; align-items: center; margin: 0 auto;}
.gnb_wrap .rows_gnb_wrap .row_gnbs {width: 100%; margin:inherit; display: block; align-items: center; gap: 0px;}
.gnb_wrap nav {background-color: transparent;}

/* [NGD] 원본 rb_my_ovray 스타일 보관
#rb_my_ovray.arr_bg.is_open{background-image: url(../../rb.img/icon/arr_up.svg);}
*/

.rb_my_panel {
    display: none;
    position: absolute; /* [NGD] fixed로 변경됨 (아래 #rb_my_panel에서 override) */
    min-height: 200px;
    z-index: 999;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10); /* [NGD] 원본 0px 0px 20px rgba(0,0,0,0.05) */
    padding: 20px;
    border: 1px solid #e5e7eb; /* [NGD] 추가 */
}
#rb_my_panel {position: fixed;}
#rb_my_panel[aria-hidden="true"] {display: none;}
#rb_my_panel.is_open {display: block;}

.rb_my_panel_row {display: flex; align-items: center; gap:15px;}
.rb_my_panel_row .rb_my_p_ul1 {}
.rb_my_panel_row .rb_my_p_ul1 img {height:40px; border-radius: 10px;}
.rb_my_panel_row .rb_my_p_ul2 {}
.rb_my_panel_row .rb_my_p_ul2 li {float:none;}
.my_p_flex {display: flex; align-items: center; gap:5px;}
.rb_my_p_btn {flex: 1 1 0; min-width: 0; background-color: #f0f5f9 !important; border:0px !important; border-radius: 6px; text-align: center; color:#000; height:34px; font-size:14px; cursor:pointer;}
.rb_my_p_btn_w {background-color: #fff !important; border:1px solid #e5e7eb !important;} /* [NGD] #ddd → #e5e7eb */
.rb_my_p_ul2.flex_r {margin-left: auto;}
.rb_my_panel_line {border-top:1px solid #e5e7eb; margin-top: 10px;} /* [NGD] #eee → #e5e7eb */

#google_notranslate_top {margin-left: 0px !important; position: relative;}
.translation-links {top:25px !important; right:-17px !important; box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;}
.translation-links a {margin-top: 2px; margin-bottom: 2px; display: block}
.translation-links::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}


/* -----------------------------------------------
   [NGD] 1단 영역 (신규 추가)
   원본에 없던 구조: ngd_top_wrap / ngd_top_inner
----------------------------------------------- */
.ngd_top_wrap {
    background: #fff;
    overflow: hidden;
    height: 85px;
}
.ngd_top_inner {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 70px;
    margin: 0 auto;
    padding: 30px 0 0 0;
}

/* [NGD] 로고 - 원본 ul.logo_wrap → div.ngd_logo_wrap */
.ngd_logo_wrap { flex: 0 0 auto; }
.ngd_logo_wrap img { display: block; height: 34px; width: auto; margin: 0 0 7px 0; }

/* [NGD] 검색창 - 원본 ul.search_top_wrap → div.ngd_search_wrap */
.ngd_search_wrap { flex: 1 1 auto; max-width: 425px; }
.ngd_search_wrap form { position: relative; display: flex; align-items: center; }
.ngd_search_input {
    width: 100%;
    height: 42px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 44px 0 16px;
    font-size: 15px;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s, background 0.15s;
    outline: none;
    box-sizing: border-box;
}
.ngd_search_input::placeholder { color: #9ca3af; font-family: 'font-R', sans-serif; }
.ngd_search_input:focus { border-color: #4f8dfd; background: #fff; }
.ngd_search_btn {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center;
}
.ngd_search_btn:hover svg path { fill: #4f8dfd; }

/* [NGD] 회원영역 - 원본 ul.snb_wrap → div.ngd_member_wrap */
.ngd_member_wrap { flex: 0 0 auto; margin-left: auto; }

/* [NGD] 비로그인 */
.ngd_member_guest { display: flex; align-items: center; gap: 4px; }
.ngd_login_btn {
    font-size: 16px;
    font-family: 'font-B', sans-serif !important;
    color: #374151;
    padding: 4px 8px;
    text-decoration: none;
    transition: color 0.15s;
}
.ngd_join_btn {
    font-size: 16px;
    font-family: 'font-B', sans-serif !important;
    color: #374151;
    padding: 4px 0 4px 8px;
    text-decoration: none;
    transition: color 0.15s;
}
.ngd_login_btn:hover, .ngd_join_btn:hover { color: #2563eb; }
.ngd_member_divider { color: #e5e7eb; font-size: 14px; }

/* [NGD] 로그인 상태 */
.ngd_member_logged { display: flex; align-items: center; gap: 16px; }
.ngd_icon_btn { position: relative; display: flex; align-items: center; color: #374151; text-decoration: none; }
.ngd_icon_btn:hover svg path { fill: #2563eb; }
.ngd_header_badge {
    position: absolute; top: -6px; right: -8px;
    background: #FF3F00; color: #fff; font-size: 11px;
    min-width: 16px; height: 16px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.ngd_myinfo_btn {
    display: flex; align-items: center;
    height: 36px; padding: 0 14px;
    background: #fff; border: 1.5px solid #e5e7eb; border-radius: 8px;
    font-size: 15px; color: #111827; cursor: pointer;
    transition: border-color 0.15s; white-space: nowrap;
}
.ngd_myinfo_btn:hover { border-color: #4f8dfd; color: #2563eb; }
.ngd_myinfo_btn.is_open { border-color: #4f8dfd; }


/* -----------------------------------------------
   [NGD] 2단 GNB 영역 스타일
----------------------------------------------- */
.gnb_wrap {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 !important;
    margin: 0 !important;
}
.rows_gnb_wrap {
    display: flex;
    align-items: center;
    height: 62px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}
.row_gnbs { flex: 1 1 auto; min-width: 0; position: relative; }
.row_gnbs nav { background: transparent; float: none; }

/* GNB 메뉴 링크 */
.gnb_wrap .cbp-hrmenu > ul { float: none; line-height: 100%; padding: 0; }
.gnb_wrap .cbp-hrmenu > ul > li { padding: 0 30px 0 0 !important; }
.gnb_wrap .cbp-hrmenu > ul > li:last-child { padding-right: 0; }
.gnb_wrap .cbp-hrmenu > ul > li > a {
    font-size: 18px;
    color: #374151;
    font-family: 'font-B', sans-serif;
    text-decoration: none;
    padding: 0;
    line-height: 46px;
    display: block;
    white-space: nowrap;
    transition: color 0.15s;
}
.gnb_wrap .cbp-hrmenu > ul > li > a:hover,
.gnb_wrap .cbp-hrmenu > ul > li.cbp-hropen > a { color: #2563eb; }

/* 드롭다운 서브메뉴 */
.row_gnbs .cbp-hrmenu .cbp-hrsub {top: 40px;}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li a {
    font-size: 14px; color: #374151; padding: 5px 0; font-family: 'font-R', sans-serif;
}
#cbp-hrmenu .cbp-hrsub .cbp-hrsub-inner > div > ul > li a:hover { color: #2563eb; }

/* [NGD] snb_q_wrap - 원본 마켓/1:1문의/FAQ/새글 → 이용안내+공고등록 버튼 */
.snb_q_wrap { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ngd_guide_btn {
    font-size: 13px; color: #374151; text-decoration: none;
    font-family: 'font-R', sans-serif; transition: all 0.15s;
    padding: 5px 12px; border: 1.5px solid #d1d5db; border-radius: 6px; white-space: nowrap;
}
.ngd_guide_btn:hover { color: #2563eb; border-color: #2563eb; }
.ngd_post_btn {
    font-size: 13px; color: #fff !important; text-decoration: none;
    background: #2563eb; border-radius: 6px; padding: 5px 12px;
    transition: background 0.15s; white-space: nowrap; border: 1.5px solid #2563eb;
}
.ngd_post_btn:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* swiper */
.swiper-container-gnb { overflow: inherit !important; }
.gnb_wrap .rows_gnb_wrap .row_gnbs .swiper-slide-gnb { width: auto !important; }

/* 토글 (모바일) */
.tog_wrap.mobile { display: none; }


/* -----------------------------------------------
   반응형
   원본 기반 + [NGD] 수정사항 적용
----------------------------------------------- */
@media all and (max-width:1024px) {

    /* [NGD] 모바일 토글 표시 */
    .tog_wrap.mobile { display: flex; }

    /* [NGD] 원본: search_top_wrap display:none → ngd_search_wrap 으로 대체 */
    /* .search_top_wrap {display: none !important;} */
    .ngd_search_wrap { display: none; }

    .gnb_wrap .snb_wrap .qm_wrap a {width: auto; padding-left: 0px;}

    /* 1.0.1 */
    .mobile_cb {clear: both;}
    /* [NGD] 원본 search_top_wrap 모바일 스타일 보관
    .search_top_wrap {display: block; float:none !important; width: 100%; margin-top: 10px;}
    */
    .gnb_wrap .snb_wrap .my_btn_wrap {display: block;}
    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {padding-left: 15px; padding-right: 35px; min-width: 92px; flex-shrink: 0;}
    .gnb_wrap .snb_wrap .qm_wrap a span {right: 10px; left: auto;}

    /* 1.1.1 */
    .gnb_wrap .inner {gap:10px;}
    .ngd_top_inner { gap: 12px; }

    .gnb_wrap .tog_wrap {margin-right: 0px;}
    .gnb_wrap .snb_wrap {gap:10px;}
    .rows_gnb_wrap .cbp-hrmenu {position:relative; width: 100%; height: auto;}
    .gnb_wrap .rows_gnb_wrap {width: 100% !important;}
    .rows_gnb_wrap .cbp-hrmenu .cbp-hrsub {display: none !important;}

    /* [NGD] snb_q_wrap 모바일 숨김 */
    .snb_q_wrap { display: none; }
    /* 원본: .gnb_wrap .snb_q_wrap {display: none;} */

    .gnb_wrap .snb_wrap .my_btn_wrap .btn_round.arr_bg {background-position: center right 15px;}
    .gnb_wrap .snb_wrap .my_btn_wrap {display: block !important;}

    .ngd_myinfo_btn { padding: 0 10px; font-size: 14px; }
    #header.gnb_up { top: -60px !important; }
}
