/*/////////////////////////////////////////////////////////*/
/*-------活動訊息 (Two Columns Version)--------*/
/*/////////////////////////////////////////////////////////*/

/* 列表容器 */
.index_announcementBg {
    padding: 50px 0;
}

.news_listArea {
    display: flex;
    flex-wrap: wrap; /* 【關鍵】允許換行 */
    gap: 30px;       /* 項目之間的間距 (水平與垂直) */
    width: 100%;
}

/* 單則新聞區塊 (改為佔 50% 寬度) */
.news_list {
    /* 【關鍵】計算寬度：(100% - 間距30px) / 2 */
    width: calc(50% - 15px); 
    box-sizing: border-box;
    /* border-bottom: 1px solid #eee; */
    padding-bottom: 20px;
}

/* 移除最後一個原本的樣式，因為現在是網格狀，保留底線比較好看 */
.news_list:last-child {
    border-bottom: 1px solid #eee;
}

/* 連結容器 */
.news_list > a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    transition: 0.3s ease all;
    height: 100%; /* 讓高度撐滿，視覺較整齊 */
}

.news_list > a:hover {
    opacity: 0.8;
}

/* --- 左側圖片區 --- */
.news_img {
    /* 【調整】因為變兩欄，圖片改為佔卡片的 40%，避免太大 */
    flex: 0 0 40%; 
    max-width: 250px; /* 限制最大寬度 */
    position: relative;
    background: #d8c6bd;
    overflow: hidden;
}

/* 圖片比例控制 */
.news_img .news_img_content {
    display: block;
    width: 100%;
    padding-top: 75%; /* 4:3 比例，稍微方一點適合兩欄 */
    position: relative;
}

.news_img .news_img_content img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news_list > a:hover .news_img img {
    transform: scale(1.1);
}

/* 分類標籤 */
.news_category {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    max-width: 100%;
}

.news_category .news_category_text {
    display: block;
    font-size: 1.125em;
    line-height: 1.5;
    padding: 3px 10px;
    background-color: var(--primary_color);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.3s;
}

.news_list > a:hover .news_category_text {
    background-color: var(--thir_color);
}

/* --- 右側文字內容區 --- */
.index_news_R {
    flex: 1;
    padding-left: 20px; /* 間距稍微縮小 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 靠上對齊 */
}

/* 日期 */
.news_time {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary_color);
    font-size: 1.125em;
    margin-bottom: 5px;
    font-weight: 500;
}

/* 標題 */
.news_title {
    margin-bottom: 8px;
}

.news_title p {
    margin: 0;
    color: var(--primary_color);
    font-size: 1.375em; /* 標題字體微調 */
    font-weight: bold;
    line-height: 1.4;
    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 允許標題換行顯示兩行 */
    overflow: hidden;
    transition: color 0.3s;
}

.news_list > a:hover .news_title p {
    color: var(--thir_color);
}

/* 簡述 */
.news_text {
    color: #646464;
    font-size: 1.125em;
    line-height: 1.5;
    text-align: justify;
    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 因為空間變小，顯示 3 行就好 */
    overflow: hidden;
}

/* --- RWD 手機版 (小於 768px 變回一欄) --- */
@media (max-width: 768px) {
    .news_list {
        width: 100%; /* 手機版佔滿 100% */
        border-bottom: 1px solid #eee;
    }
    
    /* 手機版維持圖左文右，或是要改成上圖下文也可 */
    .news_img {
        flex: 0 0 120px; /* 固定手機版圖片大小 */
    }
    
    .news_title p {
        font-size: 1.1em;
    }
}

/* --- 極小螢幕 (小於 480px) 改為上圖下文 --- */
@media (max-width: 480px) {
    .news_list > a {
        flex-direction: column;
    }
    .news_img {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .index_news_R {
        padding-left: 0;
    }
}