/* ----------------------------------------------------------
   ANIMATION & BUTTON
---------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease-out forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    height: 60px;
    padding: 0 15px;
    border-radius: 10px;
    border: 2px solid #eee;
    background: #fff;
    color: #444;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}
.btn:hover {
    border: 2px solid #111;
    color: #111;
}
.btn.btn-dark {
    border: 2px solid #111;
    background: #111;
    color: #fff;
}
.btn.btn-dark:hover {
    border: 2px solid #777;
    background: #777;
}
.btn.delete-confirm {
    background: #9E1218;
    border: 2px solid #9E1218;
}
.btn.delete-confirm:hover {
    border: 2px solid #eee;
    background: #eee;
    color: #9E1218;
}


/* ----------------------------------------------------------
   BOARD LIST : 공통 레이아웃
---------------------------------------------------------- */
.post-row {
    display: flex;
}

.post-row > li,
.post-row > div {
    padding: 0.8rem;
}

.post-row .no {
    flex: 0 0 56px;
    text-align: center;
}

.post-row .subject {
    flex: 1 1 auto;
    text-align: left;
}

.post-row .name {
    flex: 0 0 200px;
    text-align: center;
}

.post-row .date {
    flex: 0 0 150px;
    text-align: center;
}

.bbs-list {
    font-size: 1.8rem;
}


/* ----------------------------------------------------------
   BOARD LIST : HEADER
---------------------------------------------------------- */
.post-head {
    background: #f6f8fb;
    color: #727887;
    height: 56px;
}

.post-head li {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ----------------------------------------------------------
   BOARD LIST : BODY
---------------------------------------------------------- */
.post-list .post-row {
    border-bottom: 1px solid #e8e8e8;
}

.post-list .post-row > div {
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-list .post-row .subject {
    justify-content: flex-start;
}

.bbs-list-body .total-rows {
    margin-bottom: 8px;
}

.bbs-list-footer {
    margin-top: 4rem;
}

.bbs-list-footer .pagination {
    margin-bottom: 2rem;
}


/* ----------------------------------------------------------
   BOARD VIEW
---------------------------------------------------------- */
.bbs-view {
    padding: 0 0 18rem;
}

.bbs-view-header {
    border-top: 2px solid #111;
    border-bottom: 1px solid #e8e8e8;
    padding: 5.5rem 2%;
}

.bbs-view-header .subject {
    margin-bottom: 1rem;
    color: #111;
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.bbs-view-header .data {
    display: flex;
    justify-content: center;
    color: #777;
    font-size: 1.6rem;
    font-weight: 300;
}

.bbs-view-header .data .date {
    position: relative;
    font-size: 1.8rem;
}

.bbs-view-header .data .name {
    margin-left: 24px;
}

.bbs-view-body {
    min-height: 20rem;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1.4rem;
    text-align: center;
}
.bbs-view-body .content {
    padding: 6rem 2% 5.5rem;
    word-break: break-word;
    overflow-wrap: anywhere; 
}
.bbs-view-body .content p {
    color: #444;
    font-size: 1.8rem;
    line-height: 1.5;
}
.bbs-view-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* 첨부파일 리스트 */
.bbs-view-body .upload-file {
    display: flex;
    flex-direction: column;
    padding: 3.5rem 0;
    border-top: 1px solid #e8e8e8;
    color: #777;
    font-size: 1.6rem;
    line-height: 1.2;
}

.bbs-view-body .upload-file li {
    position: relative;
    padding-left: 3rem;
    text-align: left;
}

.bbs-view-body .upload-file li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 22px;
    height: 21px;
    background: url(/images/common/file_ico.png) no-repeat left top;
    font-size: 0;
}

.bbs-view-body .upload-file li span {
    font-size: 1.4rem;
    font-weight: 300;
}

.bbs-view-foot {
    padding: 6rem 0 0 0;
}


/* ----------------------------------------------------------
   BOARD BUTTONS
---------------------------------------------------------- */
.board-btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
}


/* ----------------------------------------------------------
   BOARD FORM
---------------------------------------------------------- */
.bbs-form {
    padding: 0 0 4rem 0;
}

.bbs-form .form-control {
    font-size: 1.6rem;
}

.bbs-form-body .row {
    padding: 1rem 0;
}

.bbs-form-body .row:first-child {
    padding-top: 0;
}

.bbs-form-body .row .col-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555555;
}

