/*
Theme Name: Wiseband Blog
Theme URI: https://www.wiseband.com/blog
Author: Wiseband
Author URI: https://www.wiseband.com
Description: Official Wiseband blog theme — modern, editorial, spacious.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: wiseband-blog
*/

/* ══════════════════════════════════════
   TOKENS
══════════════════════════════════════ */
:root {
  --bg:       #08090f;
  --nav-bg:   rgba(8,9,15,.95);
  --s1:       #0f1018;
  --s2:       #161720;
  --s3:       #1d1e2b;
  --border:   rgba(255,255,255,.07);
  --border-h: rgba(59,130,246,.45);
  --blue:     #3b82f6;
  --blue-dk:  #2563eb;
  --blue-glow:rgba(59,130,246,.13);
  --white:    #eef0ff;
  --body-txt: #b0b4cc;
  --grey:     #7880a0;
  --grey2:    #4a5068;
  --font:     'Outfit', sans-serif;
  --nav-h:    72px;
  --max:      1180px;
  --r:        12px;
}

/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a  { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul  { list-style: none; }
button { cursor: pointer; font-family: var(--font); }

/* ══════════════════════════════════════
   HEADER — bigger logo, more breathing room
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo — bigger ── */
.site-logo {
  flex-shrink: 0;
  margin-right: 2.5rem;
  display: flex;
  align-items: center;
}
.site-logo a { display: flex; align-items: center; }
.site-logo img,
.custom-logo { height: 36px !important; width: auto !important; }

/* ── Nav links ── */
.nav-menu-wrap { flex: 1; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0; margin: 0;
}
.nav-menu > li { position: relative; }

.nav-menu > li > a,
.nav-menu > li > button.ndrop {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--grey);
  padding: .45rem .8rem;
  border-radius: 7px;
  transition: color .15s, background .15s;
  background: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.nav-menu > li > a:hover,
.nav-menu > li > button.ndrop:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li > a.on {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

/* Chevron */
.nav-chev {
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .17s;
  flex-shrink: 0;
}
.nav-menu > li:hover .nav-chev,
.nav-menu > li:focus-within .nav-chev {
  transform: rotate(-135deg) translateY(-2px);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #13141d;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .5rem .4rem .4rem;
  min-width: 220px;
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 200;
}
.nav-menu > li:hover .sub-menu,
.nav-menu > li:focus-within .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.nav-menu .sub-menu li a {
  display: block;
  font-size: .875rem;
  color: var(--grey);
  padding: .5rem .85rem;
  border-radius: 7px;
  transition: color .14s, background .14s;
}
.nav-menu .sub-menu li a:hover { color: var(--white); background: rgba(255,255,255,.06); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-login {
  font-size: .875rem;
  font-weight: 500;
  color: var(--grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .45rem 1.1rem;
  transition: color .15s, border-color .15s;
}
.nav-login:hover { color: var(--white); border-color: rgba(255,255,255,.2); }
.nav-register {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue-dk);
  border-radius: 8px;
  padding: .47rem 1.2rem;
  transition: opacity .15s, transform .15s;
}
.nav-register:hover { opacity: .88; transform: translateY(-1px); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: .5rem .4rem .4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .22s;
}

/* ══════════════════════════════════════
   BLOG HERO — spacious, editorial
══════════════════════════════════════ */
.blog-hero {
  background: radial-gradient(ellipse 75% 60% at 50% -10%, var(--blue-glow) 0%, transparent 65%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
}
.blog-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.blog-hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px; height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.blog-hero-title em { font-style: normal; color: var(--blue); }
.blog-hero-sub {
  font-size: .95rem;
  color: var(--grey);
  max-width: 280px;
  line-height: 1.65;
  text-align: right;
}

/* Archive hero */
.archive-hero {
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
}
.archive-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.archive-cat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.archive-hero h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.archive-count { font-size: .85rem; color: var(--grey); margin-left: auto; }

/* ══════════════════════════════════════
   FILTER BAR
══════════════════════════════════════ */
.filter-bar {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 200;
  background: var(--bg);
}
.filter-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
  gap: .1rem;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-link {
  font-size: .83rem;
  font-weight: 500;
  color: var(--grey2);
  padding: .32rem .9rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .14s, background .14s;
  position: relative;
  display: inline-block;
  line-height: 2.2;
}
.filter-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.filter-link.current,
.filter-link.all-active { color: var(--white); font-weight: 600; }
.filter-link.current::after,
.filter-link.all-active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: .9rem; right: .9rem;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.filter-sep {
  width: 1px; height: 14px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 .3rem;
}

/* ══════════════════════════════════════
   CONTENT WRAPPER
══════════════════════════════════════ */
.site-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* Section label */
.sec-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey2);
  margin-bottom: 1.4rem;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════
   CAT PILL
══════════════════════════════════════ */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .25rem .75rem;
  border: 1px solid currentColor;
  opacity: .85;
  transition: opacity .14s;
}
.cat-pill::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.cat-pill:hover { opacity: 1; }

/* ══════════════════════════════════════
   FEATURED ROW — more generous padding
══════════════════════════════════════ */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.feat-main {
  background: var(--s1);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  transition: background .18s;
  position: relative;
  overflow: hidden;
}
.feat-main:hover { background: var(--s2); }

.feat-deco {
  position: absolute;
  bottom: -2.5rem; right: 1.5rem;
  font-size: 15rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  color: rgba(255,255,255,.025);
  user-select: none;
  pointer-events: none;
}

.feat-main h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.22;
  margin-top: .85rem;
  transition: color .18s;
}
.feat-main:hover h2 { color: var(--blue); }

.feat-excerpt {
  font-size: .95rem;
  color: var(--body-txt);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: .75rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: var(--grey);
  flex-wrap: wrap;
  margin-top: 1rem;
}
.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--grey2);
  flex-shrink: 0;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 1rem;
  transition: gap .17s;
}
.read-link:hover { gap: .7rem; }

