/*
Theme Name: NewsPro
Theme URI: https://example.com/newspro
Author: NewsPro Team
Author URI: https://example.com
Description: A professional WordPress news portal theme with breaking news ticker, category sections, trending posts, and full Customizer support. Built for speed, SEO, and scale.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newspro
Tags: news, blog, magazine, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =========================================================
   TABLE OF CONTENTS
   1. CSS Variables & Reset
   2. Typography
   3. Layout & Grid
   4. Top Bar
   5. Header & Navigation
   6. Breaking News Ticker
   7. Hero Section
   8. Post Cards
   9. Category Sections
   10. Trending & Video Sections
   11. Sidebar & Widgets
   12. Single Post
   13. Footer
   14. Ads
   15. Utilities
   16. Responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Variables & Reset
   --------------------------------------------------------- */
:root {
    --np-primary:       #c0392b;
    --np-primary-dark:  #a93226;
    --np-secondary:     #2c3e50;
    --np-accent:        #e67e22;
    --np-bg:            #f4f5f7;
    --np-bg-white:      #ffffff;
    --np-text:          #2d3436;
    --np-text-light:    #636e72;
    --np-text-muted:    #b2bec3;
    --np-border:        #dfe6e9;
    --np-topbar-bg:     #1a1a2e;
    --np-topbar-text:   #ecf0f1;
    --np-header-bg:     #ffffff;
    --np-footer-bg:     #1a1a2e;
    --np-footer-text:   #bdc3c7;
    --np-link:          #c0392b;
    --np-link-hover:    #a93226;
    --np-font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --np-font-serif:    'Playfair Display', Georgia, 'Times New Roman', serif;
    --np-font-mono:     'Fira Code', 'Courier New', monospace;
    --np-radius:        4px;
    --np-radius-lg:     8px;
    --np-shadow:        0 2px 8px rgba(0,0,0,.08);
    --np-shadow-md:     0 4px 16px rgba(0,0,0,.12);
    --np-shadow-lg:     0 8px 32px rgba(0,0,0,.16);
    --np-transition:    .2s ease;
    --np-container:     1280px;
    --np-sidebar:       300px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--np-font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--np-text);
    background: var(--np-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--np-link); text-decoration: none; transition: color var(--np-transition); }
a:hover { color: var(--np-link-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---------------------------------------------------------
   2. Typography
   --------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--np-font-serif);
    font-weight: 700;
    line-height: 1.25;
    color: var(--np-secondary);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 2rem 0 .75rem; }
.entry-content p + p { margin-top: .5rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
    border-left: 4px solid var(--np-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #fff5f5;
    font-style: italic;
    color: var(--np-text-light);
    border-radius: 0 var(--np-radius) var(--np-radius) 0;
}

/* ---------------------------------------------------------
   3. Layout & Grid
   --------------------------------------------------------- */
.np-container {
    width: 100%;
    max-width: var(--np-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.np-layout {
    display: grid;
    grid-template-columns: 1fr var(--np-sidebar);
    gap: 2rem;
    align-items: start;
}

.np-section { padding: 3rem 0; }
.np-section + .np-section { padding-top: 0; }

.np-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 3px solid var(--np-border);
    position: relative;
}
.np-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--np-primary);
}
.np-section-title {
    font-size: 1.25rem;
    font-family: var(--np-font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--np-secondary);
}
.np-section-title span {
    color: var(--np-primary);
}
.np-view-all {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--np-primary);
    border: 1px solid var(--np-primary);
    padding: .3rem .75rem;
    border-radius: var(--np-radius);
    transition: all var(--np-transition);
}
.np-view-all:hover {
    background: var(--np-primary);
    color: #fff;
}

/* Grid utilities */
.np-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.np-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.np-grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ---------------------------------------------------------
   4. Top Bar
   --------------------------------------------------------- */
.np-topbar {
    background: var(--np-topbar-bg);
    color: var(--np-topbar-text);
    font-size: .8rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.np-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.np-topbar-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.np-topbar-date {
    color: var(--np-topbar-text);
    opacity: .7;
    font-size: .78rem;
}
.np-topbar-social {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.np-topbar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,.08);
    color: var(--np-topbar-text);
    border-radius: var(--np-radius);
    font-size: .75rem;
    transition: background var(--np-transition);
}
.np-topbar-social a:hover { background: var(--np-primary); }
.np-topbar-social a svg { width: 13px; height: 13px; fill: currentColor; }

