.blog-arrow-right div:before {
    background-image: url(../img/all/btn-white.svg);
    border: 1px solid #EEEEEE;
    border-radius: 4px;
}

.blog-item {
    position: relative;
}

.blog-item:nth-child(n+1)::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    height: 1px;
    width: 100%;
    background: #efefef;
}

@media (min-width: 1024px) {
    .blog-item {
        flex: 1 1 0;
        max-width: 546px;
    }

    .blog-item:nth-child(2n+2) {
        flex: 1 1 0;
    }
}

@media (min-width: 1024px) {

    .blog-item:nth-child(n+1)::before {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 0;
        height: 0;
        width: 0;
        background: #efefef;
    }

    .blog-item:nth-child(3n+2) {
        position: relative;
    }

    .blog-item:nth-child(3n+2)::before,
    .blog-item:nth-child(3n+2)::after  {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        height: 100%;
        width: 1px;
        background: #efefef;
    }

    .blog-item:nth-child(3n+2)::before {
        left: -12px;
    }

    .blog-item:nth-child(3n+2)::after {
        right: -12px ;
    }


    .blog-item>a {
        width: 100%;
        display: block;
    }
}

/* 標籤篩選樣式 */
.tags-filter-container {
    padding-bottom: 20px;
    border-bottom: 1px solid #EFEFEF;
}

.tags-header {
    user-select: none;
    width: 100px;
}
.tags-header h3 {
    margin-bottom: 0px;
}
.toggle-btn {
    width: 20px;
    height: 20px;
    background-color: #fff;
    flex-shrink: 0;
    border: 1px solid #E6E6E6;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
}

.toggle-btn:hover {
    background-color: #F8F8F8;
}

.toggle-icon {
    font-weight: 500;
    line-height: 1;
    padding-bottom: 2px;
    position: relative;
}

.toggle-icon:after,.toggle-icon:before{
    content: '−';
    position: absolute;
    font-size: 16px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #666
}
.toggle-icon:before{
    position: relative;
    width: 100%;
    height: 100%;
}
.toggle-icon.active:after {
    transform: rotate(90deg); 
    top:-1px;
    left: -1px;
}

.tags-wrapper {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.tags-wrapper.show {
    display: flex !important;
    animation: slideDown 0.3s ease-in-out;
}

.tags-wrapper.hide {
    animation: slideUp 0.3s ease-in-out;
}


.tag-item {
    border: 1px solid #E6E6E6;
    background-color: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
   
}

.tag-item:hover {
    border-color: #191919;
    background-color: #F8F8F8;
    color: #191919;
    transition: all 0.3s ease-in-out;
}

.tag-item.active {
    border-color: #191919;
    background-color: #191919;
    color: #fff;
}

.tag-item.active:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

@media (min-width: 768px) {
    .tags-filter-container {
        padding-bottom: 30px;
    }
    
    .tag-item {
        font-size: 14px;
    }
    
    .toggle-btn {
        width: 24px;
        height: 24px;
    }

}