/* =========================
   BO LIST
========================= */
#bo_list .board-table-wrap{
    overflow:hidden;
    background:#fff;
    border-radius:14px;
    box-shadow:0 10px 24px rgba(0,0,0,.1);
}

#bo_list .board-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

#bo_list .board-table th{
    padding:20px 24px;
    background:#2f5fa8;
    color:#fff;
    font-size:18px;
    font-weight:800;
    text-align:left;
}

#bo_list .board-table td{
    padding:20px 24px;
    border-bottom:1px solid #e9edf3;
    color:#374151;
    font-size:17px;
    line-height:1.4;
}

#bo_list .board-table tbody tr:last-child td{
    border-bottom:0;
}

#bo_list .board-table tbody tr{
    transition:.25s;
}

#bo_list .board-table tbody tr:hover{
    background:#eef5ff;
}

#bo_list .board-table .title a{
    color:#333;
    transition:.2s;
}

#bo_list .board-table .title a:hover{
    color:#174b9b;
    font-weight:700;
}

#bo_list .board-btn-wrap{
    display:flex;
    justify-content:flex-end;
    margin-top:28px;
}

#bo_list .board-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:74px;
    height:42px;
    padding:0 22px;
    border-radius:8px;
    background:#2f5fa8;
    color:#fff;
    font-size:15px;
    font-weight:700;
    transition:.25s;
}

#bo_list .board-btn:hover{
    background:#173d73;
}


/* =========================
   BO WRITE
========================= */

#bo_write .write-top{
    margin-bottom:30px;
}

#bo_write .write-top h2{
    margin:0 0 8px;
    color:#173d73;
    font-size:48px;
    font-weight:800;
    line-height:1.2;
}

#bo_write .write-top p{
    margin:0;
    color:#666;
    font-size:18px;
}

#bo_write .write-form{
    padding:32px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
}

#bo_write .form-item{
    margin-bottom:22px;
}

#bo_write .form-row{
    display:flex;
    gap:16px;
}

#bo_write .form-row .form-item{
    flex:1;
}

#bo_write label{
    display:block;
    margin-bottom:10px;
    color:#0f1e3d;
    font-size:18px;
    font-weight:700;
}

#bo_write label span{
    color:#ff5b5b;
}

#bo_write input,
#bo_write textarea{
    width:100%;
    border:1px solid #d9e1ec;
    border-radius:10px;
    background:#fff;
    color:#333;
    font-size:16px;
    transition:.25s;
}

#bo_write input{
    height:54px;
    padding:0 16px;
}

#bo_write textarea{
    height:260px;
    padding:16px;
    resize:none;
}

#bo_write input::placeholder,
#bo_write textarea::placeholder{
    color:#a0a7b7;
}

#bo_write input:focus,
#bo_write textarea:focus{
    border-color:#2f5fa8;
    box-shadow:0 0 0 4px rgba(47,95,168,.08);
}

#bo_write .btn-wrap{
    display:flex;
    gap:12px;
    margin-top:30px;
}

#bo_write .btn-wrap a,
#bo_write .btn-wrap button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:48px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
}

#bo_write .btn-cancel{
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #d9e1ec;
    background:#fff;
    color:#333;
}

#bo_write .btn-submit{
    border:0;
    background:#2f5fa8;
    color:#fff;
    transition:.25s;
}

#bo_write .btn-submit:hover{
    background:#173d73;
}

/* =========================
   BO VIEW
========================= */

#bo_view .view-box{
    padding:34px 36px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 10px 24px rgba(0,0,0,.08);
}

#bo_view .view-head{
    padding-bottom:24px;
    border-bottom:1px solid #e5e7eb;
}

#bo_view .view-head h2{
    margin:0 0 14px;
    color:#173d73;
    font-size:36px;
    font-weight:800;
    line-height:1.35;
}

#bo_view .view-meta{
    display:flex;
    gap:8px;
    margin-bottom:16px;
    color:#6b7280;
    font-size:15px;
}

#bo_view .view-admin-btn{
    display:flex;
    gap:8px;
}

#bo_view .btn-sm{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:58px;
    height:34px;
    padding:0 14px;
    border:0;
    border-radius:18px;
    background:#eef1f5;
    color:#333;
    font-size:14px;
    font-weight:600;
}

#bo_view .view-content{
    min-height:260px;
    padding:32px 0;
    color:#111827;
    font-size:17px;
    line-height:1.8;
}

#bo_view .view-btn-wrap{
    display:flex;
    justify-content:center;
    margin-top:32px;
}

#bo_view .btn-list{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:130px;
    height:50px;
    border-radius:8px;
    background:#2f5fa8;
    color:#fff;
    font-size:17px;
    font-weight:700;
}

