/* Container dos Filtros */
.filtros-container {
    background: linear-gradient(135deg, #ef5a23 0%, #ef5a23 100%);
    border-radius: 0 0 12px 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: -5px;
}

#filtros-pre-candidatos {
    margin: 0;
}

#filtros-pre-candidatos .row {
    margin-left: 0;
    margin-right: 0;
}

#filtros-pre-candidatos .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Labels */
.form-label-custom {
    display: block;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-label-custom .label-icon {
    color: #fff;
    margin-right: 8px;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* Inputs */
.input-custom {
    border-radius: 6px;
    border: 2px solid #ffffff !important;
    padding: 13px 75px 13px 18px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #2c3e50;
    width: 100%;
    box-sizing: border-box;
}

.input-custom:focus {
    border-color: #1a2948 !important;
    box-shadow: 0 0 0 3px rgba(26,41,72,0.15);
    outline: none;
    background-color: #fff;
}

.input-custom::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Selects - garantir que não cortem o texto */
.select-custom {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -ms-appearance: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 6px;
    border: 2px solid #ffffff;
    padding: 13px 75px 13px 18px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
    cursor: pointer;
    color: #2c3e50 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    word-wrap: normal !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%231a2948' d='M8 11L3 6h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 16px !important;
    text-indent: 0 !important;
    max-width: 100% !important;
}

.select-custom:focus {
    border-color: #1a2948 !important;
    box-shadow: 0 0 0 3px rgba(26,41,72,0.15);
    outline: none;
    overflow: visible !important;
}

.select-custom:hover {
    border-color: #f0f0f0;
    background-color: #fafafa;
}

.select-custom:disabled,
.select-custom[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #f0f0f0;
    color: #6c757d !important;
}

.select-custom option {
    padding: 12px 18px;
    white-space: normal;
    word-wrap: break-word;
    background-color: #fff;
    color: #2c3e50;
}

/* Para IE */
.select-custom::-ms-expand {
    display: none !important;
}

/* Para Chrome/Safari - garantir que não corte */
.select-custom::-webkit-scrollbar {
    width: 8px;
}

.select-custom::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.select-custom::-webkit-scrollbar-thumb {
    background: #ef5a23;
    border-radius: 4px;
}

/* Remover qualquer estilo do Bootstrap que possa estar interferindo */
.select-custom.form-control {
    height: auto !important;
    line-height: normal !important;
}

/* Dropdown multi de bandeiras */
.flags-dropdown {
    position: relative;
}

.flags-dropdown-btn {
    display: block;
    width: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flags-dropdown-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 2px solid #1a2948;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 8px 0;
}

.flags-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.flags-dropdown-item:hover {
    background: #f5f5f5;
}

.flags-dropdown-item--destaque {
    background: rgba(239, 90, 35, 0.08);
    color: #1a2948;
    font-weight: 700;
    border-left: 3px solid #ef5a23;
    padding-left: 13px;
}

.flags-dropdown-item--destaque:hover {
    background: rgba(239, 90, 35, 0.14);
}

.flags-dropdown-item--destaque span {
    letter-spacing: 0.01em;
}


.flags-dropdown-item input {
    accent-color: #ef5a23;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.flags-dropdown-vazio {
    padding: 10px 16px;
    color: #6c757d;
    font-size: 14px;
}

.flags-dropdown-panel::-webkit-scrollbar {
    width: 8px;
}

.flags-dropdown-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.flags-dropdown-panel::-webkit-scrollbar-thumb {
    background: #ef5a23;
    border-radius: 4px;
}

/* Container dos Botões */
.botoes-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Botões — .btn-colinha só dentro de .botoes-container (não pega o header) */
.btn-buscar,
.btn-limpar,
.btn-compartilhar,
.botoes-container .btn-colinha {
    width: 180px;
    min-width: 180px;
    box-sizing: border-box;
    border-radius: 6px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-buscar {
    background-color: #10385a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16,56,90,0.3);
}

.btn-buscar:hover {
    background-color: #004777;
    box-shadow: 0 6px 16px rgba(16,56,90,0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-buscar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16,56,90,0.3);
}

.btn-limpar {
    background-color: #fdc908;
    color: #fff;
    box-shadow: 0 4px 12px rgba(253,201,8,0.3);
}

.btn-limpar:hover {
    background-color: #e5b807;
    box-shadow: 0 6px 16px rgba(253,201,8,0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-limpar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(253,201,8,0.3);
}

.btn-buscar i,
.btn-limpar i,
.btn-compartilhar i,
.botoes-container .btn-colinha i {
    font-size: 14px;
}

.btn-compartilhar {
    background-color: #ffffff;
    color: #10385a;
    box-shadow: 0 4px 12px rgba(16,56,90,0.18);
}

.btn-compartilhar:hover {
    background-color: #f4f7fa;
    color: #10385a;
    transform: translateY(-1px);
}

.btn-compartilhar:active {
    transform: translateY(0);
}

.botoes-container .btn-colinha,
.botoes-container button.btn.btn-colinha,
#btn-colinha-vazia {
    background-color: #f5921e !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 7px rgba(26, 41, 72, 0.45),
        0 8px 22px rgba(0, 0, 0, 0.28) !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    border: 3px solid #ffffff !important;
    outline: none;
    -webkit-text-fill-color: #ffffff;
    position: relative;
    z-index: 2;
    overflow: hidden;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.botoes-container .btn-colinha i,
.botoes-container button.btn.btn-colinha i,
#btn-colinha-vazia i {
    color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

section.py-20 > .container {
    max-width: 1114px !important;
    width: 100%;
}

.resultados-wrap {
    max-width: 1600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

#resultados-candidatos.resultados-container {
    max-width: none; /* o limite fica no .resultados-wrap */
    width: 100%;
}

.candidatos-wrap {
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.botoes-container .btn-colinha:hover,
.botoes-container .btn-colinha:focus,
.botoes-container .btn-colinha:active,
.botoes-container button.btn.btn-colinha:hover,
.botoes-container button.btn.btn-colinha:focus,
.botoes-container button.btn.btn-colinha:active,
#btn-colinha-vazia:hover,
#btn-colinha-vazia:focus,
#btn-colinha-vazia:active {
    background-color: #e08414 !important;
    background-image: none !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: translateY(-1px);
    border-color: #ffffff !important;
    box-shadow:
        0 0 0 3px #ffffff,
        0 0 0 8px rgba(26, 41, 72, 0.55),
        0 10px 26px rgba(0, 0, 0, 0.32) !important;
    -webkit-text-fill-color: #ffffff;
}

.botoes-container .btn-colinha:hover i,
.botoes-container .btn-colinha:focus i,
.botoes-container .btn-colinha:active i,
.botoes-container button.btn.btn-colinha:hover i,
.botoes-container button.btn.btn-colinha:focus i,
.botoes-container button.btn.btn-colinha:active i,
#btn-colinha-vazia:hover i,
#btn-colinha-vazia:focus i,
#btn-colinha-vazia:active i {
    color: #ffffff !important;
}

.card-candidato-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card-candidato-wrap .card-candidato-link {
    flex: 1 1 auto;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-candidato-wrap .card-candidato {
    height: auto !important;
    min-height: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.btn-card-colinha {
    position: relative;
    z-index: 5;
    flex: 0 0 auto;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 14px 14px;
    background: #ef5a23 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btn-card-colinha i {
    color: #ffffff !important;
    opacity: 1 !important;
}

.btn-card-colinha:hover,
.btn-card-colinha:focus,
.btn-card-colinha:active {
    background: #d44a1a !important;
    color: #ffffff !important;
    opacity: 1 !important;
    outline: none;
    box-shadow: none;
}

.share-dropdown {
    position: relative;
    width: 180px;
    min-width: 180px;
    flex: 0 0 180px;
}

.share-dropdown .btn-compartilhar,
.share-dropdown #btn-compartilhar {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}


/* Largura igual: Buscar / Limpar / Compartilhar */
.botoes-container > .btn-buscar,
.botoes-container > .btn-limpar,
.botoes-container > .share-dropdown {
    flex: 0 0 200px;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
}

.botoes-container > .btn-buscar,
.botoes-container > .btn-limpar,
.botoes-container .btn-compartilhar,
.botoes-container #btn-compartilhar {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    height: 52px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    white-space: nowrap;
}

.botoes-container .share-dropdown {
    height: 52px;
}

.botoes-container .share-dropdown .btn-compartilhar,
.botoes-container .share-dropdown #btn-compartilhar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
}

.botoes-container > .btn-colinha,
.botoes-container > #btn-colinha-vazia {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 56px !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    letter-spacing: 1px !important;
}

.share-dropdown-panel {
    position: absolute;
    z-index: 31;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    overflow: hidden;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: #fff;
    color: #1a2948;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.share-option:hover {
    background: #f5f5f5;
}

.share-option i {
    width: 18px;
    text-align: center;
    color: #ef5a23;
}

/* Responsividade */
@media (max-width: 768px) {
    .filtros-container {
        padding: 25px 20px;
    }
    
    #filtros-pre-candidatos .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .botoes-container {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .botoes-container > .btn-buscar,
    .botoes-container > .btn-limpar,
    .botoes-container > .share-dropdown,
    .botoes-container > .btn-colinha,
    .botoes-container > #btn-colinha-vazia {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .share-dropdown {
        width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 auto !important;
    }
    
    .btn-buscar,
    .btn-limpar,
    .btn-compartilhar,
    .btn-colinha,
    #btn-colinha-vazia,
    .botoes-container .btn-compartilhar,
    .botoes-container #btn-compartilhar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .botoes-container > .btn-colinha,
    .botoes-container > #btn-colinha-vazia {
        margin-top: 0 !important;
    }

    .share-dropdown-panel {
        left: 0;
        right: 0;
        transform: none;
        min-width: 0;
        width: 100%;
    }
    
    .select-custom {
        padding: 13px 65px 13px 15px !important;
    }
}

