.bbs-form {
    max-width: 980px;
    margin: 4rem auto;
    padding: 0 1.6rem;
}

.bbs-form .wrap {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.06);
}

.bbs-form-head,
.bbs-form-foot {
    padding: 1.8rem 2.2rem;
    border-bottom: 1px solid #eeeeee;
}

.bbs-form-foot {
    border-bottom: none;
    border-top: 1px solid #eeeeee;
}

.bbs-form-body {
    padding: 2.2rem;
}

.bbs-form-body .row {
    margin-bottom: 2.2rem;
    align-items: center;
}

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

.bbs-form .form-control {
    border-radius: 0.8rem;
    border: 1px solid #d7d7d7;
    padding: 1rem 1.2rem;
    height: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bbs-form .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.bbs-form .row .col-2 {
    font-weight: 600;
    color: #333333;
    padding-top: 0.6rem;
    padding-right: 1.4rem;
    padding-bottom: 0.6rem;
}

.bbs-form .option .custom-control,
.bbs-form .option .small {
    display: inline-flex;
    align-items: center;
    margin-right: 1.6rem;
}

.bbs-form .option .custom-control-label,
.bbs-form .option label {
    margin-left: 0.6rem;
}

.bbs-form .file-upload-box {
    border: 1px solid #e6e6e6;
    border-radius: 1rem;
    overflow: hidden;
    background: #fafafa;
}

.bbs-form .file-upload-box .upload-rect {
    padding: 1.6rem;
    border-bottom: 1px dashed #e0e0e0;
}

.bbs-form #file-upload-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.8rem 1.4rem;
    border-radius: 99.9rem;
}

.bbs-form .file-upload-box .rect {
    padding: 1.2rem 1.6rem 0.6rem;
}

.bbs-form .file-upload-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbs-form .file-upload-box li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid #eeeeee;
}

.bbs-form .file-upload-box li:last-child {
    border-bottom: none;
}

.bbs-form .file-upload-box li a {
    flex: 1;
    color: #111111;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bbs-form .file-upload-box li .fa {
    color: #666666;
    cursor: pointer;
    margin-left: 0.6rem;
    transition: color 0.2s ease;
}

.bbs-form .file-upload-box li .fa:hover {
    color: #111111;
}

.bbs-form .board-btn {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.bbs-form .bbs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 99.9rem;
    padding: 1rem 1.8rem;
    font-weight: 600;
    font-size: 1.7rem;
    border: 1px solid transparent;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bbs-form .bbs-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.3rem rgba(37, 99, 235, 0.2);
}

.bbs-form .bbs-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
}

.bbs-form .bbs-btn-primary {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

.bbs-form .bbs-btn-primary:hover {
    background: #1a5ed0;
    border-color: #1a5ed0;
}

.bbs-form .bbs-btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #e5e7eb;
}

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

.bbs-form .bbs-btn-outline {
    background: #ffffff;
    color: #1f6feb;
    border-color: #c7d2fe;
}

.bbs-form .bbs-btn-outline:hover {
    background: #eef2ff;
}

/* Board list */
.bbs-list {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.6rem;
}

.bbs-list .list-wrap {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bbs-list-header,
.bbs-list-footer {
    padding: 1.8rem 2.2rem;
    border-bottom: 1px solid #eeeeee;
}

.bbs-list-footer {
    border-bottom: none;
    border-top: 1px solid #eeeeee;
}

.bbs-list-body {
    padding: 1.6rem 2.2rem 0;
}

.bbs-list .total-rows {
    font-size: 1.3rem;
    color: #666666;
    margin-bottom: 1rem;
}

.bbs-list .post-head,
.bbs-list .post-row {
    display: grid;
    grid-template-columns: 6rem 1fr 12rem 10rem 8rem;
    align-items: center;
    gap: 1rem;
}

.bbs-list .post-head {
    font-weight: 700;
    background: #f7f7f8;
    border: 1px solid #eeeeee;
    border-radius: 0.8rem;
    padding: 1.2rem 1.6rem;
    color: #222222;
}

.bbs-list .post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbs-list .post-row {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid #eeeeee;
}

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

.bbs-list .subject a {
    color: #111111;
    text-decoration: none;
}

.bbs-list .subject a:hover {
    color: #1f6feb;
}

.bbs-list .comment {
    color: #1f6feb;
    font-weight: 600;
}

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

.bbs-list .name,
.bbs-list .date,
.bbs-list .hit,
.bbs-list .no {
    color: #555555;
    font-size: 1.4rem;
}

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

.bbs-list .justify-content-center {
    display: flex;
    justify-content: center;
}

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

.bbs-list .board-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99.9rem;
    padding: 1rem 1.8rem;
    font-weight: 600;
    font-size: 1.7rem;
    border: 1px solid #1f6feb;
    background: #1f6feb;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bbs-list .board-btn a:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
    background: #1a5ed0;
    border-color: #1a5ed0;
}

