/* Popup de Comunicado */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 999999;
}

#popup .cont {
    position: absolute;
    top: 35%;
    left: 36%;
    margin-left: -218px;
    margin-top: -206px;
    width: 814px;
    height: 600px;
    border-radius: 10px;
    background: url(../img/popup-comunicado.png?4) no-repeat center;
}


#popup .cont span.close {
    position: absolute;
    top: 57px;
    right: 167px;
    width: 50px;
    height: 50px;
    background: #00622b url(img/close2.png) no-repeat center;
    border-radius: 100%;
    cursor: pointer;
}

#popup .cont a {
    position: absolute;
    top: 37px;
    right: -1px;
    width: 424px;
    height: 500px;
    border-radius: 100%;
    cursor: pointer;
}

#popup .cont span.close:hover {
    background: #000 url(img/close2.png) no-repeat center;
}

#popup .cont span.close:hover {
    background: #000 url(img/close2.png) no-repeat center;
}

@media(max-width: 769px) {
    #popup .cont {
        background: url(img/popup-comunicado.png?4) no-repeat center;
        left: -2%;
    }

    #popup .cont span.close {
        top: 139px !important;
        right: 239px !important;
    }
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    opacity: 1;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    /* pointer-events: none; */
    display: block !important;
}

.modal:target {
    opacity: 1;
    pointer-events: auto;
}

.modal>div {
    width: 400px;
    position: relative;
    margin: 10% auto;
    padding: 15px 20px;
    background: #fff;
}

.fechar {
    position: absolute;
    width: 30px;
    right: 516px;
    top: 118px;
    text-align: center;
    line-height: 30px;
    margin-top: 5px;
    background: #ff4545;
    border-radius: 50%;
    font-size: 16px;
    color: #8d0000;
}

.popup {
    max-height: 558px;
    max-width: 600px;
}

@media(max-width: 769px) {
    .popup {
        max-width: 305px;
        margin-left: 27px;
        margin-right: 25px;
        margin-top: 100px;
    }

    .fechar {
        left: 293px;
        top: 100px;
    }
}

@media(min-width: 769px) {
    .popup {
        margin-left: 353px;
        margin-top: 114px;
    }
}

a.fancybox-item.fancybox-close {

    background-color: rgba(0, 0, 0, 0) !important;

}

/* Padronização do Grid do Portal da Transparência */
.grid-transparencia .item-transparencia {
    margin-bottom: 30px;
}

.panel-transparencia {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 40px 15px;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

/* Efeito de hover moderno para os cards */
.panel-transparencia:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #d0d0d0;
}

/* Estilização dos ícones do FontAwesome */
.panel-transparencia i {
    color: #7a7a7a;
    margin-bottom: 25px;
    transition: color 0.2s ease-in-out;
}

.panel-transparencia h4 {
    color: #555555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

/* Configuração do link que envolve o card */
.card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.card-link:hover .panel-transparencia i,
.card-link:hover .panel-transparencia h4 {
    color: #274364;
    /* Cor temática para o hover */
}

/* Estilos do Banner Restaurados e Limpos */
.banner-topo {
    background-image: url('https://transparencia.oabes.org.br/img/bg_site%20transparencia.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 465px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid #c62520;
}

.banner-topo .bg-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    /* Camada escura para destacar o logo */
    z-index: 1;
}

.banner-topo .texto_banner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.img-menu {
    max-width: 150px;
    margin: 0 auto 30px auto;
}

.lupa {
    max-width: 350px;
    margin: 0 auto;
}

/* Estilos da Seção de Apresentação */
.apresentacao {
    padding: 50px 0;
    background-color: #fff;
}

.head-area {
    font-size: 38px;
    color: #1d1c1a;
    font-weight: 500;
    margin-bottom: 5px;
    text-align: center;
}

.blue-line {
    width: 100px;
    height: 3px;
    background-color: #231f20;
    margin: 15px auto 30px auto;
}

/* Padronização do Novo Grid do Portal */
.grid-transparencia {
    margin-top: 20px;
}

.grid-transparencia .item-transparencia {
    margin-bottom: 30px;
}

.panel-transparencia {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 40px 15px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.panel-transparencia:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: #d0d0d0;
}

.panel-transparencia i {
    color: #7a7a7a;
    margin-bottom: 25px;
    transition: color 0.2s ease-in-out;
}

.panel-transparencia h4 {
    color: #555555;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.card-link {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.card-link:hover .panel-transparencia i,
.card-link:hover .panel-transparencia h4 {
    color: #274364;
}

@media(max-width: 769px) {
    .banner-topo {
        height: 350px !important;
    }

    .img-menu {
        max-width: 100px;
    }

    .lupa {
        max-width: 250px;
    }
}