@charset "utf-8";

/* ============================================================
   list.css  — 게시판 목록 전용
   style.css 에서 이관된 목록 섹션 + 반응형 + 새 디자인 통합
   의존: style.css (공통 reset, .chk_box, .selec_chk, 버튼)
   컬러 변수는 jjtheme.css의 :root 변수를 사용
   ============================================================ */

/* ------------------------------------------------------------
   1. 컨테이너
------------------------------------------------------------ */
#bo_list {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}
#bo_list::after {
    display: block; visibility: hidden; clear: both; content: "";
}

/* ------------------------------------------------------------
   2. 카테고리 바
------------------------------------------------------------ */
#bo_cate {
    margin: 16px 0 12px;
}
#bo_cate h2 {
    position: absolute; font-size: 0; line-height: 0; overflow: hidden;
}
#bo_cate ul {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0; padding: 0; list-style: none;
}
#bo_cate li {
    display: inline-block;
}
#bo_cate a {
    display: inline-block;
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--txt-s);
    line-height: 1.6;
    transition: border-color 0.15s, color 0.15s;
}
#bo_cate a:hover,
#bo_cate a:focus,
#bo_cate #bo_cate_on {
    border-color: var(--brand);
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

/* ------------------------------------------------------------
   3. 상단 바 — Total 건수만 표시
------------------------------------------------------------ */
#bo_btn_top {
    padding: 8px 0;
    margin-bottom: 4px;
    border-bottom: 1px solid #e4e4e4;
}
#bo_btn_top::after {
    display: block; visibility: hidden; clear: both; content: "";
}
#bo_list_total {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}
#bo_list_total span {
    color: var(--txt);
    font-weight: 600;
}

/* ------------------------------------------------------------
   4. 테이블
------------------------------------------------------------ */
.tbl_wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-top: 2px solid var(--txt);
}
.tbl_head01 caption {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0);
}

/* 헤더 */
.tbl_head01 thead th {
    padding: 11px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--txt-s);
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
    white-space: nowrap;
}
.tbl_head01 thead th a {
    color: var(--txt-s);
    text-decoration: none;
}
.tbl_head01 thead th a:hover { color: var(--txt); }
.tbl_head01 thead th input { vertical-align: top; }

/* 바디 행 */
.tbl_head01 td {
    height: 50px;
    padding: 0 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: middle;
    word-break: break-all;
}
.tbl_head01 tbody tr:last-child td {
    border-bottom: none;
}
.tbl_head01 tbody tr:hover td {
    background: var(--bg) !important;
}

/* 좌측 포인트 선 */
#bo_list tbody tr {
    border-left: 2px solid transparent;
    transition: border-color 0.12s;
}
#bo_list tbody tr:hover {
    border-left-color: var(--brand);
}
#bo_list tbody .even td {
    background: #fdfdfd;
}

/* 이미지 */
.tbl_head01 td img { vertical-align: middle; }
#bo_list .profile_img img { border-radius: 50%; }

/* ------------------------------------------------------------
   5. 열 너비 & 정렬
------------------------------------------------------------ */
#bo_list .td_chk      { width: 30px;  text-align: center; }
#bo_list .td_num2     { width: 50px;  text-align: center; }

/* td_subject: 남은 공간 전부 차지, 제목이 줄어들며 다른 컬럼 보호 */
#bo_list .td_subject  { text-align: left; max-width: 0; width: 100%; }

