#topnav{
    z-index: 1020 !important;
}
.fg-container{
    padding: 15px;
}
.section{
    padding: 50px 0;
}
.fg-container .row .features.feature-primary{
    cursor: pointer;
}

/*
	SECTION TITLES
*/
.fg-section-title{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}
.fg-section-title .title{
    flex: none;
    margin: 0;
    position: relative;
    font-weight: bold;
    font-size: 2em;
    text-transform: uppercase;
}
.fg-section-title .title:after{
    position: absolute;
    top: 15%;
    right: -20px;
    content: '';
    width: 5px;
    height: 70%;
    background: var(--color-background-two);
    border-radius: 5px;
}

.fg-section-title .title-desc{
    flex-basis: 100%;
    padding: 0 20px;
    margin: 0;
}
/*
	HEADER
*/
.fg-header{
	top: 50px !important;
	border: none !important;
	box-shadow: none !important;
}
.fg-header .container{
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.fg-header .container .navigation-menu{
	justify-content: flex-end !important;
}
.fg-header .container .navigation-menu li{
    margin: 0 !important;
}
.fg-header .container .navigation-menu li a{
	color: var(--color-text-two) !important;
}
.fg-header .navigation-menu>li.active>a, .fg-header .navigation-menu>li:hover>a {
    color: var(--color-text-three) !important;
}

/*
	SLIDES
*/
/*
    CAROUSEL
*/
.carousel {
    overflow: hidden;
    background: var(--color-background-one);
    border-radius: 0 0 25px 25px;
    height: 738px;
    max-height: 738px;
    position: relative;
    box-shadow: 0px 0px 10px rgba(0,0,0, 0.15);
}
.carousel .item-slide{
    position: relative;
    height: auto;
}


.carousel .item-slide .link-slide{
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1010;
}

.carousel .item-slide img{
    min-height: 738px;
    object-fit: cover;
}

.carousel .backdrop-slide{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.2);
    z-index: 99;
}

.carousel .item-slide .container-header{
    position: absolute;
    display: flex;
    width: 100%;
    height: 738px;
    top: 0;
    left: 0;
    z-index: 999;
}
.carousel .item-slide .container-header .container-header-info{
   display: flex;
   align-items: flex-end;
   padding: 110px 20px;
}
.carousel .item-slide .container-header .container-header-info .infos{
    max-width: 600px;
}
.carousel .item-slide .container-header .container-header-info h2{
    font-size: 3em;
    color: var(--color-text-one) !important;
    line-height: 45px;
}
.carousel .item-slide .container-header .container-header-info p{
    color: #eeeeee !important;
    font-size: 0.9em;
}

.carousel:hover .owl-theme .owl-nav .owl-prev {
    left: 0;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.carousel:hover .owl-theme .owl-nav .owl-next {
    right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.carousel .owl-theme .owl-nav {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -30px;
}

.carousel .owl-theme .owl-nav .owl-prev,
.carousel .owl-theme .owl-nav .owl-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    position: absolute;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 0;
    transition: background-color 0.2s ease-in-out;
}

.carousel .owl-theme .owl-nav .owl-prev {
    left: -60px;
    transition: left 0.2s ease-in-out;
}

.carousel .owl-theme .owl-nav .owl-next {
    right: -60px;
    transition: right 0.2s ease-in-out;
}

.carousel .owl-theme .owl-nav .owl-prev:hover,
.carousel .owl-theme .owl-nav .owl-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel .owl-theme .owl-nav .owl-prev i,
.carousel .owl-theme .owl-nav .owl-next i {
    font-size: 3em;
}

.carousel .owl-theme .owl-dots {
    position: absolute;
    bottom: 25px;
    right: 25px;
}

.carousel .owl-theme .owl-dots .owl-dot span {
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

/*
	PESQUISA DE PERITOS
*/
.fg-peritos-busca {
    position: relative;
    margin-top: -50px;
    z-index: 999;
}
.fg-peritos-busca form {}
.fg-peritos-busca form input{
    padding: 35px 30px;
}
.fg-peritos-busca form .btn.btn-pills {
    font-size: 1.3em;
    padding: 8px 30px;
}
.fg-peritos-busca form .btn i{
    font-size: 1.5em;
}

/* ----- Cards de Peritos ----- */
.perito-card {
    position: relative;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(11, 58, 91, 0.08);
    border: 1px solid rgba(11, 58, 91, 0.06) !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.perito-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(11, 58, 91, 0.18);
}

/* Banner navy no topo */
.perito-card-banner {
    position: relative;
    height: 110px;
    background: linear-gradient(135deg, #0B3A5B 0%, #10527F 100%);
}
.perito-card-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 18% 30%, rgba(243, 186, 34, 0.18) 0, transparent 42%),
                      radial-gradient(circle at 85% 65%, rgba(255, 255, 255, 0.10) 0, transparent 40%);
}
.perito-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F3BA22, #F8D06A);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
    z-index: 3;
}
.perito-card:hover::before {
    transform: scaleX(1);
}

