/* Eveliko Brand Colors */
:root {
    --eveliko-primary: #059669;
    --eveliko-primary-dark: #047857;
    --eveliko-primary-light: #10B981;
    --eveliko-accent: #FF6B6B;
    --eveliko-dark: #2D2D2D;
    --eveliko-gray: #666666;
    --eveliko-light-bg: #F5F5F7;
    --eveliko-border: rgba(5, 150, 105, 0.15);
}

/* Sidebar Filter Styles */
.filter-sidebar {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F7 100%);
    border: 1px solid var(--eveliko-border);
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
}

.filter-sidebar-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--eveliko-dark);
    letter-spacing: -0.02em;
}

.filter-section {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--eveliko-border);
    padding-bottom: 1rem;
}

.filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.625rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--eveliko-dark);
    user-select: none;
    transition: color 0.2s ease;
}

.filter-section-header:hover {
    color: var(--eveliko-primary);
}

.filter-section-toggle {
    font-size: 1.125rem;
    line-height: 1;
    color: var(--eveliko-primary);
    transition: transform 0.2s ease;
}

.filter-section.collapsed .filter-section-toggle {
    transform: rotate(-90deg);
}

.filter-section-content {
    padding-top: 0.75rem;
}

.filter-section.collapsed .filter-section-content {
    display: none;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    margin: 0 -0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.filter-checkbox:hover {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.06) 0%, rgba(16, 185, 129, 0.04) 100%);
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--eveliko-primary);
    border-radius: 4px;
}

.filter-checkbox label {
    cursor: pointer;
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--eveliko-gray);
    font-size: 0.9375rem;
}

.filter-count {
    font-size: 0.8125rem;
    color: var(--eveliko-primary);
    font-weight: 600;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
}

.filter-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--eveliko-border);
}

.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--eveliko-accent) 0%, #FF8787 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF6B6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.35);
}

.active-filters-count {
    background: linear-gradient(135deg, var(--eveliko-primary) 0%, var(--eveliko-primary-light) 100%);
    color: white;
    border-radius: 14px;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.blog-post-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.blog-post-card.hidden {
    display: none;
}

.work-item-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-item-card.hidden {
    display: none;
}

.blog-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.15);
}

.blog-card-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--eveliko-dark);
}

.blog-card-text {
    color: var(--eveliko-gray);
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--eveliko-primary);
    font-weight: 500;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Mobile Filter Button */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, var(--eveliko-primary) 0%, var(--eveliko-primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

.mobile-filter-toggle .filter-icon {
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.mobile-filter-toggle:hover .filter-icon {
    transform: scale(1.1);
}

.mobile-filter-toggle .toggle-arrow {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.mobile-filter-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.mobile-filter-toggle .filter-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Mobile Filters Collapse Container */
.mobile-filters-container {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-bottom 0.4s ease;
    margin-bottom: 0;
}

.mobile-filters-container.active {
    max-height: 800px;
    margin-bottom: 1.5rem;
}

.mobile-filters-inner {
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F7 100%);
    border: 1px solid var(--eveliko-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(5, 150, 105, 0.08);
}

@media (max-width: 991.98px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .mobile-filters-container {
        display: block;
    }

    .filter-sidebar {
        display: none !important;
    }
}

/* Scrollbar styling for filter sidebar */
.filter-section-content::-webkit-scrollbar,
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-section-content::-webkit-scrollbar-track,
.filter-sidebar::-webkit-scrollbar-track {
    background: rgba(5, 150, 105, 0.05);
    border-radius: 10px;
}

.filter-section-content::-webkit-scrollbar-thumb,
.filter-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--eveliko-primary) 0%, var(--eveliko-primary-light) 100%);
    border-radius: 10px;
}

.filter-section-content::-webkit-scrollbar-thumb:hover,
.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--eveliko-primary-dark) 0%, var(--eveliko-primary) 100%);
}
