@charset "utf-8";
/* 창업지원정보 갤러리 스킨 | 양주시스타트업성장지원센터 */

/* ════════════════════════════════════
   공통
════════════════════════════════════ */
#bo_gall,
#bo_v,
#bo_w {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    color: #222;
}

/* ════════════════════════════════════
   LIST - 상단 버튼
════════════════════════════════════ */
#bo_btn_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    padding-bottom: 0px !important;  
    margin-bottom: 0px !important;    
    overflow: hidden;
}
#bo_list_total {
    font-size: 14px;
    color: #888;
}
.btn_bo_user {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.btn_bo_user li { float: none; margin: 0; }
.btn_bo_user .btn {
    display: inline-block;
    padding: 0 14px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
}
.btn_bo_user .btn_b02  { background: #58ad40; color: #fff; border-color: #58ad40; }
.btn_bo_user .btn_admin { background: #3d5a8a; color: #fff; border-color: #3d5a8a; }
.btn_bo_user .btn:hover { opacity: 0.85; }

/* 전체선택 */
#ch-allchk {
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}
#ch-allchk label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ════════════════════════════════════
   LIST - 그리드
════════════════════════════════════ */
#ch-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

/* ════════════════════════════════════
   LIST - 카드
════════════════════════════════════ */
.ch-card {
    position: relative;
    background: #fff;
    border: none;
    /* border-radius: 8px; */
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.ch-card:hover {
    /* box-shadow: 0 4px 18px rgba(0,0,0,0.10); */
    transform: translateY(-2px);
    border-color: #c0dab4;
}

/* 체크박스 */
.ch-chk {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}
.ch-chk input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #58ad40;
}

/* 썸네일 (a 태그) */
a.ch-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
     aspect-ratio: 2 / 1; 
    background: #fff;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    box-sizing: border-box;
}
a.ch-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform 0.25s;
    box-sizing: border-box;
}
.ch-card:hover a.ch-thumb img { transform: scale(1.04); }

/* 공지 뱃지 */
.ch-notice {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #58ad40;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* 외부링크 아이콘 */
.ch-ext-icon {
    position: absolute;
    bottom: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    background: #58ad40;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.ch-card:hover .ch-ext-icon { opacity: 1; }

/* 카드 하단 제목 */
.ch-body {
    padding: 12px 12px 14px;
}
.ch-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    text-decoration: none;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.ch-title:hover { color: #58ad40; }

/* 현재 글 */
.gall_now { border-color: #58ad40; box-shadow: 0 0 0 2px #58ad40; }

/* 빈 목록 */
.ch-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 0;
    color: #aaa;
    font-size: 15px;
}

/* 하단 버튼 */
.bo_fx { margin: 8px 0 20px; overflow: hidden; }
.bo_fx ul { margin: 0; padding: 0; list-style: none; float: right; }
.bo_fx ul li { float: left; margin-left: 5px; }

/* ════════════════════════════════════
   LIST - 검색
════════════════════════════════════ */
#bo_sch {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 24px 0 0;
    background: #fff;
    position: relative;
    padding-right: 44px;
    padding-left: 110px;
    max-width: 420px;
}
#bo_sch legend { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_sch select {
    border: 0; margin: 9px 5px; height: 20px;
    border-right: 1px solid #e0e0e0; width: 100px;
    position: absolute; left: 0; top: 0;
    font-size: 13px; font-family: 'Pretendard', sans-serif;
}
#bo_sch .sch_input {
    height: 38px; border: 0; padding: 0;
    background: transparent; width: 100%;
    font-size: 14px; font-family: 'Pretendard', sans-serif; outline: none;
}
#bo_sch .sch_btn {
    height: 38px; background: url('./img/sch_btn.png') no-repeat 50% 50%;
    border: 0; width: 44px; text-indent: -999px; overflow: hidden;
    position: absolute; right: 0; top: 0; cursor: pointer;
}

/* ════════════════════════════════════
   VIEW - 읽기
════════════════════════════════════ */
#bo_v {
    margin-bottom: 20px;
    padding: 30px;
    background: #fff;
    box-sizing: border-box;
}

