
/* =====================================================
   HERO — BANNER COMPACTO
===================================================== */

.portal-hero {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--portal-blue-dark),
        var(--portal-blue)
    );
}

.portal-hero-container {
    max-width: 1180px;
    min-height: 0;

    margin: 0 auto;
    padding: 32px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    position: relative;
}

.portal-hero-content {
    width: 100%;
    max-width: 720px;

    position: relative;
    z-index: 2;
}

.portal-hero-label {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--portal-yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.portal-hero h1 {
    margin: 0;

    color: white;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.portal-hero h1 strong {
    color: var(--portal-yellow);
}

.portal-hero p {
    max-width: 560px;
    margin: 12px 0 0;

    color: #DCE8F6;
    font-size: 15px;
    line-height: 1.5;
}

.portal-hero-info {
    display: flex;
    margin-top: 16px;
}

.portal-hero-info span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);

    color: white;
    font-size: 12px;
    font-weight: 600;
}


/* =====================================================
   ELEMENTO DECORATIVO DO HERO
===================================================== */

.portal-hero-decoration {
    width: 230px;
    height: 200px;

    position: relative;
    flex-shrink: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-circle-1 {
    width: 170px;
    height: 170px;

    top: 10px;
    right: 10px;

    border: 20px solid rgba(255, 255, 255, 0.08);
}

.hero-circle-2 {
    width: 80px;
    height: 80px;

    right: 0;
    bottom: 0;

    background: rgba(253, 107, 4, 0.18);
}

.hero-icon {
    position: absolute;

    top: 43px;
    right: 48px;

    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: white;

    color: var(--portal-blue);
    font-size: 42px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}


/* =====================================================
   BANCO DE TALENTOS
===================================================== */

.portal-hero-curriculo {
    display: flex;
    align-items: center;
    gap: 12px;

    max-width: 680px;
    margin-top: 17px;
    padding: 11px 13px;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);
}

.portal-hero-curriculo > i {
    flex-shrink: 0;

    color: var(--portal-yellow);
    font-size: 23px;
}

