/* Página de Projetos */
:root {
--color-proadi-sus: #7066a7;
--color-pronas: #f18800;
--color-pronon: #ec6062;
}
/* Container dos cards com layout em grid responsivo */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Estilo base do card usando Bootstrap */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 300px;
    background: linear-gradient(
        0deg,
        #f0f0f0 0%,
        rgba(253, 254, 255, 0.39) 26.67%,
        #909090 100%
        );
}

/* Efeito de destaque ao passar o mouse */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.PROADI-SUS .card:hover{
  background: linear-gradient(180deg, #7066A7 0%, rgba(112, 102, 167, 0.39) 56.67%, #7066A7 100%);

}
.PRONAS-PCD .card:hover{
   background: linear-gradient(180deg, #F18800 0%, rgba(241, 136, 0, 0.39) 56.67%, #F18800 100%);
}

.PRONON .card:hover{
  background: linear-gradient(180deg, #EC5F62 0%, rgba(236, 95, 98, 0.39) 56.67%, #EC5F62 100%);

}

.card-body {
    color: #00284E;
    font-size: 20px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background-color: white;
    width: 95%;
    position: relative; 
    overflow: hidden;
}


/* Categoria */
.card .card-subtitle {
    font-size: 0.875rem;
    color: #6c757d; /* cor de texto secundária do Bootstrap */
    margin-top: 0.5rem;
}
/* Nome do progrmaa no card*/
.card-text{
    font-family: 'Roboto', sans-serif;
    font-style: Regular;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.5px;
    text-align: center;
    color: white;
    margin-top: -10px;
    
}

/* Nome do item */
.card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 30px;
    color: #00284E;
    max-height: 90%; 
    overflow: hidden;       
}

.card-arrow-projetos{
    bottom: 0px;      
    background-color: red!important;   
    z-index: 9999;
    display: flex;
}
.arrow-icon-projetos{
font-size: 36px;
    position: absolute; 
    bottom: 0px;      
    left:0px;
    transition: left 0.5s ease; /* adiciona transição suave */
}
.card:hover .arrow-icon-projetos{ 
  left: calc(100% - 46px); /* move para o canto direito */
}

.projeto .projeto_programa{
    font-size: 16px;
}
.projeto .projeto_item {
    border-radius: 1.5rem;
    height: 450px;
    overflow: auto;
}
.projeto .projeto_desc {
    border-radius: 1.5rem;
    color: #00284E;
    font-size: 20px;
    width: 90%;
    margin: 0 auto;
}
.projetos a {
    display: block;
}

.area_atuacao, .area_busca {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.area_filtro {
    margin-top: 1.5rem;
}

.busca-descricao {
    color: #858585; 
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: left;
    padding-top: 5px;
    padding-left: 2px;
}

.busca {
    /* width: 80%; */
    margin: 0 auto;
    background: transparent;
    border: 1px solid #bbb;
    border-radius: 0.4rem;
    padding: 6px;
}
.busca .input-group-text {
    display: flex;
    height: 100%;
    background: transparent;
    border: none;
}
.busca input{
    border: none;
    background: transparent;
    min-height: calc(1.5em + 1rem + 2px);
    padding: .5rem 1rem;
    font-size: 1rem;
}
.busca button{
    padding: 1rem 4rem;
}
.btn{
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}
#toggleFilters{
    font-weight: 600;
    width: 100%;
    height: 64px;
}
#toggleFilters.btn-primary{
    background-color: #E3E9FF;
    color: #446dff;
}
#toggleFilters.btn-outline-primary {
    border: 1px solid #446dff;
    background: transparent;
    color: #446dff;
}
.filter-buttons .row {
    margin: 0 auto;
    padding: 1rem;
    box-shadow: 1px 4px 5px 2px rgba(0, 0, 0, 0.4);
    -webkit-box-shadow: 1px 4px 5px 2px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: 1px 4px 5px 2px rgba(0,0,0,0.4);
    border-radius: 0.4rem;
    line-height: 1.2rem;
    font-size: 18px;
}
input::placeholder {
    font-size: 1rem;
    letter-spacing: 1px;
}
.form-control:focus {
    background-color: transparent;
}
.filters-projeto .filter .btn-group-vertical {
    width: 100%;
}
.filters-projeto{
    margin-top: 0;
}
.filter.filter-programa {
    margin-top: 0 !important;
}
.filters-projeto .filter{
    margin: 2rem 0;
}
.filters-projeto .filter .btn{
    border-bottom: 1px solid #ccc;
}
.filters-projeto .filter .ativo{
    color: #446dff;
}
.filtro-area-btn {
    background-color: #E0EDFF;
    color: #007BFF;
    cursor: pointer;
    border-radius: 0.4rem;
    border-color: transparent;
}
.filtro-area-btn.ativo {
    background-color: #007BFF;
    color: #fff;
    font-weight: 600;
}
.imagem_area_detalhe_projeto {
    max-height: 450px;
    overflow: hidden;
}
.imagem_detalhe_projeto{
    display: block;
    width: 100%;
    border-radius: 2rem;
}





#filterSidebar {
    transition: all 0.3s ease;
}

#filterSidebar.hidden {
    display: none !important;
}
.programa-tags {
    color: #00284E
}















