﻿#notice-list {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    border-top: 1px solid gray;
}

.preview-card {
    margin-left: 120px;
    margin-bottom: 30px;
    padding: 24px 0;
    border-bottom: 1px solid gray;
}

.preview-row {
    display: flex;
    gap: 300px;
    align-items: flex-start;
}

/* 왼쪽 이미지 */

.notice-thumb {
    width: 180px;
    flex-shrink: 0;
}

    .notice-thumb img {
        width: 100%;
        /*        height: auto;*/
        display: block;
        border-radius: 6px;
        border: 1px solid #ddd;
    }

/* 오른쪽 */

.preview-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.pdf-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #d9534f;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

    .pdf-badge:hover {
        background: #c9302c;
    }

.preview-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.subject {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
}

.content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 14px;
}

.date {
    color: #999;
    font-size: 13px;
}

/* 모바일 */

@media (max-width: 768px) {

    .preview-row {
        flex-direction: column;
    }

    .notice-title {
        width: 100%;
    }

        .notice-title img {
            max-height: 220px;
            object-fit: cover;
        }

    .subject {
        font-size: 16px;
    }
}


.pagination .page-link {
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    font-weight: bold;
}

.notice-paging {
    margin-top: 50px;
}
