/* ══════════════════════════════════════════════════════════════════════════
   ProNews SEO Theme — Main Stylesheet
   ══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
  --pnst-primary:   #0066cc;
  --pnst-secondary: #e63946;
  --pnst-header-bg: #1a1a2e;
  --pnst-footer-bg: #1a1a2e;
  --pnst-btn:       #0066cc;
  --pnst-link:      #0066cc;
  --pnst-body-size: 16px;
  --pnst-head-size: 28px;
  --pnst-line-h:    1.7;
  --pnst-font:      system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Layout */
  --pnst-max-width:  1240px;
  --pnst-gap:        1.5rem;
  --pnst-radius:     8px;
  --pnst-radius-lg:  14px;

  /* Colours (light mode) */
  --bg:              #ffffff;
  --surface:         #f8f9fa;
  --surface-2:       #eef0f2;
  --text:            #1a1a2e;
  --text-muted:      #6c757d;
  --border:          #dee2e6;
  --shadow:          rgba(0,0,0,.08);
  --shadow-md:       rgba(0,0,0,.14);

  /* Transitions */
  --trans:           .22s ease;
}

/* ── Dark Mode ─────────────────────────────────────────────────────────── */
body.dark-mode {
  --bg:        #0f0f1a;
  --surface:   #1a1a2e;
  --surface-2: #252540;
  --text:      #e8eaf0;
  --text-muted:#9da5b4;
  --border:    #333355;
  --shadow:    rgba(0,0,0,.35);
  --shadow-md: rgba(0,0,0,.55);
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--pnst-font);
  font-size: var(--pnst-body-size);
  line-height: var(--pnst-line-h);
  color: var(--text);
  background: var(--bg);
  transition: background var(--trans), color var(--trans);
  -webkit-font-smoothing: antialiased;
}

body.boxed .pnst-container {
  max-width: 1100px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--pnst-link); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--pnst-secondary); }

h1,h2,h3,h4,h5,h6 {
  font-size: var(--pnst-head-size);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 .75rem;
}
h2 { font-size: calc(var(--pnst-head-size) * .85); }
h3 { font-size: calc(var(--pnst-head-size) * .7); }
h4 { font-size: calc(var(--pnst-head-size) * .6); }
h5,h6 { font-size: calc(var(--pnst-head-size) * .5); }

p { margin: 0 0 1rem; }
ul,ol { margin: 0 0 1rem; padding-left: 1.5rem; }
blockquote {
  border-left: 4px solid var(--pnst-primary);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-radius: 0 var(--pnst-radius) var(--pnst-radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
code,pre {
  font-family: 'Courier New', monospace;
  background: var(--surface-2);
  border-radius: 4px;
}
code { padding: .15rem .4rem; font-size: .875em; }
pre  { padding: 1rem; overflow-x: auto; }

/* Skip link */
.skip-link { position: absolute; top: -999px; }
.skip-link:focus { top: 0; left: 0; z-index: 99999; padding: .5rem 1rem; background: var(--pnst-primary); color: #fff; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.pnst-container {
  max-width: var(--pnst-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.pnst-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--pnst-gap) 2rem;
  align-items: start;
  padding: 2rem 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.pnst-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.25rem;
  background: var(--pnst-btn);
  color: #fff !important;
  border-radius: var(--pnst-radius);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: opacity var(--trans), transform var(--trans);
}
.pnst-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Section headers ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0;
}
.section-title .title-accent {
  width: 5px;
  height: 24px;
  background: var(--pnst-secondary);
  border-radius: 3px;
  flex-shrink: 0;
}
.section-title a { color: var(--text); }
.view-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--pnst-primary);
  white-space: nowrap;
}

