/*
Theme Name: gnews Portal
Author: Desenvolvedor
Description: Portal editorial responsivo com manchetes, grade de notícias, widgets e blocos de editorias.
Version: 28.59
*/

:root {
    --gnews-primary: #002452; 
    --gnews-primary-hover: #001838; 
    --gnews-secondary: #0056b3; 
    --gnews-accent: #ffc107; 
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.12);
    --radius-card: 12px;
    --radius-img: 8px;
    --radius-pill: 30px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f7f9fc;
    color: #333;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header & Menu Sanduíche */
.site-header { 
    background: #fff; 
    box-shadow: var(--shadow-sm); 
    position: relative; 
    z-index: 1000; 
}
.top-bar { 
    background: linear-gradient(135deg, var(--gnews-primary) 0%, var(--gnews-primary-hover) 100%);
    padding: 15px 0; 
    box-shadow: 0 4px 12px rgba(0,36,82,0.2);
}
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; position: relative; min-height: 38px; }

.header-left { display: flex; align-items: center; }

.menu-toggle-btn {
    background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
    margin-right: 7px; padding: 0; display: flex; align-items: center;
    transition: var(--transition-smooth);
}
.menu-toggle-btn:hover { transform: scale(1.05); }

.menu-toggle-label {
    color: #fff; font-size: 15px; font-weight: 600; line-height: 1;
}

.logo-category {
    color: #fff; font-size: 18px; font-weight: 300; text-decoration: none;
    margin-left: 14px; letter-spacing: -0.5px; text-transform: lowercase;
}

.logo {
    color: #fff; font-size: 32px; font-weight: bold; text-decoration: none; letter-spacing: -1px;
}

.logo-wrapper {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 6px;
}

/* Sidebar Menu (Sanduíche Aberto) */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,36,82,0.4); backdrop-filter: blur(3px); z-index: 9998;
    display: none; opacity: 0; transition: opacity 0.3s;
}
.sidebar-overlay.active { display: block; opacity: 1; }

.sidebar-menu {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100%;
    background: #fff; z-index: 9999; box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); overflow-y: auto;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
}
.sidebar-menu.active { left: 0; }

.sidebar-header {
    background: linear-gradient(135deg, var(--gnews-primary) 0%, var(--gnews-primary-hover) 100%);
    padding: 20px; display: flex; justify-content: space-between; align-items: center;
    border-radius: 0 20px 0 0;
}
.sidebar-header .logo { font-size: 24px; }
.sidebar-close-btn { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; transition: transform 0.2s; }
.sidebar-close-btn:hover { transform: rotate(90deg); }

