* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner */
.page-banner {
    background-image: url('/image/category_banner.png');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    width: 100%;
    aspect-ratio: 1442 / 467;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 50px 20px 40px;
    min-height: 300px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

/* Detail Section */
.detail-section {
    padding: 60px 0 100px;
    background-color: #fff;
}

/* Notice Header */
.notice-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.notice-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.notice-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    color: #888;
}

.meta-value {
    color: #333;
    font-weight: 500;
}

/* Notice Content */
.notice-content {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    min-height: 300px;
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.content-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.content-body p {
    margin-bottom: 15px;
}

.content-body ul, .content-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.content-body li {
    margin-bottom: 8px;
}

/* Attachments Section */
.attachments-section {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.attachments-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.attachments-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.attachment-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s;
}

.attachment-link:hover {
    background-color: #e9ecef;
}

.attachment-icon {
    font-size: 18px;
}

.attachment-name {
    flex: 1;
    font-size: 14px;
    color: #1064D9;
}

.attachment-size {
    font-size: 12px;
    color: #888;
}

/* Actions */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
}

.btn-list {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-list:hover {
    background-color: #f5f5f5;
    color: #333;
}

.actions-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #4A90E2;
    background-color: #fff;
    border: 1px solid #4A90E2;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-share:hover {
    background-color: #4A90E2;
    color: #fff;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-edit {
    background-color: #fff;
    color: #1064D9;
    border: 1px solid #1064D9;
}

.btn-edit:hover {
    background-color: #1064D9;
    color: #fff;
}

.btn-delete {
    background-color: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-delete:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner {
        aspect-ratio: 412 / 185;
        min-height: 200px;
        padding: 30px 15px 30px;
    }

    .page-title {
        font-size: 28px;
    }

    .detail-section {
        padding: 40px 0 60px;
    }

    .notice-title {
        font-size: 22px;
    }

    .notice-meta {
        gap: 15px;
    }

    .notice-content {
        padding: 30px 0;
        min-height: 200px;
    }

    .content-body {
        font-size: 15px;
    }

    .actions {
        flex-direction: column;
        gap: 15px;
    }

    .actions-left {
        width: 100%;
        flex-direction: row;
    }

    .btn-list, .btn-share {
        flex: 1;
        justify-content: center;
    }

    .admin-actions {
        width: 100%;
    }

    .btn-edit,
    .btn-delete {
        flex: 1;
        text-align: center;
    }
}
