/*
Theme Name: FVS Press News
Author: Fredson Santana
Version: 1.0.0
Description: Tema WordPress de notícias sofisticado com carrossel hero, seções por categoria, ticker de últimas notícias, e todas as funcionalidades do FVS Press 3.0.
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #fff;
    color: var(--font-color, #222);
    line-height: 1.7;
    font-size: 18px;
}
a { color: var(--link-color, #0073aa); text-decoration: none; }
a:hover, a:focus { color: #005177; text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === CSS VARIABLES === */
:root {
    --header-bg: #000000;
    --header-title-color: #ffffff;
    --footer-bg: #2e2e2e;
    --footer-color: #f1f1f1;
    --site-title-font-size: 32px;
    --menu-font-size: 16px;
    --article-font-size: 18px;
    --font-color: #222222;
    --link-color: #0073aa;
}

/* === HEADER === */
.site-header {
    background: var(--header-bg);
    padding: 8px 20px 12px;
    position: relative;
    z-index: 100;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.site-title-container { margin: 0; padding: 0; }
.site-title { margin: 0; padding: 0; font-size: var(--site-title-font-size); line-height: 1.2; }
.site-title a { color: var(--header-title-color) !important; text-decoration: none; display: inline-block; }
.site-title a:hover { opacity: 0.85; text-decoration: none; }

/* === NAV === */
.menu-wrapper { position: relative; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--header-title-color); cursor: pointer; padding: 5px; }
#menu-close { display: none; font-size: 24px; font-weight: bold; color: var(--header-title-color); background: transparent; border: none; position: absolute; top: 8px; left: 12px; z-index: 1001; cursor: pointer; }
.main-navigation { display: block; }
.main-navigation ul.menu { display: flex; list-style: none; gap: 5px; padding: 0; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.main-navigation ul.menu li { display: inline-block; }
.main-navigation ul.menu li a { color: var(--header-title-color) !important; display: block; padding: 8px 14px; text-decoration: none; font-size: var(--menu-font-size); font-weight: 600; border-radius: 4px; }
.main-navigation ul.menu li a:hover { opacity: 0.75; text-decoration: none; }

/* === SEARCH === */
.top-search-bar { background: #f1f1f1; padding: 8px 10px; text-align: center; }
.top-search-bar form { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 600px; margin: 0 auto; }
.top-search-bar input[type="search"] { padding: 6px 10px; width: 70%; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
.top-search-bar input[type="submit"] { padding: 6px 14px; background: #0056b3; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 15px; }
.top-search-bar input[type="submit"]:hover { background: #003d80; }
#search-below-header { text-align: center; padding: 10px 0; }

/* === MAIN === */
.site-main, .content-area, .site-content { max-width: 960px; margin: 30px auto; padding: 20px 30px; }
.entry-content, .post-content { font-size: var(--article-font-size); line-height: 1.8; }
.entry-content p { margin-bottom: 1.5em; text-align: justify; }
.entry-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin: 20px 0 30px; }
h1 { font-size: 2.8rem; } h2 { font-size: 2.2rem; } h3 { font-size: 1.9rem; } h4 { font-size: 1.6rem; } h5 { font-size: 1.3rem; } h6 { font-size: 1.1rem; }
.single h1, .page h1 { font-size: 3rem; text-align: center; margin-top: 0; }

/* === GRID === */
.feupress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin: 30px 0; }
.feupress-grid article { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.08); transition: box-shadow .3s; }
.feupress-grid article:hover { box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.feupress-grid .entry-title { font-size: 1.2em; margin: 0 0 12px; text-align: left; }

/* === META === */
.post-meta, .post-meta-small { font-size: 0.82em; color: #595959; margin-bottom: 18px; }
.post-meta a { color: #003366; font-weight: bold; text-decoration: underline; }
.tempo-leitura { font-size: 14px; color: #555555; margin-bottom: 10px; }

/* === PAGINATION === */
.paginacao-numerada { text-align: center; margin: 30px 0; }
.paginacao-numerada .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; background: #eee; color: #333; border-radius: 4px; text-decoration: none; font-weight: 600; }
.paginacao-numerada .current { background: #0073aa; color: #fff; }
.paginacao-numerada .page-numbers:hover { background: #003d80; color: #fff; }

/* === FOOTER === */
footer.site-footer { background: var(--footer-bg); color: var(--footer-color); padding: 30px 20px 0; margin-top: 40px; }
.footer-custom-columns { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin: 0 auto 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-custom-column { flex: 1 1 180px; color: var(--footer-color); font-size: .95em; }
.footer-custom-column h3 { color: #fff; font-size: 1rem; margin: 0 0 10px; border-bottom: 2px solid rgba(255,255,255,.2); padding-bottom: 6px; }
.footer-nav-row { background: #1a1a1a; text-align: center; padding: 12px 20px; }
.footer-menu { list-style: none; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.footer-menu li a { padding: 8px 14px; display: inline-block; font-size: 15px; color: #f1f1f1; background: #2e2e2e; border-radius: 3px; text-decoration: none; }
.footer-menu li a:hover { background: #444; color: #fff; text-decoration: none; }
.site-info { text-align: center; padding: 12px 10px; background: #2e2e2e; color: #f1f1f1; font-size: 15px; }
.site-info a { color: #f1f1f1; }
.footer-credit { width: 100%; text-align: center; font-size: .85em; background: #f0f0f0; color: #000; padding: 12px 10px; display: block; }
.footer-credit a { color: #003366; font-weight: bold; text-decoration: underline; }

/* === ACCESSIBILITY TOOLS === */
.fvsp-accessibility-tools { display: inline-flex; gap: 8px; margin: 20px 0 10px; align-items: center; flex-wrap: wrap; }
.fvsp-accessibility-label { font-weight: 600; font-size: 15px; margin: 0; padding: 0; line-height: 1; color: inherit; }
.fvsp-accessibility-tools button, #fvsp-dark-mode {
    background: #121212; color: #e0e0e0; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: background .3s; white-space: nowrap;
}
.fvsp-accessibility-tools button:hover, #fvsp-dark-mode:hover { background: #333; }

/* === DARK MODE — !important em tudo para sobrescrever CSS dinâmico do Customizer === */
body.dark-mode { background-color: #121212 !important; }
/* Cor de texto global no dark mode */
body.dark-mode,
body.dark-mode p,
body.dark-mode li,
body.dark-mode span:not(.fvsp-accessibility-label),
body.dark-mode td,
body.dark-mode div { color: #e0e0e0 !important; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #f0f0f0 !important; }
body.dark-mode a, body.dark-mode a:visited { color: #bb86fc !important; }
/* Cabeçalho */
body.dark-mode .site-header { background: #1a1a1a !important; background-image: none !important; }
body.dark-mode .site-title a,
body.dark-mode .main-navigation ul.menu li a,
body.dark-mode .menu-toggle { color: #ffffff !important; }
/* Busca */
body.dark-mode .top-search-bar,
body.dark-mode #search-below-header { background: #1e1e1e !important; }
body.dark-mode input[type="search"] { background: #2a2a2a !important; color: #e0e0e0 !important; border-color: #555 !important; }
/* Conteúdo */
body.dark-mode .site-main,
body.dark-mode .content-area,
body.dark-mode main { background-color: #121212 !important; }
body.dark-mode .feupress-grid article { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .entry-title { color: #f0f0f0 !important; }
body.dark-mode .post-meta,
body.dark-mode .post-meta-small,
body.dark-mode .tempo-leitura { color: #bbb !important; }
/* Índice */
body.dark-mode .indice-conteudo { background: #1e1e1e !important; border-color: #444 !important; }
body.dark-mode .indice-conteudo a { color: #bb86fc !important; }
/* Rodapé */
body.dark-mode footer.site-footer { background-color: #0d0d0d !important; background-image: none !important; }
body.dark-mode .footer-nav-row { background-color: #111 !important; }
body.dark-mode .site-info { background-color: #111 !important; }
body.dark-mode .footer-credit { background: #1a1a1a !important; color: #aaa !important; }
/* Botões de acessibilidade */
body.dark-mode .fvsp-accessibility-tools button,
body.dark-mode #fvsp-dark-mode { background: #444 !important; color: #fff !important; }
/* Cookie banner */
body.dark-mode #cookie-banner { background: #1a1a1a !important; }

/* === AUDIO READER === */
#fvs-audio-reader { all: initial; display: flex; flex-direction: row; align-items: center; gap: 6px; background: #fff; border: 1px solid #ccc; border-radius: 999px; padding: 5px 12px; margin: 0 0 20px; box-shadow: 0 2px 8px rgba(0,0,0,.12); width: fit-content; font-family: sans-serif; box-sizing: border-box; position: relative; z-index: 9999; }
#fvs-audio-reader button { all: initial; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: #222; flex-shrink: 0; }
#fvs-audio-reader button:hover { background: #f0f0f0; }
#fvs-audio-reader button svg { width: 16px; height: 16px; display: block; pointer-events: none; }
#fvs-audio-reader button.fvs-ar-active { color: #c0392b; }
#fvs-audio-reader .fvs-sep { width: 1px; height: 20px; background: #ddd; flex-shrink: 0; }
#fvs-audio-reader select { all: initial; font-family: sans-serif; font-size: 11px; font-weight: 700; color: #666; cursor: pointer; padding: 2px; background: transparent; }
#fvs-audio-reader .fvs-bar { width: 70px; height: 4px; background: #e0e0e0; border-radius: 2px; cursor: pointer; position: relative; flex-shrink: 0; }
#fvs-audio-reader .fvs-fill { height: 100%; background: #c0392b; border-radius: 2px; width: 0%; transition: width .3s; pointer-events: none; }
.fvs-hl { background: #fff9c4 !important; border-radius: 3px; }
#fvs-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #333; color: #fff; padding: 8px 20px; border-radius: 99px; font-size: 13px; font-family: sans-serif; opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; z-index: 999999; white-space: nowrap; }
#fvs-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === TOC === */
.indice-conteudo { margin: 20px 0; padding: 15px; border: 1px solid #ccc; background: #f9f9f9; border-radius: 6px; font-size: .9em; }
.indice-conteudo ul { list-style: none; padding: 0; margin: 8px 0 0; }
.indice-conteudo li a { display: block; padding: 8px 10px; font-size: 16px; min-height: 44px; text-decoration: none; color: #0073aa; border-radius: 4px; line-height: 1.4; }
.indice-conteudo li a:hover { background: rgba(0,115,170,.08); }

/* === ADS === */
.ads-custom, .ads-below-search { display: block !important; margin: 20px auto !important; text-align: center !important; clear: both; float: none !important; width: 100%; }
.adsbygoogle, ins.adsbygoogle { display: block; margin-left: auto !important; margin-right: auto !important; }

/* === SCROLL TOP === */
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; display: none; font-size: 22px; background: #444; color: #fff; padding: 10px 14px; border-radius: 50%; z-index: 1000; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.scroll-to-top:hover { background: #000; text-decoration: none; }

/* === COOKIE BANNER === */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #222; color: #fff; padding: 14px 20px; z-index: 9999; text-align: center; font-size: 14px; }
#cookie-banner a { color: #0ff; text-decoration: underline; margin-left: 5px; }
#cookie-banner button { margin-left: 12px; padding: 5px 12px; cursor: pointer; border: none; border-radius: 4px; background: #fff; color: #222; font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 1024px) { .feupress-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .feupress-grid { grid-template-columns: 1fr; }
    .site-main, .content-area, .site-content { padding: 15px; margin: 15px auto; }
    .entry-title { font-size: 1.8rem; }
    .header-flex { flex-direction: column; align-items: center; text-align: center; }
    .site-title-container { margin-bottom: 6px; }
    /* O site-header precisa de position:relative para o menu absoluto ser relativo a ele */
    .site-header { position: relative; }
    .menu-wrapper { width: 100%; }
    .menu-toggle { display: block; width: 100%; text-align: center; font-size: 2rem; padding: 8px 0; }
    /* Menu mobile — largura total do viewport */
    .main-navigation {
        display: none;
        background: var(--header-bg, #000);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        padding: 0;
        box-shadow: 0 8px 20px rgba(0,0,0,.45);
        z-index: 9999;
        box-sizing: border-box;
    }
    .main-navigation.menu-open { display: block; }
    .main-navigation ul.menu {
        display: block !important;
        list-style: none;
        width: 100%;
        padding: 8px 0 16px;
        margin: 0;
        box-sizing: border-box;
    }
    .main-navigation ul.menu li {
        display: block !important;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .main-navigation ul.menu li:last-child { border-bottom: none; }
    .main-navigation ul.menu li a {
        display: block !important;
        width: 100%;
        padding: 16px 24px !important;
        font-size: 1.05rem !important;
        font-weight: 600;
        text-align: left;
        box-sizing: border-box;
        color: #ffffff !important;
        white-space: normal;
        word-break: break-word;
    }
    .main-navigation ul.menu li a:hover { opacity: 0.8; background: rgba(255,255,255,.08); }
    .footer-custom-columns { flex-direction: column; }
}
@media (max-width: 480px) { .entry-title { font-size: 1.5rem; } }

/* === SKIP LINK — visível apenas para leitores de tela === */
.skip-link.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.skip-link.screen-reader-text:focus {
    position: fixed !important;
    top: 6px !important;
    left: 6px !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    z-index: 99999 !important;
    background: #000;
    color: #fff;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* === ANÚNCIOS — centralizados e sem duplicação === */
.ads-custom,
.ads-topo,
.ads-below-search,
.ads-before-title,
.ads-after-content {
    display: block !important;
    width: 100%;
    text-align: center !important;
    margin: 16px auto !important;
    clear: both;
    float: none !important;
    box-sizing: border-box;
}
.ads-custom *,
.ads-topo *,
.ads-below-search * {
    display: inline-block !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}
ins.adsbygoogle {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   FVS PRESS NEWS — Layout de Portal de Notícias
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variáveis de notícias ───────────────────────────────────────────────── */
:root {
    --news-accent:   #c0392b;
    --news-accent2:  #e74c3c;
    --news-dark:     #111;
    --news-mid:      #444;
    --news-light:    #f5f5f5;
    --news-border:   #e0e0e0;
    --news-radius:   8px;
    --news-shadow:   0 2px 10px rgba(0,0,0,.10);
    --news-max:      1200px;
}

/* ── Reset do main para layout full-width ───────────────────────────────── */
.fvsnews-main {
    max-width: var(--news-max);
    margin: 0 auto;
    padding: 0 16px 40px;
}

/* ════════════════════════════════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-ticker {
    background: var(--news-dark);
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
    font-size: 13px;
}
.fvsnews-ticker-label {
    background: var(--news-accent);
    color: #fff;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: .04em;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
}
.fvsnews-ticker-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}
.fvsnews-ticker-inner {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: fvsnews-ticker-scroll 40s linear infinite;
}
.fvsnews-ticker-inner a {
    color: #eee;
    text-decoration: none;
    padding: 0 18px;
    font-weight: 500;
    transition: color .2s;
}
.fvsnews-ticker-inner a:hover { color: #fff; text-decoration: underline; }
.fvsnews-ticker-dot { color: var(--news-accent); padding: 0 4px; font-size: 10px; }
@keyframes fvsnews-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.fvsnews-ticker:hover .fvsnews-ticker-inner { animation-play-state: paused; }

/* ════════════════════════════════════════════════════════════════════════
   CARROSSEL HERO
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-hero {
    margin: 0 0 32px;
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
}
.fvsnews-carousel {
    position: relative;
    background: var(--news-dark);
    aspect-ratio: 16/7;
    overflow: hidden;
}
@media (max-width: 600px) { .fvsnews-carousel { aspect-ratio: 4/3; } }

.fvsnews-carousel-track { position: relative; width: 100%; height: 100%; }

.fvsnews-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
}
.fvsnews-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.fvsnews-slide-img {
    position: absolute;
    inset: 0;
}
.fvsnews-slide-img a,
.fvsnews-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fvsnews-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.28) 55%, transparent 100%);
}
.fvsnews-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 28px;
    z-index: 2;
}
.fvsnews-slide-title {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 8px 0 10px;
}
.fvsnews-slide-title a { color: #fff !important; text-decoration: none; }
.fvsnews-slide-title a:hover { text-decoration: underline; }
.fvsnews-slide-excerpt { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0 0 8px; line-height: 1.5; }
.fvsnews-slide-meta { color: rgba(255,255,255,.65); font-size: .8rem; }

/* Botões prev/next */
.fvsnews-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    backdrop-filter: blur(4px);
}
.fvsnews-carousel-btn:hover { background: rgba(192,57,43,.85); }
.fvsnews-prev { left: 14px; }
.fvsnews-next { right: 14px; }

/* Dots */
.fvsnews-dots {
    position: absolute;
    bottom: 4px;
    right: 6px;
    display: flex;
    gap: 0;
    z-index: 10;
}
.fvsnews-dot {
    /* Área de toque real: 44×44px via padding */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
}
.fvsnews-dot::after {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: background .25s, transform .25s;
    flex-shrink: 0;
}
.fvsnews-dot.active::after {
    background: #fff;
    transform: scale(1.3);
}
.fvsnews-dot:hover::after { background: rgba(255,255,255,.75); }

/* ════════════════════════════════════════════════════════════════════════
   BADGE DE CATEGORIA
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-badge {
    display: inline-block;
    background: var(--news-accent);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 3px;
    text-decoration: none !important;
    margin-bottom: 6px;
    line-height: 1.5;
}
.fvsnews-badge:hover { background: var(--news-accent2); }

/* ════════════════════════════════════════════════════════════════════════
   SEÇÕES GENÉRICAS
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-section { margin: 0 0 40px; }
.fvsnews-section-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) { .fvsnews-section-inner { grid-template-columns: 1fr; } }

/* ── Título de seção ──────────────────────────────────────────────────── */
.fvsnews-block-title,
.fvsnews-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 16px;
    border-bottom: 3px solid var(--news-accent);
    padding-bottom: 8px;
}
.fvsnews-block-title span,
.fvsnews-cat-title span {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--news-dark);
    letter-spacing: .01em;
}
.fvsnews-cat-title { font-size: 1.15rem; font-weight: 800; margin: 0; border: none; padding: 0; }
.fvsnews-cat-more {
    font-size: .82rem;
    font-weight: 700;
    color: var(--news-accent) !important;
    text-decoration: none;
    border: 1px solid var(--news-accent);
    padding: 3px 10px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.fvsnews-cat-more:hover { background: var(--news-accent); color: #fff !important; }

/* ════════════════════════════════════════════════════════════════════════
   DESTAQUE PRINCIPAL (grande)
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-featured-main { display: flex; flex-direction: column; gap: 0; }
.fvsnews-featured-img { border-radius: var(--news-radius) var(--news-radius) 0 0; overflow: hidden; }
.fvsnews-featured-img a, .fvsnews-featured-img img {
    width: 100%; height: 260px; object-fit: cover; display: block;
    transition: transform .35s;
}
.fvsnews-featured-img a:hover img { transform: scale(1.03); }
.fvsnews-featured-body {
    background: #fff;
    border: 1px solid var(--news-border);
    border-top: none;
    border-radius: 0 0 var(--news-radius) var(--news-radius);
    padding: 18px 20px;
    box-shadow: var(--news-shadow);
}
.fvsnews-featured-body h2 {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 6px 0 10px;
}
.fvsnews-featured-body h2 a { color: var(--news-dark) !important; text-decoration: none; }
.fvsnews-featured-body h2 a:hover { color: var(--news-accent) !important; }
.fvsnews-featured-body p { font-size: .95rem; color: #444; margin: 0 0 10px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════════════
   LISTA LATERAL DE ÚLTIMAS
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-latest-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    padding: 16px;
    box-shadow: var(--news-shadow);
    align-self: start;
}
.fvsnews-list-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}
.fvsnews-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.fvsnews-list-thumb { flex-shrink: 0; width: 70px; height: 60px; border-radius: 5px; overflow: hidden; }
.fvsnews-list-thumb a, .fvsnews-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fvsnews-list-body { flex: 1; }
.fvsnews-list-body h4 { font-size: .88rem; font-weight: 700; line-height: 1.35; margin: 4px 0 4px; }
.fvsnews-list-body h4 a { color: var(--news-dark) !important; text-decoration: none; }
.fvsnews-list-body h4 a:hover { color: var(--news-accent) !important; }

/* ════════════════════════════════════════════════════════════════════════
   GRADE DE CATEGORIAS
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-cat-section { padding: 0; }
.fvsnews-cat-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 900px) { .fvsnews-cat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .fvsnews-cat-grid { grid-template-columns: 1fr; } }

/* Card padrão */
.fvsnews-card {
    background: #fff;
    border: 1px solid var(--news-border);
    border-radius: var(--news-radius);
    overflow: hidden;
    box-shadow: var(--news-shadow);
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
}
.fvsnews-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.15);
    transform: translateY(-2px);
}
.fvsnews-card-img { overflow: hidden; }
.fvsnews-card-img a, .fvsnews-card-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.fvsnews-card-big .fvsnews-card-img a,
.fvsnews-card-big .fvsnews-card-img img { height: 220px; }
.fvsnews-card:hover .fvsnews-card-img img { transform: scale(1.04); }
.fvsnews-card-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.fvsnews-card-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 5px 0 6px;
    flex: 1;
}
.fvsnews-card-big .fvsnews-card-title { font-size: 1.1rem; }
.fvsnews-card-title a { color: var(--news-dark) !important; text-decoration: none; }
.fvsnews-card-title a:hover { color: var(--news-accent) !important; }
.fvsnews-card-excerpt { font-size: .85rem; color: #444; margin: 0 0 6px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════════
   GRADE MAIS NOTÍCIAS (3 colunas)
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .fvsnews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .fvsnews-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   META / UTILITÁRIOS
   ════════════════════════════════════════════════════════════════════════ */
.fvsnews-meta-line,
.fvsnews-meta-sm {
    font-size: .78rem;
    color: #666;
    display: block;
    margin-top: auto;
    padding-top: 4px;
}

/* ════════════════════════════════════════════════════════════════════════
   DARK MODE — extensões para layout de notícias
   ════════════════════════════════════════════════════════════════════════ */
body.dark-mode .fvsnews-ticker { background: #0a0a0a !important; }
body.dark-mode .fvsnews-featured-body,
body.dark-mode .fvsnews-latest-list,
body.dark-mode .fvsnews-card { background: #1e1e1e !important; border-color: #333 !important; }
body.dark-mode .fvsnews-card-title a,
body.dark-mode .fvsnews-featured-body h2 a,
body.dark-mode .fvsnews-list-body h4 a { color: #f0f0f0 !important; }
body.dark-mode .fvsnews-cat-title span,
body.dark-mode .fvsnews-block-title span { color: #f0f0f0 !important; }
body.dark-mode .fvsnews-card-excerpt,
body.dark-mode .fvsnews-featured-body p { color: #aaa !important; }
body.dark-mode .fvsnews-list-item { border-color: #333 !important; }
body.dark-mode .fvsnews-meta-line,
body.dark-mode .fvsnews-meta-sm { color: #aaa !important; }
body.dark-mode .fvsnews-main { background: transparent !important; }

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVO GLOBAL
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .fvsnews-slide-content { padding: 16px; }
    .fvsnews-slide-excerpt { display: none; }
    .fvsnews-carousel-btn { width: 34px; height: 34px; font-size: 14px; }
    .fvsnews-cat-grid { grid-template-columns: 1fr 1fr; }
    .fvsnews-card-big .fvsnews-card-img img { height: 180px; }
}
@media (max-width: 480px) {
    .fvsnews-ticker { font-size: 12px; }
    .fvsnews-section-inner { grid-template-columns: 1fr; }
    .fvsnews-cat-grid { grid-template-columns: 1fr; }
    .fvsnews-grid { grid-template-columns: 1fr; }
    .fvsnews-featured-img a,
    .fvsnews-featured-img img { height: 200px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   BOTÕES DE COMPARTILHAMENTO
   ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════
   BOTÕES DE COMPARTILHAMENTO — design moderno
   ══════════════════════════════════════════════════════════════════════════ */
.fvsnews-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 32px 0 24px;
    padding: 0;
    background: none;
    border: none;
    border-top: 1px solid #e8e8e8;
    padding-top: 20px;
}
.fvsnews-share-label {
    font-weight: 700;
    font-size: .78rem;
    color: #666;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-right: 4px;
    white-space: nowrap;
}
/* Botão base — estilo pill outline */
.fvsnews-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: .02em;
}
.fvsnews-share-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: block;
}
.fvsnews-share-btn:hover {
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.fvsnews-share-btn:active { transform: scale(.97); }

/* Facebook — azul sólido */
.fvsnews-share-fb {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff !important;
}
.fvsnews-share-fb:hover { background: #0d65d9; border-color: #0d65d9; color: #fff !important; }

/* WhatsApp — verde sólido */
.fvsnews-share-wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff !important;
}
.fvsnews-share-wa:hover { background: #1aad52; border-color: #1aad52; color: #fff !important; }

/* X — outline preto elegante */
.fvsnews-share-x {
    background: #fff;
    border-color: #222;
    color: #111 !important;
}
.fvsnews-share-x:hover { background: #111; border-color: #111; color: #fff !important; }

/* Pinterest — vermelho sólido */
.fvsnews-share-pin {
    background: #e60023;
    border-color: #e60023;
    color: #fff !important;
}
.fvsnews-share-pin:hover { background: #c0001d; border-color: #c0001d; color: #fff !important; }

/* Copiar link — outline neutro */
.fvsnews-share-copy {
    background: #fff;
    border-color: #ccc;
    color: #444 !important;
}
.fvsnews-share-copy:hover { border-color: #888; color: #111 !important; background: #f5f5f5; }
.fvsnews-share-copy.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff !important;
}

/* Dark mode */
body.dark-mode .fvsnews-share { border-color: #333 !important; }
body.dark-mode .fvsnews-share-label { color: #bbb !important; }
body.dark-mode .fvsnews-share-x { background: #1e1e1e !important; border-color: #eee !important; color: #eee !important; }
body.dark-mode .fvsnews-share-x:hover { background: #fff !important; color: #111 !important; }
body.dark-mode .fvsnews-share-copy { background: #1e1e1e !important; border-color: #555 !important; color: #ccc !important; }
body.dark-mode .fvsnews-share-copy:hover { border-color: #aaa !important; color: #fff !important; }

/* Mobile */
@media (max-width: 480px) {
    .fvsnews-share { gap: 6px; }
    .fvsnews-share-btn { height: 30px; padding: 0 11px; font-size: .72rem; }
    .fvsnews-share-btn svg { width: 12px; height: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   POSTS RELACIONADOS
   ══════════════════════════════════════════════════════════════════════════ */

/* Escapa do padding do site-main (20px 30px) para usar toda a largura */
.fvsnews-related {
    margin: 44px -30px 0;
    padding: 32px 30px 10px;
    border-top: 3px solid var(--news-accent, #c0392b);
    background: #fafafa;
}
body.dark-mode .fvsnews-related { background: #161616 !important; }

.fvsnews-related-title {
    margin: 0 0 20px;
}
.fvsnews-related-title span {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .04em;
}
body.dark-mode .fvsnews-related-title span { color: #f0f0f0 !important; }

/* Grid sempre 4 colunas em desktop — nunca quebra */
.fvsnews-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 700px) { .fvsnews-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px) { .fvsnews-related-grid { grid-template-columns: 1fr; } }

.fvsnews-related-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    transition: box-shadow .22s, transform .22s;
    display: flex;
    flex-direction: column;
}
.fvsnews-related-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.14);
    transform: translateY(-3px);
}
.fvsnews-related-img { overflow: hidden; flex-shrink: 0; }
.fvsnews-related-img a { display: block; }
.fvsnews-related-img img {
    width: 100%;
    height: 115px;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}
.fvsnews-related-card:hover .fvsnews-related-img img { transform: scale(1.05); }
.fvsnews-related-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fvsnews-related-body h4 {
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.38;
    margin: 5px 0 6px;
    flex: 1;
}
.fvsnews-related-body h4 a { color: #111 !important; text-decoration: none; }
.fvsnews-related-body h4 a:hover { color: #c0392b !important; }
.fvsnews-related-meta { font-size: .72rem; color: #767676; display: block; }

/* Dark mode */
body.dark-mode .fvsnews-related-card { background: #1e1e1e !important; }
body.dark-mode .fvsnews-related-body h4 a { color: #eee !important; }
body.dark-mode .fvsnews-related-meta { color: #aaa !important; }
