#category-post {
    padding: 40px 0;
}

#category-post .post-wrapper {
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
}

#category-post .post-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Phần ảnh */
#category-post .post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease;
}

#category-post .post-wrapper:hover .post-image {
    transform: scale(1.03);
}

/* Phần tiêu đề */
#category-post .post-category-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 25px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

#category-post .post-wrapper:hover .post-category-title {
    color: var(--theme-color);
}

/* Phần tóm tắt */
#category-post .post-excerpt {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin: 15px 25px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 76px;
    text-overflow: ellipsis;
}

/* Phần bottom */
#category-post .post-bottom {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

#category-post .post-button {
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

#category-post .post-button:hover {
    background: var(--theme-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 86, 57, 0.15);
}

#category-post .post-date {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Phần không có bài viết */
#category-post h5:empty+h5 {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    background: #fff;
    border-radius: 8px;
    font-weight: 500;
}

/* Phần phân trang */
#category-post .pagination {
    margin-top: 30px;
}

#category-post .pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 0 5px;
    color: #2c3e50;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

#category-post .pagination .page-item.active .page-link {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

#category-post .pagination .page-item .page-link:hover {
    background: #f8f9fa;
    color: var(--theme-color);
    border-color: var(--theme-color);
}

/* Responsive */
@media (max-width: 992px) {
    #category-post .col-lg-4 {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    #category-post {
        padding: 20px 0;
    }

    #category-post .post-image {
        height: 300px;
    }

    #category-post .post-category-title {
        font-size: 20px;
        margin: 15px 20px;
    }

    #category-post .post-excerpt {
        font-size: 15px;
        margin: 10px 20px;
    }

    #category-post .post-bottom {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }

    #category-post .post-button {
        width: 100%;
        text-align: center;
    }
}
