@import url("/common/css/board_write.css");
@import url("/common/css/board_view.css");
.bbs-list,
.bbs-view,
.bbs-form {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.6;
}

.bbs-list .wrap,
.bbs-view .wrap,
.bbs-form .wrap {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.bbs-list a,
.bbs-view a,
.bbs-form a {
    color: inherit;
    text-decoration: none;
}

.bbs-list ul,
.bbs-form ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bbs-list .list-wrap {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.bbs-list-header,
.bbs-list-body,
.bbs-list-footer,
.bbs-view-header,
.bbs-view-body,
.bbs-view-foot,
.bbs-form-head,
.bbs-form-body,
.bbs-form-foot {
    padding-left: 32px;
    padding-right: 32px;
}

.bbs-list-header,
.bbs-view-header,
.bbs-form-head {
    padding-top: 28px;
}

.bbs-list-footer,
.bbs-view-foot,
.bbs-form-foot {
    padding-top: 24px;
    padding-bottom: 28px;
}

.bbs-list-body,
.bbs-view-body,
.bbs-form-body {
    padding-top: 24px;
    padding-bottom: 24px;
}

.list-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bbs-list .total-rows {
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 14px;
}

.bbs-list .post-head,
.bbs-list .post-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.bbs-list .post-head {
    min-height: 54px;
    padding: 0 18px;
    border-top: 2px solid #1f2937;
    border-bottom: 1px solid #dbe2ea;
    background: #f8fafc;
    color: #111827;
    font-weight: 600;
}

.bbs-list .post-row {
    min-height: 62px;
    padding: 0 18px;
    border-bottom: 1px solid #e5e7eb;
}

.bbs-list .post-list > .post-row:last-child {
    border-bottom: 0;
}

.bbs-list .post-row:hover {
    background: #f8fafc;
}

.bbs-list .no,
.bbs-list .name,
.bbs-list .date,
.bbs-list .hit {
    flex: 0 0 auto;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.bbs-list .no {
    width: 90px;
}

.bbs-list .subject {
    flex: 1 1 auto;
    min-width: 0;
}

.bbs-list .name {
    width: 140px;
}

.bbs-list .date {
    width: 120px;
}

.bbs-list .hit {
    width: 90px;
}

.bbs-list .subject a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #111827;
}

.bbs-list .board-lock-icon {
    flex: 0 0 auto;
    color: #6b7280;
    font-size: 14px;
}

.bbs-list .board-subject {
    min-width: 0;
}

.bbs-list .subject a span:last-child {
    min-width: 0;
}

.bbs-list .subject .comment {
    color: #2563eb;
    font-weight: 600;
}

.bbs-list .subject .comment.new {
    color: #dc2626;
}

.bbs-list .ellipsis,
.bbs-list .ellipsis a,
.bbs-list .ellipsis span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-list-footer {
    border-top: 1px solid #e5e7eb;
}

.bbs-list-footer .board-btn,
.bbs-view-foot .board-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.list-search {
    margin-top: 20px;
}

.list-search .search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bbs-list .ui-select,
.bbs-list .ui-input,
.bbs-form .ui-select,
.bbs-form .ui-input,
.bbs-form .ui-textarea {
    color: #111827;
    font-size: 14px;
}

.bbs-list .ui-select,
.bbs-list .ui-input,
.bbs-form .ui-select,
.bbs-form .ui-input {
    height: 42px;
}

.bbs-form .ui-textarea {
    width: 100%;
    min-height: 320px;
}

.bbs-list input[type="submit"],
.bbs-form .bbs-btn,
.bbs-view-foot .btn,
.bbs-list-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bbs-list input[type="submit"]:hover,
.bbs-form .bbs-btn:hover,
.bbs-view-foot .btn:hover,
.bbs-list-footer .btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.bbs-form .bbs-btn-primary,
.bbs-list .btn-bonsys {
    border-color: #1d4ed8;
    background: #2563eb;
    color: #ffffff;
}

.bbs-form .bbs-btn-primary:hover,
.bbs-list .btn-bonsys:hover {
    border-color: #1e40af;
    background: #1d4ed8;
}

.bbs-form .bbs-btn-secondary {
    background: #f8fafc;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pagination a,
.pagination strong,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
}

.pagination strong,
.pagination .active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.board-view-head {
    width: 100% !important;
    padding: 26px 0 20px !important;
    border-top: 2px solid #111111 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

.board-file-wrap {
    width: 100% !important;
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 20px !important;
    box-sizing: border-box !important;
}

.board-view-cont {
    width: 100% !important;
    padding: 40px 0 60px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

.board-nav-list {
    width: 100% !important;
    border-bottom: 1px solid #e2e8f0 !important;
    margin: 0 0 40px 0 !important;
    box-sizing: border-box !important;
}

.bbs-view {
    margin-bottom: 6rem;
}

.bbs-view-header {
    border-bottom: 1px solid #e5e7eb;
}

.bbs-view-header .subject {
    color: #111827;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
}

.bbs-view-header .data {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 14px;
}

.bbs-view-body .content {
    min-height: 240px;
    color: #1f2937;
    word-break: break-word;
}

.bbs-view-body .content img {
    max-width: 100%;
    height: auto;
}

.bbs-view-foot {
    border-top: 1px solid #e5e7eb;
}

.bbs-form .row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid #eef2f7;
}

.bbs-form .row:last-child {
    border-bottom: 0;
}

.bbs-form .col-2,
.bbs-form .col-10,
.bbs-form .col-12 {
    width: 100%;
}

.bbs-form .col-2 {
    max-width: 140px;
    padding-top: 10px;
    color: #374151;
    font-weight: 600;
}

.bbs-form .option .col-10 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.bbs-form .small {
    color: #4b5563;
    font-size: 14px;
}

.bbs-form .file-upload-box,
.bbs-form .upload-control-box {
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px 16px;
}

.bbs-form .file-upload-box .upload-rect,
.bbs-form .upload-control-box .upload-rect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.bbs-form .upload-control-box .upload-rect > div:first-child {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.bbs-form .upload-control-box > .rect,
.bbs-form .upload-control-box > .clearfix {
    display: none;
}

.bbs-form .attached-file-box {
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
    border-radius: 0;
    background: transparent;
}

.bbs-form .board-upload-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
    list-style: none;
}

.bbs-form .board-upload-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
}

.bbs-form .board-upload-list__item.is-deleted {
    opacity: 0.5;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.bbs-form .board-upload-list__item.is-deleted .board-upload-list__link {
    text-decoration: line-through;
    pointer-events: none;
    color: #6b7280;
}

.bbs-form .board-upload-list__item.is-deleted .board-upload-list__delete {
    background: #e5e7eb;
    color: #374151;
}

.bbs-form .board-upload-list__link {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
}

.bbs-form #file-upload-btn,
.bbs-form .upload-action {
    cursor: pointer;
}

.bbs-form #file-upload-btn {
    min-width: 84px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 13px;
}

.bbs-form .board-upload-list__delete {
    min-width: 52px;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 12px;
}

.bbs-form .board-upload-list__delete {
    flex: 0 0 auto;
    cursor: pointer;
}

.bbs-form .hidden {
    display: none;
}

@media (max-width: 991px) {
    .bbs-list-header,
    .bbs-list-body,
    .bbs-list-footer,
    .bbs-view-header,
    .bbs-view-body,
    .bbs-view-foot,
    .bbs-form-head,
    .bbs-form-body,
    .bbs-form-foot {
        padding-left: 20px;
        padding-right: 20px;
    }

    .bbs-list .no {
        width: 64px;
    }

    .bbs-list .name {
        width: 100px;
    }

    .bbs-list .date,
    .bbs-list .hit {
        width: 84px;
    }

    .bbs-form .row {
        flex-direction: column;
        gap: 10px;
    }

    .bbs-form .col-2 {
        max-width: none;
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .bbs-list .post-head {
        display: none;
    }

    .bbs-list .post-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .bbs-list .no {
        width: auto;
        order: 1;
    }

    .bbs-list .subject {
        width: 100%;
        order: 2;
    }

    .bbs-list .name,
    .bbs-list .date,
    .bbs-list .hit {
        width: auto;
        font-size: 13px;
        text-align: left;
    }

    .bbs-list .name {
        order: 3;
    }

    .bbs-list .date {
        order: 4;
    }

    .bbs-list .hit {
        order: 5;
    }

    .list-search,
    .bbs-form .file-upload-box .upload-rect,
    .bbs-form .upload-control-box .upload-rect {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-search .search-form {
        width: 100%;
    }

    .list-search .search-form > * {
        width: 100%;
    }

    .bbs-view-header .subject {
        font-size: 22px;
    }

    .bbs-view-header .data {
        flex-direction: column;
        gap: 4px;
    }
}


/* =========================================================
   BOARD LIST (default skin) - 기본게시판 목록 퍼블리싱
   - 위 공통 규칙을 덮어쓰는 영역 (목록 전용)
========================================================= */

.bbs-list {
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
    color: #111;
    font-family: Pretendard, sans-serif;
}

.bbs-list .list-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.bbs-list .bbs-list-header,
.bbs-list .bbs-list-body,
.bbs-list .bbs-list-footer {
    padding: 0;
    border: 0;
}

.bbs-list .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* 상단 : 총 게시물 + 검색 */
.bbs-list .list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bbs-list .total-rows {
    margin: 0;
    color: #555;
    font-size: 16px;
    letter-spacing: -0.4px;
}

.bbs-list .total-rows strong {
    color: #1D4B8F;
    font-weight: 700;
}

.bbs-list .list-search {
    display: block;
    margin: 0;
}

.bbs-list .list-search .search-form {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.bbs-list .list-search .ui-select {
    width: 170px;
    height: 50px;
    padding: 0 40px 0 20px;
    border: 1px solid #DDD;
    border-radius: 0;
    background: #FFF url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 18px center;
    color: #555;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.bbs-list .search-keyword {
    position: relative;
    width: 330px;
}

.bbs-list .search-keyword .ui-input {
    width: 100%;
    height: 50px;
    padding: 0 56px 0 20px;
    border: 1px solid #DDD;
    border-radius: 0;
    background: #FFF;
    color: #111;
    font-size: 15px;
    box-sizing: border-box;
}

.bbs-list .search-keyword .ui-input::placeholder {
    color: #999;
}

.bbs-list .search-keyword .search-submit {
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat center center;
    cursor: pointer;
}

.bbs-list .search-keyword .search-submit:hover {
    background-color: transparent;
}

/* 목록 */
.bbs-list .post-list {
    border-top: 1px solid #111;
}

.bbs-list .post-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 0;
    border-bottom: 1px solid #DDD;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.bbs-list .post-list > .post-row:last-child {
    border-bottom: 1px solid #DDD;
}

.bbs-list .post-row:hover {
    background: #FAFAF8;
}

.bbs-list .post-row.is-notice {
    background: #F7F5EF;
}

.bbs-list .no,
.bbs-list .name,
.bbs-list .date {
    flex: 0 0 auto;
    color: #888;
    font-size: 15px;
    text-align: center;
}

.bbs-list .no {
    width: 190px;
}

.bbs-list .name {
    width: 240px;
}

.bbs-list .date {
    width: 240px;
}

.bbs-list .post-row.is-notice .no {
    color: #A29779;
    font-weight: 600;
}

.bbs-list .subject {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 20px;
}

.bbs-list .subject a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    color: #111;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.bbs-list .subject a:hover .board-subject {
    text-decoration: underline;
}

.bbs-list .board-file-icon {
    flex: 0 0 auto;
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.4 11.1l-9.2 9.2a6 6 0 01-8.5-8.5l9.2-9.2a4 4 0 015.7 5.7l-9.2 9.2a2 2 0 01-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E") no-repeat center center / contain;
}

.bbs-list .post-none {
    justify-content: center;
    min-height: 160px;
}

.bbs-list .post-none .subject {
    padding: 0;
    color: #888;
    font-size: 16px;
    text-align: center;
}

/* 하단 : 페이지네이션 / 버튼 */
.bbs-list .bbs-list-footer {
    position: relative;
    margin-top: 36px;
    border-top: 0;
}

/* 1페이지라도 상시 노출되는 페이지네이션 (.board-paging) */
.board-paging,
.bbs-list .board-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.board-paging .page-btn,
.bbs-list .board-paging .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #999;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease;
    border: 0;
    background: transparent;
}

.board-paging .page-btn.page-prev::before,
.bbs-list .board-paging .page-btn.page-prev::before {
    content: "\2039";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.board-paging .page-btn.page-next::before,
.bbs-list .board-paging .page-btn.page-next::before {
    content: "\203a";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.board-paging .page-btn.disabled,
.bbs-list .board-paging .page-btn.disabled {
    color: #d1d5db;
    cursor: default;
    pointer-events: none;
}

.board-paging .page-btn:not(.disabled):hover,
.bbs-list .board-paging .page-btn:not(.disabled):hover {
    color: #111;
}

.board-paging .page-num,
.bbs-list .board-paging .page-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.board-paging .page-num:hover,
.bbs-list .board-paging .page-num:hover {
    color: #111;
}

.board-paging .page-num.active,
.bbs-list .board-paging .page-num.active {
    color: #1D4B8F;
    font-weight: 700;
}

.board-paging .page-num.active::after,
.bbs-list .board-paging .page-num.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 14px;
    height: 2px;
    background-color: #1D4B8F;
    transform: translateX(-50%);
    border-radius: 1px;
}

.bbs-list .adm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bbs-list .adm-pagination a,
.bbs-list .adm-pagination span {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.bbs-list .adm-pagination > a.adm-pagebtn,
.bbs-list .adm-pagination > span.adm-pagebtn.is-active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    color: #666;
    font-size: 16px;
    line-height: 1;
    box-sizing: border-box;
}

.bbs-list .adm-pagination > a.adm-pagebtn:hover {
    color: #111;
}

.bbs-list .adm-pagination > span.adm-pagebtn.is-active {
    position: relative;
    color: #1D4B8F;
    font-weight: 700;
}

.bbs-list .adm-pagination > span.adm-pagebtn.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 14px;
    height: 2px;
    background: #1D4B8F;
    transform: translateX(-50%);
}

.bbs-list .adm-pagebtn--prev a,
.bbs-list .adm-pagebtn--next a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.bbs-list .adm-pagebtn--prev a::before,
.bbs-list .adm-pagebtn--next a::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 1px solid #666;
    border-right: 1px solid #666;
    box-sizing: border-box;
}

.bbs-list .adm-pagebtn--prev a::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.bbs-list .adm-pagebtn--next a::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

.bbs-list .board-btn {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
}

.bbs-list .adm-pagination + .board-btn,
.bbs-list .board-paging + .board-btn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.bbs-list .board-btn:empty {
    display: none;
}

.bbs-list .board-btn .btn {
    min-width: 120px;
    height: 50px;
    border: 1px solid #111;
    border-radius: 0;
    background: #111;
    color: #FFF;
    font-size: 15px;
    font-weight: 500;
}

.bbs-list .board-btn .btn:hover {
    border-color: #A29779;
    background: #A29779;
}

/* 반응형 */
@media (max-width: 1480px) {

    .bbs-list {
        width: 100%;
        padding-left: 40px;
        padding-right: 40px;
    }

}

@media (max-width: 991px) {

    .bbs-list .no {
        width: 80px;
    }

    .bbs-list .name {
        width: 110px;
    }

    .bbs-list .date {
        width: 110px;
    }

    .bbs-list .post-row {
        min-height: 68px;
    }

}

@media (max-width: 767px) {

    .bbs-list {
        padding: 0 20px 80px;
    }

    .bbs-list .list-top {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .bbs-list .total-rows {
        display: block;
        white-space: nowrap;
        margin: 0;
        font-size: 15px;
        line-height: 1.4;
        color: #555;
    }

    .bbs-list .total-rows strong {
        display: inline;
        color: #1D4B8F;
        font-weight: 700;
    }

    .bbs-list .list-search .search-form {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }

    .bbs-list .list-search .search-form > * {
        width: auto;
    }

    .bbs-list .list-search .ui-select {
        width: 120px;
        min-width: 100px;
        height: 44px;
        flex-shrink: 0;
    }

    .bbs-list .search-keyword {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        position: relative;
    }

    .bbs-list .search-keyword .ui-input,
    .bbs-list .search-keyword .search-submit {
        height: 44px;
    }

    .bbs-list .post-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 4px 12px;
        padding: 16px 0;
    }

    .bbs-list .no {
        order: 1;
        width: auto;
        font-size: 13px;
    }

    .bbs-list .subject {
        order: 2;
        width: 100%;
        padding-right: 0;
    }

    .bbs-list .subject a {
        font-size: 16px;
    }

    .bbs-list .name,
    .bbs-list .date {
        order: 3;
        width: auto;
        font-size: 13px;
    }

    .bbs-list .adm-pagination + .board-btn {
        position: static;
        margin-top: 24px;
    }

}


@charset "utf-8";

@charset "utf-8";

@charset "utf-8";

/* =========================================================
   BOARD WRITE STYLES (anti_csi matching screenshot)
   - default (일반게시판)
   - notice (공지사항)
   - gallery (갤러리)
   - promotion (홍보자료)
========================================================= */

/* 1. 전체 컨테이너 규격 (1440px) */
.board-write,
.sub-content.board-write {
    width: 100%;
    margin: 0 auto;
    padding-bottom: 80px;
    box-sizing: border-box;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222222;
}

.board-write .inner,
.board-write .wrap,
.board-write .inner.wrap,
.sub-content.board-write .inner,
.sub-content.board-write .wrap {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* 박스 형태 제거: 평면형 깔끔한 레이아웃 (스크린샷 일치) */
.board-write-box,
.board-write-box.default-write-box,
.board-write-box.notice-write-box,
.board-write-box.gallery-write-box,
.board-write-box.media-write-box,
.bbs-form.board-write-box {
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* 폼 본체 */
.write-form,
.write-form.bbs-form-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

/* 각 입력 행 */
.write-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.write-row label,
.write-row .write-label {
    width: 140px;
    min-width: 140px;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.write-row label span.required,
.write-row label span,
.write-label span.required,
.write-label span {
    color: #ef4444;
    font-weight: 700;
}

.write-field {
    flex: 1;
    width: 100%;
    min-width: 0;
}

/* 제목 인풋 */
.write-input,
.write-select,
.write-row input[type="text"],
.write-row input[type="url"],
.write-row input[type="password"],
.write-row select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #d7dee9;
    border-radius: 8px;
    font-size: 15px;
    color: #222222;
    background-color: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.write-input:focus,
.write-select:focus,
.write-row input[type="text"]:focus,
.write-row input[type="url"]:focus,
.write-row input[type="password"]:focus,
.write-row select:focus {
    border-color: #7ea0ef;
    box-shadow: 0 0 0 3px rgba(31, 75, 184, 0.08);
}

.write-input::placeholder,
.write-row input::placeholder {
    color: #98a2b3;
}

.write-select,
.write-row select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
    cursor: pointer;
}

/* 비회원 이름 / 비밀번호 2열 */
.write-user-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
}

.write-user-row .write-col {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.write-user-row .write-col .write-label {
    width: 90px;
    min-width: 90px;
}

/* 옵션 행 (공지사항 / 비밀글 체크박스) - 좌측 정렬 & 자연스러운 여백 */
.write-options-row {
    display: block !important;
    width: 100% !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.write-options-field {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-check-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    user-select: none !important;
    margin: 0 !important;
}

.custom-checkbox {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
    accent-color: #222222 !important;
    margin: 0 !important;
}

.custom-check-label.is-fixed {
    color: #6b7280;
    cursor: default;
}

/* 에디터 행 - 1440px 100% 전체 너비 차지 (스크린샷 일치) */
.write-content-row {
    display: block !important;
    width: 100% !important;
    margin-top: 4px;
    margin-bottom: 20px;
}

.write-content-row .write-field {
    width: 100% !important;
}

.write-content-row #cke_board_content {
    width: 100% !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 업로드 영역 (스크린샷 일치: 안내문구 상단, 파일선택 버튼 하단 좌측정렬) */
.write-upload-row {
    display: block !important;
    width: 100% !important;
    margin-top: 10px;
    margin-bottom: 24px;
}

.upload-control-box {
    width: 100%;
}

.upload-rect {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
}

.upload-guide-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

.upload-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    background: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.upload-btn:hover {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

.upload-btn svg {
    vertical-align: middle;
}

.file-upload-box.attached-file-box {
    width: 100%;
    margin-top: 10px;
}

.file-upload-box.hidden {
    display: none !important;
}

.board-upload-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.board-upload-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    background: #fbfbfc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.board-upload-list__item:hover {
    background: #f4f6f8;
}

.board-upload-list__item .file-name-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.board-upload-list__link {
    font-size: 14px;
    color: #333333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-upload-list__link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.board-upload-list__delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    height: 28px;
    font-size: 12px;
    font-weight: 500;
    color: #dc2626;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
}

.board-upload-list__delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

/* 최하단 버튼 영역 - 중앙 나란히 정렬 (스크린샷 일치: [ 목록 ] [ 저장 ]) */
.board-write-actions,
.board-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 50px !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
}

.board-write-actions a,
.board-write-actions button,
.board-write-actions .board-btn,
.board-write-actions .bbs-btn,
.board-actions a,
.board-actions button,
.board-actions .board-btn,
.board-actions .bbs-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    height: 48px !important;
    min-width: 120px !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 24px !important;
    border: 1px solid #333333 !important;
    background: #ffffff !important;
    color: #222222 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.board-write-actions a:hover,
.board-write-actions button:hover,
.board-write-actions .board-btn:hover,
.board-actions a:hover,
.board-actions button:hover,
.board-actions .board-btn:hover {
    background: #222222 !important;
    color: #ffffff !important;
    border-color: #222222 !important;
}

.board-write-actions a svg,
.board-write-actions button svg,
.board-actions a svg,
.board-actions button svg {
    margin-right: 6px;
    vertical-align: middle;
}

/* 홍보자료(promotion) 썸네일 설정 */
.media-write-head {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #222222;
}

.media-write-head span {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
}

.media-thumb-row {
    align-items: flex-start;
}

.media-thumb-field {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.thumb-switch input[type="checkbox"] {
    display: none;
}

.thumb-switch .switch-ui {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.thumb-switch .switch-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.thumb-switch input[type="checkbox"]:checked + .switch-ui {
    background-color: #222222;
}

.thumb-switch input[type="checkbox"]:checked + .switch-ui::after {
    transform: translateX(20px);
}

.thumb-switch-text {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}

.write-help {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.file-upload[data-thumb-upload] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
}

.file-upload[data-thumb-upload].is-disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f1f5f9;
}

.file-upload[data-thumb-upload] input[type="file"] {
    display: none;
}

.file-upload[data-thumb-upload] .upload-name {
    flex: 1;
    font-size: 13.5px;
    color: #64748b;
}

.file-upload[data-thumb-upload] .upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    background: #ffffff;
    border: 1px solid #333333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 반응형 모바일 미디어 쿼리 */
@media (max-width: 768px) {
    .board-write .inner,
    .board-write .wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .write-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .write-row label,
    .write-row .write-label {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }

    .write-user-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .write-user-row .write-col {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .write-user-row .write-col .write-label {
        width: 100%;
        min-width: 0;
    }

    .write-input,
    .write-select,
    .write-row input[type="text"],
    .write-row input[type="url"],
    .write-row input[type="password"],
    .write-row select {
        height: 44px;
        font-size: 14px;
        padding: 0 14px;
    }

    .board-write-actions,
    .board-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 36px !important;
    }

    .board-write-actions a,
    .board-write-actions button,
    .board-write-actions .board-btn,
    .board-actions a,
    .board-actions button,
    .board-actions .board-btn {
        min-width: 100px !important;
        width: auto !important;
        height: 44px !important;
        padding: 0 18px !important;
        font-size: 14px !important;
    }
}

