.filter-row {
    display: flex;
    justify-content: start;
    align-items: center;
}

.filter-label {
    min-width: 6.25rem !important;
}

.filter-post-btn {
    padding: .625rem !important;
    border: 1px solid rgba(133, 61, 44, 0.2);
    border-radius: .25rem;
}

.filter-project-btn {
    padding: .625rem !important;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: .25rem;
}

.filter-post-btn:hover {
    border: 1px solid var(--color-secondary);
    background-color: var(--color-secondary);
    color: var(--color-light-text) !important;
}

.filter-project-btn:hover {
    border: 1px solid var(--color-primary-text);
    background-color: var(--color-primary-text);
    color: var(--color-light-text) !important;
}

/* News Box Image - Aspect Ratio 4:3 */
.news-box .box-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    border-radius: .25rem;
    overflow: hidden;
}

.news-box .image-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.news-box .image-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom Grid Spacing */
.row-40 {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

.row-40>.col {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 3rem;
    /* Vertical spacing */
}

/* Limit Excerpt to 2 lines */
.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Pagination (Match Project Style) */
.custom-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-pagination .page-numbers li>a,
.custom-pagination .page-numbers li>span {
    border: 1px solid rgba(133, 61, 44, 0.2) !important;
    border-radius: .125rem !important;
    display: block !important;
    font-size: 0.9375rem !important;
    font-weight: var(--fw-regular) !important;
    height: 2.5rem !important;
    line-height: 2.5rem !important;
    min-width: 2.5rem !important;
    padding: 0 .75rem !important;
    text-align: center !important;
    transition: all .3s !important;
    width: 2.5rem !important;
    color: var(--color-secondary) !important;
    font-family: 'Roboto', sans-serif !important;
    text-decoration: none;
}

.custom-pagination .page-numbers li>span.current,
.custom-pagination .page-numbers li>a:hover {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: #fff !important;
}

/* Hover Zoom Effect */
.card-hover-effect:hover .box-image img {
    transform: scale(1.1);
}

.box-image img {
    transition: transform 0.3s ease;
}

@media (max-width: 769px) {
    .filter-list {
        display: flex;
        flex-wrap: wrap;
        row-gap: .75rem;
    }
}

@media (max-width: 431px) {

    .filter-project-btn,
    .filter-post-btn {
        font-size: .8125rem !important;
        padding: .5rem !important;
    }

    .filter-label {
        min-width: 5.5rem !important;
    }
}