/* ============================================================
   News Archive Pages - Scoped Styling
   For: Foxiz-based WordPress child theme
   Scope: everything is prefixed with .nz-archive so it will
   NOT clash with your existing theme header/footer styles.
   ============================================================ */

.nz-archive {
    --nz-accent: #e60023;          /* main red accent (change to match brand) */
    --nz-accent-dark: #b8001c;
    --nz-ink: #14181f;             /* dark text / dark bands */
    --nz-body: #2b2f36;            /* body text */
    --nz-muted: #7a828d;           /* meta text */
    --nz-line: #e7e9ee;            /* borders */
    --nz-bg: #ffffff;
    --nz-bg-soft: #f5f6f8;
    --nz-radius: 8px;
    --nz-shadow: 0 6px 24px rgba(20, 24, 31, .08);
    --nz-container: 1200px;

    color: var(--nz-body);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    background: var(--nz-bg);
}

.nz-archive *,
.nz-archive *::before,
.nz-archive *::after {
    box-sizing: border-box;
}

.nz-container {
    max-width: var(--nz-container);
    margin: 0 auto;
    padding: 0 20px;
}

.nz-archive a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.nz-archive img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Breadcrumb ---------- */
.nz-breadcrumb {
    font-size: 13px;
    color: var(--nz-muted);
    padding: 22px 0 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.nz-breadcrumb a:hover { color: var(--nz-accent); }
.nz-breadcrumb .sep { opacity: .5; }
.nz-breadcrumb .current { color: var(--nz-ink); font-weight: 600; }

/* ---------- Category / Page header ---------- */
.nz-page-head {
    padding: 10px 0 26px;
    border-bottom: 1px solid var(--nz-line);
    margin-bottom: 30px;
}
.nz-page-head .nz-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.nz-page-head h1 {
    font-size: 34px;
    line-height: 1.15;
    margin: 0;
    color: var(--nz-ink);
    font-weight: 800;
    letter-spacing: -.5px;
}
.nz-follow-btn {
    background: var(--nz-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nz-follow-btn:hover { background: var(--nz-accent-dark); }
.nz-page-head p.nz-desc {
    margin: 14px 0 0;
    color: var(--nz-muted);
    font-size: 15.5px;
    max-width: 760px;
}
.nz-post-count {
    font-size: 13px;
    color: var(--nz-muted);
    margin-top: 8px;
}

/* ---------- Featured hero post ---------- */
.nz-featured {
    position: relative;
    border-radius: var(--nz-radius);
    overflow: hidden;
    margin-bottom: 34px;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    background: #222;
}
.nz-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nz-featured:hover img { transform: scale(1.05); }
.nz-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.nz-featured .nz-featured-body {
    position: relative;
    z-index: 2;
    padding: 34px;
    color: #fff;
    max-width: 720px;
}
.nz-featured h2 {
    font-size: 30px;
    line-height: 1.2;
    margin: 12px 0 12px;
    font-weight: 800;
}
.nz-featured h2 a:hover { color: #fff; opacity: .9; }
.nz-featured .nz-meta { color: rgba(255,255,255,.85); }
.nz-featured .nz-meta a { color: rgba(255,255,255,.85); }

/* ---------- Section heading ---------- */
.nz-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
}
.nz-section-head h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--nz-ink);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .3px;
    position: relative;
    padding-left: 14px;
}
.nz-section-head h3::before {
    content: "";
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 4px;
    background: var(--nz-accent);
    border-radius: 3px;
}

/* ---------- Layout: content + sidebar ---------- */
.nz-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 50px;
}

/* full-width layout when sidebar is disabled */
.nz-layout.nz-layout--full {
    grid-template-columns: 1fr;
}
.nz-layout.nz-layout--full .nz-post-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ---------- Post grid ---------- */
.nz-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 26px;
}
.nz-card {
    background: var(--nz-bg);
    border-radius: var(--nz-radius);
    overflow: hidden;
}
.nz-card .nz-thumb {
    position: relative;
    display: block;
    border-radius: var(--nz-radius);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--nz-bg-soft);
}
.nz-card .nz-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nz-card:hover .nz-thumb img { transform: scale(1.06); }

.nz-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: var(--nz-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 2;
}

.nz-card h4 {
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--nz-ink);
}
.nz-card h4 a:hover { color: var(--nz-accent); }
.nz-card .nz-excerpt {
    font-size: 14px;
    color: var(--nz-muted);
    margin: 0 0 12px;
}

/* ---------- Meta row ---------- */
.nz-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--nz-muted);
    flex-wrap: wrap;
}
.nz-meta .nz-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--nz-body);
}
.nz-meta .nz-author img {
    width: 22px; height: 22px;
    border-radius: 50%;
    object-fit: cover;
}
.nz-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---------- Sidebar ---------- */
.nz-sidebar { position: sticky; top: 20px; }
.nz-widget {
    margin-bottom: 34px;
}
.nz-widget-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--nz-ink);
    margin: 0 0 16px;
    padding-left: 12px;
    position: relative;
}
.nz-widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 1px; bottom: 1px;
    width: 4px; background: var(--nz-accent); border-radius: 3px;
}

