.write-btn {
    margin-top: 10px;
}


.write-btn a {
    font-size: 0.9rem;
    color: #fff;
}

.board-banner {
    flex: 1;
    background-color: #eee;
    border-radius: 8px;
    height: 300px;
}



.post-meta {
    color: gray;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.post-content {
    margin-top: 15px;
    margin-bottom: 15px;
}




.write-card {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}



.board-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px auto 10px;
    padding: 0 10px;
    max-width: 100%;
    flex-wrap: wrap;
}

.board-search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.board-search-box input,
.board-search-box select {
    height: 38px;               /* ✅ 높이 강제 통일 */
    box-sizing: border-box;     /* ✅ 패딩 포함 계산 */
    font-size: 0.95rem;
}

.board-search-box input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

.board-search-box select {
    padding: 6px;
    width:100px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.board-search-box button {
    padding: 6px 10px;
    background-color: var(--primary-color, #1F4EB2);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .board-control-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .board-search-box {
        width: 100%;
        justify-content: space-between;
    }

    .write-btn {
        align-self: flex-end; /* 오른쪽 정렬 */
        margin-top: 8px;
    }
}



/* ✅ 반응형: 모바일 */
@media (max-width: 768px) {
    .write-card {
        padding: 20px 15px;
        margin: 20px 10px;
        max-width: 100%;
    }
}







/* ------------------------------- */
/* 첨부파일 (write/detail 공통)    */
/* ------------------------------- */

/* write.html 파일 선택 */
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;            /* 텍스트 input 과 높이 맞춤 */
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
}

/* detail.html 첨부 목록 */
.attachment-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    background: #fafafa;
}

.attachment-wrapper h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #333;
}

.attachment-list {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 1 0 1rem 0;
}


.attachment-list li + li {
    margin-top: 6px;
}

.attachment-list a {
    color: var(--primary-color, #1F4EB2);
    text-decoration: underline;
    font-size: 0.95rem;
}

.attachment-list a:hover {
    text-decoration: none;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap : 6px;
}

.delete-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.delete-label input {
    margin: 0;
}

@media (max-width: 768px) {
    .attachment-wrapper {
        padding: 10px 12px;
    }
}