/* ── Category label ─────────────────────────────────────────────────────── */
.category-label {
  display: inline-block;
  background: var(--pnst-secondary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .2rem .55rem;
  border-radius: 3px;
  margin-bottom: .4rem;
}
.category-label:hover { color: #fff; opacity: .85; }

/* ── Post meta ──────────────────────────────────────────────────────────── */
.byline, .posted-on, .reading-time {
  font-size: .82rem;
  color: var(--text-muted);
  display: inline;
}
.byline + .posted-on::before,
.posted-on + .reading-time::before {
  content: ' · ';
}
.byline .author-link { font-weight: 600; color: var(--text-muted); }
.byline .author-link:hover { color: var(--pnst-primary); }
.entry-date { font-style: normal; }

/* ══════════════════════════════════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-topbar {
  background: var(--pnst-header-bg);
  color: rgba(255,255,255,.8);
  font-size: .8rem;
  padding: .45rem 0;
}
.pnst-topbar .pnst-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.topbar-date { opacity: .75; }

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  position: relative;
  z-index: 500;
  transition: background var(--trans), box-shadow var(--trans);
}
.site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 2px 12px var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .85rem 0;
}

.site-branding { flex-shrink: 0; }
.site-branding .custom-logo { height: 54px; width: auto; }
.site-title-link { text-decoration: none; }
.site-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
}
.site-description { font-size: .8rem; color: var(--text-muted); margin: .1rem 0 0; }

/* Layout 2 — logo centered */
.pnst-header--layout-2 .header-inner { flex-direction: column; align-items: center; padding: 1rem 0 .5rem; }
.pnst-header--layout-2 .main-navigation { justify-content: center; width: 100%; }

.header-controls { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-navigation ul li { position: relative; }
.main-navigation ul li a {
  display: block;
  padding: .5rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: color var(--trans);
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--pnst-primary); }

/* Dropdown */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pnst-radius);
  box-shadow: 0 8px 24px var(--shadow-md);
  flex-direction: column;
  z-index: 600;
  padding: .4rem 0;
}
.main-navigation ul li:hover > ul { display: flex; }
.main-navigation ul ul li a { padding: .45rem 1rem; font-size: .85rem; }

/* ── Icon Buttons ───────────────────────────────────────────────────────── */
.pnst-search-toggle,
.pnst-dark-toggle,
.pnst-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: .35rem;
  border-radius: var(--pnst-radius);
  display: flex;
  align-items: center;
  transition: color var(--trans), background var(--trans);
}
.pnst-search-toggle:hover,
.pnst-dark-toggle:hover,
.pnst-menu-toggle:hover { background: var(--surface); color: var(--pnst-primary); }

/* Dark toggle icons */
.pnst-dark-toggle .icon-sun { display: none; }
body.dark-mode .pnst-dark-toggle .icon-moon { display: none; }
body.dark-mode .pnst-dark-toggle .icon-sun  { display: block; }

/* Hamburger */
.pnst-menu-toggle { flex-direction: column; gap: 5px; width: 38px; height: 38px; justify-content: center; align-items: center; display: none; }
.hamburger-line { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }

/* Search overlay */
.pnst-search-overlay {
  background: var(--surface);
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 490;
}
.pnst-search-overlay .pnst-container { display: flex; gap: .5rem; align-items: center; }
.pnst-search-close { background: none; border: none; cursor: pointer; font-size: 1.4rem; color: var(--text-muted); padding: .25rem .5rem; }
.pnst-search-overlay .search-form { flex: 1; display: flex; }
.pnst-search-overlay .search-field {
  flex: 1;
  padding: .55rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--pnst-radius) 0 0 var(--pnst-radius);
  font-size: .95rem;
  background: var(--bg);
  color: var(--text);
}
.pnst-search-overlay .search-submit {
  padding: .55rem 1.1rem;
  background: var(--pnst-primary);
  color: #fff;
  border: none;
  border-radius: 0 var(--pnst-radius) var(--pnst-radius) 0;
  cursor: pointer;
  font-weight: 600;
}

/* ── Mobile Menu ────────────────────────────────────────────────────────── */
.pnst-mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg);
  box-shadow: -4px 0 24px var(--shadow-md);
  z-index: 900;
  overflow-y: auto;
  transition: right .3s ease;
  display: flex;
  flex-direction: column;
}
.pnst-mobile-menu.is-open { right: 0; }
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.pnst-mobile-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); }
.mobile-menu-inner { padding: 1rem 1.25rem; flex: 1; }
.mobile-menu-inner ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-inner ul li a { display: block; padding: .6rem 0; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text); }
.mobile-menu-inner ul li a:hover { color: var(--pnst-primary); }
.mobile-menu-inner .search-form { margin-top: 1.5rem; display: flex; }
.mobile-menu-inner .search-field {
  flex: 1; padding: .5rem .9rem; border: 1px solid var(--border);
  border-radius: var(--pnst-radius) 0 0 var(--pnst-radius); background: var(--surface); color: var(--text);
}
.mobile-menu-inner .search-submit {
  padding: .5rem .9rem; background: var(--pnst-primary); color: #fff;
  border: none; border-radius: 0 var(--pnst-radius) var(--pnst-radius) 0; cursor: pointer;
}

