:root {
    --vn-brand: #18466D;
    --vn-brand-dark: #10314d;
    --vn-bg: #F4F6F8;
    --vn-text: #2c3e50;
    --vn-text-light: #636e72;
    --vn-white: #ffffff;
    --vn-border-radius: 12px;
    --vn-shadow: 0 8px 24px rgba(0,0,0,0.06);
    --vn-shadow-hover: 0 12px 32px rgba(0,0,0,0.12);
}

.vn-archive-layout {
    background-color: var(--vn-bg);
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--vn-text);
    padding-bottom: 80px;
    box-sizing: border-box;
}
.vn-archive-layout * { box-sizing: border-box; }

/* Hero */
.vn-hero-v7 {
    background: var(--vn-brand);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    margin-bottom: 40px;
}
.vn-hero-content h1 { font-size: 2.2rem; font-weight: 700; margin: 0 0 10px; }
.vn-hero-content p { font-size: 1.1rem; opacity: 0.9; margin: 0 auto; max-width: 600px; }

/* Estrutura Principal */
.vn-app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* Sidebar */
.vn-sidebar {
    background: var(--vn-white);
    padding: 25px;
    border-radius: var(--vn-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky; top: 30px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}
.vn-sidebar-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px;
}
.vn-sidebar-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--vn-brand); }
.vn-close-sidebar { display: none; cursor: pointer; font-size: 24px; color: #999; }
.vn-widget { margin-bottom: 30px; }
.vn-widget-title {
    font-size: 14px; text-transform: uppercase; color: var(--vn-text-light);
    font-weight: 700; margin-bottom: 15px; letter-spacing: 0.5px;
}

/* Checkboxes */
.vn-chk-group { display: flex; flex-direction: column; gap: 10px; }
.vn-chk-group.scrollable { max-height: 250px; overflow-y: auto; padding-right: 5px; }
.vn-chk-group.scrollable::-webkit-scrollbar { width: 4px; }
.vn-chk-group.scrollable::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.vn-chk { display: flex; align-items: center; cursor: pointer; font-size: 15px; color: var(--vn-text); transition: 0.2s; }
.vn-chk:hover { color: var(--vn-brand); }
.vn-chk input { display: none; }
.vn-checkmark {
    width: 20px; height: 20px; border: 2px solid #ddd; border-radius: 4px;
    margin-right: 12px; position: relative; transition: 0.2s; flex-shrink: 0;
}
.vn-chk input:checked ~ .vn-checkmark { background-color: var(--vn-brand); border-color: var(--vn-brand); }
.vn-chk input:checked ~ .vn-checkmark::after {
    content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* =========================================
   CORREÇÃO DA BARRA DE BUSCA (PREMIUM) 
   =========================================
*/
.vn-top-bar { margin-bottom: 30px; }
.vn-search-box {
    position: relative;
    max-width: 100%;
}

#vn-search-nacional{
    border-radius: 50px !important;
    
}

.vn-search-box input {
    width: 100%;
    height: 56px; /* Altura mais premium */
    /* Padding ESQUERDA grande para não encavalar na lupa */
    padding: 0 20px 0 60px !important; 
    border: 1px solid #e1e1e1;
    /* TOTALMENTE ARREDONDADO (PÍLULA) */
    border-radius: 50px !important;
    font-size: 16px;
    background: #fff;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    outline: none;
}

.vn-search-box input:focus {
    border-color: var(--vn-brand);
    box-shadow: 0 6px 20px rgba(24, 70, 109, 0.15);
}

/* Ícone da Lupa */
.vn-search-icon {
    position: absolute;
    left: 22px; /* Afastado da borda esquerda */
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999; /* Cinza suave */
    pointer-events: none;
    z-index: 2;
}
/* Placeholder mais suave */
.vn-search-box input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Grid Cards */
.vn-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.vn-card-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.vn-card-item.visible { opacity: 1; transform: translateY(0); }
.vn-card {
    background: white; border-radius: var(--vn-border-radius); overflow: hidden;
    box-shadow: var(--vn-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.03);
}
.vn-card:hover { transform: translateY(-5px); box-shadow: var(--vn-shadow-hover); }
.vn-card-img-wrap { position: relative; height: 200px; overflow: hidden; background: #eee; }
.vn-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.vn-card:hover .vn-card-img-wrap img { transform: scale(1.05); }

/* Badges */
.vn-badge {
    position: absolute; top: 15px; left: 15px; padding: 5px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; color: white;
    z-index: 2; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.vn-badge-gray { background: #95a5a6; }
.vn-badge-red { background: #e74c3c; }
.vn-badge-orange { background: #f39c12; }
.vn-badge-green { background: #27ae60; }
.vn-badge-blue { background: #2980b9; }

/* Card Content */
.vn-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.vn-card-title { font-size: 18px; line-height: 1.4; margin: 0 0 15px 0; font-weight: 700; }
.vn-card-title a { color: var(--vn-text); text-decoration: none; transition: 0.2s; }
.vn-card-title a:hover { color: var(--vn-brand); }
.vn-card-meta {
    margin-top: auto; display: flex; align-items: center; gap: 12px;
    background: #f8f9fa; padding: 10px; border-radius: 8px;
}
.vn-card-meta .dashicons {
    color: var(--vn-brand); font-size: 20px; background: #fff;
    border-radius: 50%; padding: 4px; width: 28px; height: 28px;
}
.vn-card-meta div { display: flex; flex-direction: column; line-height: 1.2; }
.vn-card-meta small { font-size: 11px; color: #888; text-transform: uppercase; }
.vn-card-meta strong { font-size: 14px; color: #333; }
.vn-card-footer { padding: 0 20px 25px; }

/* Botão Branco */
.vn-btn-primary {
    display: block; width: 100%;
    background: var(--vn-brand); color: #ffffff !important;
    text-align: center; padding: 14px 0; border-radius: 8px;
    font-weight: 700; text-decoration: none; text-transform: uppercase;
    font-size: 14px; letter-spacing: 0.5px; transition: all 0.2s;
}
.vn-btn-primary:hover {
    background: var(--vn-brand-dark); transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(24, 70, 109, 0.3); color: #fff;
}

/* Load More */
.vn-pagination-area { text-align: center; margin-top: 50px; }
.vn-btn-load-more {
    background: transparent; border: 2px solid var(--vn-brand); color: var(--vn-brand);
    padding: 12px 30px; font-weight: 700; border-radius: 50px; cursor: pointer;
    font-size: 15px; transition: 0.3s;
}
.vn-btn-load-more:hover { background: var(--vn-brand); color: #fff; }
.vn-spinner {
    width: 30px; height: 30px; border: 3px solid #eee; border-top: 3px solid var(--vn-brand);
    border-radius: 50%; animation: vn-spin 0.8s infinite linear; margin: 0 auto;
}
@keyframes vn-spin { 100% { transform: rotate(360deg); } }
.vn-no-results {
    grid-column: 1 / -1; text-align: center; padding: 60px 20px;
    background: #fff; border-radius: 12px; color: #888;
}
.vn-no-results .dashicons { font-size: 40px; margin-bottom: 15px; display: block; width: auto; height: auto;}

/* Mobile & Tablet */
.vn-mobile-filter-bar { display: none; }
.vn-overlay { display: none; }

@media (max-width: 992px) {
    .vn-app-container { display: block; padding: 0; }
    .vn-grid-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .vn-mobile-filter-bar { display: block; padding: 0 20px 20px; }
    .vn-filter-trigger-btn {
        width: 100%; background: var(--vn-white); border: 1px solid #ddd;
        color: var(--vn-brand); padding: 15px; font-weight: 700; font-size: 16px;
        border-radius: 50px; /* Botão mobile arredondado tb */
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        gap: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .vn-sidebar {
        position: fixed; top: 0; left: -100%; width: 85%; max-width: 380px; height: 100vh;
        z-index: 9999; border-radius: 0; transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        padding: 20px; max-height: none;
    }
    .vn-sidebar.open { left: 0; box-shadow: 5px 0 30px rgba(0,0,0,0.2); }
    .vn-close-sidebar { display: block; }
    .vn-overlay {
        display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 9990; opacity: 0; visibility: hidden;
        transition: 0.3s; backdrop-filter: blur(2px);
    }
    .vn-overlay.open { opacity: 1; visibility: visible; }
    .vn-main-content { padding: 0 20px; }
}

@media (max-width: 600px) {
    .vn-grid-container { grid-template-columns: 1fr; gap: 20px; }
    .vn-hero-content h1 { font-size: 1.8rem; }
}