/*
Theme Name: Esporte G Portal
Author: Desenvolvedor
Description: Tema Completo (v26) - Widget Econômico com API Real-time, sem Badge PRO, Bitcoin adicionado e cores ajustadas.
Version: 26.18
*/

:root {
    --gnews-primary: #2e8f3c; 
    --gnews-primary-hover: #24732f; 
    --gnews-secondary: #3aa64a; 
    --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(46,143,60,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(46,143,60,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: 6; 
}
.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; }
.noticia-relacionadas { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; position: relative; z-index: 7; pointer-events: auto; }
.noticia-relacionada { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 7px; color: var(--gnews-primary); font-size: 17px; font-weight: 750; line-height: 1.3; text-decoration: none; pointer-events: auto; }
.noticia-relacionada:hover { color: var(--gnews-primary-hover); text-decoration: underline; }
.noticia-relacionada-seta { font-size: 26px; font-weight: 900; line-height: 1; }
.noticia-relacionada-titulo { min-width: 0; }
.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(46,143,60,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;
}
.gnews-widget-sticky { position: sticky; top: 88px; z-index: 10; }
.gnews-widget-sticky-option { margin: 12px 0 4px; padding-top: 10px; border-top: 1px solid #eee; }
.gnews-widget-sticky-option label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #3d4740; }
.gnews-widget-sticky-option input { accent-color: var(--gnews-primary); }
.widget-area h3.widget-title {
    font-size: 18px; color: var(--gnews-primary);
    border-bottom: 2px solid rgba(46,143,60,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); }
.feed-item-external .feed-texto { width: 100%; }
.feed-item-external .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); }
.btn-editar-submanchete { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 16px; padding: 9px 16px; border: 0; border-radius: var(--radius-pill); background: var(--gnews-accent); color: #000; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.btn-editar-submanchete:hover { background: #e0a800; transform: translateY(-1px); }

/* Modal Frontend */
.gnews-modal { display: none; position: fixed; z-index: 99999; inset: 0; width: 100%; height: 100%; box-sizing: border-box; padding: 24px 0; overflow-y: auto; 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 - 48px); box-sizing: border-box; overflow-y: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-lg); }
.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(46,143,60,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: flex; align-items: center; gap: 8px; margin: -8px 0 18px; color: #555; font-size: 14px; cursor: pointer; }
.gnews-hide-option input { width: 16px; height: 16px; accent-color: var(--gnews-primary); }
.gnews-related-select { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; background: #fdfdfd; color: #333; font: inherit; }
.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(46,143,60,0.2); transition: all 0.2s; }
.gnews-btn-salvar:hover { background: var(--gnews-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(46,143,60,0.3); }
.gnews-submanchete-content { max-width: 760px; }
.gnews-submanchete-intro { margin: -4px 0 18px; color: #687078; font-size: 14px; line-height: 1.45; }
.gnews-submanchete-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.gnews-submanchete-item { display: grid; grid-template-columns: 24px 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 8px 10px; border: 1px solid #e2e7e3; border-radius: 9px; background: #fbfdfb; cursor: grab; }
.gnews-submanchete-item:active { cursor: grabbing; }
.gnews-submanchete-item.is-dragging { opacity: .45; }
.gnews-submanchete-item.is-drag-over { border-color: var(--gnews-primary); background: #edf7ee; }
.gnews-submanchete-handle { color: #87918a; font-size: 20px; letter-spacing: -4px; user-select: none; }
.gnews-submanchete-number { color: var(--gnews-primary); font-size: 13px; font-weight: 800; text-align: center; }
.gnews-submanchete-title { min-width: 0; color: #28302a; font-size: 14px; line-height: 1.3; font-weight: 700; }
.gnews-submanchete-controls { display: inline-flex; align-items: center; gap: 4px; }
.gnews-submanchete-move, .gnews-submanchete-remove { width: 28px; height: 28px; padding: 0; border: 1px solid #d9e0db; border-radius: 6px; background: #fff; color: #5d6961; font-size: 16px; line-height: 1; cursor: pointer; }
.gnews-submanchete-move:hover:not(:disabled), .gnews-submanchete-remove:hover { border-color: var(--gnews-primary); color: var(--gnews-primary); }
.gnews-submanchete-move:disabled { opacity: .35; cursor: default; }
.gnews-submanchete-remove { color: #b44a4a; font-size: 21px; }
.gnews-submanchete-empty { margin: 0; padding: 18px; border: 1px dashed #ccd6cf; border-radius: 9px; color: #687078; text-align: center; }
.gnews-submanchete-add { padding-top: 18px; border-top: 1px solid #edf1ee; }
.gnews-submanchete-add label { display: block; margin-bottom: 8px; color: #444; font-size: 14px; font-weight: 800; }
.gnews-submanchete-add-row { display: flex; gap: 8px; }
.gnews-submanchete-add-row input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #ddd; border-radius: 8px; font: inherit; }
.gnews-submanchete-add-row input:focus { outline: none; border-color: var(--gnews-primary); }
.gnews-submanchete-secondary { flex: 0 0 auto; padding: 10px 15px; border: 0; border-radius: 8px; background: #edf7ee; color: var(--gnews-primary); font-weight: 800; cursor: pointer; }
.gnews-submanchete-secondary:hover { background: #dcefdc; }
.gnews-submanchete-secondary:disabled, .gnews-submanchete-actions button:disabled { opacity: .6; cursor: wait; }
.gnews-submanchete-status { display: inline-block; min-height: 18px; margin-top: 7px; color: var(--gnews-primary); font-size: 13px; }
.gnews-submanchete-status.is-error { color: #b42318; }
.gnews-submanchete-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }

/* =========================================
   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; }
.artigo-texto .twitter-tweet,
.artigo-texto .twitter-tweet-rendered { width: 100% !important; max-width: 550px !important; margin: 28px auto !important; }
.artigo-texto blockquote.twitter-tweet { box-sizing: border-box; padding: 16px; border: 1px solid #e4e7ea; border-radius: 12px; background: #fff; }
.artigo-texto .twitter-tweet iframe { max-width: 100% !important; }
.esporteg-social-embeds { display: grid; justify-items: center; gap: 24px; width: 100%; margin: 30px auto; }
.esporteg-social-embed { box-sizing: border-box; width: min(100%, 640px); min-width: 0; margin: 0 auto; overflow: hidden; }
.esporteg-social-embed blockquote.twitter-tweet,
.esporteg-social-embed blockquote.instagram-media,
.esporteg-social-embed blockquote.tiktok-embed { box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 auto !important; }
.esporteg-social-embed__provider,
.esporteg-social-embed__provider iframe { width: 100%; max-width: 100%; }
.esporteg-social-embed__video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #111; }
.esporteg-social-embed__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.esporteg-social-embed__fallback { margin: 0; padding: 16px 18px; border: 1px solid #e2e8e3; border-left: 4px solid var(--gnews-primary); border-radius: 10px; background: #fff; font-size: 16px; }
.esporteg-social-embed__fallback a { color: var(--gnews-primary); font-weight: 700; text-decoration: none; }
.esporteg-social-embed__fallback a:hover { text-decoration: underline; }

/* =========================================
   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(46,143,60,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);
}

.gnews-related-link { color: var(--gnews-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.gnews-related-link:hover { color: var(--gnews-primary-hover); }
.search-results-header { margin: 20px 0 18px; padding-bottom: 14px; border-bottom: 1px solid #e5e7e9; }
.search-results-header .artigo-titulo { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.search-result-title { color: inherit; text-decoration: none; }
.search-result-title:hover .noticia-titulo { color: var(--gnews-primary); }
.search-no-results { padding: 20px; border-radius: 10px; background: #fff; color: #666; }
.search-results-page .navigation.pagination { margin: 25px 0; }

.site-footer { background: var(--gnews-primary); color: #fff; padding: 10px 0; text-align: center; margin-top: 40px; }

/* Responsivo */
@media (max-width: 992px) {
    .gnews-widget-sticky { position: static; }
    .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-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;
}

.eg-heart-team-overlay,
.eg-heart-team-panel {
    display: none;
}
.eg-heart-team-overlay[hidden],
.eg-heart-team-panel[hidden] {
    display: none !important;
}

@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-form.is-open {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: min(250px, calc(100vw - 150px)) !important;
        z-index: 20;
        box-shadow: 0 5px 20px rgba(0,0,0,.2);
    }
    .gnews-search-form.is-open .gnews-search-input {
        display: block !important;
        min-width: 0;
        flex: 1 1 auto;
    }
    .gnews-search-form.is-open .gnews-search-submit {
        flex: 0 0 40px;
    }
    .gnews-search-submit {
        width: 100%;
        height: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 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);
    }

    .eg-heart-team-overlay.open {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(16, 24, 18, .45);
    }

    .eg-heart-team-panel.open {
        display: block !important;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        z-index: 10001;
        max-height: min(70vh, 560px);
        overflow-y: auto;
        padding: 18px;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 12px 38px rgba(0,0,0,.24);
    }

    .eg-heart-team-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .eg-heart-team-panel h2 { margin: 0; color: #202124; font-size: 21px; }
    .eg-heart-team-panel-head button { border: 0; background: transparent; color: #555; font-size: 28px; line-height: 1; cursor: pointer; }
    .eg-heart-team-panel > p { margin: 8px 0 14px; color: #6a7075; font-size: 13px; }
    .eg-heart-team-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .eg-heart-team-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 10px 12px; border: 1px solid #e1e5e2; border-radius: 9px; color: #2b302d; font-size: 13px; font-weight: 700; text-decoration: none; }
    .eg-heart-team-option:hover, .eg-heart-team-option.selected { border-color: var(--gnews-primary); background: #edf7ee; color: #24732f; }
    .eg-heart-team-option b { color: var(--gnews-primary); font-size: 20px; line-height: 1; }
    .eg-heart-team-empty { grid-column: 1 / -1; color: #777; font-size: 13px; }

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

/* Rodapé institucional, formulário de contato e busca expansível no mobile. */
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
}
.site-footer-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 1 auto;
}
.site-footer-logo {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.site-footer-copyright { color: #fff; font-size: 14px; white-space: nowrap; }
.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2vw, 26px);
    margin-left: auto;
}
.site-footer-links a {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.site-footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.esporteg-contact-form-wrap { max-width: 760px; margin: 0 auto; }
.esporteg-contact-form { display: grid; gap: 10px; }
.esporteg-contact-form label { margin-top: 8px; color: #30343a; font-size: 15px; font-weight: 700; }
.esporteg-contact-form label span { color: #b42318; }
.esporteg-contact-form input,
.esporteg-contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d6dadd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font: inherit;
    padding: 12px 14px;
}
.esporteg-contact-form textarea { min-height: 170px; resize: vertical; }
.esporteg-contact-form input:focus,
.esporteg-contact-form textarea:focus { outline: 2px solid rgba(46,143,60,.25); border-color: var(--gnews-primary); }
.esporteg-contact-form button {
    justify-self: start;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--gnews-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 22px;
}
.esporteg-contact-form button:hover { background: var(--gnews-primary-hover); }
.esporteg-contact-notice { margin: 0 0 18px; border-radius: 8px; padding: 12px 14px; }
.esporteg-contact-notice.is-success { background: #e8f5ea; color: #205d2a; }
.esporteg-contact-notice.is-error { background: #fff0ef; color: #8d2118; }

.pagina-estatica { padding: 36px 0 56px; }
.pagina-estatica-conteudo { min-height: 320px; }
.pagina-estatica-conteudo .artigo-titulo { color: var(--gnews-primary); }

@media (max-width: 768px) {
    .pagina-estatica { padding: 16px 0 32px; }
    .site-footer-inner { flex-direction: column; justify-content: center; gap: 12px; padding: 18px 0; }
    .site-footer-brand { justify-content: center; flex-wrap: wrap; gap: 5px 8px; }
    .site-footer-logo { font-size: 22px; }
    .site-footer-copyright { font-size: 11px; }
    .site-footer-links {
        width: 100%;
        justify-content: center;
        gap: clamp(5px, 2vw, 12px);
        margin: 0;
    }
    .site-footer-links a {
        font-size: clamp(7px, 2.35vw, 10px);
        letter-spacing: -.2px;
    }
}

/* 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". */
}

/* 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(46,143,60,0.2);
}

/* Hide the sitewide floating share bar generated by ShareMyPost/AddToAny. */
.sharemypost-floating-bar,
.sharemypost-share-bar.sharemypost-floating-right,
.sharemypost-modal,
.a2a_floating_style,
.a2a_vertical_style,
.a2a_kit.a2a_floating_style,
.addtoany_share_save_container,
.sharethis-inline-share-buttons,
.sharethis-float-share-buttons {
    display: none !important;
}

/* =========================================
   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 {
    display: block;
    width: 19px;
    height: 19px;
    fill: currentColor;
    stroke: none;
}
.share-btn .icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.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;
}
.share-x {
    background-color: #111;
    font-weight: 800;
}


/* =========================================
   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="X"]:hover { color: #000000; }
.social-icons a[title="YouTube"]:hover { color: #FF0000; }

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

/* Leitura do artigo no celular: sem o cartão interno e com largura útil total. */
@media (max-width: 768px) {
    .artigo-conteudo {
        padding: 24px 16px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        max-width: none;
    }

    .artigo-conteudo > .container {
        max-width: none !important;
        width: 100%;
        padding: 0;
    }

    .artigo-texto {
        font-size: 18px;
        line-height: 1.6;
    }

    .artigo-texto p {
        margin-bottom: 26px;
    }
}

/* Cards da home e das páginas de categoria em largura total no celular. */
@media (max-width: 768px) {
    .destaques-principais,
    .conteudo-principal {
        width: 100%;
    }

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

    .destaques-principais .grid-destaques,
    .feed-lista {
        gap: 0;
    }

    .destaques-principais .noticia-card,
    .feed-item {
        width: 100%;
        box-sizing: border-box;
        border-radius: 0;
        box-shadow: none;
        border-left: 0;
        border-right: 0;
        transform: none;
    }

    .destaques-principais .noticia-card:hover,
    .feed-item:hover {
        box-shadow: none;
        transform: none;
    }

    .feed-item {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 0;
    }

    .feed-item + .feed-item {
        border-top: 0;
    }

    .feed-item .feed-imagem {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 16 / 10;
        border-radius: 0;
        box-shadow: none;
    }

    .feed-item .feed-imagem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.04);
    }

    .feed-item .feed-texto {
        padding: 18px 16px 24px;
    }

    .destaques-principais .noticia-card .noticia-conteudo {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn-editar-submanchete { margin: 0 16px 16px; }
    .gnews-submanchete-content { width: calc(100% - 24px); padding: 22px 18px; }
    .gnews-submanchete-item { grid-template-columns: 20px 22px minmax(0, 1fr) auto; gap: 5px; padding: 8px 6px; }
    .gnews-submanchete-title { font-size: 13px; }
    .gnews-submanchete-controls { gap: 2px; }
    .gnews-submanchete-move, .gnews-submanchete-remove { width: 25px; height: 25px; }
    .gnews-submanchete-add-row { flex-direction: column; }
    .gnews-submanchete-secondary { width: 100%; }
    .gnews-submanchete-actions { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* Ajustes finais dos cards no celular: selo em faixa própria e separação entre cards. */
@media (max-width: 768px) {
    .destaques-principais .grid-destaques,
    .feed-lista {
        gap: 16px;
    }

    .destaques-principais .noticia-card {
        border: 0;
        border-top: 1px solid #e3e6e8;
        border-bottom: 1px solid #e3e6e8;
    }

    .destaques-principais .noticia-card.noticia-com-foto {
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
        height: auto !important;
        background: #fff;
    }

    /* Capas sem imagem ocupam somente o espaço real do conteúdo. */
    .destaques-principais .noticia-card.noticia-sem-foto {
        display: block;
        min-height: 0 !important;
        height: auto !important;
        justify-content: flex-start;
        background: #fff;
    }

    .destaques-principais .noticia-card.noticia-sem-foto .noticia-conteudo {
        padding: 18px 16px 24px;
    }

    .destaques-principais .noticia-card.noticia-com-foto > img {
        order: 2;
        position: relative;
        inset: auto;
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        opacity: 1;
        transform: scale(1.04);
    }

    .destaques-principais .noticia-card.noticia-com-foto .noticia-conteudo {
        display: contents;
        position: static;
        padding: 0;
        background: transparent;
        pointer-events: auto;
    }

    /* Categoria em texto simples acima da foto, sem caixa ou sobreposição. */
    .destaques-principais .noticia-card.noticia-com-foto .noticia-categoria {
        order: 1;
        align-self: flex-start;
        position: static;
        z-index: auto;
        margin: 16px 16px 12px;
        padding: 0;
        border-radius: 0;
        background: transparent !important;
        color: var(--gnews-primary);
        border: 0 !important;
        box-shadow: none !important;
        font-size: 18px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.3px;
    }

    .destaques-principais .noticia-card.noticia-com-foto .noticia-titulo {
        order: 3;
        padding: 18px 16px 0;
        color: var(--gnews-primary);
        text-shadow: none;
        margin: 0;
    }

    .destaques-principais .noticia-card.noticia-com-foto .noticia-subtitulo-home {
        order: 4;
        padding: 10px 16px 24px;
        margin: 0;
    }

    .destaques-principais .noticia-card.noticia-com-foto .noticia-relacionadas {
        order: 5;
        margin: 0;
        padding: 0 16px 24px;
    }

    .feed-item {
        display: flex;
        position: relative;
        border: 0;
        border-top: 1px solid #e3e6e8;
        border-bottom: 1px solid #e3e6e8;
        background: #fff;
    }

    .feed-item .feed-texto {
        display: contents;
        position: static;
    }

    .feed-item .noticia-categoria-feed {
        order: 1;
        align-self: flex-start;
        position: static;
        margin: 16px 16px 12px;
        padding: 0;
        border-radius: 0;
        background: transparent !important;
        color: var(--gnews-primary);
        border: 0 !important;
        box-shadow: none !important;
        font-size: 18px;
        line-height: 1.2;
        font-weight: 800;
        letter-spacing: -0.3px;
    }

    .feed-item .feed-imagem {
        order: 2;
        margin-top: 0;
    }

    .feed-item .feed-texto > a {
        order: 3;
        padding: 18px 16px 0;
    }

    .feed-item .noticia-resumo {
        order: 4;
        padding: 10px 16px 24px;
    }

    .feed-item .noticia-relacionadas {
        order: 5;
        margin-top: 12px;
        padding: 0 16px 24px;
    }

    .destaques-principais .noticia-card .noticia-titulo,
    .feed-item .noticia-titulo {
        color: var(--gnews-primary);
    }

    .destaques-principais .noticia-card .noticia-categoria,
    .feed-item .noticia-categoria-feed {
        color: var(--gnews-primary);
    }
}