.pnst-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 850;
}
.pnst-overlay.is-active { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-hero { padding: 2rem 0; background: var(--surface); }
.hero-inner { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }

.hero-main { position: relative; border-radius: var(--pnst-radius-lg); overflow: hidden; }
.hero-image-link { display: block; }
.hero-main img { width: 100%; height: 420px; object-fit: cover; }
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 70%, transparent 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: #fff;
}
.hero-content .category-label { margin-bottom: .6rem; }
.hero-title { font-size: 1.7rem; color: #fff; margin-bottom: .6rem; line-height: 1.2; }
.hero-title a { color: #fff; }
.hero-title a:hover { opacity: .85; }
.hero-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; color: rgba(255,255,255,.8); }
.hero-meta .byline, .hero-meta .posted-on, .hero-meta .reading-time { color: rgba(255,255,255,.8); font-size: .82rem; }
.hero-excerpt { color: rgba(255,255,255,.88); margin-bottom: 1rem; font-size: .95rem; }

.hero-secondary { display: flex; flex-direction: column; gap: 1rem; }
.hero-mini {
  display: grid; grid-template-columns: 100px 1fr; gap: .75rem;
  background: var(--bg); border-radius: var(--pnst-radius); padding: .75rem;
  border: 1px solid var(--border); transition: box-shadow var(--trans);
}
.hero-mini:hover { box-shadow: 0 4px 16px var(--shadow-md); }
.hero-mini-img img { width: 100px; height: 68px; object-fit: cover; border-radius: 5px; }
.hero-mini-content h3 { font-size: .88rem; margin-bottom: .3rem; line-height: 1.3; }
.hero-mini-content h3 a { color: var(--text); }
.hero-mini-content h3 a:hover { color: var(--pnst-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   TRENDING SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-trending { padding: 2rem 0; }
.trending-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.trending-item {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem; border: 1px solid var(--border); border-radius: var(--pnst-radius);
  background: var(--surface); transition: box-shadow var(--trans);
}
.trending-item:hover { box-shadow: 0 4px 16px var(--shadow); }
.trending-number { font-size: 1.6rem; font-weight: 900; color: var(--border); line-height: 1; flex-shrink: 0; min-width: 2.5rem; }
.trending-content h3 { font-size: .88rem; margin-bottom: .3rem; line-height: 1.3; }
.trending-content h3 a { color: var(--text); }
.trending-content h3 a:hover { color: var(--pnst-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   POST CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.posts-loop { display: grid; gap: 1.5rem; }
.posts-layout--grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.posts-layout--list { grid-template-columns: 1fr; }

.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--pnst-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
}
.posts-layout--list .post-card { flex-direction: row; }

.post-card:hover { box-shadow: 0 6px 24px var(--shadow-md); transform: translateY(-2px); }

.post-card-image { display: block; overflow: hidden; flex-shrink: 0; }
.post-card-image img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.posts-layout--list .post-card-image img { width: 220px; height: 160px; }
.post-card:hover .post-card-image img { transform: scale(1.04); }

.post-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.post-card-title { font-size: 1.05rem; margin: .4rem 0 .5rem; line-height: 1.3; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--pnst-primary); }
.post-card-meta { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-bottom: .6rem; }
.post-card-excerpt { color: var(--text-muted); font-size: .88rem; flex: 1; margin-bottom: .8rem; }
.read-more { font-size: .85rem; font-weight: 700; color: var(--pnst-primary); margin-top: auto; }
.read-more:hover { color: var(--pnst-secondary); }

/* ══════════════════════════════════════════════════════════════════════════
   SINGLE POST
   ══════════════════════════════════════════════════════════════════════════ */
.single-post { background: var(--bg); }

.entry-header { margin-bottom: 1.5rem; }
.entry-categories { margin-bottom: .6rem; }
.entry-title { font-size: 2rem; line-height: 1.2; margin-bottom: .75rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.entry-featured-image { margin: 1.5rem 0; border-radius: var(--pnst-radius-lg); overflow: hidden; }
.entry-featured-image img { width: 100%; max-height: 520px; object-fit: cover; }
.featured-image-caption { text-align: center; font-size: .82rem; color: var(--text-muted); padding: .5rem; }

.entry-content { font-size: 1.02rem; line-height: var(--pnst-line-h); }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content img { border-radius: var(--pnst-radius); margin: 1rem 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.entry-content th, .entry-content td { padding: .6rem .9rem; border: 1px solid var(--border); text-align: left; }
.entry-content th { background: var(--surface); font-weight: 700; }

.entry-footer { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.5rem; }
.entry-tags .tags-label { font-weight: 600; color: var(--text-muted); }
.entry-tags a { display: inline-block; background: var(--surface-2); color: var(--text); padding: .2rem .65rem; border-radius: 20px; font-size: .8rem; margin: .2rem .15rem; }
.entry-tags a:hover { background: var(--pnst-primary); color: #fff; }
.entry-actions { margin-top: 1rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* Social share */
.pnst-social-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.share-label { font-weight: 700; font-size: .85rem; color: var(--text-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem; border-radius: var(--pnst-radius); font-size: .82rem; font-weight: 600;
  cursor: pointer; border: none; transition: opacity var(--trans);
}
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #1da1f2; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-copy{ background: var(--surface-2); color: var(--text); }
.share-btn:hover { opacity: .85; }

/* Print button */
.pnst-print-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--surface-2); color: var(--text); border: none;
  padding: .35rem .75rem; border-radius: var(--pnst-radius); font-size: .82rem; cursor: pointer;
  transition: background var(--trans);
}
.pnst-print-btn:hover { background: var(--border); }

/* Post Navigation */
.pnst-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.pnst-post-nav a { font-weight: 600; font-size: .9rem; color: var(--text); display: block; padding: .75rem 1rem; background: var(--surface); border-radius: var(--pnst-radius); transition: background var(--trans); }
.pnst-post-nav a:hover { background: var(--surface-2); color: var(--pnst-primary); }
.nav-next { text-align: right; }

/* Table of Contents */
.pnst-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pnst-radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.pnst-toc h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; }
.pnst-toc ol { margin: 0; padding-left: 1.2rem; }
.pnst-toc li { margin-bottom: .35rem; }
.pnst-toc a { color: var(--text); font-size: .9rem; }
.pnst-toc a:hover { color: var(--pnst-primary); }
.toc-h3 { padding-left: 1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   AUTHOR BOX
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-author-box {
  display: flex; align-items: flex-start; gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--pnst-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.author-avatar img { border-radius: 50%; flex-shrink: 0; }
.author-name { font-size: 1.05rem; margin-bottom: .35rem; }
.author-name a { color: var(--text); }
.author-name a:hover { color: var(--pnst-primary); }
.author-bio { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.author-posts-link { font-size: .85rem; font-weight: 700; color: var(--pnst-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   RELATED POSTS
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-related-posts { margin: 2rem 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.related-card {
  border: 1px solid var(--border); border-radius: var(--pnst-radius-lg); overflow: hidden;
  background: var(--bg); transition: box-shadow var(--trans);
}
.related-card:hover { box-shadow: 0 6px 20px var(--shadow-md); }
.related-image img { width: 100%; height: 150px; object-fit: cover; }
.related-body { padding: .9rem; }
.related-body h3 { font-size: .9rem; line-height: 1.3; margin: .3rem 0 .4rem; }
.related-body h3 a { color: var(--text); }
.related-body h3 a:hover { color: var(--pnst-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   CATEGORY BLOCK
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-cat-block { margin-top: 2.5rem; }

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-sidebar { position: sticky; top: 80px; }
.widget { margin-bottom: 2rem; }
.widget-title {
  font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding-bottom: .6rem; border-bottom: 2px solid var(--pnst-primary); margin-bottom: 1rem;
}
.widget ul { list-style: none; padding: 0; }
.widget ul li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); }
.widget ul li a:hover { color: var(--pnst-primary); }

/* Ad zones */
.pnst-ad { text-align: center; margin: 1.25rem 0; }

/* ══════════════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-breadcrumbs { margin-bottom: 1.25rem; }
.pnst-breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .82rem; color: var(--text-muted); }
.pnst-breadcrumbs ol li { display: flex; align-items: center; gap: .3rem; }
.pnst-breadcrumbs a { color: var(--text-muted); }
.pnst-breadcrumbs a:hover { color: var(--pnst-primary); }
.breadcrumb-sep { color: var(--border); }

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-pagination { margin-top: 2rem; display: flex; justify-content: center; }
.pnst-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.pnst-pagination li { }
.pnst-pagination a,
.pnst-pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .6rem;
  border: 1px solid var(--border); border-radius: var(--pnst-radius);
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: all var(--trans);
}
.pnst-pagination a:hover { background: var(--pnst-primary); color: #fff; border-color: var(--pnst-primary); }
.pnst-pagination .current { background: var(--pnst-primary); color: #fff; border-color: var(--pnst-primary); }

/* ══════════════════════════════════════════════════════════════════════════
   ARCHIVE / SEARCH
   ══════════════════════════════════════════════════════════════════════════ */
.archive-header,
.search-header { margin-bottom: 1.75rem; }
.archive-title,
.search-title { font-size: 1.6rem; margin-bottom: .4rem; }
.archive-title span,
.search-title span { color: var(--pnst-primary); }
.archive-description,
.search-count { color: var(--text-muted); font-size: .95rem; }
.search-form-area { margin-bottom: 1.75rem; }
.search-form-area .search-form { display: flex; }
.search-form-area .search-field { flex: 1; padding: .6rem 1rem; border: 1px solid var(--border); border-radius: var(--pnst-radius) 0 0 var(--pnst-radius); background: var(--surface); color: var(--text); font-size: 1rem; }
.search-form-area .search-submit { padding: .6rem 1.25rem; background: var(--pnst-primary); color: #fff; border: none; border-radius: 0 var(--pnst-radius) var(--pnst-radius) 0; cursor: pointer; font-weight: 600; }
.category-header { border-left: 4px solid var(--pnst-secondary); padding-left: 1rem; }

/* ══════════════════════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-404 { padding: 4rem 0; text-align: center; }
.error-404-number { font-size: 8rem; font-weight: 900; color: var(--pnst-primary); line-height: 1; opacity: .15; }
.error-404-title { font-size: 2rem; margin-bottom: .5rem; }
.error-404-desc { color: var(--text-muted); max-width: 480px; margin: 0 auto 2rem; }
.error-404-search { max-width: 480px; margin: 0 auto 2rem; }
.error-404-search .search-form { display: flex; }
.error-404-search .search-field { flex: 1; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: var(--pnst-radius) 0 0 var(--pnst-radius); background: var(--surface); color: var(--text); }
.error-404-search .search-submit { padding: .7rem 1.25rem; background: var(--pnst-primary); color: #fff; border: none; border-radius: 0 var(--pnst-radius) var(--pnst-radius) 0; cursor: pointer; }
.error-404-actions { margin-bottom: 2.5rem; }
.error-404-cats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.error-404-cats li a { display: inline-block; background: var(--surface-2); padding: .35rem .85rem; border-radius: 20px; font-size: .88rem; color: var(--text); }
.error-404-cats li a:hover { background: var(--pnst-primary); color: #fff; }
.error-404-cats li a span { color: var(--text-muted); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════════════════
   COMMENTS
   ══════════════════════════════════════════════════════════════════════════ */
.comments-area { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.comments-title { font-size: 1.35rem; margin-bottom: 1.25rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: .75rem; }
.comment-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .4rem; }
.comment-content p { font-size: .95rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: .6rem .9rem; border: 1px solid var(--border);
  border-radius: var(--pnst-radius); background: var(--bg); color: var(--text);
  font-family: var(--pnst-font); font-size: .95rem; margin-bottom: 1rem;
}
.comment-form .submit {
  padding: .6rem 1.5rem; background: var(--pnst-primary); color: #fff;
  border: none; border-radius: var(--pnst-radius); cursor: pointer; font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer { background: var(--pnst-footer-bg); color: rgba(255,255,255,.85); margin-top: 3rem; }

.footer-widgets { padding: 3rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-widget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-widget-col .widget-title { color: #fff; border-bottom-color: var(--pnst-secondary); }
.footer-widget-col .widget { color: rgba(255,255,255,.75); }
.footer-widget-col .widget a { color: rgba(255,255,255,.75); }
.footer-widget-col .widget a:hover { color: #fff; }
.footer-widget-col .widget ul li { border-bottom-color: rgba(255,255,255,.1); }

.footer-bottom { padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copyright { font-size: .85rem; color: rgba(255,255,255,.6); }
.footer-copyright a { color: rgba(255,255,255,.8); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.footer-nav ul li a { font-size: .82rem; color: rgba(255,255,255,.65); padding: .2rem .5rem; }
.footer-nav ul li a:hover { color: #fff; }

/* Social icons */
.pnst-social-icons { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.social-icon { display: flex; color: currentColor; padding: .3rem; border-radius: 4px; transition: color var(--trans), opacity var(--trans); }
.social-icon:hover { opacity: .75; }
.topbar-social .social-icon svg { stroke: rgba(255,255,255,.8); }
.footer-social .social-icon svg { stroke: rgba(255,255,255,.7); }
.footer-social .social-icon:hover svg { stroke: #fff; }

/* ══════════════════════════════════════════════════════════════════════════
   BACK TO TOP
   ══════════════════════════════════════════════════════════════════════════ */
.pnst-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  width: 44px; height: 44px;
  background: var(--pnst-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,102,204,.4);
  transition: opacity var(--trans), transform var(--trans);
  opacity: 0;
}
.pnst-back-to-top.visible { opacity: 1; }
.pnst-back-to-top:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════════════════ */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden;
  position: absolute; width: 1px; word-wrap: normal;
}
.no-results { padding: 3rem 0; text-align: center; }
.page-links { margin: 1.5rem 0; font-weight: 700; }
.page-links a { margin: 0 .3rem; }