/* ---------------------------------------------------------
   5. Header & Navigation
   --------------------------------------------------------- */
.np-header {
    background: var(--np-header-bg);
    box-shadow: var(--np-shadow);
    position: relative;
    z-index: 100;
}
.np-header.is-sticky {
    position: sticky;
    top: 0;
    animation: slideDown .3s ease forwards;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.np-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}
.np-logo { flex-shrink: 0; }
.np-logo img { height: 50px; width: auto; }
.np-logo-text {
    font-family: var(--np-font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--np-primary);
    letter-spacing: -.02em;
}
.np-logo-text span { color: var(--np-secondary); }

/* Navigation */
.np-nav { display: flex; align-items: center; flex: 1; }
.np-nav ul { display: flex; align-items: center; gap: .25rem; }
.np-nav ul li { position: relative; }
.np-nav ul li a {
    display: block;
    padding: .6rem .9rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--np-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: var(--np-radius);
    transition: all var(--np-transition);
    white-space: nowrap;
}
.np-nav ul li a:hover,
.np-nav ul li.current-menu-item > a,
.np-nav ul li.current-menu-ancestor > a {
    color: var(--np-primary);
    background: #fff5f5;
}

/* Dropdown */
.np-nav ul li ul {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--np-radius-lg);
    box-shadow: var(--np-shadow-lg);
    border: 1px solid var(--np-border);
    padding: .5rem 0;
    display: none;
    flex-direction: column;
    gap: 0;
    z-index: 200;
}
.np-nav ul li:hover > ul { display: flex; }
.np-nav ul li ul li a {
    font-size: .83rem;
    padding: .55rem 1.25rem;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0;
}
.np-nav ul li ul li a:hover { background: var(--np-bg); padding-left: 1.5rem; }

/* Search */
.np-header-actions { display: flex; align-items: center; gap: .75rem; }
.np-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--np-bg);
    color: var(--np-secondary);
    border-radius: 50%;
    transition: all var(--np-transition);
}
.np-search-toggle:hover { background: var(--np-primary); color: #fff; }
.np-search-toggle svg { width: 16px; height: 16px; }

.np-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.np-search-overlay.is-open { opacity: 1; pointer-events: all; }
.np-search-form {
    width: 100%;
    max-width: 640px;
    padding: 0 1.5rem;
    position: relative;
}
.np-search-form input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: none;
    border-bottom: 2px solid var(--np-primary);
    background: transparent;
    color: #fff;
    outline: none;
}
.np-search-form input::placeholder { color: rgba(255,255,255,.4); }
.np-search-close {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.6);
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile Hamburger */
.np-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    padding: 5px 0;
}
.np-mobile-toggle span {
    display: block;
    height: 2px;
    background: var(--np-secondary);
    border-radius: 2px;
    transition: all .3s;
}

/* ---------------------------------------------------------
   6. Breaking News Ticker
   --------------------------------------------------------- */
.np-breaking {
    background: var(--np-bg-white);
    border-bottom: 1px solid var(--np-border);
    overflow: hidden;
    padding: .6rem 0;
}
.np-breaking-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.np-breaking-label {
    flex-shrink: 0;
    background: var(--np-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .35rem .85rem;
    border-radius: var(--np-radius);
    white-space: nowrap;
}
.np-ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.np-ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.np-ticker:hover { animation-play-state: paused; }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.np-ticker a {
    font-size: .85rem;
    font-weight: 500;
    color: var(--np-text);
    white-space: nowrap;
}
.np-ticker a:hover { color: var(--np-primary); }
.np-ticker a::before {
    content: '●';
    color: var(--np-primary);
    margin-right: .5rem;
    font-size: .6rem;
}

/* ---------------------------------------------------------
   7. Hero Section
   --------------------------------------------------------- */
.np-hero {
    background: var(--np-bg-white);
    padding: 2rem 0;
}
.np-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}
.np-hero-main {
    grid-row: 1 / 3;
    position: relative;
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    background: var(--np-secondary);
}
.np-hero-main img,
.np-hero-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.np-hero-main:hover img,
.np-hero-secondary:hover img { transform: scale(1.03); }
.np-hero-main { min-height: 480px; }