/* 고정 컬럼들: 내용 길이에 따라 자동 확장, white-space:nowrap으로 줄바꿈 없음 */
/* 좌우 패딩 줄임 — 제목 컬럼 공간 확보 */
#bo_list .td_num2,
#bo_list .td_name,
#bo_list .td_num { padding: 0 12px; }          /* 좌우 모두 절반 */
#bo_list .td_datetime { padding: 0 8px 0 4px; } /* 오른쪽만 기존 유지 */
#bo_list .td_name     { min-width: 100px; width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_num      { min-width: 60px;  width: auto; text-align: center; white-space: nowrap; } /* 조회수: 999 + 패딩 */
#bo_list .td_datetime { min-width: 90px;  width: auto; text-align: center; white-space: nowrap; } /* 2026.05.16 */
#bo_list .td_date     { min-width: 70px;  width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_board    { min-width: 110px; width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_group    { min-width: 110px; width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_mb_id    { min-width: 110px; width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_mng      { min-width: 80px;  width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_nick     { min-width: 110px; width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_numbig   { min-width: 80px;  width: auto; text-align: center; white-space: nowrap; }
#bo_list .td_subject  {
    text-align: left;
    max-width: 0;
    width: 100%;
}
#bo_list .td_name    { width: 92px;  text-align: center; }
#bo_list .td_num     { width: 70px;  text-align: center; }
#bo_list .td_datetime{ width: 110px; text-align: center; }
#bo_list .td_date    { width: 70px;  text-align: center; }
#bo_list .td_board   { width: 100px; text-align: center; }
#bo_list .td_group   { width: 100px; text-align: center; }
#bo_list .td_mb_id   { width: 100px; text-align: center; }
#bo_list .td_mng     { width: 80px;  text-align: center; }
#bo_list .td_nick    { width: 100px; text-align: center; }
#bo_list .td_numbig  { width: 80px;  text-align: center; }
#bo_list .td_num strong { color: #000; }
#bo_list .txt_active  { color: #5d910b; }
#bo_list .txt_expired { color: #ccc; }

/* 폰트 크기 */
#bo_list .td_num2,
#bo_list .td_name,
#bo_list .td_num,
#bo_list .td_datetime,
#bo_list .td_date { font-size: 13px; color: #aaa; }
#bo_list .td_name { color: var(--txt-s); }

/* ------------------------------------------------------------
   6. 공지 행
------------------------------------------------------------ */
.bo_notice td {
    background: #ebffef !important;
}
.bo_notice td a {
    /* 공지는 별도 강조 없이 구조로만 구분 */
}

/* 공지 배지: 가로형 소형 */
.notice_icon {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 2px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
}

/* 열람중 */
.bo_current {
    font-size: 11px;
    font-weight: 600;
    color: #c0392b;
}

/* ------------------------------------------------------------
   7. 새글 행 — 배경 파스텔 강조 (아이콘 없음)
------------------------------------------------------------ */
#bo_list tbody tr.bo_new td {
    background: #f0f6ff !important;
}
#bo_list tbody tr.bo_new:hover td {
    background: #e8f1fc !important;
}
#bo_list tbody .even.bo_new td {
    background: #f0f6ff !important;
}

/* ------------------------------------------------------------
   8. 제목 셀
------------------------------------------------------------ */
.bo_tit {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--txt);
    line-height: 1.45;
    overflow: hidden;
    min-width: 0;
}
.bo_tit a {
    color: var(--txt);
    text-decoration: none;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}
.bo_tit a:hover {
    color: var(--brand);
}

/* 자물쇠(비밀글) 아이콘 — 번호 칸에 표시, 제목 앞 아이콘은 그대로 유지 */
.bo_tit .fa-lock {
    font-size: 11px;
    color: #bbb;
    vertical-align: middle;
}

/* 답글 화살표 */
.bo_tit .fa-caret-right {
    color: #ccc;
}

/* 댓글 수 — 유일하게 유지하는 제목 뒤 표시 */
#bo_list .cnt_cmt {
    display: inline-block;
    padding: 0 5px;
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 2px;
    font-weight: 400;
    vertical-align: middle;
    flex-shrink: 0;
}

/* 카테고리 링크 */
.bo_cate_link {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    color: var(--brand);
    border: 1px solid #b8d0e8;
    border-radius: 2px;
    line-height: 1.5;
    font-weight: 400 !important;
    background: transparent;
    float: none;
    height: auto;
    margin-right: 4px;
    flex-shrink: 0;
    white-space: nowrap;
    vertical-align: middle;
}
.bo_cate_link:hover {
    background: var(--brand-light);
    text-decoration: none;
}

/* td_subject 이미지 마진 */
.td_subject img { margin-left: 5px; }

/* ------------------------------------------------------------
   9. 하단 버튼 바 — 우측 정렬, 테이블 하단에 통합
------------------------------------------------------------ */
.bo_fx {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 14px 0 6px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e4;
    float: none;
}
.bo_fx::after {
    display: block; visibility: hidden; clear: both; content: "";
}