/* 제목 */
#bo_v_title { margin-bottom: 16px; }
#bo_v_title .bo_v_cate {
    display: inline-block;
    padding: 2px 10px;
    background: #58ad40;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 8px;
}
#bo_v_title .bo_v_tit {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.5;
    word-break: break-all;
}
.bv-title-link { color: inherit; text-decoration: none; }
.bv-title-link:hover { color: #58ad40; }

/* 정보바 */
#bo_v_info {
    padding: 10px 0 14px;
    margin-bottom: 20px;
    border-top: 2px solid #58ad40;
    border-bottom: 1px solid #eee;
    color: #888;
    font-size: 13px;
    overflow: hidden;
}
#bo_v_info h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_v_info strong { display: inline-block; margin-right: 12px; font-weight: normal; }
#bo_v_info .if_date { float: right; }

/* 외부링크 바로가기 박스 */
.bv-ext-link-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7fcf5;
    border: 1px solid #c8e6bc;
    border-radius: 6px;
    padding: 11px 16px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}
.bv-ext-link-label {
    font-size: 12px;
    font-weight: 700;
    color: #58ad40;
    white-space: nowrap;
}
.bv-ext-link-url {
    flex: 1;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    word-break: break-all;
}
.bv-ext-link-url:hover { color: #58ad40; text-decoration: underline; }
.bv-ext-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #58ad40;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s;
}
.bv-ext-link-btn:hover { background: #4a9a35; }

/* 본문 */
#bo_v_atc { min-height: 150px; }
#bo_v_atc_title { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_v_con {
    margin: 10px 0 30px;
    line-height: 1.8;
    font-size: 15px;
    color: #333;
    word-break: break-all;
    overflow: hidden;
}
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_con a { color: #58ad40; text-decoration: underline; }

/* 첨부/링크 */
#bo_v_file,
#bo_v_link { margin: 10px 0; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
#bo_v_file h2,
#bo_v_link h2 { padding: 10px 14px; background: #fafafa; font-size: 14px; font-weight: 600; }
#bo_v_file ul,
#bo_v_link ul { margin: 0; padding: 6px 0; list-style: none; }
#bo_v_file li,
#bo_v_link li { padding: 6px 14px; font-size: 13px; position: relative; }
#bo_v_file a,
#bo_v_link a { color: #3d5a8a; text-decoration: underline; }
.bo_v_file_cnt,
.bo_v_link_cnt { position: absolute; top: 6px; right: 14px; color: #aaa; font-size: 12px; }

/* 버튼 */
#bo_v .btn {
    display: inline-block;
    padding: 0 14px;
    height: 32px;
    line-height: 32px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
}
#bo_v .btn_b02  { background: #58ad40; color: #fff; border-color: #58ad40; }
#bo_v .btn_admin { background: #3d5a8a; color: #fff; border-color: #3d5a8a; }
#bo_v .btn:hover { opacity: 0.85; }

#bo_v_top { overflow: hidden; margin-top: 10px; }
#bo_v_top h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_v_top ul { padding: 0; list-style: none; }
.bo_v_left { float: left; margin: 14px 0; }
.bo_v_left li { float: left; margin-right: 5px; }
.bo_v_com  { float: right; margin: 14px 0; }
.bo_v_com li  { float: left; margin-left: 5px; }
.bo_v_nb { clear: both; border-bottom: 1px solid #eee; }
.bo_v_nb li { border-top: 1px solid #eee; padding: 12px 14px; font-size: 14px; }
.bo_v_nb li:hover { background: #fafafa; }
.bo_v_nb .nb_tit { display: inline-block; padding-right: 16px; color: #58ad40; font-size: 13px; }
.bo_v_nb .nb_date { float: right; color: #aaa; font-size: 12px; }
.bo_v_nb a { color: #333; text-decoration: none; }
.bo_v_nb a:hover { color: #58ad40; }

#bo_v_share { margin: 20px 0; text-align: right; position: relative; }
#bo_v_act { margin-bottom: 20px; text-align: center; }

/* ════════════════════════════════════
   WRITE - 글쓰기
════════════════════════════════════ */
#bo_w { padding: 20px 0; }
#bo_w .write_div { margin: 12px 0; position: relative; }

#bo_w .frm_input,
#bo_w .full_input {
    width: 100%;
    height: 42px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 14px;
    font-family: 'Pretendard', sans-serif;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.2s;
}
#bo_w .frm_input:focus,
#bo_w .full_input:focus {
    border-color: #58ad40;
    outline: none;
    box-shadow: 0 0 0 2px rgba(88,173,64,0.12);
}

#bo_w .bo_w_info:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_w .bo_w_info .frm_input { float: left; width: 33%; }
#bo_w #wr_password { margin: 0 0.5%; }

#bo_w .bo_w_tit { position: relative; }
#bo_w .bo_w_tit .frm_input { padding-right: 130px; }
#bo_w .bo_w_tit #btn_autosave {
    position: absolute; top: 5px; right: 5px;
    height: 32px; line-height: 32px; padding: 0 10px;
    font-size: 12px; border: 1px solid #ddd; background: #f9f9f9;
    border-radius: 4px; cursor: pointer; font-family: 'Pretendard', sans-serif;
}

/* wr_1 링크 필드 */
.cg-link-wrap { margin-top: 4px !important; }
.cg-link-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.cg-link-input {
    background: #f9fdf7 !important;
    border-color: #c8e6bc !important;
}
.cg-link-input:focus {
    border-color: #58ad40 !important;
    box-shadow: 0 0 0 2px rgba(88,173,64,0.12) !important;
}
.cg-link-desc { margin: 5px 0 0; font-size: 12px; color: #aaa; }

/* 파일첨부 */
#bo_w .bo_w_flie .lb_icon {
    position: absolute; top: 0; left: 0;
    border-radius: 4px 0 0 4px;
    height: 42px; line-height: 42px; width: 42px;
    background: #f0f0f0; text-align: center; color: #888;
}
#bo_w .bo_w_flie .frm_file { padding-left: 52px; }
#bo_w .bo_w_flie .file_wr {
    border: 1px solid #ddd; background: #fff; border-radius: 4px;
    padding: 5px; height: 42px; box-sizing: border-box; margin: 0;
}
#bo_w .bo_w_flie .file_del { position: absolute; top: 10px; right: 10px; font-size: 12px; color: #999; }

/* 링크 필드 아이콘 */
#bo_w .bo_w_link label {
    position: absolute; top: 0; left: 0;
    border-radius: 4px 0 0 4px;
    height: 42px; line-height: 42px; width: 42px;
    background: #f0f0f0; text-align: center; color: #888;
}
#bo_w .bo_w_link .frm_input { padding-left: 52px; }

/* 분류 */
#bo_w .bo_w_select select {
    height: 42px; border: 1px solid #ddd; border-radius: 4px;
    padding: 0 12px; font-size: 14px; font-family: 'Pretendard', sans-serif;
}

/* 완료/취소 버튼 */
#bo_w .btn_confirm {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
#bo_w .btn_submit,
#bo_w .btn_cancel {
    display: inline-block;
    padding: 0 32px;
    height: 44px;
    line-height: 44px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: 'Pretendard', sans-serif;
    text-decoration: none;
}
#bo_w .btn_submit { background: #58ad40; color: #fff; }
#bo_w .btn_submit:hover { background: #4a9a35; }
#bo_w .btn_cancel { background: #f0f0f0; color: #555; }
#bo_w .btn_cancel:hover { background: #e4e4e4; }

/* ════════════════════════════════════
   반응형
════════════════════════════════════ */
@media (max-width: 1024px) {
    #ch-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    #ch-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ch-title { font-size: 13px; }
    #bo_v { padding: 20px 16px; }
    #bo_v_title .bo_v_tit { font-size: 18px; }
    .bv-ext-link-wrap { gap: 8px; }
    #bo_w .bo_w_info .frm_input { float: none; width: 100%; margin: 0 0 8px; }
    #bo_w .btn_confirm { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    #ch-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ch-body { padding: 10px; }
    a.ch-thumb img { padding: 12px; }
    #bo_sch { max-width: 100%; padding-left: 90px; }
}