
/* =============================================== */
/* 新聞列表頁面樣式 */
/* =============================================== */


.news-list-container {
    width: 80%;
    margin: 0 auto !important;
    padding: 0 0px 20px  20px;
    /* border:1px solid red; */
}

/* 新聞列表區域 */
.news-list-section {
    position: relative;
    z-index: 1; /* 確保整個區域有正確的堆疊上下文 */
}

/* 新聞標題控制區域 */
.news-header-controls {
    position: relative;
    z-index: 100; /* 確保下拉選單能顯示在 banner(10) 之上,但低於導覽列(999) */
}

/* BenQ 子分類標題（之前為 inline style in cust_icons_benq.php） */
.benq-subcat2-title {
    letter-spacing: 0.1em;
    text-align: left;
    font-size: 22px;
    margin: 60px 0 30px 0;
    font-weight: bold;
    color:#297b24;
}

/* 根據 URL hash 動態改變 benq-subcat2-title 字型顏色 */
body[data-hash="earth"] .benq-subcat2-title {
    color: #297b24;
}

body[data-hash="equal"] .benq-subcat2-title {
    color: #e1999d;
}

body[data-hash="honest"] .benq-subcat2-title {
    color: #2180b0;
}

body[data-hash="culture"] .benq-subcat2-title {
    color: #b7a960;
}
.benq-content-title{
    border:1px solid red;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 

.news-category {
    background: #f5f5f5;
    color: #555;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #ddd;
}

.news-category[data-category="news"] {
    background: #f5f5f5;
    color: #555;
}

.news-category[data-category="activity"] {
    background: #f5f5f5;
    color: #555;
}

.news-category[data-category="performance"] {
    background: #f5f5f5;
    color: #555;
} */


.news-new-badge {
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* 錯誤訊息 */
.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
    font-size: 18px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}
/* 新聞內容 */
.news-content {
    line-height: 2.8;
    color: #969494;
    margin-bottom: 50px;
    max-width: none;
    margin: 0 auto 20px auto;
    gap: 20px;
    flex-wrap: wrap;
    /* max-width: 950px; */
    width: 80%;  
    font-size:12px;

}

.news-content p {
    margin-bottom: 20px;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    margin: 30px 0 15px 0;
    color: #333;
}

.news-content h2 {
    font-size: 22px;
    border-left: 4px solid #007bff;
    padding-left: 15px;
}

.news-content h3 {
    font-size: 20px;
    color: #555;
}

.news-content ul,
.news-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

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


/* 新聞項目樣式 */
.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-link:hover {
    text-decoration: none;
}

.news-link:hover .news-date,
.news-link:hover .news-title,
.news-link:hover .news-arrow {
    color: #b5b5da !important;
}

.news-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0px; /* 增加上下行距 */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    max-width:100%
}

.news-date {
    color: #333; /* 改為深灰色 */
    font-size: 14px;
    margin-right: 0px;
    min-width: 100px;
    font-weight: normal;
    transition: color 0.3s ease;
}

.news-title {
    letter-spacing: 0.1em;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
    color: #333; /* 改為深灰色 */
}

.news-arrow {
    color: #333; /* 改為深灰色 */
    font-size: 18px;
    font-weight: normal;
    margin-left: 10px;
    transition: color 0.3s ease;
}

/* =============================================== */
/* 分頁導覽樣式 */
/* =============================================== */

.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px 0;
    width: 100%;
}

.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: #999;
    text-decoration: none;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover {
    background: #f0f0f0;
    color: #333;
}