@media (max-width: 576px) {
    .filtros-container {
        padding: 20px 15px;
    }
    
    .form-label-custom {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .input-custom,
    .select-custom {
        font-size: 14px;
        padding: 12px 15px !important;
    }
    
    .select-custom {
        padding-right: 55px !important;
    }
    
    #filtros-pre-candidatos .row > [class*="col-"] {
        padding-left: 7px;
        padding-right: 7px;
    }
    
    #filtros-pre-candidatos .row {
        margin-bottom: 0;
    }
    
    #filtros-pre-candidatos .mb-3 {
        margin-bottom: 15px !important;
    }
}

/* ============================================
   SEÇÃO DE RESULTADOS - CARDS DE CANDIDATOS
   ============================================ */

/* Container de Resultados */
#resultados-candidatos.resultados-container,
.resultados-container {
    margin-top: 50px;
    min-height: 200px;
    /* max-width: 1140px !important; */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.loading-resultados,
.sem-resultados,
.erro-resultados {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}

.loading-resultados i {
    margin-right: 10px;
    font-size: 24px;
    color: #ef5a23;
}

.erro-resultados {
    color: #e74c3c;
}

.btn-tentar-novamente {
    margin-left: 12px;
    background: #10385a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-tentar-novamente:hover {
    background: #004777;
}

.carregar-mais-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.carregar-mais-hint {
    margin: 0 0 12px;
    color: #1a2948;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.btn-carregar-mais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background-color: #10385a;
    color: #fff;
    border: 2px solid #10385a;
    border-radius: 10px;
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 18px rgba(16, 56, 90, 0.22);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-carregar-mais-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-carregar-mais-badge {
    display: inline-flex;
    align-items: center;
    background: #ef5a23;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.btn-carregar-mais:hover {
    background-color: #004777;
    border-color: #004777;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(16, 56, 90, 0.28);
}

.btn-carregar-mais:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Grid de Candidatos - 4 colunas */
.grid-candidatos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
    align-items: stretch;
}

@media (max-width: 1400px) {
    .grid-candidatos {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Card de Candidato - Altura uniforme */
.card-candidato {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: none !important;
    will-change: transform;
}

.card-candidato:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Header do Card - Design Criativo */
.card-header {
    /*background: linear-gradient(135deg, #1a2948 0%, #2c3e50 100%);*/
    /*height: 300px;*/
    position: relative;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    border: none !important;
    overflow: hidden;
}

.card-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(239,90,35,0.1) 100%);
    z-index: 1;
}

/* Badge de Cargo */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.card-badge i {
    color: #fff;
    font-size: 18px;
}

.badge-prefeito {
    background: linear-gradient(135deg, #ef5a23 0%, #d94a1a 100%);
}

.badge-vereador {
    background: linear-gradient(135deg, #10385a 0%, #0d2d47 100%);
}

.badge-vice {
    background: linear-gradient(135deg, #fdc908 0%, #e5b807 100%);
}

.badge-cargo {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.card-candidato:hover .card-badge {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(239,90,35,0.4);
}

/* Padrão Decorativo */
.card-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.3) 2px, transparent 2px),
        radial-gradient(circle at 40% 20%, rgba(255,255,255,0.3) 2px, transparent 2px);
    background-size: 50px 50px, 80px 80px, 60px 60px;
    z-index: 1;
}

.card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.card-header-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

/* Overlay na imagem */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26,41,72,0.3) 100%);
    z-index: 3;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-candidato:hover .card-overlay {
    opacity: 0.7;
}

