/* Estilos Gerais */
:root {
    --brand-500: #16a34a;
    --brand-600: #15803d;
    --brand-700: #166534;
    --brand-050: #f0fdf4;
    --text-900: #0f172a;
    --text-600: #475569;
    --border-200: #e2e8f0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-900);
    line-height: 1.6;
    background: #fff;
}

/* Cabeçalho */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-navbar {
    border-color: var(--border-200) !important;
}

.site-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-200);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.12);
}

.site-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: center;
}

.site-brand-title {
    font-size: 2.5rem;
    letter-spacing: 0.2px;
    color: var(--text-900);
}

.site-brand-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-600);
}

.site-header-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-brand-stack {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.site-nav-toggle-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-sticky-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1020;
    background: #fff;
}

.site-nav-collapse {
    width: 100%;
    padding-top: 0.5rem;
    margin-top: 0.15rem;
}

.site-nav-links {
    width: 100%;
    justify-content: center;
    gap: 0.25rem;
}

.site-nav-actions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

.site-nav-actions .btn {
    font-size: 0.9rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .site-header-stack {
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .site-nav-collapse {
        padding-top: 0.5rem;
        margin-top: 0;
    }

    .site-nav-actions {
        margin-top: 0;
        margin-left: 1rem;
        width: auto;
    }
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    color: var(--text-900);
    border-radius: 999px;
}

.navbar-nav .nav-link:hover {
    color: var(--brand-700) !important;
    background: var(--brand-050);
}

.navbar-nav .nav-link.active {
    color: var(--brand-700) !important;
    background: rgba(22, 101, 52, 0.12);
    font-weight: 600;
}

/* Destaques */
.destaque {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: transform 0.3s ease;
}

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

.destaque-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.destaque-conteudo {
    padding: 1.5rem;
    background: #fff;
}

.destaque-titulo {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.destaque-texto {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cards de Notícias */
.card-noticia {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
    height: 100%;
}

.card-noticia:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.card-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botões */
.btn-primary {
    background-color: var(--brand-600);
    border: none;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--brand-700);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--brand-600);
    color: var(--brand-700);
}

.btn-outline-primary:hover {
    background-color: var(--brand-600);
    color: #fff;
}

/* Formulários */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: rgba(21, 128, 61, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(21, 128, 61, 0.18);
}

/* Rodapé */
footer {
    background-color: #0b1220;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer .bi {
    margin-right: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .site-logo {
        width: 76px;
        height: 76px;
    }

    .site-brand-title {
        font-size: 0.95rem;
    }
    
    .site-brand-subtitle {
        display: none;
    }
    
    .destaque-img {
        height: 160px;
    }
    
    .card-img-top {
        height: 160px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Utilitários */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.mb-6 {
    margin-bottom: 4rem !important;
}
