body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: #eef2f5;
    color: #222;
}

.public-header {
    background: linear-gradient(135deg, #003b73, #005ca8);
    color: #fff;
    padding: 35px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.20);
}

.header-container {
    width: 1100px;
    max-width: 95%;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-faibi {
    width: 200px;
    height: auto;
    flex-shrink: 0;
}

.public-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.public-header h2 {
    margin: 8px 0;
    font-size: 20px;
    font-weight: 400;
}

.slogan {
    margin-top: 10px;
    opacity: .90;
    font-style: italic;
}

.public-nav {
    background: #002b55;
    padding: 14px;
    text-align: center;
}

.public-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 18px;
    font-weight: 600;
    transition: .25s;
}

.public-nav a:hover {
    color: #b7ff4c;
}

.public-container {
    max-width: 1100px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.search-box {
    background: #f4f8fb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #d8e3ec;
}

.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 14px;
    align-items: end;
}

input,
select {
    padding: 11px;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #bfcbd6;
    border-radius: 4px;
    font-size: 15px;
}

button,
.btn {
    height: 42px;
    min-width: 130px;
    background: #003b73;
    color: #fff !important;
    padding: 0 16px;
    border-radius: 4px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: .25s;
    box-sizing: border-box;
}

button:hover,
.btn:hover {
    background: #005ca8;
}

.btn-secundario {
    background: #6c757d;
}

.btn-secundario:hover {
    background: #5c636a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.stat-card {
    background: #f4f8fb;
    border-left: 5px solid #003b73;
    padding: 18px;
    border-radius: 6px;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    color: #003b73;
}

.trabalho-public-card {
    border: 1px solid #d8e3ec;
    border-left: 6px solid #003b73;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 22px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.trabalho-public-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #003b73;
    font-size: 23px;
}

.meta {
    color: #555;
    font-weight: 700;
}

.trabalho-public-card p {
    line-height: 1.5;
}

.public-footer {
    margin-top: 40px;
    padding: 24px;
    text-align: center;
    background: #e9ecef;
    color: #444;
}

@media (max-width: 800px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .search-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .public-header h1 {
        font-size: 26px;
    }
}

.tags{

    margin-top:15px;

}

.tag{

    display:inline-block;

    background:#e8f2fc;

    color:#003b73;

    padding:6px 12px;

    border-radius:20px;

    margin:4px;

    font-size:13px;

    font-weight:600;

}

.card-footer{

    margin-top:20px;

    display:flex;

    justify-content:flex-end;

}

.detalhe-layout {
    display: grid;
    grid-template-columns: 2fr 320px;
    gap: 30px;
    align-items: start;
}

.detalhe-principal {
    background: #fff;
}

.titulo-trabalho {
    font-size: 30px;
    color: #003b73;
    margin-bottom: 10px;
}

.detalhe-principal h3 {
    color: #003b73;
    margin-bottom: 8px;
}

.detalhe-principal p {
    line-height: 1.6;
}

.detalhe-lateral {
    background: #f4f8fb;
    border: 1px solid #d8e3ec;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.btn-download {
    background: #198754;
    width: 100%;
    margin-bottom: 16px;
}

.btn-download:hover {
    background: #157347;
}

.info-box {
    background: #fff;
    border-left: 4px solid #003b73;
    padding: 14px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.info-box strong {
    display: block;
    color: #003b73;
    margin-bottom: 5px;
}

.referencia-abnt {
    background: #f4f8fb;
    border-left: 5px solid #7cc242;
    padding: 16px;
    border-radius: 6px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .detalhe-layout {
        grid-template-columns: 1fr;
    }

    .detalhe-lateral {
        position: static;
    }
}

.referencia-abnt{
    background:#f8f9fa;
    border-left:4px solid #003366;
    padding:18px;
    margin-top:15px;
    line-height:1.8;
    text-align:justify;
    font-size:15px;
}

.referencia-abnt strong{
    font-weight:700;
}

.resumo {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    margin: 10px 0 0 0;
    padding: 0;
    text-indent: 0;
}
