.news-container {
    width: 100%;
}

.news-header {
    display: flex;
    background-color: var(--sub-blue2);
    color: var(--op-white);
    padding: 8px 10px;
    font-size: var(--h5-size);
    font-weight: bold;
}

.news-header .header-date {
    flex-basis: 14%;
    flex-shrink: 0;
    flex-grow: 0;
    border-right: 1px solid var(--op-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--h5-size);
}

.news-header .header-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 0;
    gap: 26px;
}

.news-item .news-date {
    flex-basis: 120px;
    flex-shrink: 0;
    flex-grow: 0;
    color: var(--sub-blue2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.news-item .news-content {
    /* 佔用所有剩餘空間 */
    flex-grow: 1;
    padding: 10px;
    box-sizing: border-box;
}

.news-item-title {
    color: #990000;
    font-size: var(--p-size);
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: bold;
}

.news-item-detail {
    color: #000000;
    font-size: var(--p-size);
    margin: 0;
    line-height: 1.5;
}

/* --- 分頁列樣式 --- */
.pagination {
    text-align: center;
    margin-top: 15px;
    padding: 8px 0;
}

.pagination span,
.pagination a {
    font-size: var(--p-size);
}

.pagination .next-page {
    color: var(--sub-blue2);
    text-decoration: none;
}

.pagination .next-page:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .news-header,
    .news-item {
        flex-direction: column;
    }

    .news-item {
        gap: 0;
    }

    .news-header .header-date,
    .news-header .header-title,
    .news-item .news-date,
    .news-item .news-content {
        flex-basis: auto;
        flex-grow: 1;
        width: 100%;

        display: block;
        text-align: center;
        border-right: none;
    }

    .news-header {
        padding: 5px 10px;
    }

    .news-item .news-date {
        padding: 5px 0;
    }

    .header-date {
        display: none !important;
    }
}