.np-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.75rem 1.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    color: #fff;
}
.np-hero-content .np-cat-badge { margin-bottom: .6rem; }
.np-hero-content h2 {
    color: #fff;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.np-hero-content h2 a { color: #fff; }
.np-hero-content h2 a:hover { color: rgba(255,255,255,.85); }
.np-hero-meta { display: flex; gap: 1rem; font-size: .78rem; color: rgba(255,255,255,.7); }

.np-hero-secondary {
    position: relative;
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    background: var(--np-secondary);
    min-height: 220px;
}
.np-hero-secondary .np-hero-content h2 { font-size: 1.1rem; }

/* ---------------------------------------------------------
   8. Post Cards
   --------------------------------------------------------- */
.np-card {
    background: var(--np-bg-white);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow);
    transition: box-shadow var(--np-transition), transform var(--np-transition);
}
.np-card:hover { box-shadow: var(--np-shadow-md); transform: translateY(-2px); }

.np-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--np-border);
}
.np-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.np-card:hover .np-card-img img { transform: scale(1.05); }
.np-card-img .np-cat-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1;
}

.np-card-body { padding: 1.25rem; }
.np-card-title {
    font-size: 1rem;
    margin-bottom: .6rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-card-title a { color: var(--np-secondary); }
.np-card-title a:hover { color: var(--np-primary); }
.np-card-excerpt {
    font-size: .85rem;
    color: var(--np-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .75rem;
}
.np-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .78rem;
    color: var(--np-text-muted);
}
.np-card-meta a { color: var(--np-text-muted); }
.np-card-meta a:hover { color: var(--np-primary); }
.np-card-meta svg { width: 13px; height: 13px; vertical-align: middle; margin-right: 3px; }

/* Horizontal card */
.np-card-h {
    display: flex;
    gap: 1rem;
    background: var(--np-bg-white);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    transition: transform var(--np-transition);
    align-items: flex-start;
}
.np-card-h:hover { transform: translateX(3px); }
.np-card-h .np-card-img {
    flex-shrink: 0;
    width: 110px;
    height: 80px;
    aspect-ratio: unset;
    border-radius: var(--np-radius);
}
.np-card-h .np-card-body { padding: 0; flex: 1; }
.np-card-h .np-card-title { font-size: .88rem; -webkit-line-clamp: 2; }
.np-card-h .np-card-meta { font-size: .75rem; }

/* Small list card */
.np-post-list { display: flex; flex-direction: column; gap: 1rem; }
.np-post-list-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--np-border);
}
.np-post-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.np-post-list-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--np-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    margin-top: 2px;
}
.np-post-list-title {
    font-size: .875rem;
    font-weight: 600;
    font-family: var(--np-font-sans);
    line-height: 1.35;
    color: var(--np-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-post-list-title a { color: inherit; }
.np-post-list-title a:hover { color: var(--np-primary); }
.np-post-list-meta { font-size: .75rem; color: var(--np-text-muted); margin-top: .25rem; }

/* Category badge */
.np-cat-badge {
    display: inline-block;
    padding: .22rem .65rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: var(--np-radius);
    background: var(--np-primary);
    color: #fff;
    line-height: 1.4;
    transition: opacity var(--np-transition);
}
.np-cat-badge:hover { opacity: .85; color: #fff; }

/* ---------------------------------------------------------
   9. Category Sections
   --------------------------------------------------------- */
.np-category-block { background: var(--np-bg-white); border-radius: var(--np-radius-lg); overflow: hidden; box-shadow: var(--np-shadow); padding: 1.5rem; }
.np-cat-featured { position: relative; border-radius: var(--np-radius); overflow: hidden; margin-bottom: 1.25rem; min-height: 260px; }
.np-cat-featured img { width: 100%; height: 260px; object-fit: cover; }
.np-cat-featured .np-hero-content h2 { font-size: 1.15rem; }
.np-cat-small-list { display: flex; flex-direction: column; gap: .85rem; }
.np-cat-small-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding-bottom: .85rem;
    border-bottom: 1px dashed var(--np-border);
}
.np-cat-small-item:last-child { border-bottom: none; padding-bottom: 0; }
.np-cat-small-img {
    flex-shrink: 0;
    width: 75px;
    height: 55px;
    border-radius: var(--np-radius);
    overflow: hidden;
    background: var(--np-border);
}
.np-cat-small-img img { width: 100%; height: 100%; object-fit: cover; }
.np-cat-small-title {
    font-size: .83rem;
    font-weight: 600;
    font-family: var(--np-font-sans);
    color: var(--np-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.np-cat-small-title a { color: inherit; }
.np-cat-small-title a:hover { color: var(--np-primary); }
.np-cat-small-meta { font-size: .73rem; color: var(--np-text-muted); margin-top: .3rem; }

/* ---------------------------------------------------------
   10. Trending & Video Sections
   --------------------------------------------------------- */
.np-trending { background: var(--np-bg-white); }
.np-trending-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--np-border);
}
.np-trending-item:last-child { border-bottom: none; }
.np-trending-rank {
    font-family: var(--np-font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--np-border);
    line-height: 1;
    flex-shrink: 0;
    width: 45px;
    text-align: center;
}
.np-trending-item:hover .np-trending-rank { color: var(--np-primary); transition: color .2s; }
.np-trending-img {
    flex-shrink: 0;
    width: 90px;
    height: 65px;
    border-radius: var(--np-radius);
    overflow: hidden;
    background: var(--np-border);
}
.np-trending-img img { width: 100%; height: 100%; object-fit: cover; }
.np-trending-content { flex: 1; }
.np-trending-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--np-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .3rem;
}
.np-trending-title a { color: inherit; }
.np-trending-title a:hover { color: var(--np-primary); }
.np-trending-meta { font-size: .75rem; color: var(--np-text-muted); }
.np-trending-meta .np-views::before { content: '👁 '; }

/* Video */
.np-video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--np-radius);
    overflow: hidden;
    background: #000;
}
.np-video-wrap img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.np-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s;
}
.np-play-btn:hover { transform: translate(-50%,-50%) scale(1.1); background: var(--np-primary); }
.np-play-btn svg { width: 22px; height: 22px; fill: var(--np-primary); margin-left: 3px; }
.np-play-btn:hover svg { fill: #fff; }

/* ---------------------------------------------------------
   11. Sidebar & Widgets
   --------------------------------------------------------- */
.np-sidebar {}
.np-widget {
    background: var(--np-bg-white);
    border-radius: var(--np-radius-lg);
    overflow: hidden;
    box-shadow: var(--np-shadow);
    margin-bottom: 2rem;
}
.np-widget-title {
    font-size: 1rem;
    font-family: var(--np-font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--np-border);
    color: var(--np-secondary);
    position: relative;
}
.np-widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--np-primary);
    border-radius: 0 2px 2px 0;
}
.np-widget-body { padding: 1.25rem; }

