/* 게시물 */
.post {
    position: relative;
    display: flex;
    column-gap: 1rem;
    row-gap: 0.4rem;
    flex-wrap: wrap;
    padding: 2rem 0rem;
    border-bottom: 0.1rem solid var(--grey-lighter);
    line-height: 2.2rem;
}

/* 중요 게시물 뱃지 */
/* .post.important::before {
    content: "중요";
    height: 2.2rem;
    padding: 0rem 0.5rem;
    color: #fff;
    background-color: var(--main);
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 0.5rem;
} */

.post.important::before {
    content: "\f005";
    height: 2.2rem;
    padding: 0rem 0.5rem;
    color: #fff;
    background-color: var(--main);
    font-family: "Font Awesome 5 Pro";
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0.5rem;
}

/* 게시물 제목 */
.post-title-wrap {
    flex: 1;
}
.post-title {
    color: var(--grey-dark);
    font-size: 1.6rem;
    transition: opacity 0.3s ease-out;
}
.post.important .post-title {
    font-weight: bold;
}

/* 게시물 작성일 */
.post-date {
    color: var(--grey-placeholder);
    font-size: 1.2rem;
    white-space: nowrap;
}
.post.important .post-date {
    display: none;
}

/* 게시물 상세 헤드 */
.post-detail-head {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0rem 0rem 2rem;
    border-bottom: 0.1rem solid var(--grey-lighter);
}

/* 게시물 상세 제목 */
.post-detail-title {
    color: var(--grey-dark);
    font-size: 2.8rem;
    font-weight: bold;
}

/* 게시물 상세 작성일 */
.post-detail-date {
    color: var(--grey-placeholder);
    font-size: 1.2rem;
    text-align: end;
}

/* 게시물 상세 본문 */
.post-detail-body {
    padding: 4rem 0rem;
    font-size: 1.6rem;
    line-height: 1.75;
}

.post-detail-body img {
    max-width: 100%;
    border-radius: 1.5rem;
}

/* 게시물 상세 하단 */
.post-detail-bottom {
    display: flex;
    justify-content: center;
    padding: 2rem 0rem 0rem;
}

/* 목록으로 돌아가기 버튼 */
.board-list-btn {
    padding: 1rem 4rem;
    color: var(--grey-dark);
    background-color: var(--grey-btn-background);
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 4rem;
}

/* 게시판 페이지네이션 */
.board-pagination-container {
    padding: 2rem 1rem 0rem;
}

.board-pagination {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    color: var(--grey-dark);
    font-size: 1.4rem;
    font-weight: 500;
}

.board-pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2.4rem;
    line-height: 1;
    border-radius: 0.5rem;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.board-pagination a.active {
    color: #fff;
    background-color: var(--main);
    font-weight: bold;
}

/* Hover */
@media (hover: hover) {
    /* 게시물 제목 */
    .post-title:hover {
        opacity: 0.5;
    }
}

/* Mobile breakpoint (768px) */
@media screen and (max-width: 768px) {
    /* 게시물 */
    .post:not(.important) {
        padding: 1.5rem 0rem;
    }

    /* 게시물 작성일 */
    .post-date {
        width: 100%;
        line-height: normal;
    }

    /* 게시물 상세 헤드 */
    .post-detail-head {
        gap: 1rem;
        padding: 0rem 0rem 2rem;
    }

    /* 게시물 상세 제목 */
    .post-detail-title {
        font-size: 2rem;
    }
}