/* ===================================
   RESET
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ===================================
   BODY
=================================== */

body{
    background:#eef3f8;
    color:#1e293b;
    font-family:'Inter',sans-serif;
}

/* ===================================
   TOPBAR
=================================== */

#topbar{

    background:#0f172a;
    color:white;

    font-size:13px;
}

.topbar-container{

    max-width:1400px;

    margin:0 auto;

    padding:10px 30px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.topbar-left,
.topbar-right{

    display:flex;
    align-items:center;
    gap:12px;
}

.topbar-left a{

    color:white;

    text-decoration:none;

    opacity:.92;

    transition:.2s;
}

.topbar-left a:hover{
    opacity:1;
}

/* ===================================
   BOTÕES ACESSIBILIDADE
=================================== */

.topbar-icons a,
.topbar-icons button{

    width:34px;
    height:34px;

    border:none;

    border-radius:10px;

    background:rgba(255,255,255,.08);

    color:white;

    cursor:pointer;

    transition:.2s;
}

.topbar-icons a:hover,
.topbar-icons button:hover{

    background:rgba(255,255,255,.18);

    transform:translateY(-1px);
}

/* ===================================
   HEADER
=================================== */

#topo{

    background:white;

    box-shadow:0 2px 20px rgba(0,0,0,.06);
}

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

.header-container{

    max-width:1400px;

    margin:0 auto;

    padding:6px 8px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

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

#portal-logo img{
    height:110px;
    width: auto;
    max-width: 100%;
}

@media(max-width:768px){

    #portal-logo img{
        height:64px;
    }
}

/* ===================================
   SEARCH
=================================== */

#portal-searchbox{

    position:relative;

    width:340px;
}

#portal-searchbox input{

    width:100%;

    height:48px;

    border:none;

    outline:none;

    background:#f1f5f9;

    border-radius:14px;

    padding:0 56px 0 18px;

    font-size:14px;
}

#portal-searchbox input:focus{

    box-shadow:
    0 0 0 4px rgba(37,99,235,.12);
}

#portal-searchbox button{

    position:absolute;

    right:6px;
    top:6px;

    width:36px;
    height:36px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

    display:flex;

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

    cursor:pointer;

    transition:.2s;
}

#portal-searchbox button:hover{

    background:#1d4ed8;
}

/* ===================================
   MENU
=================================== */

#main-navigation{

    background:#1e3a8a;
}

#main-navigation ul{

    max-width:1400px;

    margin:0 auto;

    display:flex;

    list-style:none;
}

#main-navigation a{

    display:block;

    padding:18px 24px;

    color:white;

    text-decoration:none;

    font-weight:600;

    transition:.2s;
}

#main-navigation a:hover{

    background:#2563eb;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f4f7fb;
    color:#1f2937;
    font-family:'Inter',sans-serif;
}

/* HEADER */

#topo{
    background:white;
    box-shadow:0 2px 20px rgba(0,0,0,.06);
}

.header-right{
    display:flex;
    align-items:center;
    gap:18px;
}

.top-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 30px;
}

/* =========================
   SEARCH
========================= */

#portal-searchbox{
    position:relative;
    width:320px;
}

#portal-searchbox input{
    width:100%;
    height:46px;

    border:none;
    outline:none;

    background:#f1f5f9;

    border-radius:14px;

    padding:0 52px 0 18px;

    font-size:14px;

    transition:.2s;
}

#portal-searchbox input:focus{
    background:#e8eef7;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

#portal-searchbox button{
    position:absolute;

    right:6px;
    top:6px;

    width:34px;
    height:34px;

    border:none;

    border-radius:10px;

    background:#2563eb;

    color:white;

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

    cursor:pointer;

    transition:.2s;
}

#portal-searchbox button:hover{
    background:#1d4ed8;
    transform:scale(1.03);
}

/* NAV */

#main-navigation{
    background:#1e3a8a;
}

#main-navigation ul{
    display:flex;
    list-style:none;
}

#main-navigation a{
    display:block;
    padding:18px 24px;
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}

#main-navigation a:hover{
    background:#2563eb;
}

/* BREADCRUMB */

#portal-breadcrumbs{
    padding:20px 30px;
    font-size:14px;
}

/* HERO */

.hero{
    position:relative;
    border-radius:24px;
    overflow:hidden;
    margin-bottom:30px;
}

.hero img{
    width:100%;
    height:350px;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,.1),
        rgba(0,0,0,.6)
    );

    display:flex;
    flex-direction:column;
    justify-content:end;
    padding:40px;
    color:white;
}

.hero-overlay h1{
    font-size:48px;
    margin-bottom:10px;
}

/* CARDS */

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
}

.card{
    background:white;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
    transition:.25s;
}