/* social counters */
.nz-social {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.nz-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--nz-line);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}
.nz-social a:hover { border-color: var(--nz-accent); color: var(--nz-accent); }
.nz-social .ic {
    width: 30px; height: 30px;
    border-radius: 6px;
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 13px;
    flex: none;
}
.nz-social .count { display: block; font-size: 13px; color: var(--nz-ink); }
.nz-social .label { display: block; font-size: 11px; color: var(--nz-muted); font-weight: 500; }

/* latest news list widget */
.nz-mini {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--nz-line);
}
.nz-mini:last-child { border-bottom: 0; }
.nz-mini .nz-mini-thumb {
    width: 78px; height: 60px; flex: none;
    border-radius: 6px; overflow: hidden;
    background: var(--nz-bg-soft);
}
.nz-mini .nz-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nz-mini h5 {
    font-size: 13.5px; line-height: 1.35; margin: 0 0 6px;
    font-weight: 700; color: var(--nz-ink);
}
.nz-mini h5 a:hover { color: var(--nz-accent); }
.nz-mini .nz-mini-cat { font-size: 11px; font-weight: 700; color: var(--nz-accent); text-transform: uppercase; }
.nz-mini .nz-mini-date { font-size: 11.5px; color: var(--nz-muted); }

/* promo / ad box */
.nz-promo {
    border-radius: var(--nz-radius);
    padding: 26px 22px;
    background: linear-gradient(135deg, #1b1f27, #2a2f3a);
    color: #fff;
    text-align: center;
}
.nz-promo h4 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.nz-promo p { margin: 0 0 16px; font-size: 13px; color: rgba(255,255,255,.75); }
.nz-promo .nz-promo-btn {
    display: inline-block;
    background: var(--nz-accent);
    color: #fff; font-weight: 700; font-size: 13px;
    padding: 10px 22px; border-radius: 5px;
}
.nz-promo .nz-promo-btn:hover { background: var(--nz-accent-dark); }

/* newsletter */
.nz-newsletter input[type="email"] {
    width: 100%; padding: 12px 14px; font-size: 14px;
    border: 1px solid var(--nz-line); border-radius: 6px; margin-bottom: 10px;
    outline: none;
}
.nz-newsletter input[type="email"]:focus { border-color: var(--nz-accent); }
.nz-newsletter button {
    width: 100%; padding: 12px; font-size: 13px; font-weight: 700;
    background: var(--nz-accent); color: #fff; border: 0; border-radius: 6px; cursor: pointer;
    text-transform: uppercase; letter-spacing: .5px;
}
.nz-newsletter button:hover { background: var(--nz-accent-dark); }

/* ---------- Ad banner (in-content) ---------- */
.nz-adbar {
    background: var(--nz-bg-soft);
    border: 1px dashed var(--nz-line);
    border-radius: var(--nz-radius);
    padding: 20px;
    text-align: center;
    color: var(--nz-muted);
    font-size: 13px;
    margin: 30px 0;
}

/* ---------- Filter tabs (latest news) ---------- */
.nz-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 26px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--nz-line);
}
.nz-tabs a {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--nz-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.nz-tabs a.active,
.nz-tabs a:hover { color: var(--nz-accent); border-color: var(--nz-accent); }

/* ---------- Pagination ---------- */
.nz-pagination {
    margin: 20px 0 10px;
}
.nz-pagination .nav-links,
.nz-pagination ul {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0; margin: 0;
}
.nz-pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--nz-line);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--nz-ink);
}
.nz-pagination .page-numbers:hover,
.nz-pagination .page-numbers.current {
    background: var(--nz-accent);
    border-color: var(--nz-accent);
    color: #fff;
}
.nz-pagination .page-numbers.dots {
    border: 0;
    background: transparent;
}

/* ---------- Load more button ---------- */
.nz-loadmore {
    text-align: center;
    margin: 34px 0 10px;
}
.nz-loadmore button {
    background: var(--nz-ink);
    color: #fff;
    border: 0;
    padding: 14px 34px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .18s ease;
}
.nz-loadmore button:hover { background: var(--nz-accent); }

/* ---------- Empty state ---------- */
.nz-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--nz-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .nz-layout { grid-template-columns: 1fr; gap: 30px; }
    .nz-sidebar { position: static; }
}
@media (max-width: 640px) {
    .nz-post-grid { grid-template-columns: 1fr; }
    .nz-page-head h1 { font-size: 26px; }
    .nz-featured { min-height: 300px; }
    .nz-featured h2 { font-size: 22px; }
    .nz-featured .nz-featured-body { padding: 22px; }
}

/* ---------- Dark-mode ready (if theme adds .dark or [data-theme=dark] on body) ---------- */
body.dark .nz-archive,
body[data-theme="dark"] .nz-archive {
    --nz-ink: #f2f4f8;
    --nz-body: #c7ccd4;
    --nz-muted: #8b93a0;
    --nz-line: #2a2f3a;
    --nz-bg: #14181f;
    --nz-bg-soft: #1b2029;
}