/* =========================
   password layer
========================= */
#passwordLayer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#passwordLayer.on {
    display: block;
}

#passwordLayer .layer-dim {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
}

#passwordLayer .password-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% - 40px);
    max-width: 420px;
    padding: 36px 30px;
    border-radius: 18px;
    background: #fff;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

#passwordLayer .password-close {
    position: absolute;
    right: 18px;
    top: 16px;
    border: 0;

    font-size: 28px;
    cursor: pointer;
}

#passwordLayer h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

#passwordLayer p {
    margin: 0;
    font-size: 15px;
    color: #666;
}

#passwordLayer .form-item {
    margin-top: 24px;
}

#passwordLayer input[type="password"] {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

#passwordLayer .password-error {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #d60000;
}

#passwordLayer .btn-wrap {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

#passwordLayer .btn-wrap button {
    flex: 1;
    height: 48px;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

#passwordLayer .btn-cancel {
    background: #eee;
    color: #333;
}

#passwordLayer .btn-submit {
    background: #111;
    color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:1024px){
    #bo_list .board-table th,
    #bo_list .board-table td{
        padding:18px 20px;
        font-size:16px;
    }

    /* write */
    #bo_write .write-top h2{
        font-size:42px;
    }

    #bo_write label{
        font-size:17px;
    }

    /* view */
}

@media (max-width:768px){
    #bo_list .board-table colgroup{
        display:none;
    }

    #bo_list .board-table thead{
        display:none;
    }

    #bo_list .board-table,
    #bo_list .board-table tbody,
    #bo_list .board-table tr,
    #bo_list .board-table td{
        display:block;
        width:100%;
    }

    #bo_list .board-table-wrap{
        background:none;
        box-shadow:none;
        border-radius:0;
    }

    #bo_list .board-table tr{
        margin-bottom:16px;
        padding:20px;
        background:#fff;
        border-radius:12px;
        box-shadow:0 8px 18px rgba(0,0,0,.1);
    }

    #bo_list .board-table td{
        padding:0;
        border-bottom:0;
    }

    #bo_list .board-table td:first-child{
        /*
        display:inline-flex;
        align-items:center;
        margin-bottom:10px;
        padding:5px 12px;
        background:#eaf1fb;
        border-radius:20px;
        color:#174b9b;
        font-size:13px;
        font-weight:800;
        */
        display: none;
    }

    #bo_list .board-table td:first-child::before{
        content:"No. ";
    }

    #bo_list .board-table .title{
        margin-bottom:12px;
    }

    #bo_list .board-table .title a{
        color:#0f2f5f;
        font-size:17px;
        font-weight:800;
        line-height:1.4;
    }

    #bo_list .board-table td:nth-child(3),
    #bo_list .board-table td:nth-child(4){
        display:inline-block;
        width:auto;
        color:#555;
        font-size:14px;
    }

    #bo_list .board-table td:nth-child(3)::before{
        content:"Author: ";
        font-weight:700;
    }

    #bo_list .board-table td:nth-child(4)::before{
        content:"Date: ";
        margin-left:12px;
        font-weight:700;
    }

    /* write */
    #bo_write .write-top{
        margin-bottom:24px;
    }

    #bo_write .write-top h2{
        font-size:34px;
    }

    #bo_write .write-top p{
        font-size:16px;
    }

    #bo_write .write-form{
        padding:24px;
    }

    #bo_write .form-row{
        flex-direction:column;
        gap:0;
    }

    #bo_write textarea{
        height:220px;
    }

    /* view */
    #bo_view .view-box{
        padding:26px 22px;
    }

    #bo_view .view-head h2{
        font-size:28px;
    }

    #bo_view .view-content{
        font-size:15px;
    }
}

@media (max-width:480px){
    #bo_list .board-table tr{
        padding:18px 16px;
    }

    #bo_list .board-btn-wrap{
        margin-top:22px;
    }

    #bo_list .board-btn{
        width:100%;
    }


    /* write */
    #bo_write .write-top h2{
        font-size:28px;
    }

    #bo_write .write-top p{
        font-size:14px;
    }

    #bo_write .write-form{
        padding:18px;
        border-radius:14px;
    }

    #bo_write label{
        font-size:15px;
    }

    #bo_write input{
        height:48px;
        font-size:15px;
    }

    #bo_write textarea{
        height:180px;
        font-size:15px;
    }

    #bo_write .btn-wrap{
        flex-direction:column;
    }

    #bo_write .btn-wrap a,
    #bo_write .btn-wrap button{
        width:100%;
    }

    /* view */
    #bo_view .view-box{
        padding:22px 18px;
        border-radius:14px;
    }

    #bo_view .view-head h2{
        font-size:24px;
    }

    #bo_view .btn-list{
        width:100%;
    }
}