/* Side stack */
.feat-stack { display: flex; flex-direction: column; }
.feat-stack-item {
  flex: 1;
  background: var(--s1);
  padding: 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .85rem;
  transition: background .18s;
}
.feat-stack-item + .feat-stack-item { border-top: 1px solid var(--border); }
.feat-stack-item:hover { background: var(--s2); }
.feat-stack-item h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin-top: .5rem;
  transition: color .16s;
}
.feat-stack-item:hover h3 { color: var(--blue); }
.feat-stack-item .post-meta { font-size: .75rem; margin-top: 0; }

/* ══════════════════════════════════════
   CARDS GRID — more padding, bigger text
══════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.post-card {
  background: var(--s1);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: background .18s;
  position: relative;
}
.post-card::after {
  content: '';
  position: absolute;
  left: 0; top: 1.75rem; bottom: 1.75rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--accent, var(--blue));
  opacity: 0;
  transition: opacity .18s;
}
.post-card:hover { background: var(--s2); }
.post-card:hover::after { opacity: 1; }

.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .16s;
  flex: 1;
}
.post-card:hover h3 { color: var(--blue); }

.post-card .excerpt {
  font-size: .875rem;
  color: var(--body-txt);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--grey);
  margin-top: auto;
}
.card-arrow {
  color: var(--blue);
  font-weight: 600;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: .25rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .17s, transform .17s;
}
.post-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════
   LIST ROWS
══════════════════════════════════════ */
.list-rows {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.list-row {
  background: var(--s1);
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 1.75rem;
  transition: background .18s;
}
.list-row:hover { background: var(--s2); }

.list-num {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.07);
  text-align: right;
  transition: color .18s;
  line-height: 1;
}
.list-row:hover .list-num { color: rgba(59,130,246,.35); }

.list-center { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.list-center h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  transition: color .16s;
}
.list-row:hover h3 { color: var(--blue); }

