/* =========================================================
   CABEÇALHO
   ========================================================= */

#cabecalho {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   BARRA ROXA
   ========================================================= */

#top-menu {
    width: 100%;
    height: 92px;

    margin: 0 !important;
    padding: 0 !important;

    background-image:
        url("../images/Topo.png"),
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 33.7%,
            #c58bc9 33.7%,
            #8d278f 55%,
            #492181 78%,
            #211d70 100%
        );

    background-repeat: no-repeat, no-repeat;

    /* HEXÁGONOS À DIREITA */
    background-position:
        33.7% center,
        center;

    background-size:
        auto 92px,
        cover;

    position: relative !important;

    border: 0;
    box-shadow: none;
}


/* Conteúdo da barra roxa */

.top-menu-inner {
    width: 100%;
    max-width: 1400px;

    height: 72px;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;

    /* LOGO + PORTAL À ESQUERDA */
    justify-content: flex-start;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-cs-header {
    height: 72px;

    display: flex;
    align-items: center;

    margin: 0;
    padding: 0;
}

.logo-cs-header img {
    display: block;

    width: auto;
    height: auto;

    max-width: 400px;
    max-height: 62px;

    margin: 0 !important;
    padding: 0 !important;
}
/* =========================================================
   PORTAL DO CANDIDATO
   ========================================================= */

.portal-candidato {
    height: 72px;

    display: flex;
    align-items: center;

    margin-left: 20px;
    margin-right: 20px;
}

#top-menu {
    width: 100% !important;
    height: 92px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;

    background-image:
        url("../images/Topo.png"),
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 33.7%,
            #c58bc9 33.7%,
            #8d278f 55%,
            #492181 78%,
            #211d70 100%
        ) !important;

    background-repeat: no-repeat, no-repeat !important;

    /* HEXÁGONOS NO LADO DIREITO */
    background-position:
        20% center,
        center !important;

    background-size:
        auto 122px,
        cover !important;

    border: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.top-menu-inner {
    width: 100% !important;
    max-width: none !important;

    height: 92px !important;

    margin: 0 !important;
    padding: 0 30px !important;

    position: relative !important;

    display: block !important;
}


/* =========================================================
   LOGO - FORÇAR PARA ESQUERDA
   ========================================================= */

.logo-cs-header {
    position: absolute !important;

    left: 30px !important;
    top: 0 !important;

    width: auto !important;
    height: 92px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: flex-start !important;

    z-index: 10 !important;
}


/* Link da logo */

.logo-cs-header a {
    display: flex !important;

    align-items: center !important;

    width: auto !important;
    height: 92px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Imagem */

.logo-cs-header img {
    display: block !important;

    width: auto !important;

    height: auto !important;

    max-width: 300px !important;
    max-height: 80px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   PORTAL DO CANDIDATO
   ========================================================= */

.portal-candidato {
    position: absolute !important;

    left: 66% !important;
    top: 0 !important;

    height: 92px !important;

    display: flex !important;

    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;

    z-index: 10 !important;
}

#top-menu .menu-portal-candidato {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    height: 48px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    border: 2px solid #ffffff !important;
    border-radius: 8px !important;

    background: transparent !important;

    color: #ffffff !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    line-height: 1 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
}

/* A referencia desktop nao exibe uma segunda barra de menu abaixo do topo. */
#menu-principal {
    display: none !important;
}


/* =========================================================
   MATAR REGRAS ANTIGAS QUE ESTÃO INTERFERINDO
   ========================================================= */

#top-menu .navbar,
#top-menu .navbar-collapse,
#top-menu .navbar-nav,
#top-menu .row,
#top-menu .col-lg-2,
#top-menu .col-lg-10 {
    margin: 0 !important;
    padding: 0 !important;
}


/* IMPORTANTE:
   O CSS antigo tinha .ajuste-img com width:40%
   e padding-left:20px.
   Vamos neutralizar isso.
*/

#top-menu .ajuste-img {
    width: auto !important;

    min-width: 0 !important;

    max-width: 400px !important;

    padding: 0 !important;

    margin: 0 !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    #menu-principal {
        display: block !important;
    }

    .logo-cs-header {
        left: 10px !important;

        height: 65px !important;
    }

    .logo-cs-header a {
        height: 65px !important;
    }

    .logo-cs-header img {
        max-width: 210px !important;
        max-height: 55px !important;
    }

    .portal-candidato {
        left: auto !important;
        right: 10px !important;

        height: 65px !important;
    }

}


/* =========================================================
   RESUMO DO PROCESSO SELETIVO
   Modulo HTML Personalizado na posicao cs-destaque
   ========================================================= */

#cs-destaque {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

#site-title {
    margin: 2rem 0 0;
    color: #4f5660;
    font-size: clamp(1.5rem, 2.25vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

#cs-destaque > .well.iv-process-cards {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#cs-content > .well.iv-component {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Os contêineres centrais acompanham a altura real dos dois blocos de artigos. */
#geral,
#conteudo,
#cs-content,
.iv-article-groups,
.iv-article-block {
    height: auto;
    min-height: 0;
}

.iv-article-groups {
    display: grid;
    gap: 2rem;
}

.iv-article-block {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.iv-article-block__title {
    margin: 0 0 0.75rem;
    color: #4f5660;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.iv-article-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.iv-article-list__item {
    padding: 0.75rem 0;
}

.iv-article-list__date {
    display: block;
    margin-bottom: 0.15rem;
    color: #8a939d;
    font-size: 0.875rem;
}

.iv-article-list__link {
    color: #4f5660;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.iv-article-list__link:hover,
.iv-article-list__link:focus {
    color: #492181;
    text-decoration: underline;
}

.iv-process-cards__title {
	display: none;
    margin: 0 0 2.25rem;
    color: #4f5660;
    font-size: clamp(1.5rem, 2.25vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.iv-process-cards__grid,
.iv-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.iv-process-cards__card,
.iv-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 180px;
    padding: 1rem 1.5rem;
    color: #343a40;
    text-align: center;
    background: #e9e9e9;
    border-radius: 0.75rem;
}

.iv-process-cards__icon,
.iv-info-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
}

.iv-process-cards__label,
.iv-info-card strong {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.iv-process-cards__text,
.iv-info-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* Mantem os tres cartoes lado a lado em telas desktop/tablet; empilha apenas
   em telas pequenas, quando a largura nao comporta os tres cartoes. */
@media (max-width: 700px) {
    .iv-process-cards__grid,
    .iv-card-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   RODAPE
   ========================================================= */

footer {
    width: 100%;
    margin-top: 3rem;
    color: #211D70;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1;
}

#footer.container-fluid {
    width: calc(100% - 2rem);
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1rem 1.5rem;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
}

#footer .address {
    margin: 0;
}

#footer .address > p:first-child {
    margin-top: 0;
}

#footer .image_component {
    display: inline-block;
    margin: 0 0.75rem 0 0;
    vertical-align: middle;
}

#footer .image_component img {
    display: block;
}

footer .linha {
    width: calc(100% - 2rem);
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

footer .copyright {
    width: calc(100% - 2rem);
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

footer .copyright p {
    margin: 0;
}

@media (max-width: 700px) {
    #footer.container-fluid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    footer {
        margin-top: 2rem;
    }
}
