/* Version: 2.4.5 - SiteOrigin Hierarchy Fix */
.vp-archive-container { display: flex !important; gap: 30px !important; align-items: flex-start !important; }
.archive-filters { width: 300px !important; flex: 0 0 300px !important;     background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;}

/* Force List Styles */
.vp-siteorigin-compat .vp-term-list, 
.vp-siteorigin-compat .vp-term-list ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }

/* Hierarchical Indentation */
.vp-siteorigin-compat .vp-term-list ul.children { 
    display: none; 
    margin-left: 20px !important; 
    padding-left: 10px !important; 
    border-left: 1px solid #e2e8f0 !important; 
    margin-top: 5px !important; 
}

/* Row Layout */
.vp-filter-row { display: flex !important; align-items: center !important; gap: 5px !important; }

/* Toggle Arrows */
.vp-toggle-arrow { cursor: pointer; width: 20px; height: 20px; display: flex !important; align-items: center; justify-content: center; }
.vp-toggle-arrow::before { content: '▶'; font-size: 9px; color: #a0aec0; transition: transform 0.2s ease; }
.vp-empty-spacer { width: 20px; display: inline-block; }

/* Rotate arrow when item is open */
.is-open > .vp-filter-row .vp-toggle-arrow::before { transform: rotate(90deg); color: #2563eb; }

/* Existing Grid & Card Styles */
.vp-grid-content { display: flex !important; flex-wrap: wrap !important; gap: 20px !important; }
.vp-grid-content article { 
    position: relative !important; 
    flex: 0 0 calc((100% / var(--vp-column-count, 3)) - 15px) !important; 
    max-width: calc((100% / var(--vp-column-count, 3)) - 15px) !important; 
    border: 1px solid #e1e1e1 !important; border-radius: 12px !important; overflow: hidden !important; 
    background: #fff !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.vp-grid-content article:hover { transform: translateY(-4px) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important; }
.entry-title a::after { content: "" !important; position: absolute !important; top: 0; left: 0; right: 0; bottom: 0; z-index: 10 !important; }
.vp-card-image { height: 80% !important; background: #f9f9f9 !important; border-bottom: 1px solid #eee !important; }
.vp-card-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.entry-title { font-size: 16px !important; font-weight: 800 !important; line-height: 1.3 !important; margin: 0 !important; padding: 10px !important; }
.entry-title a { text-decoration: none !important; color: inherit !important; }

.vp-filter-item {
    padding: 5px 5px 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
width: 100%;

}
.vp-filter-item:hover {

border-radius:6px;
    background:aliceblue
}
.vp-filter-checkbox {
    margin-right: 10px;
}
.vp-term-list li {
    margin-bottom: 10px;
}
/* --- ENHANCED RESPONSIVE OVERRIDES --- */
@media screen and (max-width: 1260px) {
    .vp-grid-content {
        --vp-column-count: 2 !important;
    }
}
/* Target 1024px and below specifically */
@media screen and (max-width: 1024px) {
    /* 1. Force the container to stack so filters don't take up side space */
    .vp-archive-container { 
        flex-direction: column !important; 
    }
    
    .archive-filters { 
        width: 100% !important; 
        flex: none !important; 
        margin-bottom: 25px !important; 
    }

    /* 2. Force exactly 2 columns by overriding the flex-basis */
    .vp-grid-content {
        --vp-column-count: 2 !important;
        gap: 15px !important;
    }
    
    .vp-grid-content article {
        /* We use 50% minus the gap to ensure only two fit per row */
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

/* Mobile: Force 1 column */
@media screen and (max-width: 600px) {
    .vp-grid-content article {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}