.portal-hero-curriculo-text {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-hero-curriculo-text strong {
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.portal-hero-curriculo-text span {
    color: #DCE8F6;
    font-size: 11px;
    line-height: 1.4;
}

.portal-hero-curriculo-btn {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px 12px;

    border-radius: 7px;
    background: var(--portal-orange);

    color: white;
    text-decoration: none;
    text-align: center;

    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.portal-hero-curriculo-btn:hover {
    background: #E85E00;
    color: white;
    transform: translateY(-1px);
}


/* =====================================================
   ÁREA DA LISTAGEM
===================================================== */

.portal-vagas {
    background: var(--portal-background);
}

.portal-vagas-container {
    max-width: 1180px;

    margin: 0 auto;
    padding: 32px 24px 50px;
}

.portal-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 18px;
}

.portal-section-label {
    display: block;
    margin-bottom: 5px;

    color: var(--portal-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.portal-section-header h2 {
    margin: 0;

    color: var(--portal-text);
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
}

.portal-section-header p {
    margin: 6px 0 0;

    color: var(--portal-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.portal-vagas-count {
    flex-shrink: 0;

    padding: 8px 12px;

    border: 1px solid #DCE7F4;
    border-radius: 30px;

    background: #E8F0FA;

    color: var(--portal-blue);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.portal-vagas-count span {
    font-weight: 600;
}


/* =====================================================
   LISTA DE VAGAS
===================================================== */

.portal-vagas-lista {
    display: grid;
    gap: 12px;
}


/* =====================================================
   CARD HORIZONTAL
===================================================== */

.portal-vaga-card {
    display: grid;

    grid-template-columns: 46px minmax(0, 1fr) 150px;
    align-items: start;
    column-gap: 15px;

    padding: 17px 18px;

    background: white;

    border: 1px solid var(--portal-border);
    border-radius: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.portal-vaga-card:hover {
    border-color: #BDD2E9;

    box-shadow: 0 5px 18px rgba(7, 70, 143, 0.07);

    transform: translateY(-1px);
}


/* =====================================================
   LOGO DA EMPRESA
===================================================== */

.portal-vaga-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    flex-shrink: 0;

    border: 1px solid #E5EDF6;
    border-radius: 9px;

    background: #EAF2FB;

    color: var(--portal-blue);
    font-size: 20px;
}

.portal-vaga-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: var(--portal-white);
}


/* =====================================================
   INFORMAÇÕES PRINCIPAIS
===================================================== */

.portal-vaga-info {
    min-width: 0;
}

.portal-vaga-identificacao {
    min-width: 0;
}

.portal-vaga-info h3 {
    margin: 0 0 4px;

    color: var(--portal-text);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 750;

    overflow-wrap: anywhere;
}

.portal-vaga-empresa {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--portal-text-secondary);
    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.portal-vaga-empresa i {
    flex-shrink: 0;
}

.portal-vaga-empresa-anonima {
    color: var(--portal-text-secondary);
}


/* =====================================================
   DETALHES — CIDADE, MODALIDADE E CONTRATAÇÃO
===================================================== */

.portal-vaga-detalhes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;

    margin-top: 10px;
}

.portal-vaga-detalhes span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: var(--portal-text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.portal-vaga-detalhes i {
    flex-shrink: 0;
    color: var(--portal-blue);
}


/* =====================================================
   SALÁRIO E PRAZO
===================================================== */

.portal-vaga-condicoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 15px;

    margin-top: 9px;
}

.portal-vaga-salario {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: var(--portal-blue);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 800;
}

.portal-vaga-salario i {
    flex-shrink: 0;
}

.portal-vaga-prazo {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    color: var(--portal-blue);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
}

.portal-vaga-prazo i {
    flex-shrink: 0;
    font-size: 12px;
}

.portal-vaga-prazo strong {
    font-weight: 800;
}

.portal-vaga-prazo.encerrado {
    color: #64748B;
}

.portal-vaga-prazo.encerrado i {
    color: #94A3B8;
}


/* =====================================================
   COLUNA LATERAL — BOTÃO E PUBLICAÇÃO
===================================================== */

.portal-vaga-aside {
    grid-column: 1 / -1;

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 8px;
    padding-top: 14px;

    border-top: 1px solid #EEF2F6;
}

.portal-btn-vaga {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 36px;
    padding: 8px 12px;

    border: 1px solid transparent;
    border-radius: 7px;

    background: var(--portal-orange);

    color: white;
    text-align: center;
    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.portal-btn-vaga:hover {
    background: #E85E00;
    color: white;
    transform: translateY(-1px);
}

.portal-btn-vaga i {
    font-size: 13px;
}

.portal-vaga-data {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;

    color: #8795A7;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
}

.portal-vaga-data i {
    flex-shrink: 0;
}


/* =====================================================
   ESTADO VAZIO
===================================================== */

.portal-vagas-vazio {
    padding: 55px 20px;

    text-align: center;

    background: white;

    border: 1px dashed #CBD5E1;
    border-radius: 12px;
}

.portal-vazio-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #EAF2FB;

    color: var(--portal-blue);
    font-size: 25px;
}

.portal-vagas-vazio h3 {
    margin: 0 0 6px;

    color: var(--portal-text);
    font-size: 18px;
}

.portal-vagas-vazio p {
    margin: 0;

    color: var(--portal-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}


/* =====================================================
   RESPONSIVIDADE — TABLETS
===================================================== */

@media (max-width: 900px) {

    .portal-hero-decoration {
        width: 175px;
        height: 165px;
    }

    .hero-circle-1 {
        width: 145px;
        height: 145px;

        border-width: 17px;
    }

    .hero-circle-2 {
        width: 65px;
        height: 65px;
    }

    .hero-icon {
        top: 37px;
        right: 36px;

        width: 82px;
        height: 82px;

        font-size: 35px;
    }

    .portal-vaga-card {
        grid-template-columns: 42px minmax(0, 1fr) 125px;
        column-gap: 12px;

        padding: 15px;
    }

    .portal-vaga-icon {
        width: 42px;
        height: 42px;
    }

    .portal-vaga-detalhes {
        gap: 6px 10px;
    }

    .portal-vaga-condicoes {
        gap: 6px 12px;
    }

}


/* =====================================================
   RESPONSIVIDADE — CELULARES
===================================================== */

@media (max-width: 640px) {

    /* Hero */

    .portal-hero-container {
        padding: 29px 18px;
    }

    .portal-hero-content {
        max-width: none;
    }

    .portal-hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .portal-hero p {
        margin-top: 10px;
        font-size: 14px;
    }

    .portal-hero-info {
        margin-top: 14px;
    }

    .portal-hero-decoration {
        display: none;
    }

    /* Banco de talentos */

    .portal-hero-curriculo {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 9px;

        margin-top: 15px;
        padding: 11px;
    }

    .portal-hero-curriculo > i {
        font-size: 21px;
    }

    .portal-hero-curriculo-text {
        flex: 1;
        min-width: 0;
    }

    .portal-hero-curriculo-text strong {
        font-size: 12px;
    }

    .portal-hero-curriculo-text span {
        font-size: 11px;
    }

    .portal-hero-curriculo-btn {
        width: 100%;
        white-space: normal;

        padding: 9px 10px;
    }

    /* Cabeçalho da listagem */

    .portal-vagas-container {
        padding: 26px 14px 38px;
    }

    .portal-section-header {
        align-items: center;
        gap: 10px;

        margin-bottom: 15px;
    }

    .portal-section-header h2 {
        font-size: 22px;
    }

    .portal-section-header p {
        font-size: 12px;
    }

    .portal-vagas-count {
        padding: 7px 9px;
        font-size: 11px;
    }

    /* Cards */

    .portal-vagas-lista {
        gap: 10px;
    }

    .portal-vaga-card {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 12px;

        padding: 13px;
    }

    .portal-vaga-icon {
        width: 38px;
        height: 38px;

        border-radius: 8px;
        font-size: 17px;
    }

    .portal-vaga-info h3 {
        font-size: 16px;
    }

    .portal-vaga-empresa {
        font-size: 11px;
    }

    .portal-vaga-detalhes {
        gap: 5px 10px;
        margin-top: 8px;
    }

    .portal-vaga-detalhes span {
        font-size: 11px;
    }

    .portal-vaga-condicoes {
        gap: 6px 10px;
        margin-top: 8px;
    }

    .portal-vaga-salario {
        font-size: 12px;
    }

    .portal-vaga-prazo {
        font-size: 11px;
    }

    /* Ação ocupa a linha inferior */

    .portal-vaga-aside {
        grid-column: 1 / -1;

        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        padding-top: 10px;

        border-top: 1px solid #EEF2F6;
    }

    .portal-btn-vaga {
        flex-shrink: 0;

        min-height: 36px;
        padding: 9px 13px;

        font-size: 12px;
    }

    .portal-vaga-data {
        justify-content: flex-start;

        font-size: 10px;
        text-align: left;
    }

    /* Estado vazio */

    .portal-vagas-vazio {
        padding: 40px 15px;
    }

}


/* =====================================================
   CELULARES ESTREITOS
===================================================== */

@media (max-width: 380px) {

    .portal-hero h1 {
        font-size: 29px;
    }

    .portal-section-header h2 {
        font-size: 20px;
    }

    .portal-vagas-count {
        padding: 6px 8px;
        font-size: 10px;
    }

    .portal-vaga-card {
        padding: 11px;
        column-gap: 8px;
    }

    .portal-vaga-icon {
        width: 34px;
        height: 34px;
    }

    .portal-vaga-info h3 {
        font-size: 15px;
    }

    .portal-vaga-aside {
        gap: 7px;
    }

    .portal-btn-vaga {
        padding: 8px 10px;
    }

}


/* =====================================================
   ACESSIBILIDADE — MOVIMENTO REDUZIDO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .portal-vaga-card,
    .portal-btn-vaga,
    .portal-hero-curriculo-btn {
        transition: none;
    }

    .portal-vaga-card:hover,
    .portal-btn-vaga:hover,
    .portal-hero-curriculo-btn:hover {
        transform: none;
    }

}

/* =========================================
   AJUSTE DEFINITIVO DE LARGURA NO MOBILE
========================================= */

@media (max-width: 640px) {

    .portal-hero,
    .portal-hero *,
    .portal-vagas,
    .portal-vagas * {
        box-sizing: border-box;
    }

    .portal-hero,
    .portal-vagas {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-hero-container,
    .portal-vagas-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-hero-container {
        padding: 24px 16px;
    }

    .portal-vagas-container {
        padding: 24px 12px 36px;
    }

    /* Banner e banco de talentos */

    .portal-hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-hero-curriculo {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-hero-curriculo-text {
        overflow-wrap: break-word;
    }

    .portal-hero-curriculo-btn {
        width: 100%;
        max-width: 100%;
        white-space: normal;
    }

    /* Cabeçalho da listagem */

    .portal-section-header {
        width: 100%;
        min-width: 0;
    }

    .portal-section-header > div {
        min-width: 0;
    }

    .portal-section-header h2,
    .portal-section-header p {
        overflow-wrap: break-word;
    }

    /* Lista e cards */

    .portal-vagas-lista {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-vaga-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        grid-template-columns: 38px minmax(0, 1fr);
    }

    .portal-vaga-info,
    .portal-vaga-identificacao,
    .portal-vaga-detalhes,
    .portal-vaga-condicoes {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-vaga-detalhes span,
    .portal-vaga-salario,
    .portal-vaga-prazo {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* Botão e data */

    .portal-vaga-aside {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .portal-btn-vaga {
        max-width: 100%;
    }
}