.bbs-list .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 1.6rem 0 0;
}

.bbs-list .pagination a,
.bbs-list .pagination strong,
.bbs-list .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.8rem;
    border: 1px solid #e5e5e5;
    color: #444444;
    text-decoration: none;
    padding: 0 0.6rem;
}

.bbs-list .pagination strong,
.bbs-list .pagination .active {
    background: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

.bbs-list .list-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.6rem;
}

.bbs-list .search-form {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.bbs-list .form-control {
    border-radius: 0.8rem;
    border: 1px solid #d7d7d7;
    padding: 1rem 1.2rem;
    height: auto;
}

.bbs-list .input-group-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99.9rem;
    padding: 1rem 1.6rem;
    font-weight: 600;
    font-size: 1.5rem;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    cursor: pointer;
}

.bbs-list .mr-1 {
    margin-right: 0.4rem;
}

.bbs-list .ml-1 {
    margin-left: 0.4rem;
}

.bbs-list .ml-2 {
    margin-left: 0.8rem;
}

@media (max-width: 900px) {
    .bbs-list .post-head,
    .bbs-list .post-row {
        grid-template-columns: 4.8rem 1fr 9rem 8rem;
    }

    .bbs-list .hit {
        display: none;
    }
}

@media (max-width: 680px) {
    .bbs-list {
        margin: 2.4rem auto;
    }

    .bbs-list-header,
    .bbs-list-footer {
        padding: 1.4rem 1.6rem;
    }

    .bbs-list-body {
        padding: 1.2rem 1.6rem 0;
    }

    .bbs-list .post-head,
    .bbs-list .post-row {
        grid-template-columns: 4rem 1fr 7rem;
    }

    .bbs-list .name,
    .bbs-list .date {
        font-size: 1.2rem;
    }

    .bbs-list .name {
        display: none;
    }

    .bbs-list .list-search {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Board view */
.bbs-view {
    max-width: 1000px;
    margin: 4rem auto 6rem;
    padding: 0 1.6rem;
}

.bbs-view .wrap {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 1.2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.bbs-view-header {
    padding: 2rem 2.2rem 1.6rem;
    border-bottom: 1px solid #eeeeee;
}

.bbs-view-header .subject {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
}

.bbs-view-header .data {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.6rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #666666;
}

.bbs-view-body {
    padding: 2.2rem;
}

.bbs-view .content {
    padding: 2.4rem 0;
    line-height: 1.7;
    color: #222222;
}

.bbs-view .content p {
    margin-bottom: 1.4rem;
}

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

.bbs-view-foot {
    padding: 1.6rem 2.2rem 2.2rem;
    border-top: 1px solid #eeeeee;
}

.bbs-view .board-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.bbs-view .board-btn .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 99.9rem;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    font-size: 1.6rem;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bbs-view .board-btn .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.12);
}

.bbs-view .board-btn .btn-edit {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #ffffff;
}

.bbs-view .board-btn .delete-confirm {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.bbs-view .comment {
    padding: 1.2rem 2.2rem 2.4rem;
    border-top: 1px dashed #e5e5e5;
}

@media (max-width: 680px) {
    .bbs-view {
        margin: 2.4rem auto 4rem;
    }

    .bbs-view-header,
    .bbs-view-body,
    .bbs-view-foot,
    .bbs-view .comment {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .bbs-view-header .subject {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .bbs-form {
        margin: 2.4rem auto;
    }

    .bbs-form-body {
        padding: 1.6rem;
    }

    .bbs-form-head,
    .bbs-form-foot {
        padding: 1.4rem 1.6rem;
    }
}