.logo-novo {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.foto-candidato {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Silhuetas */
.silhueta-male,
.silhueta-female {
    width: 160px;
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.silhueta-male::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 140px;
    background: #ef5a23;
    border-radius: 50% 50% 40% 40% / 55% 55% 45% 45%;
    clip-path: polygon(20% 0%, 80% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
}

.silhueta-female::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 140px;
    background: #ef5a23;
    border-radius: 50% 50% 40% 40% / 55% 55% 45% 45%;
    clip-path: polygon(15% 0%, 85% 0%, 100% 25%, 100% 100%, 0% 100%, 0% 25%);
}

.silhueta-female::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 30px;
    background: #ef5a23;
    border-radius: 50% 50% 0 0;
}

/* Body do Card - Flex para altura uniforme */
.card-body {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.nome-candidato {
    font-size: 22px;
    font-weight: 600;
    color: #1a2948;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 50px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.numero-urna {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    background: #ef5a23;
    padding: 6px 10px;
    border-radius: 8px;
    letter-spacing: 1px;
    margin: 0 0 10px 0;
    line-height: 1.2;
    white-space: nowrap;
}

.cargo-candidato {
    font-size: 14px;
    color: #ef5a23;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-candidato {
    font-size: 14px;
    color: #5a6c7d;
    margin: 0 0 20px 0;
    font-weight: 500;
}

.btn-detalhes {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #10385a 0%, #1a4a6b 100%);
    color: #fff;
    text-align: center;
    padding: 13px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(16,56,90,0.2);
    margin-top: auto;
}

.btn-detalhes:hover {
    background: linear-gradient(135deg, #0d2d47 0%, #153d5a 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16,56,90,0.3);
    transform: translateY(-1px);
}

/* Responsividade dos Cards */
@media (max-width: 1200px) {
    .grid-candidatos {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .card-header {
        height: 350px;
    }
    
    .nome-candidato {
        font-size: 20px;
        min-height: 50px;
    }
    
    .card-body {
        padding: 25px 20px;
    }
}

@media (max-width: 992px) {
    .grid-candidatos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card-header {
        height: 325px;
    }
}

@media (max-width: 768px) {
    .grid-candidatos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .card-header {
        height: 310px;
    }
    
    .card-badge {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .card-badge i {
        font-size: 16px;
    }
    
    .card-body {
        padding: 20px 18px;
    }
    
    .nome-candidato {
        font-size: 19px;
        min-height: 44px;
        margin-bottom: 15px;
    }
    
    .card-meta {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .meta-item {
        padding: 10px;
    }
    
    .meta-icon-wrapper {
        width: 32px;
        height: 32px;
    }
    
    .cargo-text,
    .estado-text {
        font-size: 13px;
    }
    
    .btn-detalhes {
        padding: 14px 20px;
        font-size: 13px;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
    
    .resultados-container {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .grid-candidatos {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-header {
        height: 330px;
    }
    
    .card-badge {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .card-badge i {
        font-size: 14px;
    }
    
    .card-body {
        padding: 25px 20px;
    }
    
    .nome-candidato {
        font-size: 20px;
        min-height: auto;
    }
    
    .card-meta {
        gap: 15px;
    }
    
    .meta-item {
        padding: 12px;
    }
    
    .cargo-text,
    .estado-text {
        font-size: 14px;
    }
    
    .btn-detalhes {
        padding: 16px 24px;
    }
}

/* Banner Pré-Candidatos */
.banner-pre-candidatos-wrapper {
    width: 100%;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #fff;
}

.banner-pre-candidatos {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.1) contrast(1.05);
    max-width: 100%;
}

/* Background da seção */
section.py-20 {
    background-image: url('https://novo.org.br/wp-content/uploads/2025/12/fundo-blog-site.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    /* Remove faixa em branco acima do banner (py-20 no Tailwind) */
    padding-top: 0 !important;
    padding-bottom: 5rem !important;
    margin-top: 0 !important;
}

@supports (background-attachment: fixed) {
    @media (hover: hover) and (pointer: fine) {
        section.py-20 {
            background-attachment: fixed;
        }
    }
}

/* Overlay opcional para melhorar legibilidade do conteúdo */
section.py-20::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

/* Bootstrap .container limita a largura (e o padding interno impede chegar a 1140px) */
section.py-20 > .container {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    /* max-width: 1140px !important; */
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Wrapper extra (Tailwind) — não deve apertar o conteúdo */
section.py-20 .max-w-screen-lx {
    max-width: none !important;
    width: 100%;
}

@media (max-width: 1199px) {
    section.py-20 > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Mesmo fundo da seção no body desta página (evita faixa branca sob o header) */
body.page-template-candidates-list,
body.page-template-candidates-list-php,
body:has(section.py-20) {
    background-image: url('https://novo.org.br/wp-content/uploads/2025/12/fundo-blog-site.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

body.page-template-candidates-list #content,
body.page-template-candidates-list-php #content,
body:has(section.py-20) #content,
body:has(section.py-20) .page-content,
body:has(section.py-20) main {
    background: transparent !important;
}

.grid-candidatos {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	align-items: stretch;
}

.card-candidato {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card-candidato .card-header {
	height: 360px;
	overflow: hidden;
	background: #f5f5f5;
}

.card-candidato .foto-candidato {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.card-candidato .card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-candidato .btn-detalhes {
	margin-top: auto;
}

@media (max-width: 1200px) {
	.card-candidato .card-header {
		height: 350px;
	}
}

@media (max-width: 992px) {
	.card-candidato .card-header {
		height: 325px;
	}
}

@media (max-width: 768px) {
	.card-candidato .card-header {
		height: 310px;
	}
}

@media (max-width: 576px) {
	.card-candidato .card-header {
		height: 330px;
	}
}

/* Colinha no card: evita .card-candidato height:100% cobrir o botão */
.grid-candidatos > .card-candidato-wrap {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	position: relative;
}

.grid-candidatos > .card-candidato-wrap > .card-candidato-link {
	flex: 1 1 auto;
	min-height: 0;
	display: block;
	position: relative;
	z-index: 1;
}

.grid-candidatos > .card-candidato-wrap > .card-candidato-link > .card-candidato {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.grid-candidatos > .card-candidato-wrap > .card-candidato-link > .card-candidato:hover {
	transform: none !important;
	box-shadow: none !important;
}

.grid-candidatos > .card-candidato-wrap > .btn-card-colinha {
	position: relative;
	z-index: 6;
	flex: 0 0 auto !important;
	margin-top: 0 !important;
	width: 100% !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 14px 14px !important;
	background: #ef5a23 !important;
	color: #ffffff !important;
	opacity: 1 !important;
	filter: none !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.8px !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	pointer-events: auto !important;
}

.grid-candidatos > .card-candidato-wrap > .btn-card-colinha:hover,
.grid-candidatos > .card-candidato-wrap > .btn-card-colinha:focus,
.grid-candidatos > .card-candidato-wrap > .btn-card-colinha:active {
	background: #d44a1a !important;
	color: #ffffff !important;
}

.grid-candidatos > .card-candidato-wrap > .btn-card-colinha i {
	color: #ffffff !important;
	opacity: 1 !important;
}

.grid-candidatos > .card-candidato-wrap:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}