.new-content {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 16px;
}

.notice-article {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-date {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 600;
}

.notice-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--badge-color);
}

.notice-excerpt {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--badge-color);
}

.notice-image {
    width: 480px;
}

.notice-image img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.notice-body {
    height: auto;
    line-height: 3.2rem;
    font-size: 1.6rem;
    text-indent: 0;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    /* allow normal wrapping for paragraphs */
}

/* Make sure images/tables/code inside content don't overflow the container */
.notice-body img,
.notice-body table,
.notice-body iframe,
.notice-body embed {
    max-width: 100%;
    height: auto;
}

/* Preserve preformatted text but allow wrapping for long lines */
.notice-body pre,
.notice-body code,
.notice-body pre code {
    white-space: pre-wrap;
    /* keep line breaks but allow wrapping */
    word-break: break-word;
    /* break long tokens if needed */
    overflow-wrap: anywhere;
    background: #f7f7f7;
    padding: 1rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .notice-article {
        width: 90%;
        margin: 0 auto;
    }

    .notice-image {
        width: 100%;
    }

    .new-content {
        padding: 0;
    }
}