/* 最新消息顯示區域 */
.news-display {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    list-style-type: none; /* 去除列表項目的小點 */ 
}

/* 標題樣式 */
.news-display h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #007BFF;
    padding-bottom: 10px;
}

/* 最新消息列表 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 單條消息 */
.news-item {
    padding: 15px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* 滑鼠懸停時的效果 */
.news-item:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* 消息標題樣式 */
.news-item h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #007BFF;
}

.news-item h3 a {
    text-decoration: none;
    color: inherit;
}

.news-item h3 a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* 消息日期 */
.news-item p:first-of-type {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

/* 消息內容摘要 */
.news-item p:last-of-type {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* 最新消息顯示區域 */
.news-display {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.news-display h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.news-item h3 a {
    color: #007bff;
    text-decoration: none;
}

.news-item h3 a:hover {
    text-decoration: underline;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item p {
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* 消息詳細內容 */
.news-content {
    margin-top: 20px;
    line-height: 1.8;
    color: #333;
    padding: 10px;
}

/* 返回按鈕 */
.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.back-link:hover {
    background-color: #0056b3;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar-left {
        display: none; /* 手機模式下隱藏側邊欄 */
    }

    .news-display {
        padding: 10px;
        /* width: 90%;*/
    }
    .news-item {
        padding: 10px;
    }

    .news-display h2 {
        font-size: 20px;
    }

    .news-item h3 {
        font-size: 16px;
    }

    .news-item p {
        font-size: 14px;
    }
}