/* Área de ação: alterna selo <-> botão no hover */
.perito-card-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
}
.perito-card-action > * {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Selo "Perito Judicial" (estado padrão) */
.perito-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0B3A5B;
    background: rgba(243, 186, 34, 0.16);
    border: 1px solid rgba(243, 186, 34, 0.45);
    border-radius: 30px;
}
.perito-card-badge i {
    font-size: 0.78rem;
}
/* Selo: visível por padrão, aparece DEPOIS do botão sumir (delay ao sair do hover) */
.perito-card-badge {
    transition-delay: 0.25s;
}
.perito-card:hover .perito-card-badge {
    opacity: 0;
    transform: translateY(-8px);
    transition-delay: 0s;
}

/* Avatar sobreposto ao banner */
.perito-card-avatar {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.perito-card-avatar img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px #F3BA22, 0 8px 20px rgba(11, 58, 91, 0.20);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.perito-card:hover .perito-card-avatar img {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px #F8D06A, 0 12px 26px rgba(11, 58, 91, 0.30);
}

/* Corpo do card */
.perito-card-body {
    padding: 60px 24px 28px;
}
.perito-card-name {
    margin: 0 0 4px;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}
.perito-card-name a {
    color: #0B3A5B;
    transition: color 0.3s ease;
}
.perito-card-name a:hover {
    color: #0B7FCA;
}
.perito-card-role {
    display: block;
    font-size: 0.85rem;
    color: #6c7a89;
    font-weight: 500;
    min-height: 1.2em;
}
.perito-card-divider {
    width: 46px;
    height: 3px;
    margin: 16px auto 20px;
    border-radius: 3px;
    background: linear-gradient(90deg, #F3BA22, #F8D06A);
}

/* Botão "Ver perfil" (estado hover) */
.perito-card-btn {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 9px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0B3A5B 0%, #10527F 100%);
    border: none;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(11, 58, 91, 0.28);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
/* Botão: escondido por padrão, aparece DEPOIS do selo sumir (delay ao entrar no hover) */
.perito-card:hover .perito-card-btn {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.25s;
}
.perito-card-btn:hover {
    background: linear-gradient(135deg, #F3BA22 0%, #F8D06A 100%);
    color: #0B3A5B;
    box-shadow: 0 10px 22px rgba(243, 186, 34, 0.45);
}
.perito-card-btn i {
    transition: transform 0.3s ease;
}
.perito-card-btn:hover i {
    transform: translateX(3px);
}


.card-chamada .card .card-body img{
    height: 200px;
}

.card-chamada .card .card-body{
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*FOOTER*/

.footer-apjep .logo-footer img{
    filter: contrast(0) brightness(10);
}


/*AVISOS*/

.modal.close-btn .modal-dialog .modal-content button.btn-close{
    background: transparent var(--bs-btn-close-bg) center/1em auto no-repeat !important;
}


/* RESPONSIVO */

@media (max-width: 991px) {
    .fg-header {
        top: 0 !important;
    }
    .carousel .item-slide .container-header .container-header-info h2{
        font-size: 2em;
        line-height: 35px;
    }
    .carousel .item-slide .container-header .container-header-info p{
        font-size: 0.7em;
    }

}

@media (max-width: 767px) {

    .container-mt-160{
        margin-top: -160px;
    }

}

@media (max-width: 480px){
    .fg-section-title{
        flex-direction: column;
        align-items: start;
    }
    .fg-section-title .title:after{
        display: none;
    }
}