/* =========================================================
   Quero Ser Voluntário — tokens locais (mesma linguagem visual
   de ajude.css / acoes.css / legislacao.css: teal/verde da
   marca, auto-contido para não depender de classes externas)
   ========================================================= */
.vol-hero,
.processo-seletivo,
.vol-interesse,
.vol-galeria{
    --vl-forest: #12403A;
    --vl-forest-2: #1E6E5C;
    --vl-verde: #4CAF50;
    --vl-cream: #FBF8F2;
    --vl-ink: #182420;
    --vl-ink-soft: #52605B;
    --vl-line: #E4DFD2;
    --vl-radius: 14px;
}

/* ---------- HERO ---------- */
.vol-hero{
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
    background:
        radial-gradient(60% 90% at 85% 0%, rgba(76,175,80,.35), transparent 60%),
        linear-gradient(160deg, #0E332E 0%, #12403A 55%, #1E6E5C 100%);
    color: #fff;
    text-align: center;
}

.vol-hero-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(14, 51, 46, .15);
}

.vol-hero .icones-flutuantes{ z-index: 1; }

.vol-hero-content{
    position: relative;
    z-index: 3;
    max-width: 760px;
    margin: 0 auto;
}

.vol-hero-content .tag-date{
    display: inline-block;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    padding: .3rem .9rem;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.vol-hero-content h1{
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.2;
    margin: 0 0 1rem;
}

.vol-hero-sub{
    font-size: 1rem;
    line-height: 1.65;
    opacity: .92;
    margin: 0 0 1.75rem;
}

.vol-hero-buttons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
}

.vol-hero-buttons .btn-outline{
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.vol-hero-buttons .btn-outline:hover{
    background: #fff;
    color: var(--vl-forest);
}

.vol-hero-buttons .btn-whatsapp{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.vol-hero-buttons .btn-whatsapp:hover{
    filter: brightness(1.06);
    transform: translateY(-2px);
}

/* ---------- Onda ---------- */
.vol-wave{
    line-height: 0;
    position: relative;
    z-index: 2;
}

.vol-wave svg{
    display: block;
    width: 100%;
    height: clamp(50px, 7vw, 90px);
}

.vol-wave-front{
    fill: var(--vl-cream);
}

/* ---------- PROCESSO SELETIVO ---------- */
.processo-seletivo{
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--vl-cream);
}

.vol-intro{
    max-width: 680px;
    margin: .5rem auto 2rem;
    text-align: center;
    color: var(--vl-ink-soft);
    line-height: 1.6;
}

.destaque-tag{
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 999px;
}

.destaque-tag-verde{
    background: rgba(76,175,80,.14);
    color: var(--vl-forest-2);
    border: 1px solid rgba(76,175,80,.35);
}

.edital-box{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--vl-line);
    border-left: 4px solid var(--vl-verde);
    border-radius: var(--vl-radius);
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}

.edital-icon{
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: var(--vl-forest);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.edital-info{
    flex: 1 1 260px;
}

.edital-info h3{
    margin: .35rem 0 .3rem;
    color: var(--vl-forest);
    font-size: 1.15rem;
}

.edital-info p{
    margin: 0;
    color: var(--vl-ink-soft);
    font-size: .92rem;
}

.edital-btn{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.etapas-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
}

.etapa-card{
    background: #fff;
    border: 1px solid var(--vl-line);
    border-radius: var(--vl-radius);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .65rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.etapa-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -20px rgba(18,64,58,.4);
}

/* Área reservada para a foto de cada etapa */
.etapa-foto{
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--vl-line);
    border-radius: 10px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vl-ink-soft);
    font-size: .82rem;
    overflow: hidden;
}

.etapa-foto span{
    padding: .5rem;
}

/* Quando a foto for inserida dentro da área */
.etapa-foto img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.etapa-card h3{
    margin: .15rem 0 0;
    color: var(--vl-forest);
    font-size: 1rem;
}

.etapa-card p{
    margin: 0;
    font-size: .86rem;
    color: var(--vl-ink-soft);
    line-height: 1.5;
}

/* ---------- INTERESSE (fora do período de inscrições) ---------- */
.vol-interesse{
    padding: 2.5rem 0;
    background: #fff;
}

.vol-interesse-box{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--vl-cream);
    border: 1px solid var(--vl-line);
    border-radius: var(--vl-radius);
    padding: 1.75rem 2rem;
}

.vol-interesse-texto{
    flex: 1 1 320px;
}

.vol-interesse-texto p{
    margin: .4rem 0 0;
    color: var(--vl-ink-soft);
    line-height: 1.6;
}

.vol-interesse-box .btn-ajude{
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

/* ---------- GALERIA (placeholders para fotos futuras) ---------- */
.vol-galeria{
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--vl-cream);
}

