/**
 * PORTFOLIO FILTERS - INDEPENDENT CSS
 * Force center alignment, Roboto font
 * Safe for Elementor - uses !important
 * Version: 1.0
 */

/* ===== FILTER SECTION CENTERING ===== */
.portfolio-filters-section {
    padding: 40px 101px 60px !important;
    background: #fff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.portfolio-filters-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

/* ===== FILTER BUTTONS - EXACT FIGMA ===== */
.portfolio-filter-btn {
    padding: 10px 20px !important;
    background: #EFEDEB !important;
    border: none !important;
    border-radius: 50px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    display: inline-flex !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #928A80 !important;
    line-height: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Remove any nested span if exists */
.portfolio-filter-btn span,
.portfolio-filter-btn > * {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== HOVER STATE ===== */
.portfolio-filter-btn:hover {
    background: #5A4F42 !important;
    color: #FFFFFF !important;
}

.portfolio-filter-btn:hover span,
.portfolio-filter-btn:hover > * {
    color: #FFFFFF !important;
}

/* ===== ACTIVE STATE ===== */
.portfolio-filter-btn.active {
    background: #5A4F42 !important;
    color: #FFFFFF !important;
}

.portfolio-filter-btn.active span,
.portfolio-filter-btn.active > * {
    color: #FFFFFF !important;
}

/* ===== FORCE CENTER ON ALL SCREEN SIZES ===== */
@media (min-width: 320px) {
    .portfolio-filters-section {
        text-align: center !important;
    }
    
    .portfolio-filters-container {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .portfolio-filters-section {
        padding: 40px 40px 60px !important;
    }
    
    .portfolio-filters-container {
        justify-content: center !important;
    }
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .portfolio-filters-section {
        padding: 30px 30px 40px !important;
    }
    
    .portfolio-filters-container {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        max-width: 100% !important;
    }
    
    .portfolio-filter-btn {
        min-width: auto !important;
        width: auto !important;
    }
}

/* ===== ELEMENTOR SAFE - EXCLUSIONS ===== */
.elementor .portfolio-filter-btn,
.elementor-widget .portfolio-filter-btn,
[class*="elementor"] .portfolio-filter-btn {
    /* Allow this CSS to work even in Elementor */
}

/* ===== OVERRIDE ANY THEME DEFAULTS ===== */
.portfolio-filters-section > *,
.portfolio-filters-container > * {
    box-sizing: border-box !important;
}

.portfolio-filter-btn * {
    font-family: 'Roboto', sans-serif !important;
}