/* =========================
   홈페이지 공지사항
   ========================= */

.home-notice-section {
    margin-bottom: 50px;
}

.home-notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 16px;
}

.home-notice-header h2 {
    margin: 0;

    font-size: 22px;
}

.home-notice-header a {
    font-size: 14px;
}


/* =========================
   게시판
   ========================= */

.board-section {
    padding: 50px 0;
}

.board-section h1 {
    margin: 0 0 24px;

    font-size: 28px;
}


/* =========================
   게시글 목록
   ========================= */

.post-list {
    border-top: 1px solid #ddd;
}

.post-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 16px;

    background: #fff;
    border-bottom: 1px solid #eee;

    color: var(--text);
}

.post-item:hover {
    background: #f8f9fa;

    text-decoration: none;
}


/* =========================
   게시글 유형
   ========================= */

.post-type {
    flex-shrink: 0;

    font-size: 13px;
    font-weight: 600;

    color: var(--primary);
}


/* =========================
   게시글 제목
   ========================= */

.post-title {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================
   게시글 날짜
   ========================= */

.post-date {
    flex-shrink: 0;

    font-size: 13px;

    color: var(--text-secondary);
}


/* =========================
   중요 게시글
   ========================= */

.post-item.post-highlighted {
    background: #fff1f1;

    border-left: 4px solid #dc3545;
}

.post-item.post-highlighted:hover {
    background: #ffe5e5;
}

.post-highlighted .post-title {
    color: #c62828;

    font-weight: 700;
}


/* =========================
   게시글 없음
   ========================= */

.post-empty {
    padding: 30px 16px;

    text-align: center;

    color: var(--text-secondary);
}


/* =========================
   게시글 상세
   ========================= */

.board-detail {
    padding: 50px 0;
}

.board-detail-header {
    padding-bottom: 24px;

    border-bottom: 1px solid #ddd;
}

.board-detail-header h1 {
    margin: 12px 0;

    font-size: 28px;
}

.board-detail-header time {
    font-size: 14px;

    color: var(--text-secondary);
}

.board-detail-content {
    min-height: 200px;

    padding: 35px 0;

    font-size: 16px;
    line-height: 1.8;

    overflow-wrap: anywhere;
}


/* =========================
   목록으로 돌아가기
   ========================= */

.board-back {
    display: inline-block;

    margin-top: 24px;
}


/* =========================
   모바일
   ========================= */

@media (max-width: 600px) {

    .home-notice-section {
        margin-bottom: 35px;
    }

    .home-notice-header h2 {
        font-size: 20px;
    }

    .post-item {
        gap: 10px;

        padding: 14px 10px;
    }

    .post-type,
    .post-date {
        font-size: 12px;
    }

    .post-title {
        font-size: 14px;
    }

    .board-section h1,
    .board-detail-header h1 {
        font-size: 24px;
    }

    .board-detail-content {
        font-size: 15px;
    }

}