.card:hover{
    transform:translateY(-5px);
}

.card i{
    font-size:40px;
    color:#2563eb;
    margin-bottom:20px;
}

#main-content{
    background:white;
    border-radius:24px;
    padding:45px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
}

/* PORTLETS */

.portlet{
    background:white;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(0,0,0,.05);
    margin-bottom:24px;
}

.portlet-header{
    background:#1e3a8a;
    color:white;
    padding:18px;
    font-weight:700;
}

.nav-tree{
    list-style:none;
}

.nav-tree a{
    display:block;
    padding:16px 18px;
    text-decoration:none;
    color:#334155;
    border-bottom:1px solid #e2e8f0;
    transition:.2s;
}

.nav-tree a:hover{
    background:#eff6ff;
    color:#2563eb;
    padding-left:24px;
}

/* FOOTER */

footer{
    margin-top:50px;
    background:#0f172a;
    color:white;
    padding:40px;
}

body{
    background:#eef3f8;
}

#main{
    position:relative;
    z-index:2;
}

/* ===================================
   ALTO CONTRASTE
=================================== */

body.high-contrast{

    background:#000 !important;
    color:#fff !important;
}

/* textos */

body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast span,
body.high-contrast li,
body.high-contrast div{

    color:#fff !important;
}

/* links */

body.high-contrast a{

    color:#ffff00 !important;
}

/* header */

body.high-contrast #topo,
body.high-contrast .portlet,
body.high-contrast #main-content,
body.high-contrast footer{

    background:#000 !important;

    color:#fff !important;

    border-color:#fff !important;
}

/* menu */

body.high-contrast #main-navigation{

    background:#000 !important;
}

body.high-contrast #main-navigation a{

    color:#ffff00 !important;
}

/* search */

body.high-contrast #portal-searchbox input{

    background:#111 !important;

    color:#fff !important;

    border:1px solid #fff !important;
}

/* cards */

body.high-contrast .card{

    background:#000 !important;

    border:1px solid #fff !important;
}
/* ===================================
   ACTIONS HEADER
=================================== */

.header-actions{

    display:flex;

    align-items:center;

    gap:16px;
}

/* ===================================
   LOGIN BUTTON
=================================== */

.login-button{

    height:48px;

    padding:0 18px;

    border-radius:14px;

    background:#1e3a8a;

    color:white;

    text-decoration:none;

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:600;

    transition:.2s;
}

.login-button:hover{

    background:#2563eb;

    transform:translateY(-1px);
}

.login-button i{

    font-size:14px;
}
/* ===================================
   MENU MODERNO
=================================== */

.menu-root{

    display:flex;

    align-items:center;

    list-style:none;

    margin:0;

    padding:0;
}

/* ITENS */

.menu-root > li{

    position:relative;
}

/* LINKS */

.menu-root > li > a,
.submenu-toggle{

    height:60px;

    padding:0 24px;

    border:none;

    background:none;

    color:#fff;

    display:flex;

    align-items:center;

    gap:10px;

    cursor:pointer;

    font-weight:600;

    font-size:14px;

    transition:.2s;
}

.menu-root > li > a{

    text-decoration:none;
}

/* HOVER */

.menu-root > li:hover > a,
.menu-root > li:hover > .submenu-toggle{

    background:rgba(255,255,255,.08);
}

/* TRANSPARÊNCIA */

.transparencia{

    margin-left:auto;
}

.transparencia .submenu-toggle{

    background:#0f766e;
}

/* SUBMENU */

.submenu-panel{

    position:absolute;

    top:100%;
    left:0;

    min-width:320px;

    background:#fff;

    padding:28px;

    border-radius:0 0 16px 16px;

    box-shadow:0 18px 40px rgba(0,0,0,.12);

    display:none;

    z-index:9999;
}

/* ABERTO */

.has-submenu.active .submenu-panel{

    display:block;
}

/* COLUNAS */

.submenu-column h3{

    color:#21719b;

    margin-bottom:18px;
}

.submenu-column a{

    display:block;

    margin-bottom:12px;

    text-decoration:none;

    color:#334155;
}

.submenu-column a:hover{

    color:#21719b;
}

/* MOBILE */

@media(max-width:900px){

    .menu-root{

        flex-direction:column;

        width:100%;
    }

    .menu-root > li{

        width:100%;
    }

    .menu-root > li > a,
    .submenu-toggle{

        width:100%;

        justify-content:space-between;

        border-top:
        1px solid rgba(255,255,255,.08);
    }

    .submenu-panel{

        position:static;

        width:100%;

        border-radius:0;

        box-shadow:none;

        padding:20px;

        background:#f8fafc;
    }

    .transparencia{

        margin-left:0;
    }

}