/* Category widget */
.np-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px dotted var(--np-border);
    font-size: .875rem;
}
.np-cat-list li:last-child { border-bottom: none; }
.np-cat-list li a { color: var(--np-text); font-weight: 500; }
.np-cat-list li a:hover { color: var(--np-primary); }
.np-cat-list li .count {
    background: var(--np-bg);
    color: var(--np-text-muted);
    font-size: .75rem;
    padding: .15rem .5rem;
    border-radius: 20px;
}

/* Ad widget */
.np-ad-widget { text-align: center; }
.np-ad-widget img { border-radius: var(--np-radius); width: 100%; }
.np-ad-label {
    font-size: .65rem;
    color: var(--np-text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}

/* ---------------------------------------------------------
   12. Single Post
   --------------------------------------------------------- */
.np-single { background: var(--np-bg-white); border-radius: var(--np-radius-lg); box-shadow: var(--np-shadow); overflow: hidden; }
.np-single-header { padding: 2rem 2.5rem 1.5rem; }
.np-single-cats { margin-bottom: .75rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.np-single-title { font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; margin-bottom: 1rem; color: var(--np-secondary); }
.np-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: .82rem;
    color: var(--np-text-muted);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--np-border);
}
.np-single-meta svg { width: 14px; height: 14px; vertical-align: middle; }
.np-author-info { display: flex; align-items: center; gap: .5rem; }
.np-author-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.np-author-name a { color: var(--np-secondary); font-weight: 600; }
.np-author-name a:hover { color: var(--np-primary); }