.page-link.active {
    background: #5B2A85;
    color: white;
    cursor: default;
    font-weight: 600;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    
    .news-header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .news-category-selector {
        flex-wrap: wrap;
        gap: 2px;
        justify-content: flex-start;
    }
    
    
    .category-tab {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* 響應式下拉選單 */
    /* .other-projects-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 5px;
    }
    
    .other-projects-tab:hover .other-projects-dropdown {
        display: none;
    }
    
    .other-projects-tab.active .other-projects-dropdown {
        display: block;
    } */
}

@media (max-width: 768px) {

    /* .news-header-controls {
        display: none;
    }
    
    .benq-subcat2-title {
        display: none;
    } */
    
    .news-category-selector {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .category-tab {
        padding: 10px 14px;
        font-size: 12px;
        gap: 5px;
    }
    
    .category-tab i {
        font-size: 9px;
    }
    
    
    .category-tab i {
        font-size: 10px;
    }
    
    /* 手機版下拉選單調整 */
    /* .other-projects-dropdown {
        position: static;
        margin-top: 5px;
        border-radius: 0;
    }
    
    .other-projects-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 12px;
    } */
}

@media (max-width: 480px) {
    
    .news-category-selector {
        gap: 4px;
        margin-bottom: 10px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .category-tab i {
        font-size: 8px;
    }
    
    /* 小螢幕下拉選單調整 */
    /* .other-projects-dropdown .dropdown-item {
        padding: 6px 10px;
        font-size: 11px;
    } */
    
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .news-detail-container {
        max-width: 100%;
        margin: 0 auto !important;
        padding: 20px;

    }
}

@media (max-width: 480px) {
    .news-detail-container {
        padding: 15px;
        margin: 0 auto !important;

    }
}

/* Desktop Enhancement */
/* @media (min-width: 1200px) {
    .news-detail-container {
        width: 1200px;
        max-width: 1200px;

    }
} */


/* 平板和中等螢幕 */
@media (min-width: 768px) and (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Desktop Enhancement for News List */
@media (min-width: 1200px) {
    /* .news-list-section {
        width: 1200px;
        max-width: 1200px;
    } */
    
    .news-list-container {
        /* max-width: 1100px; */
    }
    
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

/* 響應式設計 - 參照 bk_c_list_img.css */
@media (max-width: 768px) {
    .news-list-section {
        max-width: 100%;
        margin: 0 auto !important;
        padding: 20px 0;
    }
    
    .news-list-container {
        max-width: 100%;
        margin: 0 auto !important;
        padding: 0 15px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 12px 16px;
    }
    
    .news-title {
        font-size: 0.85em;
        min-height: 2.5em;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .category-label {
        font-size: 0.7em;
        padding: 2px 6px;
    }
    
    .news-date {
        font-size: 0.8em;
    }
    
    .news-title {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .news-list-section {
        padding: 15px 0;
        margin: 0 auto !important;
    }
    
    .news-list-container {
        padding: 0 10px;
        margin: 0 auto !important;
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-content {
        padding: 10px 14px;
    }
}

@media (min-width: 1200px) {
    /* .news-list-section {
        width: 1200px;
        max-width: 1200px;
    }
    
    .news-list-container {
        max-width: 1100px;
    }
     */
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}


/* 響應式設計 - 新聞項目 */
@media (max-width: 768px) {
    .news-item {
        padding: 12px 15px;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    .news-date {
        font-size: 11px;
        margin-right: 10px;
        min-width: 80px;
    }
    
    .news-title {
        font-size: 12px;
        flex: 1;
    }
    
    .news-arrow {
        font-size: 13px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .news-item {
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
    
    .news-date {
        font-size: 10px;
        margin-right: 8px;
        min-width: 70px;
    }
    
    .news-title {
        font-size: 11px;
        flex: 1;
    }
    
    .news-arrow {
        font-size: 12px;
        margin-left: 8px;
    }
}
/* 手機版調整 */
/* @media (max-width: 768px) {
    .benq-content-title {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .benq-content-title {
        display: none !important;
    }
} */


/* 響應式設計 - 分頁 */
@media (max-width: 768px) {
    .pagination-container {
        margin: 30px 0 15px 0;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .page-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        margin: 25px 0 10px 0;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .page-link {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}
 