/* ==========================================================================
   Layout da página pública de vagas (/rh/vagas-publicas)
   Classes com prefixo .rhvp- para não impactar outras telas.
   Paleta: azul-marinho, branco e laranja (identidade Abase).
   ========================================================================== */
.rhvp-page {
    --rhvp-navy: #0f1e46;
    --rhvp-navy-2: #16285c;
    --rhvp-orange: #f15a29;
    --rhvp-bg: #f3f4f7;
    --rhvp-text: #26324d;
    --rhvp-muted: #7a869a;
    background: var(--rhvp-bg);
    color: var(--rhvp-text);
    overflow-x: hidden;
    /* rodapé institucional sempre no fim da viewport, mesmo com poucas vagas listadas */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.rhvp-page * { box-sizing: border-box; }

/* o layout global aplica margin-bottom no body (sticky footer do template); aqui o rodapé é o fim da página */
/* overflow-x:hidden também no body — CSS de outros módulos é global (_Css.cshtml) e pode vazar largura
   maior que a viewport; sem isso aqui, o overflow-x:hidden só do .rhvp-page não impede scroll horizontal da página */
body:has(.rhvp-page) { margin-bottom: 0; overflow-x: hidden; }

.rhvp-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== HERO ===== */
.rhvp-hero {
    position: relative;
    background-color: var(--rhvp-navy);
    color: #fff;
    padding: 40px 0 90px 0;
    overflow: hidden;
}

/* foto da sede: painel à direita que se dissolve no azul via máscara (sem véu escuro por cima) */
.rhvp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: var(--rhvp-hero-photo, none);
    background-repeat: no-repeat;
    background-size: 57% auto;
    background-position: right 24%;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.22) 49%, rgba(0,0,0,0.62) 57%, rgba(0,0,0,0.9) 64%, rgba(0,0,0,1) 70%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0) 42%, rgba(0,0,0,0.22) 49%, rgba(0,0,0,0.62) 57%, rgba(0,0,0,0.9) 64%, rgba(0,0,0,1) 70%);
}

/* pontilhado decorativo: cobre a metade esquerda do hero e se dissolve em degradê até o meio */
.rhvp-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.3px, transparent 1.4px);
    background-size: 15px 15px;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,0) 18%);
    mask-image: linear-gradient(90deg, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 9%, rgba(0,0,0,0) 18%);
    z-index: 1;
    pointer-events: none;
}

.rhvp-hero-inner { position: relative; z-index: 2; }

/* símbolo decorativo (marca oficial em branco): o círculo laranja da própria arte fica ancorado em left/top
   via translate (68.9%/31.1% é o centro do círculo dentro do PNG), a parte inferior ultrapassa o hero e é
   recortada pelo overflow: hidden */
.rhvp-hero-deco {
    position: absolute;
    top: 70%;
    left: 56%;
    height: 82%;
    width: auto;
    transform: translate(-68.9%, -31.1%);
    z-index: 1;
    pointer-events: none;
    opacity: .18;
}
@media (max-width: 1500px) {
    .rhvp-hero-deco { left: 58%; }
}
@media (max-width: 1200px) {
    .rhvp-hero-deco { left: 64%; height: 50%; }
}
@media (max-width: 900px) {
    .rhvp-hero-deco { left: 74%; height: 42%; opacity: .26; }
}
@media (max-width: 680px) {
    .rhvp-hero-deco { display: none; }
}

/* lockup da marca: logo oficial (versão branca, fundo escuro) */
.rhvp-brand { display: inline-flex; align-items: center; margin-bottom: 46px; }
.rhvp-brand-logo { height: 118px; width: auto; display: block; }

.rhvp-hero h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 18px 0;
    max-width: 620px;
}
.rhvp-hero p {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0;
}

/* elemento geométrico decorativo (contorno + círculo laranja) — apenas aqui */
/* ===== BARRA DE FILTROS (sobreposta ao hero) ===== */
.rhvp-filtros-wrap { margin-top: -56px; position: relative; z-index: 3; }
.rhvp-filtros {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(15, 30, 70, 0.12);
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}
.rhvp-filtro-item { flex: 1 1 180px; min-width: 150px; }
.rhvp-filtro-item.rhvp-busca { flex: 1.6 1 240px; }
.rhvp-filtro-item label {
    display: block;
    font-size: 12px;
    color: var(--rhvp-muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.rhvp-input, .rhvp-select {
    width: 100%;
    height: 46px;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--rhvp-text);
    background: #fff;
}
.rhvp-input-icon { position: relative; }
.rhvp-input-icon .fa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--rhvp-muted); }
.rhvp-input-icon .rhvp-input { padding-left: 38px; }
.rhvp-btn-buscar {
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--rhvp-orange);
    color: #fff;
    font-weight: 700;
    padding: 0 40px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: filter .15s;
}
.rhvp-btn-buscar:hover { filter: brightness(0.95); }

/* ===== CONTEÚDO ===== */
/* mantém o mesmo recuo lateral (20px) do container/filtros para alinhar busca, listagem e aside */
.rhvp-conteudo { padding-top: 34px; padding-bottom: 20px; }
.rhvp-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.rhvp-main { flex: 1 1 0; min-width: 0; }
.rhvp-aside { flex: 0 0 300px; max-width: 300px; }

.rhvp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.rhvp-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(15, 30, 70, 0.06);
    padding: 22px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}