.sidebar-nav ul { list-style: none; padding: 0; margin: 0; }
.sidebar-nav ul li { border-bottom: 1px solid #f0f0f0; }
.sidebar-nav ul li a {
    display: block; padding: 16px 24px; color: #333;
    text-decoration: none; font-weight: 600; font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.sidebar-nav ul li a:hover { background: #f4f7fb; color: var(--gnews-primary); padding-left: 28px; }

.sidebar-nav ul li.has-children > a.highlight-cat {
    background-color: #f4f7fb; color: var(--gnews-primary);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-nav ul li.has-children > a.highlight-cat::after {
    content: '▼'; font-size: 10px; transition: transform 0.3s;
}
.sidebar-nav ul li.has-children.open > a.highlight-cat::after { transform: rotate(180deg); }
.sidebar-submenu { display: none; background-color: #fff; border-top: 1px solid #f0f0f0; }
.sidebar-submenu li { border-bottom: 1px dashed #f5f5f5; }
.sidebar-submenu li:last-child { border-bottom: none; }
.sidebar-submenu li a { padding: 12px 20px 12px 40px; font-size: 14px; font-weight: normal; color: #666; }
.sidebar-submenu li a.ver-tudo { font-weight: bold; color: var(--gnews-primary); }

/* =========================================
   DESTAQUES (HOME E CATEGORIAS)
========================================= */
.destaques-principais { padding: 40px 0 20px 0; border-bottom: 2px solid transparent; margin-bottom: 30px; }
.grid-destaques { display: grid; gap: 20px; }

.noticia-card { 
    position: relative; 
    border-radius: var(--radius-card); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    background: #fff;
    transform: translateZ(0);
}
.noticia-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px) scale(1.005);
}

.link-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5; }

.noticia-com-foto { background: #000; border: none; }
.noticia-com-foto img { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; display: block; opacity: 0.85; 
    transition: opacity 0.4s, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); 
    z-index: 1; 
}
.noticia-com-foto:hover img { 
    opacity: 0.95; 
    transform: scale(1.03); 
}
.noticia-com-foto .noticia-conteudo { 
    position: absolute; bottom: 0; left: 0; right: 0; padding: 50px 25px 25px 25px; 
    background: linear-gradient(to top, rgba(0,15,35,0.95) 0%, rgba(0,15,35,0.6) 60%, rgba(0,0,0,0) 100%); 
    pointer-events: none; z-index: 3; 
}
.noticia-com-foto .noticia-categoria { 
    color: #fff; background-color: var(--gnews-primary); 
    padding: 4px 8px; border-radius: 4px; 
    display: inline-block; font-size: 13px; text-shadow: none; 
    margin-bottom: 10px; font-weight: bold; letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.noticia-com-foto .noticia-titulo { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.6); margin-bottom: 8px; }
.noticia-com-foto .noticia-subtitulo-home { color: #e0e6ed; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

.grid-destaques.layout-1 { grid-template-columns: 1fr; width: 100%; }
.grid-destaques.layout-1 .destaque-1 { min-height: 500px; }
.grid-destaques.layout-1 .destaque-1 .noticia-titulo { font-size: 48px; line-height: 1.1; }
.grid-destaques.layout-1 .destaque-1 .noticia-subtitulo-home { font-size: 22px; }

.grid-destaques.layout-2 { grid-template-columns: repeat(2, 1fr); }
.grid-destaques.layout-2 .noticia-card { min-height: 400px; }
.grid-destaques.layout-2 .noticia-titulo { font-size: 32px; }

.grid-destaques.layout-3 { grid-template-columns: 6fr 4fr; grid-template-rows: repeat(2, 280px); gap: 20px; }
.grid-destaques.layout-3 .destaque-1 { grid-column: 1 / 2; grid-row: 1 / 3; height: 100%; }
.grid-destaques.layout-3 .destaque-1 .noticia-titulo { font-size: 44px; }
.grid-destaques.layout-3 .destaque-2, .grid-destaques.layout-3 .destaque-3 { grid-column: 2 / 3; height: 100%; }
.grid-destaques.layout-3 .destaque-2 { grid-row: 1 / 2; }
.grid-destaques.layout-3 .destaque-3 { grid-row: 2 / 3; }
.grid-destaques.layout-3 .destaque-2 .noticia-titulo, .grid-destaques.layout-3 .destaque-3 .noticia-titulo { font-size: 26px; }

.grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-subtitulo-home,
.grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-subtitulo-home { display: none; }
.grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-conteudo,
.grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-conteudo { padding-bottom: 25px; }

.noticia-sem-foto { background: #fff; border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; justify-content: center; }
.noticia-sem-foto.destaque-1 { min-height: 250px; }
.noticia-sem-foto.destaque-2, .noticia-sem-foto.destaque-3 { min-height: 200px; }
.noticia-sem-foto .noticia-conteudo { padding: 35px; position: static; background: none; }
.noticia-sem-foto .noticia-titulo { color: #111; text-shadow: none; }
.noticia-sem-foto .noticia-subtitulo-home { color: #666; text-shadow: none; display: block !important; }

/* Tipografia e Títulos */
.noticia-categoria { 
    color: var(--gnews-primary); font-weight: 800; font-size: 13.5px; display: inline-block; 
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(0, 36, 82, 0.08); padding: 4px 10px; border-radius: 4px;
}
.noticia-categoria-feed {
    color: var(--gnews-primary); font-weight: 800; font-size: 14.5px; display: inline-block; 
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.noticia-titulo { font-size: 22px; line-height: 1.2; color: #111; margin: 0 0 10px 0; font-weight: 800; letter-spacing: -0.5px; }
.noticia-sem-foto:hover .noticia-titulo { color: var(--gnews-primary); }
.noticia-subtitulo-home, .noticia-resumo { font-size: 16px; color: #555; line-height: 1.5; margin: 0; }

/* Notícias relacionadas configuradas no editor de chamadas. */
.gnews-noticias-relacionadas {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 14px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}
.gnews-noticia-relacionada {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--gnews-primary);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    pointer-events: auto;
}
.gnews-noticia-relacionada:hover { text-decoration: underline; }
.gnews-related-arrow {
    flex: 0 0 22px;
    color: var(--gnews-primary);
    font-size: 25px;
    line-height: .95;
    font-weight: 800;
}
.gnews-related-lembre {
    flex: 0 0 auto;
    color: var(--gnews-primary);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    white-space: nowrap;
}
.noticia-com-foto .noticia-conteudo { z-index: 6; }
.noticia-com-foto .gnews-noticia-relacionada { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.75); }
.noticia-com-foto .gnews-related-arrow { color: #fff; }
.noticia-com-foto .gnews-related-lembre { color: #fff; }
.ultimas-noticias-header { font-size: 26px; border-left: 5px solid var(--gnews-primary); padding-left: 15px; margin-bottom: 30px; color: #111; font-weight: 800; letter-spacing: -0.5px; }
.categoria-titulo-pagina { margin: 40px 0 20px; font-size: 36px; color: var(--gnews-primary); padding-bottom: 15px; border-bottom: 3px solid rgba(0,36,82,0.1); font-weight: 800; }

/* =========================================
   LAYOUT 70/30 (FEED DE NOTÍCIAS + WIDGETS)
========================================= */
.layout-conteudo-principal { display: flex; gap: 40px; margin-top: 10px; }
.coluna-feed { flex: 0 0 68%; max-width: 68%; }
.coluna-widgets { flex: 0 0 32%; max-width: 32%; }

.widget-area {
    background: #fff; padding: 25px; border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.02);
    margin-bottom: 30px;
}
.widget-area h3.widget-title {
    font-size: 18px; color: var(--gnews-primary);
    border-bottom: 2px solid rgba(0,36,82,0.1); padding-bottom: 12px;
    margin-top: 0; margin-bottom: 20px; font-weight: 800; text-transform: uppercase;
}

/* Feed Vertical Moderno (Lista em Cards 3D) */
.feed-lista { display: flex; flex-direction: column; gap: 25px; }
.feed-item { 
    display: flex; gap: 25px; padding: 20px; background: #fff; 
    border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth); border: 1px solid rgba(0,0,0,0.02);
    position: relative;
}
.feed-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feed-item .feed-imagem { 
    flex: 0 0 260px; height: 170px; border-radius: var(--radius-img); overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.feed-item .feed-imagem img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.feed-item:hover .feed-imagem img { transform: scale(1.03); }
.feed-item .feed-texto { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.feed-item:hover .noticia-titulo { color: var(--gnews-primary); }

/* Frontend Edit Button */
.btn-editar-frontend { 
    display: inline-block; background: var(--gnews-accent); color: #000; 
    padding: 6px 14px; font-size: 12px; text-decoration: none; 
    border-radius: var(--radius-pill); font-weight: bold; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); border: none; cursor: pointer; 
    position: absolute; top: 15px; right: 15px; z-index: 10; transition: all 0.2s;
}
.btn-editar-frontend:hover { background: #e0a800; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* Modal Frontend */
.gnews-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 20px 0; background-color: rgba(0,15,35,0.7); backdrop-filter: blur(4px); }
.gnews-modal-content { background-color: #fff; margin: 0 auto; padding: 30px; border: none; width: 90%; max-width: 600px; max-height: calc(100vh - 40px); overflow-y: auto; box-sizing: border-box; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); }
.gnews-edit-submanchete { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px; padding: 9px 14px; border: 1px solid var(--gnews-primary); border-radius: 5px; background: #fff; color: var(--gnews-primary); font-weight: 700; cursor: pointer; }
.gnews-edit-submanchete:hover { background: var(--gnews-primary); color: #fff; }
.gnews-cover-edit-bar { width: min(1200px, calc(100% - 40px)); margin: 18px auto 0; display: flex; align-items: center; gap: 10px; }
.gnews-edit-manchete { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--gnews-primary); border-radius: 5px; background: #fff; color: var(--gnews-primary); font-weight: 700; cursor: pointer; }
.gnews-edit-manchete:hover { background: var(--gnews-primary); color: #fff; }
.gnews-cover-edit-bar > span { color: #68737d; font-size: 13px; }
.gnews-manchete-modal-content { max-width: 680px; }
.gnews-cover-edit-slot { margin: 16px 0; padding: 14px; border: 1px solid #e1e6eb; border-radius: 8px; background: #f8fafc; }
.gnews-cover-edit-slot > label { display: block; margin-bottom: 8px; color: var(--gnews-primary); }
.gnews-cover-edit-slot > input[type="url"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ccd4db; border-radius: 5px; background: #fff; }
.gnews-cover-photo-options { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: #414b54; }
.gnews-cover-photo-options label { display: inline-flex; gap: 6px; align-items: center; }
.gnews-submanchete-modal-content { max-width: 760px; }
.gnews-submanchete-list { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow-y: auto; margin: 15px 0 20px; padding-right: 4px; }
.gnews-submanchete-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px; background: #f7f9fb; border: 1px solid #e1e6eb; border-radius: 6px; cursor: grab; }
.gnews-submanchete-row.is-dragging { opacity: .45; }
.gnews-submanchete-handle { flex: 0 0 24px; color: var(--gnews-primary); font-size: 18px; line-height: 28px; }
.gnews-submanchete-position { flex: 0 0 22px; color: #6a7680; line-height: 28px; font-weight: 700; }
.gnews-submanchete-row-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.gnews-submanchete-row-body strong { color: #1d2730; font-size: 14px; line-height: 1.3; }
.gnews-submanchete-row-body input { width: 100%; box-sizing: border-box; padding: 7px 8px; border: 1px solid #ccd4db; border-radius: 4px; background: #fff; }
.gnews-widget-sticky { position: sticky !important; top: 96px !important; align-self: flex-start; z-index: 2; }
.gnews-widget-sticky-1 { top: 96px !important; }
.gnews-widget-sticky-2 { top: 260px !important; }
.gnews-close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 1; transition: color 0.2s; }
.gnews-close:hover { color: var(--gnews-primary); }
.gnews-modal-title { font-size: 24px; margin-top: 0; border-bottom: 2px solid rgba(0,36,82,0.1); padding-bottom: 15px; color: var(--gnews-primary); font-weight: 800; }
.gnews-form-group { margin-bottom: 20px; }
.gnews-form-group label { display: block; font-weight: bold; margin-bottom: 8px; font-size: 14px; color: #444; }
.gnews-form-group input, .gnews-form-group textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; font-size: 15px; background: #fdfdfd; transition: border-color 0.2s; }
.gnews-form-group input:focus, .gnews-form-group textarea:focus { border-color: var(--gnews-primary); outline: none; }
.gnews-hide-option { display: block; margin-top: 8px; font-size: 13px; color: #555; font-weight: 600; }
.gnews-hide-option input { width: auto !important; margin-right: 6px; }
.gnews-form-help { margin: -2px 0 10px; color: #666; font-size: 13px; line-height: 1.4; }
.gnews-related-url {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fdfdfd;
    color: #333;
    font-family: inherit;
    font-size: 14px;
}
.gnews-related-url:focus { border-color: var(--gnews-primary); outline: none; }
.gnews-related-lembre-option {
    display: block;
    margin: -2px 0 10px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
}
.gnews-related-lembre-option input { width: auto !important; margin-right: 6px; }
.gnews-btn-salvar { background: var(--gnews-primary); color: #fff; border: none; padding: 14px 24px; font-size: 16px; font-weight: bold; border-radius: var(--radius-pill); cursor: pointer; box-shadow: 0 4px 10px rgba(0,36,82,0.2); transition: all 0.2s; }
.gnews-btn-salvar:hover { background: var(--gnews-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,36,82,0.3); }

/* =========================================
   PÁGINA DO ARTIGO (SINGLE)
========================================= */
.artigo-conteudo { padding: 50px; background: #fff; max-width: 820px; margin: 40px auto; border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.artigo-header { margin-bottom: 30px; position: relative; }
.artigo-categoria { color: #fff; background: var(--gnews-primary); padding: 6px 14px; border-radius: var(--radius-pill); font-weight: bold; font-size: 13px; text-transform: uppercase; margin-bottom: 20px; display: inline-block; letter-spacing: 0.5px; text-decoration: none; }
.artigo-titulo { font-size: 46px; line-height: 1.15; color: #111; margin: 0 0 15px 0; letter-spacing: -1px; font-weight: 800; }
.artigo-subtitulo { font-size: 24px; color: #555; line-height: 1.4; margin-bottom: 25px; font-weight: normal; }
.artigo-meta { font-size: 14px; color: #777; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; padding: 15px 0; margin-bottom: 35px; }
.artigo-meta span { display: block; }
.artigo-meta .autor { font-weight: bold; color: var(--gnews-primary); font-size: 15px; margin-bottom: 4px; }
.artigo-imagem-destaque { margin-bottom: 40px; }
.artigo-imagem-destaque img { width: 100%; height: auto; border-radius: var(--radius-img); box-shadow: var(--shadow-sm); }
.artigo-imagem-legenda { font-size: 13px; color: #888; margin-top: 10px; text-align: right; font-style: italic; }
.artigo-texto { font-size: 19px; line-height: 1.7; color: #222; margin-bottom: 40px; }
.artigo-texto p { margin-bottom: 25px; }
.artigo-texto h2 { font-size: 26px; margin: 40px 0 20px; color: var(--gnews-primary); font-weight: 800; }

/* =========================================
   NOTÍCIAS RECOMENDADAS / VEJA TAMBÉM
========================================= */
.artigo-relacionados {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 2px solid #edf1f7;
}

.relacionados-cabecalho {
    font-size: 24px;
    color: var(--gnews-primary);
    font-weight: 800;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.relacionado-card {
    background: #fbfcfe;
    border: 1px solid #edf1f7;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.relacionado-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0,36,82,0.15);
}

.relacionado-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.relacionado-thumb {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #eef2f6;
}

.relacionado-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.relacionado-card:hover .relacionado-thumb img {
    transform: scale(1.05);
}

.relacionado-corpo {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.relacionado-corpo .noticia-categoria {
    align-self: flex-start;
    margin-bottom: 8px;
    font-size: 11px;
    padding: 3px 8px;
}

.relacionado-titulo-post {
    font-size: 16px;
    line-height: 1.3;
    color: #111;
    margin: 0;
    font-weight: 700;
    transition: color 0.2s;
}

.relacionado-card:hover .relacionado-titulo-post {
    color: var(--gnews-primary);
}

.site-footer { background: var(--gnews-primary); color: #fff; padding: 10px 0; text-align: center; margin-top: 40px; }
.site-footer-inner { min-height: 82px; box-sizing: border-box; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; padding: 12px 15px 30px; position: relative; }
.site-footer-copy { display: flex; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
.site-footer-logo { color: #fff; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -1px; }
.site-footer-copy > span { color: #fff; font-size: 14px; margin-top: 3px; }
.site-footer-links { position: absolute; right: 15px; bottom: 8px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.site-footer-links a { color: rgba(255,255,255,.86); font-size: 11px; font-weight: 700; letter-spacing: .25px; text-decoration: none; }
.site-footer-links a:hover, .site-footer-links a:focus { color: #fff; text-decoration: underline; }

@media (max-width: 768px) {
    .site-footer-inner { min-height: 0; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 15px; }
    .site-footer-copy { align-self: center; justify-content: center; width: 100%; flex-wrap: wrap; text-align: center; }
    .site-footer-copy > span { margin-top: 0; }
    .site-footer-links { position: static; align-self: center; width: 100%; flex-wrap: nowrap; justify-content: center; gap: clamp(5px, 2.2vw, 12px); white-space: nowrap; }
    .site-footer-links a { flex: 0 1 auto; font-size: clamp(7px, 2.4vw, 10px); letter-spacing: 0; }
}

/* Responsivo */
@media (max-width: 992px) {
    .grid-destaques.layout-3 { grid-template-columns: 1fr; grid-template-rows: auto; }
    .grid-destaques.layout-3 .destaque-1, .grid-destaques.layout-3 .destaque-2, .grid-destaques.layout-3 .destaque-3 { grid-column: 1 / -1; }
    .grid-destaques.layout-3 .destaque-1 { grid-row: auto; min-height: 400px; }
    .grid-destaques.layout-3 .destaque-2 { grid-row: auto; min-height: 280px; }
    .grid-destaques.layout-3 .destaque-3 { grid-row: auto; min-height: 280px; }
    .grid-destaques.layout-3 .noticia-com-foto.destaque-2 .noticia-subtitulo-home,
    .grid-destaques.layout-3 .noticia-com-foto.destaque-3 .noticia-subtitulo-home { display: block; }
    
    .layout-conteudo-principal { flex-direction: column; }
    .coluna-feed, .coluna-widgets { flex: 0 0 100%; max-width: 100%; }
    
    .artigo-conteudo { padding: 30px 20px; margin: 20px 10px; }
    .relacionados-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .grid-destaques.layout-2 { grid-template-columns: 1fr; }
    .grid-destaques.layout-1 .destaque-1 .noticia-titulo { font-size: 32px; }
    .grid-destaques.layout-1 .destaque-1 { min-height: 350px; }
    .artigo-conteudo {
        padding: 24px 16px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .artigo-conteudo > .container {
        max-width: none !important;
        padding-left: 0;
        padding-right: 0;
    }
    .artigo-texto {
        font-size: 18px;
        line-height: 1.6;
    }
    .artigo-texto p {
        margin-bottom: 26px;
    }
    .artigo-titulo { font-size: 34px; }
    .artigo-subtitulo { font-size: 20px; }

    /* Mantém publicação e atualização na mesma linha em telas estreitas. */
    .artigo-meta-info {
        width: 100%;
        min-width: 0;
    }
    .artigo-meta-info .data {
        display: block !important;
        white-space: nowrap;
        font-size: 11px;
        letter-spacing: -0.25px;
        line-height: 1.25;
    }
    
    .feed-item { flex-direction: column; gap: 15px; padding: 15px; }
    .feed-item .feed-imagem { flex: none; width: 100%; height: auto; max-height: 250px; }
}

/* =========================================
   PESQUISA NO HEADER (BUSCAR)
========================================= */
.header-left { display: flex; align-items: center; }

.gnews-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--radius-pill);
    overflow: hidden;
    width: 140px; /* Reduced width for desktop */
    transition: var(--transition-smooth);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.gnews-search-form:focus-within {
    box-shadow: 0 0 0 2px var(--gnews-accent), inset 0 1px 3px rgba(0,0,0,0.1);
}
.gnews-search-input {
    border: none;
    padding: 10px 15px;
    font-size: 15px;
    width: 100%;
    outline: none;
    color: #333;
    background: transparent;
    font-family: inherit;
}
.gnews-search-input::placeholder {
    color: #999;
}
.gnews-search-submit {
    background: transparent;
    border: none;
    color: var(--gnews-primary);
    padding: 0 15px 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
}
.gnews-search-submit:hover {
    color: var(--gnews-primary-hover);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gnews-search-form { width: 160px; }
    .logo { font-size: 26px; }
}
@media (max-width: 480px) {
    .gnews-search-form { width: 120px; }
    .gnews-search-input { padding: 8px 10px; font-size: 13px; }
}

/* =========================================
   WIDGET ECONOMIA (ESTILO VALOR PRO / B3)
========================================= */
/* Remove o padding do container padrão do WordPress APENAS para este widget, para ele grudar nas bordas */
.widget_gnews_economia_api_widget {
    padding: 0 !important;
}
.widget_gnews_economia_api_widget .widget-title {
    display: none; /* Esconde o título padrão pois o widget já tem o próprio header */
}

.gnews-widget-economia {
    background: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    position: relative;
}

.eco-loading {
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: rgba(255,255,255,0.9); display: flex; justify-content: center; 
    align-items: center; z-index: 10; font-weight: bold; color: var(--gnews-primary);
}

.eco-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #f0f0f0;
}
.eco-header h4 { margin: 0; font-size: 18px; font-weight: 800; color: #222; }
.eco-badge { font-size: 12px; color: #5a738e; font-weight: bold; display: flex; align-items: center; gap: 4px; }
.eco-badge svg { width: 16px; height: 16px; fill: #5a738e; }

.eco-body { padding: 20px; }

/* Ibovespa Section */
.eco-section-ibov { margin-bottom: 20px; }
.eco-ibov-title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 15px; }

.eco-ibov-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.eco-ibov-data { display: flex; flex-direction: column; }
.eco-var-grande { font-size: 32px; line-height: 1; font-weight: 300; margin-bottom: 8px; }
.eco-pts-pequeno { font-size: 16px; color: #666; }

.eco-chart-container {
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.eco-sparkline { width: 100%; height: 40px; border-bottom: 1px dotted #ccc; padding-bottom: 5px; margin-bottom: 5px; }
.eco-chart-labels { width: 100%; display: flex; justify-content: space-between; font-size: 11px; color: #999; }

.eco-update-text { font-size: 13px; color: #666; margin-top: 15px; }

.eco-divider { border: 0; border-top: 1px solid #eee; margin: 20px 0; }

/* Moedas Section */
.eco-section-moedas h5 { font-size: 17px; margin: 0 0 15px 0; color: #222; font-weight: 700; }
.eco-moeda-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 12px; color: #444; align-items: center;}
.eco-moeda-nome { flex: 1; }
.eco-moeda-val { width: 90px; text-align: right; color: #555;}
.eco-moeda-var { width: 70px; text-align: right; font-weight: 500; }

.eco-positivo { color: #50a72e; }
.eco-negativo { color: #d32f2f; }
.eco-neutro { color: #777; }

/* Footer */
.eco-footer { border-top: 1px solid #f0f0f0; padding: 15px 20px; text-align: left; }
.eco-footer a { color: var(--gnews-primary); text-decoration: none; font-weight: bold; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s; }
.eco-footer a:hover { color: var(--gnews-primary-hover); text-decoration: underline; }

/* Ajuste de alinhamento e largura dos valores de moeda para caber R$ perfeitamente */
.eco-moeda-val {
    width: 140px !important;
    text-align: right;
    color: #333;
    font-weight: 600;
}



/* =========================================
   LOGO CATEGORY (RESPONSIVO)
========================================= */
@media (max-width: 768px) {
    .logo-category {
        font-size: 24px !important;
        margin-left: 4px !important;
        letter-spacing: -0.5px !important;
    }
}
@media (max-width: 480px) {
    .logo-category {
        font-size: 20px !important;
    }
}

/* =========================================
   TICKER HORIZONTAL E ALTAS/BAIXAS
========================================= */
.eco-ticker-container {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 15px 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    border: 1px solid rgba(0,0,0,0.02);
}
.eco-ticker-item {
    display: flex;
    align-items: center;
    border-right: 1px solid #eaeaea;
    padding-right: 30px;
}
.eco-ticker-item:last-child { border-right: none; padding-right: 0; }
.eco-ticker-label { font-weight: 800; color: var(--gnews-primary); text-transform: uppercase; font-size: 14px;}

/* Tabs Altas e Baixas */
.altas-baixas-body { padding: 10px 20px 20px; }
.altas-baixas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; } /* MUDANÇA: de 1fr 1fr para 1fr */
.altas-baixas-col { min-width: 0; background: #fafafa; padding: 15px; border-radius: 8px; border: 1px solid #eee; } /* Adicionado fundo e borda para as colunas */
.ab-title { font-size: 15px; margin: 0 0 15px 0; color: #222; font-weight: 700; display: block; padding-bottom: 8px; border-bottom: 2px solid; text-align: center;} /* Centralizado e ajustado tamanho */
.ab-title-alta { border-bottom-color: #50a72e; color: #50a72e; } /* Cor verde no título */
.ab-title-baixa { border-bottom-color: #d32f2f; color: #d32f2f; } /* Cor vermelha no título */

.altas-baixas-tabs { display: flex; border-bottom: 2px solid #f0f0f0; margin-bottom: 15px; }
.ab-tab { 
    flex: 1; text-align: center; padding: 12px 10px; background: none; border: none; 
    font-weight: bold; cursor: pointer; color: #888; transition: 0.2s; font-size: 14px;
}
.ab-tab.active { color: var(--gnews-primary); border-bottom: 2px solid var(--gnews-primary); margin-bottom: -2px; }
.ab-tab:hover { color: var(--gnews-primary); }

.ab-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed #e0e0e0; } /* Ajuste de padding e cor da borda */
.ab-item:last-child { border-bottom: none; padding-bottom: 0;}
.ab-stock { font-weight: 700; width: 35%; color: #333; font-size: 14px;} /* Ajuste de larguras e tamanhos */
.ab-price { width: 35%; text-align: center; color: #555; font-weight: 600; font-size: 14px;}
.ab-change { width: 30%; text-align: right; font-weight: bold; font-size: 14px; padding-left: 5px;}

/* Custom Scrollbar for Ticker */
.eco-ticker-container::-webkit-scrollbar { height: 6px; }
.eco-ticker-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px;}
.eco-ticker-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px;}
.eco-ticker-container::-webkit-scrollbar-thumb:hover { background: #aaa; }

.eco-ticker-container {
    margin-bottom: 15px; /* Mais respiro entre o ticker e a capa */
}

.eco-ticker-track {
    display: contents;
}

/* No desktop o ticker permanece estático. No celular, o conteúdo duplicado
   pelo eco-api.js percorre a faixa continuamente, sem exigir arraste lateral. */
@media (max-width: 768px) {
    .eco-ticker-container {
        display: block;
        overflow: hidden;
        padding: 12px 0;
    }
    .eco-ticker-track {
        display: flex;
        width: max-content;
        gap: 30px;
        animation: gnews-ticker-loop 22s linear infinite;
        will-change: transform;
    }
    .eco-ticker-item {
        flex: 0 0 auto;
    }
}

@keyframes gnews-ticker-loop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .eco-ticker-track { animation: none; }
}


@media (max-width: 700px) {
    .altas-baixas-grid { grid-template-columns: 1fr; gap: 10px; }
    .logo { font-size: 28px; }
    .menu-toggle-label { font-size: 14px; }
}


/* =========================================
   MOBILE BOTTOM BAR & HEADER FIXES
========================================= */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop hamburger and label */
    .header-left {
        display: none !important;
    }

    /* Move logo to far left */
    .logo-wrapper {
        position: static !important;
        transform: none !important;
        margin-right: auto; /* Pushes the search form to the right */
        left: auto;
        top: auto;
    }

    /* Refine category title next to logo */
    .logo-category {
        font-size: 24px !important;
        margin-left: 4px !important;
        letter-spacing: -0.5px !important;
        line-height: 1;
    }

    /* Make search form a white square box with only the icon */
    .gnews-search-form {
        width: 40px !important;
        height: 40px;
        background: #fff;
        border-radius: 8px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .gnews-search-input {
        display: none !important; /* Hide the text input on mobile */
    }
    .gnews-search-submit {
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* O ícone abre o campo de busca no mobile; Enter ou o botão envia a pesquisa. */
    .gnews-search-form.is-open {
        width: min(220px, calc(100vw - 150px)) !important;
        justify-content: flex-start;
        padding-left: 8px;
    }
    .gnews-search-form.is-open .gnews-search-input {
        display: block !important;
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        padding: 8px 4px;
        font-size: 14px;
    }
    .gnews-search-form.is-open .gnews-search-submit {
        flex: 0 0 40px;
        width: 40px;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        z-index: 9997;
        padding: 8px 15px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid #f0f0f0;
    }

    .m-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #888;
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 20%;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    }

    .m-nav-item svg {
        width: 24px;
        height: 24px;
        margin-bottom: 2px;
        transition: color 0.2s;
    }

    .m-nav-item.active {
        color: var(--gnews-primary);
    }
    .m-nav-item.active svg {
        stroke: var(--gnews-primary);
    }

    /* Add padding to body so content doesn't hide behind the sticky bar */
    body {
        padding-bottom: 70px;
    }
}

/* Páginas institucionais, como Princípios Editoriais e de Conduta. */
.gnews-page-main { padding: 36px 0 60px; }
.gnews-static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 48px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
}
.gnews-static-page .page-title {
    margin: 0 0 28px;
    color: var(--gnews-primary);
    font-size: 34px;
    line-height: 1.2;
}
.gnews-static-page .entry-content {
    color: #333;
    font-size: 18px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
.gnews-static-page .entry-content > :first-child { margin-top: 0; }
.gnews-static-page .entry-content > :last-child { margin-bottom: 0; }
.gnews-static-page .entry-content h2,
.gnews-static-page .entry-content h3 { color: var(--gnews-primary); line-height: 1.3; }

/* A página Últimas notícias reutiliza os cards e separadores da lista da home. */
.gnews-latest-news-list { margin-bottom: 30px; }
.gnews-latest-news-item .feed-texto { min-width: 0; }
.gnews-latest-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin-bottom: 6px;
}
.gnews-latest-news-meta .noticia-categoria-feed { margin: 0; }
.gnews-latest-news-date { color: #737b84; font-size: 13px; }
.gnews-latest-news-link { text-decoration: none; }
.gnews-latest-news-link .noticia-titulo { margin-bottom: 0; }
.gnews-latest-news-empty { margin: 20px 0 0; color: #626b75; }

@media (max-width: 768px) {
    .gnews-page-main { padding: 16px 0 40px; }
    .gnews-static-page { padding: 26px 20px; border-radius: 0; }
    .gnews-static-page .page-title { font-size: 28px; margin-bottom: 20px; }
    .gnews-static-page .entry-content { font-size: 17px; line-height: 1.7; }
    .gnews-latest-news-page .categoria-titulo-pagina { margin: 24px 16px 16px; font-size: 28px; }
    .gnews-latest-news-item .feed-texto { display: flex; flex-direction: column; }
    .gnews-latest-news-item .gnews-latest-news-meta { display: contents; }
    .gnews-latest-news-item .gnews-latest-news-date { order: 2; padding: 0 16px 12px; }
    .gnews-latest-news-item .gnews-latest-news-link { order: 3; }
}

.gnews-contact-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e3e6e8; }
.gnews-contact-field { margin: 0 0 18px; }
.gnews-contact-field label { display: block; margin-bottom: 7px; color: var(--gnews-primary); font-size: 15px; font-weight: 700; }
.gnews-contact-field input,
.gnews-contact-field textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfd5dc; border-radius: 6px; color: #222; background: #fff; font: inherit; }
.gnews-contact-field textarea { min-height: 170px; resize: vertical; }
.gnews-contact-field input:focus,
.gnews-contact-field textarea:focus { outline: 2px solid rgba(0,36,82,.2); border-color: var(--gnews-primary); }
.gnews-contact-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--gnews-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gnews-contact-submit:hover { background: var(--gnews-primary-hover); }
.gnews-contact-notice { margin: 20px 0; padding: 13px 16px; border-radius: 6px; font-weight: 600; }
.gnews-contact-notice.is-success { background: #edf8f0; color: #176b30; border: 1px solid #b9e1c4; }
.gnews-contact-notice.is-error { background: #fff1f0; color: #9f2520; border: 1px solid #f0c5c2; }
.gnews-contact-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Fix specifically for the filled soccer player SVG */


/* FEED MOBILE FIXES FOR CATEGORY OVERLAY */
@media (max-width: 768px) {
    .feed-item {
        position: relative; /* Context for absolute positioning of category */
    }
    .feed-item .noticia-categoria-feed {
        position: absolute;
        top: 25px; /* Padding of feed item is 15px + 10px inside image */
        left: 25px;
        background: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        z-index: 10;
        box-shadow: 0 2px 5px rgba(0,0,0,0.15);
        font-size: 15px;
    }
    
    /* If there is NO image, just put it normally above the title, but remove absolute so it doesn't overlap text */
    /* We can target feed items without images if needed, but the structure places it in the text area. 
       Actually, moving it visually in mobile means we pull it out of normal flow. 
       Let's put it at the top left of the feed card entirely. */
    .feed-item {
        padding-top: 45px; /* Make room for absolute category */
    }
    .feed-item .noticia-categoria-feed {
        top: 15px;
        left: 15px;
    }

    /* Afasta o selo de categoria da borda superior da foto no celular. */
    .feed-item .feed-imagem {
        margin-top: 12px;
    }

    .noticia-com-foto .noticia-categoria {
        margin-bottom: 16px;
    }
    
    /* However, if there is a photo, the photo is at the top in mobile. 
       So top:15px places the category right over the top-left corner of the photo. 
       This perfectly satisfies "em cima da foto se tiver foto, ou em cima do titulo". */
}

/* Cards de notícias no mobile: categoria acima da imagem e título abaixo. */
@media (max-width: 768px) {
    /* Na home de Economia, o ticker deve ficar próximo da primeira notícia. */
    .destaques-principais {
        padding-top: 16px;
        margin-top: 0;
        margin-bottom: 16px;
    }

    .eco-ticker-container {
        margin-bottom: 0;
    }

    /* O wrapper do ticker de categoria tem margem inline no template. */
    .container[style*="margin-top"] {
        margin-top: 0 !important;
    }

    .destaques-principais > .container,
    .conteudo-principal > .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .grid-destaques,
    .feed-lista {
        width: 100%;
    }

    .grid-destaques .noticia-card.noticia-com-foto,
    .grid-destaques .noticia-card.noticia-sem-foto,
    .feed-lista .feed-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        min-height: 0;
        height: auto;
        margin: 0;
        padding: 0;
        border-top: 1px solid #e3e6e8;
        border-bottom: 1px solid #e3e6e8;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
        background: #fff;
    }

    /* Capas sem foto não devem conservar a altura mínima dos layouts desktop. */
    .grid-destaques .noticia-card.noticia-sem-foto {
        min-height: 0 !important;
        height: auto !important;
        justify-content: flex-start;
    }

    .grid-destaques .noticia-card.noticia-sem-foto .noticia-conteudo {
        display: contents;
        padding: 0;
    }

    .grid-destaques .noticia-card.noticia-com-foto .noticia-conteudo,
    .feed-lista .feed-item .feed-texto {
        display: contents;
    }

    .grid-destaques .noticia-card.noticia-com-foto .noticia-categoria,
    .grid-destaques .noticia-card.noticia-sem-foto .noticia-categoria,
    .feed-lista .feed-item .noticia-categoria-feed {
        position: static !important;
        top: auto !important;
        left: auto !important;
        order: 1;
        align-self: flex-start;
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0 !important;
        padding: 14px 16px 10px;
        color: var(--gnews-primary) !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
        font-size: 14px;
        line-height: 1.2;
        letter-spacing: .5px;
    }

    .grid-destaques .noticia-card.noticia-com-foto > img,
    .feed-lista .feed-item > .feed-imagem {
        position: static !important;
        order: 2;
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        object-fit: cover;
        opacity: 1;
        border-radius: 0;
        box-shadow: none;
    }

    .grid-destaques .noticia-card.noticia-com-foto > img {
        aspect-ratio: 16 / 10;
    }

    .feed-lista .feed-item > .feed-imagem img {
        display: block;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: cover;
        border-radius: 0;
    }

    .grid-destaques .noticia-card .noticia-titulo,
    .feed-lista .feed-item .noticia-titulo {
        order: 3;
        margin: 0;
        padding: 14px 16px 18px;
        color: var(--gnews-primary) !important;
        text-shadow: none !important;
        font-size: 22px !important;
        line-height: 1.25;
    }

    .feed-lista .feed-item .feed-texto > a {
        order: 3;
        display: block;
        text-decoration: none;
    }

    .grid-destaques .noticia-card .noticia-subtitulo-home,
    .feed-lista .feed-item .noticia-resumo {
        order: 4;
        margin: 0;
        padding: 0 16px 18px;
    }

    .grid-destaques .noticia-card .gnews-noticias-relacionadas,
    .feed-lista .feed-item .gnews-noticias-relacionadas {
        order: 5;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0 16px 18px;
        gap: 10px;
    }

    .grid-destaques .noticia-card .gnews-noticia-relacionada,
    .feed-lista .feed-item .gnews-noticia-relacionada {
        color: var(--gnews-primary) !important;
        text-shadow: none !important;
        font-size: 18px;
        line-height: 1.3;
    }

    .grid-destaques .noticia-card .gnews-related-arrow,
    .feed-lista .feed-item .gnews-related-arrow {
        color: var(--gnews-primary) !important;
    }

    .grid-destaques .noticia-card .gnews-related-lembre,
    .feed-lista .feed-item .gnews-related-lembre {
        color: var(--gnews-primary) !important;
    }

    .feed-lista {
        gap: 16px;
    }
}

/* COOKIE ICON OVERRIDE (Fixing overlap with mobile bar and making it draggable/closable) */
/* We target common cookie plugin IDs/Classes and use a generic override */
#cookie-law-info-bar, .cli-plugin-button, #cc-window, .cc-window, .cmplz-cookiebanner, #cmplz-cookiebanner-container, .cky-btn-revisit, #cky-btn-revisit, .cookie-notice-container {
    /* Basic attempts to fix common cookie plugins */
    bottom: 85px !important; /* Move above the mobile bar */
    z-index: 99999 !important;
}

/* Specific fix for the floating circular icon shown in the screenshot */
.cky-btn-revisit-wrapper, .cmplz-manage-consent, .cli-manage-consent, [class*="cookie"][class*="button"], [id*="cookie"][id*="button"], .cc-revoke, #cookie-law-info-again {
    bottom: 90px !important; /* Base positioning above bottom nav */
    right: 20px !important;
    left: auto !important; /* Remove left positioning */
    z-index: 99999 !important;
}



.gnews-draggable-cookie {
    position: fixed !important;
    cursor: grab !important;
    bottom: 90px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    touch-action: none; /* Prevent scrolling while dragging on mobile */
}
.gnews-draggable-cookie:active {
    cursor: grabbing !important;
}

/* =========================================
   TAGS DO ARTIGO
========================================= */
.artigo-tags {
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.tags-label {
    font-weight: bold;
    color: #555;
    font-size: 15px;
}
.tag-chip {
    background: #f0f4f8;
    color: var(--gnews-primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.tag-chip:hover {
    background: var(--gnews-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,36,82,0.2);
}

/* =========================================
   SHARE BUTTONS
========================================= */
.artigo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.artigo-meta-info span {
    display: block;
}
.artigo-share {
    display: flex;
    gap: 10px;
    align-items: center;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.share-btn svg {
    fill: currentColor;
    stroke: none;
}
.share-btn:hover {
    transform: translateY(-2px) scale(1.05);
    opacity: 0.95;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.share-fb {
    background-color: #1877F2;
}
.share-wa {
    background-color: #25D366;
}
.share-native {
    background-color: #6c757d;
}


/* =========================================
   SIDEBAR SOCIAL
========================================= */
.sidebar-nav {
    flex-grow: 1;
}
.sidebar-social {
    padding: 25px 20px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    margin-top: auto;
}
.sidebar-social p {
    margin: 0 0 15px 0;
    font-size: 12px;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.social-icons a {
    color: #888;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.social-icons a svg {
    width: 22px;
    height: 22px;
}
.social-icons a:hover {
    transform: scale(1.15);
}
.social-icons a[title="Facebook"]:hover { color: #1877F2; }
.social-icons a[title="Instagram"]:hover { color: #E1306C; }
.social-icons a[title="X"]:hover { color: #000000; }
.social-icons a[title="YouTube"]:hover { color: #FF0000; }

.gnews-widget-social .social-icons a svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .gnews-widget-sticky { position: static !important; }
    /* Widgets movidos da barra lateral para o feed precisam ocupar a linha toda,
       inclusive quando tinham a opção "fixo" ativada na homepage principal. */
    .feed-lista > .widget {
        align-self: stretch !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .gnews-submanchete-modal-content { width: 94%; padding: 20px; }
    .gnews-submanchete-list { max-height: 58vh; }
    .gnews-cover-edit-bar { width: calc(100% - 24px); margin-top: 12px; }
    .gnews-manchete-modal-content { width: 94%; padding: 20px; }
}