.btn_bo_user {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0; padding: 0;
    list-style: none;
    float: none;
}
.btn_bo_user li {
    float: none;
    width: auto;
    background: transparent;
    margin: 0;
}
.btn_bo_user > li {
    position: relative;
}

/* 관리자 버튼 드롭다운 */
.btn_bo_adm { float: none; }
.btn_bo_adm li { float: none; margin-right: 5px; }
.btn_bo_adm input {
    padding: 0 8px; border: 0;
    background: #d4d4d4; color: var(--txt-s);
    text-decoration: none; vertical-align: middle;
}

/* list 전용: 드롭업 (하단 버튼 → 위로 열림) */
.btn_bo_user .more_opt {
    top: auto;
    bottom: 42px;
}
.btn_bo_user .more_opt::before {
    top: auto;
    bottom: -6px;
    transform: rotate(225deg);
}

.btn_bo_user .more_opt { min-width: 110px; }
.btn_bo_user .more_opt li { padding: 9px 4px 9px 14px; }

/* ------------------------------------------------------------
   10. 검색창 — 모달형, 반응형 중앙 정렬
------------------------------------------------------------ */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}
.bo_sch_bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.25);
}
.bo_sch {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, 90vw);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: visible;
    max-height: none;
    margin: 0;
    text-align: left;
}
.bo_sch::after {
    display: block; visibility: hidden; clear: both; content: "";
}
.bo_sch h3 {
    padding: 16px 20px;
    font-size: 14px; font-weight: 600; color: var(--txt);
    border-bottom: 1px solid #eee;
    margin: 0;
}
.bo_sch legend {
    position: absolute; width: 0; height: 0; overflow: hidden;
    background: transparent;
}
.bo_sch form {
    padding: 16px 20px 20px;
    display: block;
}
.bo_sch select {
    border: 0;
    width: 100%; height: 40px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px; color: #444;
    background: var(--white);
    box-shadow: none;
    appearance: auto;
}
.bo_sch select:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: none;
}
.bo_sch .sch_bar {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
}
.bo_sch .sch_input {
    flex: 1;
    width: auto;
    height: 40px;
    padding: 0 12px;
    border: none;
    background: var(--white);
    font-size: 13px; color: var(--txt);
    float: none;
    box-shadow: none;
}
.bo_sch .sch_input:focus {
    outline: none;
    box-shadow: none;
    border: none !important;
}
.bo_sch .sch_btn {
    width: 44px; height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    background: var(--white);
    color: var(--txt-s); font-size: 15px;
    cursor: pointer;
    flex-shrink: 0;
    float: none;
    transition: color 0.15s;
}
.bo_sch .sch_btn:hover { color: var(--brand); }
.bo_sch .bo_sch_cls {
    position: absolute;
    top: 0; right: 0;
    padding: 14px 16px;
    font-size: 16px; color: #bbb;
    background: transparent; border: none;
    cursor: pointer; line-height: 1;
    transition: color 0.15s;
}
.bo_sch .bo_sch_cls:hover { color: #555; }

/* ------------------------------------------------------------
   11. 빈 목록
------------------------------------------------------------ */
.empty_table {
    padding: 60px 0 !important;
    text-align: center;
    color: #aaa; font-size: 14px;
}

/* ------------------------------------------------------------
   12. 페이징 스타일
------------------------------------------------------------ */
.pg_wrap {
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
    float: none;
    clear: both;
    margin: 30px 0 20px;
}

.pg {
    display: inline-block;
    float: none;
    margin: 0 auto;
    padding: 0;
}

.pg a,
.pg strong {
    display: inline-block;
    float: none;
    min-width: 34px;
    width: auto;
    height: 34px;
    padding: 0 8px;
    margin: 0 2px;
    font-size: 14px;
    font-family: 'Apple SD Gothic Neo', sans-serif !important;
    line-height: 32px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: var(--white);
    color: #555;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    transition: all 0.2s;
}

.pg strong {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
    font-weight: 600;
}

.pg a:hover {
    background: #f5f5f5;
    border-color: var(--brand);
    color: var(--brand);
}

/* 처음/이전/다음/끝 - 텍스트 숨기고 아이콘 표시 */
.pg_start a,
.pg_prev a,
.pg_next a,
.pg_end a {
    font-size: 0 !important;
    position: relative;
}

.pg_start a:before {
    content: "\f100";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pg_prev a:before {
    content: "\f104";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pg_next a:before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.pg_end a:before {
    content: "\f101";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 아이콘 색상 */
.pg_start a:before,
.pg_prev a:before,
.pg_next a:before,
.pg_end a:before {
    color: #555;
}

.pg_start a:hover:before,
.pg_prev a:hover:before,
.pg_next a:hover:before,
.pg_end a:hover:before {
    color: var(--brand);
}

/* ------------------------------------------------------------
   13. 반응형
------------------------------------------------------------ */
@media (max-width: 767px) {
    .mobile_no { display: none !important; }

    #bo_list .th_num2 { width: 34px !important; padding: 0 4px !important; }
    #bo_list .td_num2 { width: 34px !important; padding: 0 4px !important; }

    .tbl_head01 td { height: 46px; padding: 0 6px; }
    .tbl_head01 thead th { padding: 10px 6px; font-size: 12px; }

    /* 1. 카테고리 배지 숨김 */
    .bo_cate_link {
        display: none !important;
    }

    /* 2. 날짜 칼럼 숨김 */
    .tbl_head01 thead th:last-child,
    .tbl_head01 td.td_datetime {
        display: none !important;
    }

    .bo_tit { font-size: 14.2px !important; }
    #bo_list .td_datetime { width: 72px; font-size: 12px !important; }
    #bo_cate a { font-size: 11px; padding: 3px 10px; }
    .bo_fx { margin-top: 10px; padding-top: 10px; }

    .pg a,
    .pg strong {
        min-width: 30px;
        height: 30px;
        line-height: 28px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .pg_start a:before,
    .pg_prev a:before,
    .pg_next a:before,
    .pg_end a:before {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    #bo_list .td_datetime { width: 62px; font-size: 10px; }
    .bo_tit { font-size: 13px; gap: 3px; }

    /* 1. 카테고리 배지 숨김 */
    .bo_cate_link {
        display: none !important;
    }

    /* 2. 날짜 칼럼 숨김 */
    .tbl_head01 thead th:last-child,
    .tbl_head01 td.td_datetime {
        display: none !important;
    }

    .pg a,
    .pg strong {
        min-width: 28px;
        height: 28px;
        line-height: 26px;
        padding: 0 4px;
        font-size: 11px;
    }
    
    .pg_start a:before,
    .pg_prev a:before,
    .pg_next a:before,
    .pg_end a:before {
        font-size: 11px;
    }
}
/* ------------------------------------------------------------
   QNA 전용 — 답변상태 칼럼
------------------------------------------------------------ */
#bo_list .td_qna_status {
    width: 80px;
    text-align: center;
    white-space: nowrap;
    padding: 0 8px;
    font-size: 12px;
}

.qna_status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
}

.status_complete {
    color: var(--brand);
    border: 1px solid var(--brand);
    background: var(--brand-light);
}

.status_wait {
    color: #999;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

/* ------------------------------------------------------------
   QNA 전용 — 관리자 답변상태 토글 영역 (view 페이지)
------------------------------------------------------------ */
.qna_admin_zone {
    margin: 0 0 16px;
    padding: 10px 16px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.qna_status_toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--txt-s);
}

.qna_btn {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    cursor: pointer;
    border: 1px solid;
    transition: opacity 0.15s;
}
.qna_btn:hover { opacity: 0.8; }

.qna_btn_complete {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-light);
}

.qna_btn_wait {
    color: #999;
    border-color: #ddd;
    background: #f9f9f9;
}

/* ------------------------------------------------------------
   QNA 전용 — 전화번호 표시 영역 (view 페이지)
------------------------------------------------------------ */
.qna_phone_call_section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 10px 16px;
    background: #f0f6ff;
    border: 1px solid #b8d0e8;
    border-radius: 4px;
    font-size: 14px;
}

.qna_phone_number_display {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--txt);
    font-weight: 600;
}

.qna_phone_number_display .fas {
    color: var(--brand);
    font-size: 15px;
}

.qna_phone_call_btn_mobile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    background: var(--brand);
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}
.qna_phone_call_btn_mobile:hover { opacity: 0.85; text-decoration: none; }