.rhvp-badge {
    align-self: flex-start;
    background: var(--rhvp-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 14px;
}
.rhvp-card-title { font-size: 18px; font-weight: 700; color: var(--rhvp-navy); margin: 0 0 12px 0; line-height: 1.25; }
.rhvp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.rhvp-meta span { font-size: 12.5px; color: var(--rhvp-muted); display: inline-flex; align-items: center; }
.rhvp-meta span .fa { color: var(--rhvp-navy); margin-right: 6px; font-size: 12px; }
.rhvp-desc {
    font-size: 13.5px; color: #64708a; line-height: 1.5; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rhvp-verdetalhes {
    margin-top: auto; align-self: flex-start;
    color: var(--rhvp-orange); font-weight: 700; font-size: 14px; text-decoration: none;
}
.rhvp-verdetalhes:hover { text-decoration: underline; color: var(--rhvp-orange); }
.rhvp-verdetalhes .fa { margin-left: 6px; font-size: 12px; }

.rhvp-vazio, .rhvp-loading { text-align: center; padding: 60px 0; color: var(--rhvp-muted); grid-column: 1 / -1; }

/* Aside "Por que trabalhar na Abase?" */
.rhvp-aside-card {
    background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(15, 30, 70, 0.06); padding: 24px;
}
.rhvp-aside-card h3 { font-size: 20px; font-weight: 800; color: var(--rhvp-navy); margin: 0 0 20px 0; }
.rhvp-beneficio { display: flex; gap: 14px; margin-bottom: 20px; }
.rhvp-beneficio:last-child { margin-bottom: 0; }
.rhvp-beneficio .fa { color: var(--rhvp-orange); font-size: 22px; width: 26px; text-align: center; margin-top: 2px; }
.rhvp-beneficio h4 { font-size: 15px; font-weight: 700; color: var(--rhvp-navy); margin: 0 0 3px 0; }
.rhvp-beneficio p { font-size: 13px; color: #64708a; margin: 0; line-height: 1.45; }

/* Processo seletivo */
.rhvp-processo {
    background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(15, 30, 70, 0.06);
    padding: 30px; margin-top: 26px;
}
.rhvp-processo h3 { text-align: center; font-size: 20px; font-weight: 800; color: var(--rhvp-navy); margin: 0 0 26px 0; }
.rhvp-etapas { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.rhvp-etapa { flex: 1 1 200px; display: flex; gap: 14px; align-items: flex-start; }
.rhvp-etapa-num {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    background: var(--rhvp-navy); color: #fff; font-weight: 700; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.rhvp-etapa h5 { font-size: 15px; font-weight: 700; color: var(--rhvp-navy); margin: 4px 0 4px 0; }
.rhvp-etapa p { font-size: 13px; color: #64708a; margin: 0; line-height: 1.4; }

/* Rodapé */
.rhvp-footer {
    background: #fff; border-top: 1px solid #e7eaf1;
    /* empurra o rodapé pro fim da viewport quando o conteúdo da página (.rhvp-page/.rhvd-page, ambas flex-column) é curto */
    margin-top: auto;
    padding: 20px 0;
}
.rhvp-footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
/* Rodapé compartilhado: usa fallback fixo nas variáveis porque este partial aparece
   em páginas com wrappers diferentes (.rhvp-page e .rhvd-page). Sem o fallback, o
   laranja/azul não resolvia fora do .rhvp-page e o slogan ficava escuro. */
.rhvp-footer-brand { display: inline-flex; align-items: center; }
.rhvp-footer-brand-logo { height: 78px; width: auto; display: block; }
.rhvp-footer-slogan { font-weight: 600; color: var(--rhvp-navy, #0f1e46); }
.rhvp-footer-slogan strong { color: var(--rhvp-orange, #f15a29); }
.rhvp-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--rhvp-navy, #0f1e46); color: #fff; margin-left: 8px;
    text-decoration: none;
}
.rhvp-social a:hover { background: var(--rhvp-orange, #f15a29); color: #fff; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1100px) {
    .rhvp-grid { grid-template-columns: repeat(2, 1fr); }
    .rhvp-aside { flex-basis: 100%; max-width: 100%; }
}
@media (max-width: 900px) {
    .rhvp-hero::after {
        background-size: cover;
        background-position: center right;
        opacity: .5;
        -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,1) 100%);
        mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,1) 100%);
    }
    .rhvp-hero h1 { font-size: 34px; }
    .rhvp-hero::before { display: none; }
    .rhvp-brand-logo { height: 96px; }
    .rhvp-brand { margin-bottom: 34px; }
}
@media (max-width: 680px) {
    .rhvp-grid { grid-template-columns: 1fr; }
    .rhvp-filtros { flex-direction: column; align-items: stretch; }
    /* .rhvp-filtro-item usa "flex: N 1 180px/240px" — esse flex-basis é largura no modo linha (padrão),
       mas com flex-direction:column vira ALTURA, forçando cada campo a ter 180/240px de altura e
       deixando um vão enorme abaixo do input/select. Reseta pra a altura ser só a do conteúdo. */
    .rhvp-filtro-item, .rhvp-filtro-item.rhvp-busca { flex: 0 0 auto; }
    .rhvp-btn-buscar { width: 100%; }
    .rhvp-hero h1 { font-size: 28px; }
    .rhvp-hero p { font-size: 15px; }
    .rhvp-brand-logo { height: 82px; }
    .rhvp-brand { margin-bottom: 26px; }
    .rhvp-footer-brand-logo { height: 66px; }
}
