
/* Widcyber News v1.2 - acabamento responsivo */

/* Ocultação reforçada de elementos padrões do tema no single de notícias */
.single-post .entry-date,
.single-post time.entry-date,
.single-post time.published,
.single-post time.updated,
.single-post .posted-on,
.single-post .post-date,
.single-post .meta-date,
.single-post .date,
.single-post .post-time,
.single-post .entry-meta time,
.single-post .post-meta time,
.single-post .elementor-post-info,
.single-post .elementor-icon-list-items.elementor-post-info{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
}

/* Mantém a data/hora do layout jornalístico visível */
.single-post .wnp-wrap .wnp-byline,
.single-post .wnp-wrap .wnp-byline span{
    display:flex !important;
    visibility:visible !important;
    height:auto !important;
    max-height:none !important;
    opacity:1 !important;
}

/* Botões sociais do layout de notícia */
.wnp-share a,
.wnp-share a:visited,
.wnp-share button{
    background:#c94a1b !important;
    color:#ffffff !important;
}

.wnp-share a:hover,
.wnp-share button:hover{
    background:#a83b14 !important;
    color:#ffffff !important;
}

/* Imagem destacada com cantos levemente arredondados */
.wnp-featured,
.wnp-featured img{
    border-radius:18px !important;
}

/* Mais respiro depois dos botões de compartilhamento e antes da imagem */
.wnp-share{
    margin-bottom:34px !important;
}

.wnp-featured{
    margin-top:34px !important;
}

/* Barra de progresso de leitura fixa e discreta */
.wnp-reading-progress{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    height:5px;
    background:rgba(0,0,0,.08);
    z-index:999999;
    pointer-events:none;
}

.wnp-reading-progress span{
    display:block;
    width:0%;
    height:100%;
    background:#c94a1b;
    border-radius:0 999px 999px 0;
    transition:width .08s linear;
}