.list-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.read-time {
  font-size: .75rem;
  font-weight: 600;
  color: var(--grey);
  background: var(--s3);
  border-radius: 5px;
  padding: .22rem .6rem;
  white-space: nowrap;
}
.list-arrow {
  color: var(--grey);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .17s, transform .17s;
  display: flex;
}
.list-row:hover .list-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════ */
.newsletter-band {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}
.newsletter-band::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}
.nl-eyebrow {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .8rem;
}
.nl-eyebrow::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0;
}
.nl-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: .65rem;
}
.nl-sub {
  font-size: .9rem;
  color: var(--body-txt);
  line-height: 1.65;
}
.nl-form { display: flex; flex-direction: column; gap: .75rem; }
.nl-input {
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1.1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
  transition: border-color .18s;
  caret-color: var(--blue);
  width: 100%;
}
.nl-input::placeholder { color: var(--grey2); }
.nl-input:focus { border-color: var(--blue); }
.nl-btn {
  background: var(--blue-dk);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .85rem 1.75rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .16s;
  align-self: flex-start;
}
.nl-btn:hover { opacity: .85; }
.nl-note { font-size: .75rem; color: var(--grey); }

/* ══════════════════════════════════════
   TOPICS
══════════════════════════════════════ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.topic-item {
  background: var(--s1);
  padding: 1.6rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transition: background .16s;
}
.topic-item:hover { background: var(--s2); }
.topic-dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: .1rem; }
.topic-name { font-size: .85rem; font-weight: 600; }
.topic-count { font-size: .72rem; color: var(--grey); }

/* ══════════════════════════════════════
   SINGLE POST
══════════════════════════════════════ */
.single-hero {
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem 3.5rem;
  background: radial-gradient(ellipse 60% 50% at 50% -5%, var(--blue-glow) 0%, transparent 65%);
}
.single-hero-inner { max-width: 720px; margin: 0 auto; }

.single-back {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--grey);
  margin-bottom: 1.75rem;
  transition: color .15s;
}
.single-back:hover { color: var(--white); }

.single-title {
  font-size: clamp(1.85rem, 4.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.14;
  margin: 1rem 0 1.4rem;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: var(--grey);
  flex-wrap: wrap;
}

/* Post content — maximum readability */
.single-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.entry-content {
  font-size: 1.05rem;
  color: var(--body-txt);
  line-height: 1.85;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 2.75rem 0 .9rem;
  line-height: 1.25;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.2rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.4rem; }
.entry-content a { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(59,130,246,.35); }
.entry-content a:hover { text-decoration-color: var(--blue); }
.entry-content ul, .entry-content ol { padding-left: 1.6rem; margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.entry-content li { color: var(--body-txt); }
.entry-content strong { color: var(--white); font-weight: 600; }
.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--s1);
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
}
.entry-content img { border-radius: 10px; margin: 2rem 0; }
.entry-content code {
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .4rem;
  font-size: .875em;
  color: var(--blue);
}
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Post tags */
.post-tags {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.post-tags .label { font-size: .78rem; color: var(--grey2); }
.post-tag {
  font-size: .78rem;
  color: var(--grey);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .22rem .7rem;
  transition: border-color .15s, color .15s;
}
.post-tag:hover { border-color: var(--blue); color: var(--white); }

/* Related posts */
.related-section {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 5rem;
}
.related-inner { max-width: var(--max); margin: 0 auto; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); }

.footer-cta {
  background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(37,99,235,.1) 0%, transparent 70%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
}
.footer-cta h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .55rem; }
.footer-cta p { font-size: .9rem; color: var(--body-txt); margin-bottom: 1.5rem; }
.footer-cta-btns { display: flex; align-items: center; justify-content: center; gap: .85rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue-dk);
  border: none;
  border-radius: 9px;
  padding: .72rem 1.5rem;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  padding: .72rem 1.5rem;
  transition: border-color .15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,.3); }

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand .f-logo { margin-bottom: .9rem; }
.footer-brand .f-logo img { height: 30px; }
.footer-brand p { font-size: .875rem; color: var(--grey); line-height: 1.65; max-width: 240px; margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: .4rem; flex-wrap: wrap; }
.social-link {
  font-size: .73rem;
  font-weight: 600;
  color: var(--grey);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .22rem .65rem;
  transition: border-color .14s, color .14s;
}
.social-link:hover { border-color: var(--blue); color: var(--white); }

