@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;600;700&display=swap');

/* ===================================
   리셋 & 공통
=================================== */
#bo_list *,
#bo_list *::before,
#bo_list *::after { box-sizing: border-box; }

#bo_list {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    background: #fff;
}

/* ===================================
   카테고리
=================================== */
#bo_cate {
    background: #fff;
    padding: 10px 20px;
}
#bo_cate h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#bo_cate_ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 0;
}
#bo_cate_ul::-webkit-scrollbar { display: none; }
#bo_cate_ul li { flex-shrink: 0; }
#bo_cate_ul li a {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    background: #f4f4f5;
    text-decoration: none;
    transition: all .15s ease;
    white-space: nowrap;
}
#bo_cate_ul li.active a,
#bo_cate_ul li a:hover {
    background: #8259f5;
    color: #fff;
}

/* ===================================
   전체 건수 / 페이지
=================================== */
#bo_list_total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px 20px;
    font-size: 13px;
    color: #b0b0b0;
}
#bo_list_total span {
    font-weight: 600;
    color: #444;
}

/* ===================================
   게시글 리스트
=================================== */
.list_01 {
    padding: 0 20px 16px 20px;
}
.list_01 > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── 개별 게시글 아이템 ── */
.list_01 > ul > li {
    position: relative;
    padding: 18px 0 18px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.list_01 > ul > li:last-child {
    border-bottom: none;
}

/* ── 공지 게시물 ── */
.list_01 > ul > li.bo_notice {
    background: none;
    border-bottom: 1px solid #f0f0f0;
}

/* ── 빈 리스트 ── */
.list_01 > ul > li.empty_table {
    text-align: center;
    padding: 80px 20px;
    color: #ccc;
    font-size: 14px;
    border-bottom: none;
}

/* ===================================
   게시글 본문
=================================== */
.bo_cnt {
    width: 100%;
}
.bo_cnt a.bo_subject {
    display: block;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    word-break: break-word;
    letter-spacing: -0.2px;
}

/* ── 공지 뱃지 & 카테고리 ── */
.bo_cate_ico {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.bo_cate_ico .notice_icon {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 5px;
    background: #8259f5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1;
}

/* ── NEW 뱃지 ── */
.new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #ff4757;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
    line-height: 1;
}

/* ── 댓글 수 ── */
.bo_cmt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: transparent;
    color: #8259f5;
    font-size: 12px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

/* ===================================
   게시글 메타 정보
=================================== */
.bo_info {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
    line-height: 1;
}
.bo_info .bo_date {
    color: #c5c5c5;
}
.bo_info .bo_date i {
    display: none;
}

/* ===================================
   체크박스 영역
=================================== */
.all_chk.chk_box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}
.all_chk.chk_box label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
}
.all_chk .btn.black_bg {
    margin-left: auto;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.all_chk .btn.black_bg:active {
    background: #555;
}
.bo_chk.chk_box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.selec_chk {
    width: 18px;
    height: 18px;
    accent-color: #8259f5;
    cursor: pointer;
}

/* ===================================
   페이지네이션
=================================== */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    gap: 4px;
    background: #fff;
}
.pg_wrap a,
.pg_wrap .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 2px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    transition: all .15s;
}
.pg_wrap a:hover {
    background: #f4f4f5;
    color: #333;
}
.pg_wrap .pg_current {
    background: #8259f5;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}

/* ===================================
   검색 폼
=================================== */
#bo_sch {
    padding: 0 20px 24px 20px;
    background: #fff;
    border: none;
}
#bo_sch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
#bo_sch form {
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f4f4f5;
    border-radius: 10px;
    padding: 4px;
}
#bo_sch select {
    flex-shrink: 0;
    height: 36px;
    padding: 0 8px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    background: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    font-weight: 500;
}
#bo_sch .sch_input {
    flex: 1;
    height: 36px;
    padding: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    color: #222;
    background: transparent;
    outline: none;
}
#bo_sch .sch_input::placeholder {
    color: #bbb;
}
#bo_sch .sch_btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #8259f5;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
#bo_sch .sch_btn:active {
    background: #6b3fdb;
}

/* ===================================
   글쓰기 버튼 (하단 고정)
=================================== */
.fix_btn.write_btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 20px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 -1px 12px rgba(0,0,0,.06);
    z-index: 100;
}
.fix_btn.write_btn a {
    display: block;
    text-align: center;
    padding: 14px 0;
    border-radius: 12px;
    background: #8259f5;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
    letter-spacing: -.2px;
}
.fix_btn.write_btn a:active {
    background: #6b3fdb;
}

/* ===================================
   접근성
=================================== */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   관리자 드롭다운
=================================== */
.more_opt {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    z-index: 50;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    min-width: 150px;
}
.more_opt li button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 11px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    gap: 8px;
    transition: background .1s;
}
.more_opt li button:active {
    background: #f4f4f5;
}
.more_opt li button i {
    color: #aaa;
    width: 16px;
    text-align: center;
}
.btn_more_opt {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    border-radius: 8px;
    transition: background .1s;
}
.btn_more_opt:active {
    background: #f0f0f0;
}

/* ===================================
   반응형
=================================== */
@media screen and (max-width: 360px) {
    .list_01 { padding: 0 16px 12px 16px; }
    .list_01 > ul > li { padding: 14px 0 14px 12px; }
    .bo_cnt a.bo_subject { font-size: 14px; }
    .bo_info { font-size: 11px; }
    #bo_list_total { padding: 14px 16px 6px; font-size: 12px; }
    .fix_btn.write_btn a { padding: 12px 0; font-size: 14px; }
}