:root {
    /* Identidade Visual - Estilo UOL Moderno */
    --color-primary: #0a3569;
    --color-accent: #c99e03;
    --color-highlight: #c4170c;
    
    --color-bg: #ffffff;
    --color-bg-soft: #f4f4f4;
    
    --color-text-main: #111827;
    --color-text-light: #6b7280;
    
    --font-headline: 'Inter', sans-serif;
    --font-body: 'Merriweather', serif;

    --container-width: 1200px;
    --radius-md: 6px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
}

/* ==========================================
   RESET BÁSICO
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: var(--font-headline); 
    background: var(--color-bg); 
    color: var(--color-text-main); 
    line-height: 1.5; 
    overflow-x: hidden; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.2s; 
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* ==========================================
   UTILITÁRIOS
   ========================================== */
.container { 
    max-width: var(--container-width); 
    margin: 0 auto; 
    padding: 0 1rem; 
}

.hidden { 
    display: none !important; 
}

.flex { 
    display: flex; 
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.text-center { 
    text-align: center; 
}

.w-full { 
    width: 100%; 
}

.mt-4 { 
    margin-top: 1rem; 
}

.mb-4 { 
    margin-bottom: 1rem; 
}

.p-4 {
    padding: 1rem;
}

.rounded {
    border-radius: 6px;
}

.text-gray-500 { 
    color: var(--color-text-light); 
}

.text-sm {
    font-size: 0.875rem;
}

.font-bold { 
    font-weight: 700; 
}

.bg-gray-50 {
    background: #f9fafb;
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   1. HEADER & TOPO
   ========================================== */
.breaking-news-bar {
    background: var(--color-highlight);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 0;
}

.breaking-container { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

.breaking-label { 
    font-weight: 800; 
    text-transform: uppercase; 
    background: rgba(0,0,0,0.2); 
    padding: 2px 8px; 
    border-radius: 4px; 
}

.breaking-ticker {
    flex: 1;
    overflow: hidden;
}

.uol-top-bar { 
    background: #ffffff; 
    color: #000000; 
    font-size: 0.75rem; 
    padding: 8px 0; 
    text-transform: uppercase; 
    font-weight: bold; 
}

.uol-top-bar a { 
    margin-right: 15px; 
    transition: color 0.2s;
}

.uol-top-bar a:hover { 
    color: white; 
}

.main-header { 
    padding: 1.5rem 0; 
    border-bottom: 1px solid #e5e7eb; 
    background: white;
    position: sticky;
    top: 0;
    z-index: 99;
    transition: box-shadow 0.3s;
}

.header-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 2rem; 
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.logo-area:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-text h1 { 
    line-height: 1; 
    font-size: 1.8rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
    color: var(--color-primary);
}

.logo-text span { 
    font-size: 0.8rem; 
    color: var(--color-text-light); 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    display: block;
}

.header-widgets { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    font-size: 0.85rem; 
    color: #555; 
}

.widget-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-widget i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.divider-vertical { 
    width: 1px; 
    height: 30px; 
    background: #ddd; 
}

.green-arrow { 
    color: #16a34a; 
    font-weight: bold; 
}

.search-wrapper { 
    position: relative; 
    max-width: 300px; 
    width: 100%; 
}

.search-input { 
    width: 100%; 
    padding: 0.6rem 1rem; 
    padding-right: 2.5rem; 
    border: 1px solid #ddd; 
    border-radius: 50px; 
    background: var(--color-bg-soft);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-icon { 
    position: absolute; 
    right: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    background: none; 
    border: none; 
    color: #777; 
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.search-icon:hover {
    color: var(--color-accent);
}

/* ==========================================
   2. NAVEGAÇÃO
   ========================================== */
.nav-bar { 
    background: var(--color-primary); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: var(--shadow-md); 
}

.nav-list { 
    display: flex; 
    overflow-x: auto; 
    gap: 0.5rem; 
    padding: 0.5rem 0; 
    scrollbar-width: none; 
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link { 
    color: #d1d5db; 
    padding: 0.75rem 1rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    white-space: nowrap;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover, 
.nav-link.active { 
    color: var(--color-accent); 
    background: rgba(255,255,255,0.1);
}

/* ==========================================
   3. SEÇÕES DA HOME
   ========================================== */
.section-header { 
    margin: 2rem 0 1rem; 
    border-left: 5px solid var(--color-accent); 
    padding-left: 1rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.section-title { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--color-primary); 
}

.mosaic-wrapper { 
    margin-bottom: 3rem; 
}

/* ==========================================
   4. GRID DE NOTÍCIAS
   ========================================== */
.feed-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2rem;
    margin-bottom: 3rem;
}

.feed-card { 
    cursor: pointer; 
    transition: transform 0.2s;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feed-card:hover { 
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feed-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.feed-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.3s;
}

.feed-card:hover .feed-image img {
    transform: scale(1.05);
}

.feed-content {
    padding: 1rem;
}

.feed-category { 
    color: var(--color-highlight); 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.feed-title { 
    font-size: 1.1rem; 
    font-weight: 700; 
    line-height: 1.3; 
    margin: 5px 0;
    color: var(--color-text-main);
}

.feed-meta { 
    font-size: 0.75rem; 
    color: #888;
    margin-top: 0.5rem;
}

/* ==========================================
   5. PÁGINA DE DETALHES DO ARTIGO
   ========================================== */

/* AQUI É O AJUSTE PRINCIPAL */
.article-container { 
    max-width: 1200px; /* antes: 800px */
    margin: 0 auto; 
    background: white; 
    padding: 1.5rem 2rem; /* menos altura, mais horizontal */
    border-radius: 8px; 
    box-shadow: var(--shadow-sm); 
}

.article-header {
    margin-bottom: 1.5rem; /* antes 2rem */
}

.article-category-badge {
    display: inline-block;
    background: var(--color-highlight);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem; /* menor */
}

.article-title { 
    font-size: 2.4rem; 
    font-weight: 900; 
    line-height: 1.2; 
    margin-bottom: 0.75rem; 
    color: #111; 
}

.article-lead {
    font-size: 1.25rem;
    color: #555;
    line-height: 1.5; /* menor */
    margin-bottom: 1rem;
}

.article-meta { 
    display: flex; 
    gap: 1.5rem; 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 1.5rem;
    padding-bottom: 1rem; 
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--color-accent);
}

.article-figure {
    margin: 1.5rem 0;
}

.article-image { 
    width: 100%; 
    height: auto;
    max-height: 450px; /* ligeiramente menor para reduzir vertical */
    object-fit: cover;
    border-radius: 8px;
}

.article-caption {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body { 
    font-family: var(--font-body); 
    font-size: 1.125rem; 
    line-height: 1.7; /* menos vertical */
    color: #333; 
}

.article-body p { 
    margin-bottom: 1.25rem; /* menos espaço entre parágrafos */
}

.article-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
}

.share-section {
    text-align: center;
}

.share-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-whatsapp {
    background: #25d366;
    color: white;
}

.share-facebook {
    background: #1877f2;
    color: white;
}

share-twitter {
    background: #1da1f2;
    color: white;
}

/* ==========================================
   6. ÁREA ADMINISTRATIVA
   ========================================== */
.admin-layout { 
    background: #f3f4f6; 
    min-height: 100vh; 
}

.login-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    background: linear-gradient(135deg, var(--color-primary), #1e40af); 
}

.login-box { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 12px; 
    width: 100%; 
    max-width: 400px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2); 
}

.login-box h2 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.admin-header { 
    background: white; 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--shadow-sm); 
}

.admin-content { 
    max-width: 1000px; 
    margin: 2rem auto; 
    padding: 0 1rem; 
}

.admin-panel-box { 
    background: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    box-shadow: var(--shadow-sm); 
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: var(--color-primary);
}

.admin-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    animation: fadeIn 0.3s ease-in;
}

.admin-news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.admin-news-item:hover {
    box-shadow: var(--shadow-sm);
}

.admin-news-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.admin-news-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-news-details {
    flex: 1;
}

.admin-news-details strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.admin-news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.admin-news-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-banner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.admin-banner-thumb {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.admin-banner-info {
    flex: 1;
}

.admin-banner-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e5e7eb;
    color: #374151;
}

.badge-Política {
    background: #dbeafe;
    color: #1e40af;
}

.badge-Esporte {
    background: #dcfce7;
    color: #166534;
}

.badge-Policial {
    background: #fee2e2;
    color: #991b1b;
}

.badge-Economia {
    background: #fef3c7;
    color: #92400e;
}

.badge-Cultura {
    background: #e9d5ff;
    color: #6b21a8;
}

/* ==========================================
   7. FORMULÁRIOS
   ========================================== */
.form-group { 
    margin-bottom: 1rem; 
    text-align: left; 
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.form-control { 
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #d1d5db; 
    border-radius: 6px; 
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem; 
}

/* ==========================================
   8. BOTÕES
   ========================================== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 0.6rem 1.2rem; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    border: none; 
    transition: all 0.2s; 
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary { 
    background: var(--color-primary); 
    color: white; 
}

.btn-primary:hover:not(:disabled) { 
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-secondary { 
    background: var(--color-accent); 
    color: black; 
}

.btn-secondary:hover:not(:disabled) {
    background: #b88c03;
}

.btn-outline { 
    border: 1px solid #d1d5db; 
    background: transparent;
    color: var(--color-text-main);
}

.btn-outline:hover:not(:disabled) {
    background: #f9fafb;
}

.btn-danger { 
    background: var(--color-highlight); 
    color: white; 
}

.btn-danger:hover:not(:disabled) {
    background: #b91c1c;
}

.btn-sm { 
    padding: 0.4rem 0.8rem; 
    font-size: 0.85rem; 
}

/* ==========================================
   9. BANNERS/PUBLICIDADE
   ========================================== */
.ad-container { 
    margin: 2rem 0; 
    text-align: center; 
    background: #fafafa; 
    border: 1px dashed #ddd; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    min-height: 100px;
    padding: 1rem;
}

.ad-container.has-content { 
    border: none; 
    background: transparent;
    padding: 0;
}

.ad-container img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.ad-label { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    color: #999; 
    display: block; 
    margin-bottom: 5px; 
}

/* ==========================================
   10. ESTADOS (LOADING, EMPTY, ERROR)
   ========================================== */
.loader-container { 
    padding: 3rem; 
    text-align: center; 
    color: #888; 
}

.spinner-modern { 
    width: 40px; 
    height: 40px; 
    border: 4px solid #eee; 
    border-top-color: var(--color-accent); 
    border-radius: 50%; 
    animation: spin 0.8s linear infinite; 
    margin: 0 auto 1rem; 
}

@keyframes spin { 
    to { transform: rotate(360deg); } 
}

.loading-text {
    color: #888;
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.empty-state h3 {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.error-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #ef4444;
}

.error-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-state h3 {
    margin-bottom: 0.5rem;
}

/* ==========================================
   11. TOASTS/NOTIFICAÇÕES
   ========================================== */
#toast-container { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 9999; 
}

.toast { 
    background: white; 
    padding: 1rem 1.5rem; 
    border-radius: 8px; 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); 
    margin-bottom: 10px; 
    border-left: 5px solid var(--color-primary); 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 600;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.toast.show {
    animation: slideIn 0.3s ease;
}

.toast.toast-error { 
    border-left-color: var(--color-highlight); 
}

.toast.toast-success { 
    border-left-color: #10b981; 
}

@keyframes slideIn { 
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    } 
    to { 
        transform: translateX(0); 
        opacity: 1; 
    } 
}

/* ==========================================
   12. BOTÃO VOLTAR AO TOPO
   ========================================== */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: black;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 999;
}

#backToTop:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* ==========================================
   13. RODAPÉ
   ========================================== */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--color-accent);
    color: black;
    transform: translateY(-3px);
}

/* ==========================================
   14. RESPONSIVIDADE
   ========================================== */
@media (max-width: 768px) {
    .header-widgets { 
        display: none; 
    }
    
    .header-wrapper { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 1rem; 
    }
    
    .search-wrapper { 
        max-width: 100%; 
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-grid { 
        grid-template-columns: 1fr; 
    }
    
    .feed-grid { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feed-card { 
        display: flex; 
        gap: 1rem; 
        align-items: flex-start;
    }
    
    .feed-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .article-title { 
        font-size: 1.8rem; 
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
    
    #toast-container {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .toast {
        min-width: auto;
    }
    
    #backToTop {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .admin-news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-news-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.7rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-container {
        padding: 1rem;
    }
    
    .section-header {
        margin: 1rem 0 0.5rem;
    }
}

/* ==========================================
   15. OTIMIZAÇÕES DE IMAGEM
   ========================================== */
.main-highlight img,
.feed-image img,
.article-image,
.admin-news-info img,
.admin-banner-thumb {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
}

/* ==========================================
   16. IMPRESSÃO
   ========================================== */
@media print {
    .breaking-news-bar,
    .uol-top-bar,
    .main-header,
    .nav-bar,
    .share-section,
    .site-footer,
    #backToTop,
    .ad-container {
        display: none !important;
    }
    
    .article-container {
        box-shadow: none;
        max-width: 100%;
    }
    
    body {
        background: white;
    }
}

/* --- IMAGEM QUADRADA À ESQUERDA --- */
.article-body .figure-float-left {
    float: left;
    width: 280px;           /* Largura fixa */
    height: 280px;          /* Altura fixa → quadrado */
    margin: 0 30px 20px 0;
    border-radius: 12px;
    overflow: hidden;       /* Garante a forma quadrada */
    flex-shrink: 0;
}

.article-body .figure-float-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Mantém a imagem bem enquadrada */
    border-radius: 12px;
}

/* Mobile: imagem ocupa largura total e remove o float */
@media (max-width: 768px) {
    .article-body .figure-float-left {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 20px 0;
    }

    .article-body .figure-float-left img {
        height: auto;
        object-fit: contain;
    }
}

/* Estilo base do Header */
#mainHeader {
    width: 100%;
    background-color: #fff; /* Garante que tenha fundo branco sempre */
    position: sticky;       /* Faz o header ficar fixo de forma moderna */
    top: 0;
    z-index: 1000;          /* Garante que fique acima de tudo */
    transition: all 0.3s ease; /* Animação suave */
}

/* Quando a página rolar (classe adicionada pelo JS) */
.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1); /* Sombra suave */
    padding-top: 5px;    /* Opcional: diminui um pouco o tamanho ao rolar */
    padding-bottom: 5px; /* Opcional: diminui um pouco o tamanho ao rolar */
}

/* Correção para o botão voltar ao topo */
#backToTop {
    display: none; /* Começa oculto */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    /* Outros estilos do seu botão aqui... */
}

.trend-up {
    color: #00c851; /* Verde */
    font-weight: bold;
}

.trend-down {
    color: #ff4444; /* Vermelho */
    font-weight: bold;
}

.ticker-item {
    font-family: monospace; /* Fica legal para números */
    font-size: 0.9rem;
}