.footer-col-title { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey2); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .875rem; color: var(--grey); transition: color .14s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: var(--grey2);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--grey2); transition: color .14s; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 1.4rem; }

/* ══════════════════════════════════════
   EMPTY / 404
══════════════════════════════════════ */
.empty-state { text-align: center; padding: 6rem 2rem; }
.empty-icon { font-size: 3.5rem; margin-bottom: 1.5rem; opacity: .35; }
.empty-state h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; margin-bottom: .65rem; }
.empty-state p { font-size: .95rem; color: var(--grey); margin-bottom: 1.75rem; }

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: 2.5rem 0 0; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--grey);
  border: 1px solid var(--border); background: var(--s1);
  transition: all .15s;
}
.page-numbers:hover { color: var(--white); border-color: rgba(255,255,255,.2); }
.page-numbers.current { background: var(--blue-dk); border-color: var(--blue-dk); color: #fff; }
.page-numbers.dots { background: none; border-color: transparent; }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 1rem; gap: .35rem; }

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .topics-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .related-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .featured-row { grid-template-columns: 1fr; }
  .feat-main { padding: 2rem; }
  .feat-stack { flex-direction: row; }
  .feat-stack-item + .feat-stack-item { border-top: none; border-left: 1px solid var(--border); }
  .newsletter-band { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 2rem; }
  .list-row { grid-template-columns: 1fr auto; gap: 1rem; }
  .list-num { display: none; }
  .blog-hero { padding: 3.5rem 2rem 2.75rem; }
}
@media (max-width: 680px) {
  .site-logo img, .custom-logo { height: 30px !important; }
  .cards-grid { grid-template-columns: 1fr; }
  .feat-stack { flex-direction: column; }
  .feat-stack-item + .feat-stack-item { border-left: none; border-top: 1px solid var(--border); }
  .topics-grid { grid-template-columns: repeat(2,1fr); }
  .nav-menu-wrap, .nav-actions .nav-login { display: none; }
  .nav-mobile-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-hero-inner { flex-direction: column; }
  .blog-hero-sub { text-align: left; }
  .blog-hero-title { font-size: 2.2rem; }
  .newsletter-band { padding: 2rem 1.5rem; }
  .single-hero, .single-content { padding-left: 1.25rem; padding-right: 1.25rem; }
  .site-content { padding: 2.5rem 1.25rem 4rem; }
}

/* ══════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════ */
@media (max-width: 680px) {
  #primary-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0; bottom: 0;
    background: rgba(8,9,15,.98);
    backdrop-filter: blur(20px);
    padding: 1.75rem;
    display: none;
    flex-direction: column;
    gap: .25rem;
    overflow-y: auto;
    z-index: 250;
  }
  #primary-nav.mobile-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a,
  .nav-menu > li > button.ndrop { width: 100%; font-size: 1.05rem; padding: .75rem .9rem; }
  .nav-menu .sub-menu {
    position: static; opacity: 1; pointer-events: all; transform: none;
    box-shadow: none; background: rgba(255,255,255,.04); border-radius: 8px;
    margin: .3rem 0 .3rem 1rem; display: none;
  }
  .nav-menu > li.open .sub-menu { display: flex; flex-direction: column; }
}

/* ── View all link ── */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--grey);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1.4rem;
  transition: color .15s, border-color .15s;
}
.view-all-link:hover { color: var(--white); border-color: rgba(255,255,255,.2); }

/* ── More space between featured and grid ── */
.featured-row { margin-bottom: 4rem; }
.cards-grid   { margin-bottom: 0; }