.bbs-form-body .row.option .col-10 {
    display: flex;
    gap: 1rem;
}

.bbs-form-body .row.option .col-10 div {
    font-size: 1.8rem;
}

.bbs-form-foot {
    margin-top: 4rem;
}


/* ----------------------------------------------------------
   CUSTOM INPUTS / FILE / CAPTCHA
---------------------------------------------------------- */
.custom-checkbox .custom-control-label {
    padding-left: 5px;
}

.custom-checkbox .custom-control-label::before,
.custom-checkbox .custom-control-label::after {
    width: 1.4rem;
    height: 1.4rem;
    transform: translateY(2px);
}

.file-upload-box .upload-rect {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.captcha-rect .form-control {
    font-size: 18px;
}
.captcha-btn .btn {
    height: 38px;
    border-radius: 0;
    color: #777;
    font-size: 1.6rem;
}
.captcha-btn .btn:hover {
    border-color: #444;
    background-color: #fff;
    color: #444;
}
#file-upload-btn {
    height: 38px;
    margin-top: 1rem;
    border-radius: 0;
    color: #777;
    font-size: 1.6rem;
}
#file-upload-btn:hover {
    border-color: #444;
    background-color: #fff;
    color: #444;
}

/* ----------------------------------------------------------
   MOBILE (max-width: 767px)
---------------------------------------------------------- */
@media (max-width: 767px) {

    /* 리스트 헤더 숨김 */
    .post-head {
        display: none;
    }

    /* 각 row 전체 레이아웃 */
    .post-row {
        flex-direction: column;
        padding: 12px 0;
        gap: 4px;
        border-bottom: 1px solid #e8e8e8;
    }

    .post-row > li,
    .post-row > div {
        padding: 0;
    }

    /* No, Name, Date */
    .post-row .no,
    .post-row .name,
    .post-row .date {
        flex: none;
        text-align: left;
        font-size: 1.2rem;
        color: #727887;
    }

    /* subject 강조 */
    .post-row .subject {
        padding: 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    /* 리스트 align 제거 */
    .post-list .post-row > div {
        height: auto;
        justify-content: flex-start;
        align-items: flex-start;
    }

    /* 작성자 + 날짜 한 줄 표현 */
    .post-row .date,
    .post-row .name {
        display: inline-block;
        margin-right: 12px;
    }

    .bbs-view-header {
        padding: 2rem 2%;
    }
    /* 뷰 페이지 상단 */
    .bbs-view-header .subject {
        padding: 0 12px;
        font-size: 2.4rem;
        line-height: 1.4;
    }

    .bbs-view-header .data {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 1.3rem;
    }

    .bbs-view-header .data .date {
        margin-right: 0 !important;
    }

    .bbs-view-header .data .name {
        margin-left: 0 !important;
    }

    .bbs-view-header .data .date:after {
        display: none;
    }

    .bbs-view-body {
        padding: 0;
        font-size: 1.4rem;
    }
    .bbs-view-body .content {
        padding: 2rem 2%;
    }
    .bbs-view-body .content p {
        font-size: 2rem;
    }

    /* 첨부파일 */
    .bbs-view-body .upload-file {
        align-items: flex-start;
        padding: 2rem 0;
        font-size: 1.8rem;
        text-align: left;
    }
    .bbs-view-body .upload-file li::before {
        width: 16px;
        height: 15px;
        background-size: contain;
    }

    /* 버튼 영역 */
    .board-btn {
        gap: 1rem;
        padding: 0;
    }
    .board-btn .btn {
        min-width: 120px;
        height: 50px;
    }

    /* 폼 */
    .bbs-form .form-control {
        font-size: 1.4rem;
    }

    .bbs-form-body .row {
        flex-direction: column;
        padding: 1.2rem 0;
    }

    .bbs-form-body .row .col-2 {
        justify-content: flex-start;
        margin-bottom: 6px;
        font-size: 1.4rem;
    }

    .bbs-form-body .row.option .col-10 {
        flex-direction: column;
        gap: 6px;
    }

    /* 파일 업로드, 캡차 */
    .file-upload-box .upload-rect {
        align-items: flex-start;
    }

    .captcha-rect .form-control {
        font-size: 16px;
    }

    .bbs-view-foot {
        padding-top: 4rem;
    }
}