.foto-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
}

.foto-placeholder{
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--vl-line);
    border-radius: var(--vl-radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    text-align: center;
    padding: 1rem;
    color: var(--vl-ink-soft);
    transition: border-color .18s ease, color .18s ease;
}

.foto-placeholder:hover{
    border-color: var(--vl-verde);
    color: var(--vl-forest-2);
}

.foto-placeholder i{
    font-size: 1.8rem;
    opacity: .6;
}

.foto-placeholder span{
    font-size: .82rem;
    line-height: 1.4;
    max-width: 16ch;
}

/* Quando a foto real for inserida (classe .foto-item com <img> dentro) */
.foto-item{
    aspect-ratio: 4 / 3;
    border-radius: var(--vl-radius);
    overflow: hidden;
    border: 1px solid var(--vl-line);
}

.foto-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center top; /* ajuda a não cortar a cabeça em retratos */
}

.foto-nota{
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 1.5rem 0 0;
    padding: .9rem 1.1rem;
    background: rgba(76,175,80,.08);
    border: 1px solid rgba(76,175,80,.3);
    border-radius: 10px;
    font-size: .85rem;
    color: var(--vl-forest-2);
    line-height: 1.5;
}

.foto-nota i{
    margin-top: .15rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px){
    .edital-box{
        flex-direction: column;
        text-align: center;
    }

    .vol-interesse-box{
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- LEITOR DO EDITAL (modal: lista à esquerda, arquivo à direita) ---------- */
.edital-modal{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.6rem, 2.5vw, 1.8rem);
    background: rgba(10, 20, 20, .88);
}

.edital-modal[hidden]{
    display: none;
}

.edital-modal-caixa{
    display: flex;
    flex-direction: column;
    width: min(1200px, 100%);
    height: min(900px, 100%);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}

.edital-modal-topo{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .7rem .8rem .7rem 1.1rem;
    background: #FBF8F2;
    border-bottom: 1px solid #E4DFD2;
}

.edital-modal-titulo{
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: .98rem;
    line-height: 1.3;
    color: #12403A;
}

.edital-modal-titulo i{
    margin-right: .4rem;
    color: #1E6E5C;
}

.edital-modal-close{
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #12403A;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    font-size: 1.05rem;
    cursor: pointer;
    transition: .3s;
}

.edital-modal-close:hover,
.edital-modal-close:focus-visible{
    background: #4CAF50;
    transform: scale(1.08);
}

.edital-modal-corpo{
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

/* coluna da esquerda: arquivos da pasta */
.edital-lista{
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .8rem;
    overflow-y: auto;
    background: #FBF8F2;
    border-right: 1px solid #E4DFD2;
}

.edital-lista-msg{
    margin: .6rem .4rem;
    font-size: .85rem;
    color: #52605B;
}

.edital-item{
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    width: 100%;
    padding: .65rem .75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: .88rem;
    line-height: 1.35;
    text-align: left;
    color: #182420;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.edital-item i{
    flex: 0 0 auto;
    margin-top: .1rem;
    font-size: 1.05rem;
    color: #1E6E5C;
}

.edital-item span{
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.edital-item:hover,
.edital-item:focus-visible{
    background: #fff;
    border-color: #E4DFD2;
}

.edital-item.ativo{
    background: #fff;
    border-color: #4CAF50;
    box-shadow: inset 3px 0 0 #4CAF50;
    font-weight: 600;
    color: #12403A;
}

/* coluna da direita: arquivo aberto */
.edital-modal-leitor{
    flex: 1 1 auto;
    min-width: 0;
    background: #fff;
}

.edital-modal-leitor iframe{
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* só um arquivo: some a coluna da esquerda e o leitor ocupa tudo */
.edital-modal-unico .edital-lista{
    display: none;
}

@media (max-width: 768px){
    .edital-modal{
        padding: 0;
    }

    .edital-modal-caixa{
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .edital-modal-titulo{
        font-size: .88rem;
    }

    /* no celular: a lista vira uma faixa no topo e o arquivo aparece embaixo */
    .edital-modal-corpo{
        flex-direction: column;
    }

    .edital-lista{
        flex: 0 0 auto;
        flex-direction: row;
        gap: .4rem;
        padding: .55rem .6rem;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid #E4DFD2;
    }

    .edital-item{
        flex: 0 0 auto;
        width: auto;
        max-width: 230px;
        align-items: center;
        padding: .5rem .75rem;
        background: #fff;
        border-color: #E4DFD2;
        font-size: .8rem;
    }

    .edital-item span{
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .edital-item.ativo{
        box-shadow: none;
        background: #12403A;
        border-color: #12403A;
        color: #fff;
    }

    .edital-item.ativo i{
        color: #fff;
    }
}