/* Mobile: centralização adequada para layout jornalístico */
@media(max-width:768px){
    .wnp-header{
        text-align:center !important;
    }

    .wnp-kicker,
    .wnp-title,
    .wnp-subtitle{
        text-align:center !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    .wnp-byline{
        justify-content:center !important;
        text-align:center !important;
    }

    .wnp-share{
        justify-content:center !important;
        margin-bottom:32px !important;
    }

    .wnp-featured{
        margin-top:32px !important;
    }

    .wnp-reading-progress{
        height:4px;
    }
}

@media(max-width:460px){
    .single-post .wnp-wrap .wnp-byline{
        display:block !important;
    }

    .wnp-byline span{
        display:block !important;
        text-align:center !important;
    }
}


/* Widcyber: ocultação reforçada do cabeçalho/metadados/capa padrão do tema */
.single-post article > .entry-header,
.single-post article > header,
.single-post .entry-header,
.single-post .post-header,
.single-post .single-header,
.single-post .single-post-header,
.single-post .page-header,
.single-post .ast-single-post .entry-header,
.single-post .site-main > article > header.entry-header,
.single-post article.post > header.entry-header,
.single-post h1.entry-title,
.single-post .entry-title,
.single-post .post-title,
.single-post .entry-meta,
.single-post .post-meta,
.single-post .single-post-meta,
.single-post .byline,
.single-post .posted-on,
.single-post .cat-links,
.single-post .tags-links,
.single-post .author.vcard,
.single-post .post-thumbnail,
.single-post .entry-thumbnail,
.single-post .featured-image,
.single-post .single-featured-image,
.single-post .wp-post-image:not(.wsp-pro-cover):not(.wnp-featured img){
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
}

/* Mantém visíveis apenas os cabeçalhos, capas e metadados dos plugins Widcyber */
.single-post .wsp-pro-wrap,
.single-post .wsp-pro-wrap *,
.single-post .wnp-wrap,
.single-post .wnp-wrap *{
    visibility:visible;
    opacity:1;
}

.single-post .wsp-pro-wrap .wsp-pro-hero,
.single-post .wsp-pro-wrap .wsp-pro-coverbox,
.single-post .wsp-pro-wrap .wsp-pro-title,
.single-post .wsp-pro-wrap .wsp-pro-meta,
.single-post .wnp-wrap .wnp-header,
.single-post .wnp-wrap .wnp-title,
.single-post .wnp-wrap .wnp-byline,
.single-post .wnp-wrap .wnp-featured{
    display:block !important;
    visibility:visible !important;
    height:auto !important;
    max-height:none !important;
    margin-left:initial;
    margin-right:initial;
    padding:initial;
    overflow:visible !important;
    opacity:1 !important;
}

.single-post .wsp-pro-wrap .wsp-pro-hero{
    display:grid !important;
}

.single-post .wsp-pro-wrap .wsp-pro-coverbox{
    display:flex !important;
    height:400px !important;
}

.single-post .wsp-pro-wrap .wsp-pro-meta,
.single-post .wnp-wrap .wnp-byline{
    display:flex !important;
}

/* Widcyber News Post Layout */

/* Esconde cabeçalhos padrões do tema no single de notícia */
.single-post .entry-header,
.single-post .post-header,
.single-post .single-header,
.single-post .single-post-header,
.single-post .page-header,
.single-post .ast-single-post .entry-header,
.single-post .site-main > article > header.entry-header,
.single-post article.post > header.entry-header,
.single-post h1.entry-title{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
}

.single-post .wnp-wrap h1,
.single-post .wnp-wrap .wnp-header{
    display:block !important;
    visibility:visible !important;
    height:auto !important;
}

.wnp-wrap{
    max-width:1120px;
    margin:0 auto;
    padding:28px 18px 50px;
    color:#111827;
    font-family:inherit;
}

.wnp-header{
    max-width:920px;
    margin:0 auto 32px;
    border-bottom:1px solid #e5e7eb;
    padding-bottom:28px;
}

.wnp-kicker{
    display:inline-block;
    color:#c94a1b;
    font-size:13px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:16px;
}

.wnp-title{
    color:#111827;
    margin:0;
    font-size:clamp(28px,4vw,48px);
    line-height:.98;
    letter-spacing:-.05em;
    font-weight:900;
}

.wnp-subtitle{
    max-width:790px;
    margin:18px 0 0;
    color:#4b5563;
    font-size:22px;
    line-height:1.45;
}

.wnp-byline{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:24px;
    color:#6b7280;
    font-size:16px;
}

.wnp-byline span:not(:last-child)::after{
    content:"•";
    color:#9ca3af;
    margin-left:10px;
}

.wnp-share{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:22px;
}

.wnp-share a,
.wnp-share button{
    border:0;
    cursor:pointer;
    text-decoration:none;
    background:#c94a1b !important;
    color:#ffffff !important;
    border-radius:999px;
    padding:10px 16px;
    font-size:13px;
    font-weight:800;
    line-height:1;
}

.wnp-share a:hover,
.wnp-share button:hover{
    background:#a83b14 !important;
    color:#ffffff !important;
}

.wnp-featured{
    margin:28px auto 48px;
    border-radius:24px;
    overflow:hidden;
    background:#f3f4f6;
}

.wnp-featured img{
    width:100%;
    margin:0 auto;
    display:block;
    height:auto;
}

.wnp-content{
    max-width:760px;
    margin:24px auto 0;
    color:#1f2937;
    font-size:20px;
    line-height:1.86;
}

.wnp-content p{
    margin:0 0 1.45em;
}

.wnp-content h2,
.wnp-content h3{
    color:#111827;
    margin-top:2em;
    line-height:1.22;
}

.wnp-content img{
    max-width:100%;
    height:auto;
    border-radius:16px;
}

.wnp-footer{
    max-width:760px;
    margin:42px auto 0;
}

.wnp-source-box{
    background:#f9fafb;
    border-left:5px solid #c94a1b;
    padding:18px 20px;
    border-radius:16px;
    color:#374151;
}

.wnp-source-box strong{
    display:block;
    color:#111827;
    margin-bottom:4px;
}

.wnp-related{
    max-width:920px;
    margin:52px auto 0;
    border-top:1px solid #e5e7eb;
    padding-top:26px;
}

.wnp-related h2{
    margin:0 0 18px;
    color:#111827;
    font-size:28px;
}

.wnp-related-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.wnp-related-card{
    text-decoration:none;
    color:#111827;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
    transition:.2s ease;
}

.wnp-related-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,0,0,.08);
    color:#111827;
}

.wnp-related-card img{
    width:100%;
    aspect-ratio:16/10;
    object-fit:cover;
    display:block;
    background:#f3f4f6;
}

.wnp-related-card div{
    padding:12px;
}

.wnp-related-card span{
    display:block;
    color:#6b7280;
    font-size:12px;
    margin-bottom:6px;
}

.wnp-related-card strong{
    display:block;
    font-size:15px;
    line-height:1.25;
}

@media(max-width:768px){
    .wnp-wrap{
        padding:18px 14px 42px;
    }

    .wnp-title{
        font-size:38px;
        letter-spacing:-.04em;
    }

    .wnp-subtitle{
        font-size:18px;
    }

    .wnp-content{
        max-width:100%;
        font-size:18px;
        line-height:1.82;
    }

    .wnp-related-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:460px){
    .wnp-title{
        font-size:34px;
    }

    .wnp-byline{
        display:block;
    }

    .wnp-byline span{
        display:block;
        margin-bottom:6px;
    }

    .wnp-byline span::after{
        display:none;
    }

    .wnp-related-grid{
        grid-template-columns:1fr;
    }
}
