/* Product Gallery Filters */
.protfolio-section {
    padding-top: 60px !important;
}

.protfolio-section .title-area {
    margin-bottom: 40px;
}

.protfolio-section .filters {
    background: #fcfdfe;
    /* Ultra-faint background bar */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0;
    display: flex;
    justify-content: flex-start;
    /* Aligned with left title */
}

.filter-tabs {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px;
    /* Professional spacing between items */
}

/* Scroll removal */
/* .filter-tabs::-webkit-scrollbar {
    display: none; 
} */

.filter-tabs li {
    position: relative;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    padding: 15px 0;
    margin-right: 30px;
    /* Space between tabs */
    color: var(--paragraph-color);
    transition: all 0.3s ease;
    font-family: var(--manjari);
}

.filter-tabs li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.4s ease;
}

.filter-tabs li:hover {
    color: var(--primary-color);
}

.filter-tabs li.active {
    color: var(--primary-color);
    font-weight: 700;
}

.filter-tabs li.active::after {
    width: 40px;
    /* Clean, minimal left-aligned underline */
}

/* Portfolio Block Refinements */
.protfolio-block-one .inner-box {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.protfolio-block-one:hover .inner-box {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Responsiveness */
@media only screen and (max-width: 991px) {
    .protfolio-section .filters {
        padding-bottom: 0;
        border-bottom: none;
    }

    .filter-tabs {
        flex-direction: column;
        /* Vertical stack as per screenshot */
        align-items: flex-start;
        /* Aligned with the left-side title */
        padding-bottom: 10px;
    }

    .filter-tabs li {
        padding: 8px 0;
        /* Tighter vertical spacing for professionalism */
        font-size: 17px;
        width: auto;
        text-align: left;
    }

    .filter-tabs li.active::after {
        width: 30px;
        /* Subtle left-aligned anchor */
    }
}