/* 
.news-category-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.category-tab {
    padding: 8px 16px;
    text-align: center;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}


.category-tab.active {
    background: #5B2A85;
    color: white;
    border-color: #5B2A85;
    box-shadow: 0 2px 6px rgba(0,123,255,0.3);
}


.category-tab i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-tab.active i {
    transform: none;
}


.category-tab:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
} */


.news-category-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.category-tab {
    padding: 8px 16px;
    text-align: center;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}


.category-tab.active {
    background: #5B2A85;
    color: white;
    border-color: #5B2A85;
    box-shadow: none;
}


.category-tab i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-tab.active i {
    transform: none;
}


.category-tab:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* BenQ content title previously inline-styled in cust_icons_benq.php */
.benq-content-title {
    letter-spacing: 0.45em;
    text-align: left;
    padding-left: 230px;
    font-size: 40px;
    font-weight: bold;
}

.category-tab i {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    line-height: 1;
    margin-top: 2px;
}

/* 其他專案下拉選單樣式 */
.other-projects-tab {
    position: relative;
    cursor: pointer;
}

.other-projects-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    margin-top: 0;
    padding-top: 5px;
    overflow: hidden;
}

/* 使用偽元素填補空隙，避免滑鼠移動時選單消失 */
.other-projects-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: transparent;
}

.other-projects-tab:hover .other-projects-dropdown,
.other-projects-dropdown:hover {
    display: block;
}

.other-projects-dropdown .dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.other-projects-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.other-projects-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.other-projects-dropdown .dropdown-item.active {
    background-color: #5B2A85;
    color: white;
    font-weight: bold;
}

/* 響應式設計 - 手機版調整 */
@media (max-width: 768px) {
    .category-tab {
        padding: 6px 12px;
        font-size: 11px;
        gap: 4px;
    }
    
    .category-tab i {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .category-tab {
        padding: 5px 10px;
        font-size: 10px;
        gap: 3px;
    }
    
    .category-tab i {
        font-size: 7px;
    }
}
 