/* =========================================================
NAIJAWIDE THEME 3.2 — PREMIUM FEED, PAGINATION, LINKS & SIDEBAR
========================================================= */

:root{
    --nw320-green:#00a651;
    --nw320-green-dark:#078640;
    --nw320-green-soft:#edf9f2;
    --nw320-ink:#111c15;
    --nw320-line:rgba(8,55,27,.10);
    --nw320-shadow:0 14px 38px rgba(13,40,24,.07);
}

/* ---------------------------------------------------------
LATEST FEED — compact editorial/release cards
--------------------------------------------------------- */
.nw-feed-list{
    gap:16px!important;
}

.nw-feed-card{
    position:relative;
    grid-template-columns:188px minmax(0,1fr)!important;
    min-height:170px;
    overflow:hidden;
    border:1px solid var(--nw320-line)!important;
    border-radius:20px!important;
    background:#fff;
    box-shadow:var(--nw320-shadow)!important;
}

.nw-feed-card::after{
    position:absolute;
    top:17px;
    right:0;
    width:3px;
    height:38px;
    border-radius:3px 0 0 3px;
    background:linear-gradient(180deg,#25cf78,var(--nw320-green));
    content:"";
    opacity:.85;
}

.nw-feed-card a{
    min-height:0!important;
}

.nw-feed-image{
    min-height:170px!important;
    background:#e9f0ec;
}

.nw-feed-image img{
    min-height:170px!important;
}

.nw-feed-copy{
    padding:18px 20px 17px!important;
}

.nw-feed-topline{
    align-items:center!important;
}

.nw-feed-category{
    display:inline-flex!important;
    align-items:center!important;
    width:auto!important;
    min-width:0!important;
    height:24px!important;
    min-height:24px!important;
    padding:0 10px!important;
    border:1px solid rgba(0,166,81,.18)!important;
    border-radius:999px!important;
    background:var(--nw320-green-soft)!important;
    box-shadow:none!important;
    color:var(--nw320-green-dark)!important;
    font-size:8px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:.11em!important;
    text-transform:uppercase!important;
}

.nw-feed-category::before{
    width:6px;
    height:6px;
    margin-right:7px;
    border-radius:50%;
    background:var(--nw320-green);
    box-shadow:0 0 0 4px rgba(0,166,81,.09);
    content:"";
}

.nw-feed-topline time{
    padding-right:5px;
    color:#7b8980!important;
    font-size:9px!important;
    font-weight:850!important;
    letter-spacing:.07em;
}

.nw-feed-copy h3{
    margin:12px 0 7px!important;
    font-size:19px!important;
    line-height:1.24!important;
    letter-spacing:-.025em!important;
}

.nw-feed-copy h3 a{
    color:var(--nw320-ink)!important;
}

.nw-feed-copy p{
    color:#657269!important;
    font-size:11.5px!important;
}

.nw-feed-footer{
    padding-top:13px!important;
}

.nw-feed-action{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
    width:auto!important;
    min-height:30px!important;
    padding:0 11px!important;
    border:1px solid rgba(0,166,81,.14);
    border-radius:999px;
    background:#f7fcf9;
    color:var(--nw320-green-dark)!important;
    font-size:8px!important;
    letter-spacing:.07em;
}

.nw-feed-action:hover{
    border-color:var(--nw320-green);
    background:var(--nw320-green);
    color:#fff!important;
}

/* ---------------------------------------------------------
PREMIUM PAGINATION — replaces legacy Carrington arrows/borders
--------------------------------------------------------- */
.nw-pagination-wrap{
    margin:24px 0 0!important;
}

.nw-pagination-premium{
    margin:0!important;
    padding:10px!important;
    overflow:visible!important;
    border:1px solid var(--nw320-line)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 12px 32px rgba(13,40,24,.055);
}

.nw-pagination-premium .page-numbers{
    display:flex!important;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:7px;
    margin:0!important;
    padding:0!important;
    border:0!important;
    list-style:none!important;
    background:transparent!important;
}

.nw-pagination-premium .page-numbers li{
    display:block!important;
    float:none!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    list-style:none!important;
}

.nw-pagination-premium a.page-numbers,
.nw-pagination-premium span.page-numbers{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    float:none!important;
    width:auto!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 12px!important;
    overflow:visible!important;
    border:1px solid #dfe8e2!important;
    border-radius:11px!important;
    background:#f9fbfa!important;
    color:#26342c!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:900!important;
    text-decoration:none!important;
}

.nw-pagination-premium a.prev,
.nw-pagination-premium a.next{
    gap:7px;
    padding:0 15px!important;
}

.nw-pagination-premium span.current{
    border-color:var(--nw320-green)!important;
    background:var(--nw320-green)!important;
    color:#fff!important;
    box-shadow:0 8px 18px rgba(0,166,81,.18);
}

.nw-pagination-premium a.page-numbers:hover{
    border-color:rgba(0,166,81,.28)!important;
    background:var(--nw320-green-soft)!important;
    color:var(--nw320-green-dark)!important;
}

.nw-pagination-premium span.dots{
    border-color:transparent!important;
    background:transparent!important;
}

/* ---------------------------------------------------------
ARTICLE INTERNAL LINKS — branded but readable
--------------------------------------------------------- */
.nw-entry-content a.nw-auto-tag-link{
    color:var(--nw320-green-dark)!important;
    font-weight:800!important;
    text-decoration-line:underline!important;
    text-decoration-color:rgba(0,166,81,.32)!important;
    text-decoration-thickness:1.5px!important;
    text-underline-offset:3px!important;
    transition:color .18s ease,text-decoration-color .18s ease;
}

.nw-entry-content a.nw-auto-tag-link strong{
    color:inherit!important;
    font-weight:800!important;
}

.nw-entry-content a.nw-auto-tag-link:hover{
    color:#006f35!important;
    text-decoration-color:#006f35!important;
}

/* ---------------------------------------------------------
SINGLE-POST SIDEBAR — same visual breathing room as homepage
--------------------------------------------------------- */
.nw-single-sidebar{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.nw-single-sidebar > .nw-side-section{
    margin:0!important;
}

.nw-single-sidebar .nw-side-section-title{
    margin-bottom:15px!important;
    padding:0 2px;
}

.nw-single-sidebar .nw-side-card{
    box-shadow:0 14px 38px rgba(13,40,24,.065)!important;
}

@media(max-width:980px){
    .nw-single-sidebar{
        margin-top:34px;
        gap:34px;
    }
}

@media(max-width:768px){
    .nw-feed-card{
        grid-template-columns:124px minmax(0,1fr)!important;
        min-height:150px;
        border-radius:18px!important;
    }

    .nw-feed-card::after{
        top:15px;
        height:31px;
    }

    .nw-feed-image,
    .nw-feed-image img{
        min-height:150px!important;
    }

    .nw-feed-copy{
        padding:15px 15px 14px!important;
    }

    .nw-feed-category{
        height:23px!important;
        min-height:23px!important;
        padding:0 9px!important;
        font-size:7.5px!important;
    }

    .nw-feed-topline time{
        font-size:8px!important;
    }

    .nw-feed-copy h3{
        margin:10px 0 7px!important;
        font-size:16px!important;
        line-height:1.28!important;
    }

    .nw-feed-copy p{
        display:none!important;
    }

    .nw-feed-footer{
        padding-top:10px!important;
    }

    .nw-feed-footer > span{
        display:none!important;
    }

    .nw-feed-action{
        min-height:29px!important;
        padding:0 10px!important;
        font-size:7.5px!important;
    }

    .nw-pagination-premium{
        padding:9px!important;
        border-radius:16px!important;
    }

    .nw-pagination-premium a.page-numbers,
    .nw-pagination-premium span.page-numbers{
        min-width:38px!important;
        height:38px!important;
        min-height:38px!important;
        padding:0 10px!important;
    }

    .nw-single-sidebar{
        margin-top:30px;
        gap:30px;
    }
}

@media(max-width:430px){
    .nw-feed-card{
        grid-template-columns:112px minmax(0,1fr)!important;
        min-height:142px;
    }

    .nw-feed-image,
    .nw-feed-image img{
        min-height:142px!important;
    }

    .nw-feed-copy{
        padding:13px 12px!important;
    }

    .nw-feed-copy h3{
        font-size:14.5px!important;
    }

    .nw-feed-action{
        border:0;
        padding:0!important;
        background:transparent;
    }

    .nw-pagination-premium .page-numbers li:has(.dots){
        display:none!important;
    }

    .nw-pagination-premium a.prev span,
    .nw-pagination-premium a.next span{
        display:none;
    }

    .nw-pagination-premium a.prev,
    .nw-pagination-premium a.next{
        width:40px!important;
        padding:0!important;
    }
}