.np-featured-image { position: relative; }
.np-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.np-featured-image figcaption {
    font-size: .78rem;
    color: var(--np-text-muted);
    padding: .6rem 2.5rem;
    font-style: italic;
    background: var(--np-bg);
}

.np-entry-body { padding: 2rem 2.5rem; font-size: 1.05rem; line-height: 1.8; }
.np-entry-body > * + * { margin-top: 1.25rem; }

/* Social share */
.np-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--np-border);
}
.np-share-label { font-size: .85rem; font-weight: 600; color: var(--np-text-light); margin-right: .25rem; }
.np-share a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    transition: opacity var(--np-transition);
}
.np-share a:hover { opacity: .85; color: #fff; }
.np-share a svg { width: 14px; height: 14px; fill: currentColor; }
.np-share .np-fb { background: #1877f2; }
.np-share .np-tw { background: #1da1f2; }
.np-share .np-wa { background: #25d366; }
.np-share .np-li { background: #0077b5; }
.np-share .np-cp { background: var(--np-secondary); }

/* Tags */
.np-tags {
    padding: 1rem 2.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}
.np-tags-label { font-size: .82rem; font-weight: 600; color: var(--np-text-muted); }
.np-tag {
    display: inline-block;
    padding: .25rem .7rem;
    border: 1px solid var(--np-border);
    color: var(--np-text-light);
    font-size: .78rem;
    border-radius: 20px;
    transition: all var(--np-transition);
}
.np-tag:hover { background: var(--np-primary); border-color: var(--np-primary); color: #fff; }

/* Author box */
.np-author-box {
    margin: 2rem 2.5rem;
    padding: 1.5rem;
    background: var(--np-bg);
    border-radius: var(--np-radius-lg);
    display: flex;
    gap: 1.25rem;
}
.np-author-box img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.np-author-box-name { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.np-author-box-bio { font-size: .875rem; color: var(--np-text-light); }

/* Related posts */
.np-related { padding: 2rem 2.5rem; border-top: 1px solid var(--np-border); }
.np-related-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--np-secondary); }

/* Comments */
.np-comments { padding: 2rem 2.5rem; border-top: 1px solid var(--np-border); }
.np-comments .comment { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--np-border); }
.np-comments .comment:last-child { border-bottom: none; }
.np-comments .comment-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.np-comment-meta { font-size: .78rem; color: var(--np-text-muted); margin-bottom: .4rem; }
.np-comment-meta .comment-author { font-weight: 700; color: var(--np-secondary); margin-right: .5rem; }

/* Breadcrumbs */
.np-breadcrumbs {
    padding: .85rem 0;
    font-size: .82rem;
    color: var(--np-text-muted);
}
.np-breadcrumbs a { color: var(--np-text-muted); }
.np-breadcrumbs a:hover { color: var(--np-primary); }
.np-breadcrumbs .sep { margin: 0 .4rem; }
.np-breadcrumbs .current { color: var(--np-text); }

/* Reading time + views */
.np-reading-time,
.np-views-count { display: inline-flex; align-items: center; gap: .3rem; }

/* ---------------------------------------------------------
   13. Footer
   --------------------------------------------------------- */
.np-footer {
    background: var(--np-footer-bg);
    color: var(--np-footer-text);
    padding-top: 4rem;
}
.np-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.np-footer-widget-title {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.np-footer-about p {
    font-size: .875rem;
    color: var(--np-footer-text);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.np-footer-social { display: flex; gap: .5rem; }
.np-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.07);
    color: var(--np-footer-text);
    border-radius: var(--np-radius);
    font-size: .875rem;
    transition: all var(--np-transition);
}
.np-footer-social a:hover { background: var(--np-primary); color: #fff; }
.np-footer-social a svg { width: 15px; height: 15px; fill: currentColor; }

.np-footer-links li { padding: .3rem 0; }
.np-footer-links li a {
    font-size: .875rem;
    color: var(--np-footer-text);
    transition: color var(--np-transition), padding var(--np-transition);
}
.np-footer-links li a:hover { color: #fff; padding-left: .35rem; }
.np-footer-links li a::before { content: '›'; margin-right: .4rem; color: var(--np-primary); }

.np-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: .5rem;
}
.np-footer-bottom a { color: rgba(255,255,255,.4); }
.np-footer-bottom a:hover { color: #fff; }

/* ---------------------------------------------------------
   14. Ads
   --------------------------------------------------------- */
.np-ad-banner {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--np-bg-white);
}
.np-ad-banner img {
    margin: 0 auto;
    border-radius: var(--np-radius);
    max-width: 100%;
}
.np-ad-label {
    font-size: .65rem;
    color: var(--np-text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}

/* ---------------------------------------------------------
   15. Utilities
   --------------------------------------------------------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.np-spacer-sm { height: 1.5rem; }
.np-spacer    { height: 3rem; }
.np-text-center { text-align: center; }
.np-mt-1 { margin-top: 1rem; }
.np-mt-2 { margin-top: 2rem; }

/* Lazy load fade */
img[data-src] { opacity: 0; transition: opacity .4s; }
img.np-loaded { opacity: 1; }

/* Skeleton loader */
.np-skeleton {
    background: linear-gradient(90deg, var(--np-border) 25%, #fff 50%, var(--np-border) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--np-radius);
}
@keyframes skeleton { 0%{background-position:200%} 100%{background-position:-200%} }

/* Pagination */
.np-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 2rem 0;
}
.np-pagination a,
.np-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: .875rem;
    color: var(--np-text);
    background: var(--np-bg-white);
    transition: all var(--np-transition);
}
.np-pagination a:hover,
.np-pagination .current {
    background: var(--np-primary);
    border-color: var(--np-primary);
    color: #fff;
}

/* Load more button */
.np-load-more {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 2rem auto 0;
    padding: .85rem 2rem;
    background: var(--np-bg-white);
    border: 2px solid var(--np-primary);
    color: var(--np-primary);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--np-radius);
    text-transform: uppercase;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all var(--np-transition);
}
.np-load-more:hover { background: var(--np-primary); color: #fff; }

/* 404 */
.np-404 { text-align: center; padding: 5rem 1.5rem; }
.np-404-code { font-size: 8rem; font-weight: 900; color: var(--np-border); line-height: 1; }
.np-404-msg { font-size: 1.25rem; margin: 1rem 0 2rem; color: var(--np-text-light); }

/* Search results */
.np-search-header { padding: 2rem 0 1rem; }
.np-search-header h1 { font-size: 1.5rem; }
.np-search-header span { color: var(--np-primary); }

/* ---------------------------------------------------------
   16. Responsive
   --------------------------------------------------------- */
@media (max-width: 1100px) {
    :root { --np-sidebar: 270px; }
    .np-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
    .np-layout { grid-template-columns: 1fr; }
    .np-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .np-sidebar .np-widget { margin-bottom: 0; }
    .np-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .np-hero-main { grid-row: auto; min-height: 360px; }
    .np-grid-4 { grid-template-columns: repeat(2,1fr); }
    .np-grid-3 { grid-template-columns: repeat(2,1fr); }
    .np-nav { display: none; }
    .np-mobile-toggle { display: flex; }
}

@media (max-width: 640px) {
    :root { --np-container: 100%; }
    .np-container { padding: 0 1rem; }
    .np-topbar-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
    .np-grid-4,
    .np-grid-3,
    .np-grid-2 { grid-template-columns: 1fr; }
    .np-sidebar { grid-template-columns: 1fr; }
    .np-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .np-footer-bottom { flex-direction: column; text-align: center; }
    .np-single-header { padding: 1.25rem; }
    .np-entry-body { padding: 1.25rem; }
    .np-share { padding: 1rem 1.25rem; }
    .np-tags { padding: .75rem 1.25rem; }
    .np-author-box { flex-direction: column; margin: 1.5rem 1.25rem; }
    .np-related { padding: 1.25rem; }
    .np-hero-main { min-height: 280px; }
    .np-hero-secondary { min-height: 180px; }
    .np-breaking-inner { flex-wrap: wrap; }
    .np-header-inner { padding: .75rem 0; }
}

/* Mobile nav open */
.np-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    box-shadow: var(--np-shadow-lg);
    padding: 4rem 1.5rem 2rem;
    z-index: 999;
    overflow-y: auto;
}
.np-nav.is-open ul { flex-direction: column; gap: 0; width: 100%; }
.np-nav.is-open ul li a { padding: .75rem 1rem; border-radius: 0; border-bottom: 1px solid var(--np-border); font-size: .95rem; }
.np-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 998;
}
.np-nav-overlay.is-open { display: block; }