.titulo-campo {
    opacity: 0.7;
}
.arquivos_projeto .form-control {
    display: flex;
    align-items: center;
    justify-content: start;
    color: #446dff;
    font-weight: 600;
    font-size: 0.95rem;
}
.arquivos_projeto .input-group-text{
    color: #fff;
    font-size: 20px;
    padding: 12px 14px;
}

.fa-check {
    color: #446dff;
    margin-right: 15px;
}

.steps-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    position: relative;
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-right: 20px;
    color: #00284E;
}

/* Triângulo apontando para a próxima etapa */
.step:not(.last)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #fff;
}

/* Último item não tem seta */
.step.last {
    margin-right: 0;
}

.rounded-circle {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #446dff;
    color: #fff;
    font-weight: 300;
}
.etapa_titulo {
    color: #446dff;
    font-weight: 600;
    font-size: 19px;
}
.etapa_descricao {
    opacity: 0.7;
}
.money-mask {
    text-align: right;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.money-mask::placeholder {
    text-align: left;
    font-weight: normal;
    letter-spacing: normal;
}
form {
    padding-top: 50px;
    /* border: 1px solid red; */
}
/* #sp-component .sp-column {
    background: url('/images/backgrounds/background_projetos.svg') no-repeat bottom left;
    background-size: contain;  
    background-position: -150px center; 
} */
.bg-elipse-projetos {
    position: absolute;
    top: 1300px; /* distancia 300px do topo do container relativo */
    bottom: 0;
    left: 0;
    z-index: -1; /* atrás do conteúdo */
    left: -120px;
}
.border-layer{
    position: relative;
    border: 1px solid red;
    padding-bottom: 20px;
    background: #f4fafef0;
}
#adminFormProjetos{
    position: relative;
    z-index: 10;
}

/* jQuery UI Range Slider Styles */
#slider-range {
    margin: 15px 0;
    height: 8px;
    background: #e9ecef;
    border: none;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

#slider-range .ui-slider-range {
    background: #007bff;
    border-radius: 4px;
}

#slider-range .ui-slider-handle {
    width: 20px;
    height: 20px;
    background: #007bff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-left: -10px;
    margin-top: -6px;
    top: 0;
    position: absolute;
}

#slider-range .ui-slider-handle:hover {
    background: #0056b3;
    transform: scale(1.1);
}

#slider-range .ui-slider-handle:focus {
    background: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#valor-range {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
    min-height: 20px;
}

.valor-range-container {
    margin: 30px 0;
    overflow: visible !important;
}

/* Estilos para os checkboxes de Temas Principais */
.form-check {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease;
}

.form-check:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.form-check-input:checked ~ .form-check-label {
    font-weight: 500;
    color: #0d6efd;
}

.form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
    margin-left: 0.5rem;
}

/* Container dos temas principais */
/* .fw-bold + div {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.2rem;
    padding-left: 0.2rem;
} */

/* Scrollbar personalizada para o container de temas */
.fw-bold + div::-webkit-scrollbar {
    width: 6px;
}

.fw-bold + div::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.fw-bold + div::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.fw-bold + div::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos para limitar altura dos accordions com scroll */
.accordion-body {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.form-check .form-check-input {
    margin-left: 0 !important;
}

/* Estilos para garantir que o conteúdo das colunas não vaze */
.filtros-linha .col-md-3 {
    overflow: hidden;
    padding-left: 12px;
    padding-right: 12px;
}

.valor-range-container {
    width: 100%;
    overflow: hidden;
}

#slider-range {
    width: 100%;
    box-sizing: border-box;
}

/* Garantir que form-check não vaze */
.form-check {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.form-check-label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: calc(100% - 1.5rem); /* espaço para o checkbox */
}

/* Personalização da barra de scroll */
.accordion-body::-webkit-scrollbar {
    width: 6px;
}

.accordion-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.accordion-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Espaçamento dos checkboxes dentro dos accordions */
.accordion-body .form-check {
    margin-bottom: 0.5rem;
}

.accordion-body .form-check:last-child {
    margin-bottom: 0;
}

/* Estilo para grupos de instituições */
.accordion-body .mb-3 strong {
    display: block;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
}

/* Estilos para acordeões com filtros ativos */
.accordion-item.has-active-filters .accordion-button {
    color: #0d47a1;
    background-color: #e3f2fd; 
    border-color: #bbdefb;
    font-weight: 500;
}

.accordion-item.has-active-filters .accordion-button:not(.collapsed) {
    color: #0d47a1;
    background-color: #bbdefb;
    box-shadow: inset 0 calc(-1 * var(--accordion-border-width)) 0 #90caf9;
}

.accordion-item.has-active-filters .accordion-button::after {
    filter: hue-rotate(210deg) saturate(1.3) brightness(0.8);
}

.accordion-item.has-active-filters .accordion-button:hover {
    background-color: #d1e7fd;
    color: #1565c0;
}

/* Responsividade */
@media (max-width: 768px) {
    #slider-range .ui-slider-handle {
        width: 18px;
        height: 18px;
        margin-left: -9px;
        margin-top: -5px;
    }
    
    .filtros-linha .col-md-3 {
        margin-bottom: 1rem;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Garantir que o conteúdo das colunas não vaze em telas pequenas */
    .row.filtros-linha {
        margin-left: 0;
        margin-right: 0;
    }
    
    .valor-range-container {
        padding: 0 5px;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .filtros-linha .col-md-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
}