/* Rosa Apoie Mulheres (mesmo da página https://novo.org.br/apoie-mulheres/) */
:root {
    --am-rosa: #f64d9c;
    --am-rosa-hover: #e03d8a;
    --am-rosa-shadow: rgba(246, 77, 156, 0.35);
}

/* Container dos Filtros */
.filtros-container {
    background: linear-gradient(135deg, var(--am-rosa) 0%, var(--am-rosa) 100%);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    margin-top: 24px;
}

#filtros-apoie-mulheres {
    margin: 0;
}

#filtros-apoie-mulheres .row {
    margin-left: 0;
    margin-right: 0;
}

#filtros-apoie-mulheres .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 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 */
.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 45px 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,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path fill="%231a2948" d="M8 11L3 6h10z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px 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 option {
    padding: 12px 18px;
    white-space: normal;
    word-wrap: break-word;
    background-color: #fff;
    color: #2c3e50;
}

.select-custom::-ms-expand {
    display: none !important;
}

.select-custom.form-control {
    height: auto !important;
    line-height: normal !important;
}

/* Container dos Botões */
.botoes-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Botões */
.btn-buscar,
.btn-limpar {
    min-width: 180px;
    border-radius: 6px;
    padding: 14px 35px;
    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: #1a2948;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(26,41,72,0.3);
}

.btn-buscar:hover {
    background-color: #0f1b30;
    box-shadow: 0 6px 16px rgba(26,41,72,0.4);
    transform: translateY(-1px);
    color: #ffffff;
}

.btn-buscar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26,41,72,0.3);
}

.btn-limpar {
    background-color: #ffffff;
    color: var(--am-rosa);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.btn-limpar:hover {
    background-color: #fff5fa;
    box-shadow: 0 6px 16px var(--am-rosa-shadow);
    transform: translateY(-1px);
    color: var(--am-rosa-hover);
}

.btn-limpar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.btn-buscar i,
.btn-limpar i {
    font-size: 14px;
}

/* Responsividade filtros */
@media (max-width: 768px) {
    .filtros-container {
        padding: 25px 20px;
    }

    #filtros-apoie-mulheres .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .botoes-container {
        flex-direction: column;
        gap: 12px;
    }

    .btn-buscar,
    .btn-limpar {
        width: 100%;
        min-width: auto;
    }

    .select-custom {
        padding: 13px 40px 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: 40px !important;
    }

    #filtros-apoie-mulheres .row > [class*="col-"] {
        padding-left: 7px;
        padding-right: 7px;
    }

    #filtros-apoie-mulheres .mb-3 {
        margin-bottom: 15px !important;
    }
}

/* ============================================
   RESULTADOS - CARDS DE CANDIDATAS
   ============================================ */

.resultados-container {
    margin-top: 50px;
    min-height: 200px;
}

.loading-resultados,
.sem-resultados,
.erro-resultados {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}

.sem-resultados {
    color: #666;
}

.erro-resultados {
    color: #e74c3c;
}

.grid-candidatos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
    align-items: stretch;
}

.card-candidato-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

.card-candidato-link:hover {
    text-decoration: none !important;
    color: inherit;
}

.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;
}

.card-candidato:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-candidato .card-header {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #f5f5f5;
    padding: 0;
    flex-shrink: 0;
    border: none !important;
}

.card-candidato .foto-candidato {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 0;
}

/* Sem foto: bloco rosa limpo (sem silhueta) */
.card-candidato .card-header--padrao {
    background: var(--am-rosa);
}

.card-candidato .card-body {
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nome-candidato {
    font-size: 18px;
    font-weight: 700;
    color: #1a2948;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 50px;
}

.cargo-candidato {
    font-size: 14px;
    color: var(--am-rosa);
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.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, var(--am-rosa) 0%, var(--am-rosa-hover) 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 var(--am-rosa-shadow);
    margin-top: auto;
}

.card-candidato:hover .btn-detalhes {
    background: linear-gradient(135deg, var(--am-rosa-hover) 0%, #c9347a 100%);
    color: #fff;
    box-shadow: 0 4px 12px var(--am-rosa-shadow);
}

/* Banner */
.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%;
}

/* Texto introdutório */
.apoie-mulheres-intro {
    background: #fff;
    padding: 40px 36px;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
    font-size: 17px;
    line-height: 1.7;
    color: #2c3e50;
}

.apoie-mulheres-intro p {
    margin: 0 0 14px 0;
}

.apoie-mulheres-intro p:last-child {
    margin-bottom: 0;
}

.apoie-mulheres-intro strong {
    color: #df4da3;
    font-size: 1.05em;
}

@media (max-width: 768px) {
    .apoie-mulheres-intro {
        padding: 28px 20px;
        font-size: 15px;
    }
}

/* Background da seção */
section.py-20 {
    background-image: url('http://novo.org.br/wp-content/uploads/2025/12/fundo-blog-site.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    margin-top: 100px;
}

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;
}

section.py-20 > .container {
    position: relative;
    z-index: 1;
}

/* Responsividade cards */
@media (max-width: 1400px) {
    .grid-candidatos {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .grid-candidatos {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .card-candidato .card-header {
        height: 350px;
    }

    .nome-candidato {
        font-size: 19px;
        min-height: 50px;
    }
}

@media (max-width: 992px) {
    .grid-candidatos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-candidato .card-header {
        height: 325px;
    }
}

@media (max-width: 768px) {
    .grid-candidatos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-candidato .card-header {
        height: 310px;
    }

    .card-candidato .card-body {
        padding: 20px 18px;
    }

    .nome-candidato {
        font-size: 17px;
        min-height: 44px;
        margin-bottom: 15px;
    }

    .btn-detalhes {
        padding: 14px 20px;
        font-size: 13px;
    }

    .resultados-container {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .grid-candidatos {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-candidato .card-header {
        height: 330px;
    }

    .card-candidato .card-body {
        padding: 25px 20px;
    }

    .nome-candidato {
        font-size: 18px;
        min-height: auto;
    }

    .btn-detalhes {
        padding: 16px 24px;
    }
}
