/*
Theme Name: GlancePeak Blog
Theme URI: https://glancepeak.com/blogs/
Author: GlancePeak
Author URI: https://glancepeak.com/
Description: Custom WordPress blog theme matching the GlancePeak HTML site. Two-tier nav (green utility strip + dark main nav), blog listing, single post, and footer.
Version: 1.0.0
License: Private
Text Domain: glancepeak
*/

/* ══════════════════════════════════════
   CSS VARIABLES — matches HTML site
══════════════════════════════════════ */
:root {
  --g: #16A34A;
  --gd: #15803D;
  --gl: #DCFCE7;
  --gxl: #F0FDF4;
  --dk: #1c1c1c;
  --wh: #fff;
  --of: #F7F7F7;
  --bd: #E8E8E8;
  --mu: #6B7280;
  --md: #4B5563;
  --fh: 'Poppins', sans-serif;
  --fb: 'Montserrat', sans-serif;
  --r: 12px;
  --sh: 0 4px 24px rgba(0,0,0,.07);
  --shl: 0 8px 48px rgba(0,0,0,.12);
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dk);
  background: var(--wh);
  overflow-x: hidden;
  padding-top: 92px; /* 34px util strip + 58px main nav */
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--fh); line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { line-height: 1.75; }

.con { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ══════════════════════════════════════
   UTILITY STRIP — green top bar
══════════════════════════════════════ */
.util-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  background: var(--g);
  height: 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.util-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.util-link {
  color: #fff;
  font-size: 12px;
  font-family: var(--fb);
  text-decoration: none;
  padding: 0 12px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity .15s;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.25);
}
.util-link:first-child { border-left: 1px solid rgba(255,255,255,.25); }
.util-link:hover { opacity: .8; color: #fff; }
.util-link i { font-size: 11px; }
.util-soc {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255,255,255,.25);
  gap: 0;
}
.util-soc a {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  width: 30px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  text-decoration: none;
}
.util-soc a:hover { opacity: 1; color: #fff; }

/* ══════════════════════════════════════
   MAIN NAV — dark bar
══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 1000;
  background: var(--dk);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,.5); }
.nav-inner {
  display: flex;
  align-items: center;
  height: 58px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 6px;
}
.nav-logo-img {
  width: 30px; height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-text {
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.nav-logo-text span { color: var(--g); }
.nav-rule { width: 1px; height: 20px; background: rgba(255,255,255,.15); margin: 0 10px; flex-shrink: 0; }

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}
.nav-links li > a,
.nav-links li > span {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--fb);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.nav-links li > a:hover,
.nav-links li > span:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-links li > a.active { color: var(--g); }
.drop-arrow { font-size: 9px; color: rgba(255,255,255,.4); transition: transform .2s; }
.has-drop:hover .drop-arrow { transform: rotate(180deg); }

/* CTA + hamburger */
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.nav-cta {
  background: var(--g);
  color: #fff;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  font-family: var(--fb);
}
.nav-cta:hover { background: var(--gd); transform: translateY(-1px); color: #fff; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background .2s;
}
.hamburger:hover { background: rgba(255,255,255,.1); }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }

/* ── Services dropdown ── */
.has-drop { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  padding: 8px;
  min-width: 270px;
  list-style: none;
  z-index: 1002;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--dk);
  transition: background .15s;
  font-size: 13.5px;
  font-family: var(--fb);
}
.nav-dropdown li a:hover { background: var(--gxl); color: var(--gd); }
.d-ico { font-size: 1.1rem; flex-shrink: 0; width: 26px; text-align: center; }
.d-text { display: flex; flex-direction: column; gap: 1px; }
.d-text strong { font-size: 13px; font-weight: 700; color: var(--dk); line-height: 1.2; }
.d-text em { font-size: 11px; color: var(--mu); font-style: normal; line-height: 1.3; }
.drop-divider-li { height: 1px; background: #E8E8E8; margin: 5px 4px; }
.drop-featured { background: var(--gxl) !important; border: 1px solid var(--gl); border-radius: 8px; }
.drop-featured:hover { background: var(--gl) !important; }
.drop-featured .d-text strong { color: var(--gd); }

/* ── Marketplaces mega dropdown ── */
.mega-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  padding: 18px;
  width: 700px;
  z-index: 1002;
}
.mega-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.mega-col { padding: 0 12px; }
.mega-col:not(:last-child) { border-right: 1px solid #F0F0F0; }
.mega-col-hdr { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #9CA3AF; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid #F0F0F0; }
.mega-mkt { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 6px; text-decoration: none; color: #374151; font-size: 12.5px; font-family: var(--fb); transition: background .15s; white-space: nowrap; }
.mega-mkt:hover { background: var(--gxl); color: var(--gd); }
.mega-mkt-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--g); flex-shrink: 0; }
.mega-footer { border-top: 1px solid #F0F0F0; margin-top: 12px; padding-top: 10px; text-align: center; }
.mega-footer a { font-size: 12px; color: var(--mu); text-decoration: none; font-family: var(--fb); }
.mega-footer a:hover { color: var(--g); }

/* ── Free Tools dropdown ── */
.tools-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #E8E8E8;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
  padding: 8px;
  min-width: 320px;
  list-style: none;
  z-index: 1002;
  flex-direction: column;
  gap: 2px;
}
.tools-drop li a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; text-decoration: none; color: var(--dk); transition: background .15s; font-size: 13px; font-family: var(--fb); }
.tools-drop li a:hover { background: var(--gxl); color: var(--gd); }
.t-ico { width: 28px; height: 28px; border-radius: 7px; background: var(--gxl); display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }

/* ══════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════ */
.mobile-menu {
  display: none;
  position: fixed;
  top: 92px; left: 0; right: 0; bottom: 0;
  background: var(--dk);
  z-index: 998;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--fb);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .15s;
}
.mobile-menu > a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mm-acc { border-bottom: 1px solid rgba(255,255,255,.07); }
.mm-acc-toggle {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500; font-family: var(--fb);
  padding: 14px 24px; display: flex; justify-content: space-between; align-items: center;
  transition: background .15s;
}
.mm-acc-toggle:hover { background: rgba(255,255,255,.05); }
.mm-arr { font-size: 11px; color: rgba(255,255,255,.4); transition: transform .3s; }
.mm-acc-toggle.open .mm-arr { transform: rotate(180deg); }
.mm-acc-toggle.open { color: #fff; }
.mm-acc-sub { display: none; background: rgba(255,255,255,.03); flex-direction: column; }
.mm-acc-sub.open { display: flex; }
.mm-sub-hdr { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.28); padding: 10px 24px 5px 36px; pointer-events: none; }
.mm-acc-sub a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 14px; font-family: var(--fb); padding: 10px 24px 10px 36px; border-bottom: 1px solid rgba(255,255,255,.05); transition: all .15s; }
.mm-acc-sub a:last-child { border-bottom: none; }
.mm-acc-sub a:hover { color: #fff; background: rgba(255,255,255,.05); }
.mm-cta { display: flex; align-items: center; justify-content: center; background: var(--g); color: #fff !important; font-size: 15px; font-weight: 700; font-family: var(--fb); padding: 14px 24px; margin: 14px 20px 0; border-radius: 8px; text-decoration: none; transition: background .2s; border-bottom: none !important; }
.mm-cta:hover { background: var(--gd) !important; color: #fff !important; }

/* ══════════════════════════════════════
   BLOG LISTING PAGE (index.php / archive)
══════════════════════════════════════ */
.blog-hero {
  background: var(--dk);
  padding: 56px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(22,163,74,.1) 0%, transparent 70%);
  pointer-events: none;
}
.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,163,74,.15);
  color: #4ADE80;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.blog-hero-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #4ADE80; }
.blog-hero h1 { color: #fff; margin-bottom: 12px; }
.blog-hero h1 span { color: var(--g); }
.blog-hero p { color: rgba(255,255,255,.55); font-size: 16px; max-width: 520px; margin: 0 auto; }

/* Category filter bar */
.cat-bar { background: var(--of); border-bottom: 1px solid var(--bd); padding: 0; position: sticky; top: 92px; z-index: 100; }
.cat-bar-inner { display: flex; align-items: center; gap: 6px; padding: 12px 24px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.cat-bar-inner::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 100px;
  font-size: 12.5px; font-weight: 500; font-family: var(--fb);
  text-decoration: none; white-space: nowrap; transition: all .2s;
  border: 1px solid var(--bd); color: var(--md); background: var(--wh);
}
.cat-pill:hover, .cat-pill.current-cat { background: var(--g); color: #fff; border-color: var(--g); }

/* Blog grid */
.blog-section { padding: 56px 0 72px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

/* Post card */
.post-card {
  background: var(--wh);
  border: 1px solid var(--bd);
  border-radius: 14px;
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shl); border-color: var(--gl); }

/* Thumbnail — full image, no crop */
.post-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--of);
  flex-shrink: 0;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* full image visible, no crop */
  object-position: center;
  background: var(--of);
  transition: transform .3s;
}
.post-card:hover .post-thumb img { transform: scale(1.02); }

/* No thumbnail placeholder */
.post-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--gxl) 0%, var(--gl) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.post-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--g); background: var(--gxl); padding: 2px 9px; border-radius: 100px;
  text-decoration: none; font-family: var(--fb);
}
.post-cat:hover { background: var(--gl); color: var(--gd); }
.post-date { font-size: 11.5px; color: var(--mu); font-family: var(--fb); }
.post-read-time { font-size: 11.5px; color: var(--mu); font-family: var(--fb); }
.post-read-time::before { content: '·'; margin-right: 6px; }
.post-card-title {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dk);
  line-height: 1.3;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
  transition: color .2s;
}
.post-card-title:hover { color: var(--g); }
.post-excerpt {
  font-size: 13.5px;
  color: var(--md);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--bd); }
.post-author { display: flex; align-items: center; gap: 8px; }
.post-author-img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-author-name { font-size: 12px; font-weight: 600; color: var(--md); font-family: var(--fb); }
.post-read-link {
  font-size: 12.5px; font-weight: 700; color: var(--g); text-decoration: none;
  display: flex; align-items: center; gap: 4px; font-family: var(--fb);
  transition: gap .2s;
}
.post-read-link:hover { gap: 7px; color: var(--gd); }

/* Featured post (first post, full width) */
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card.featured .post-thumb {
  width: 45%;
  aspect-ratio: unset;
  flex-shrink: 0;
  border-radius: 0;
}
.post-card.featured .post-thumb img { object-fit: contain; }
.post-card.featured .post-card-body { padding: 32px; }
.post-card.featured .post-card-title { font-size: 1.45rem; margin-bottom: 12px; }
.post-card.featured .post-excerpt { -webkit-line-clamp: 4; font-size: 15px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 52px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: var(--fb);
  border: 1px solid var(--bd); color: var(--md); text-decoration: none;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--g); color: var(--g); }
.pagination .current { background: var(--g); color: #fff; border-color: var(--g); }

/* ══════════════════════════════════════
   SINGLE POST PAGE
══════════════════════════════════════ */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

/* Post header */
.post-header { margin-bottom: 32px; }
.post-header-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.post-header-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--dk); line-height: 1.2; margin-bottom: 18px; letter-spacing: -.02em; }
.post-header-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--bd); border-bottom: 1px solid var(--bd); margin-bottom: 28px; }
.post-header-byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.byline-info { display: flex; flex-direction: column; gap: 2px; }
.byline-name { font-size: 14px; font-weight: 700; color: var(--dk); font-family: var(--fh); }
.byline-meta { font-size: 12px; color: var(--mu); font-family: var(--fb); }

/* Featured image — full, no crop */
.post-featured-img {
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--of);
  border: 1px solid var(--bd);
}
.post-featured-img img {
  width: 100%;
  height: auto;
  object-fit: contain;   /* show full image */
  display: block;
}

/* Post content */
.post-content { font-size: 16px; line-height: 1.85; color: #2D3748; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--dk); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gl); }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--dk); margin: 28px 0 12px; }
.post-content h4 { font-size: 1rem; font-weight: 700; color: var(--dk); margin: 22px 0 10px; }
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--gd); }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content ul li::marker { color: var(--g); }
.post-content blockquote {
  border-left: 4px solid var(--g);
  background: var(--gxl);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 15px;
  color: var(--md);
  font-style: italic;
}
.post-content img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin: 24px 0;
  border: 1px solid var(--bd);
}
.post-content pre {
  background: #1E1E1E;
  color: #D4D4D4;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0;
}
.post-content code {
  background: var(--gxl);
  color: var(--gd);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 13.5px;
}
.post-content pre code { background: none; color: inherit; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.post-content table th { background: var(--dk); color: #fff; padding: 11px 14px; text-align: left; font-family: var(--fb); font-size: 13px; }
.post-content table td { padding: 10px 14px; border-bottom: 1px solid var(--bd); }
.post-content table tr:nth-child(even) td { background: var(--of); }
.post-content .wp-block-image img { border-radius: 10px; }

/* Post tags */
.post-tags { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--bd); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-tags span { font-size: 12px; font-weight: 600; color: var(--mu); font-family: var(--fb); }
.post-tag { font-size: 12px; font-family: var(--fb); color: var(--md); background: var(--of); border: 1px solid var(--bd); padding: 4px 11px; border-radius: 100px; text-decoration: none; transition: all .2s; }
.post-tag:hover { background: var(--g); color: #fff; border-color: var(--g); }

/* Share bar */
.share-bar { margin: 28px 0; padding: 18px 20px; background: var(--of); border-radius: var(--r); border: 1px solid var(--bd); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-bar span { font-size: 13px; font-weight: 700; color: var(--dk); font-family: var(--fb); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; font-family: var(--fb); transition: all .2s;
}
.share-linkedin { background: #0A66C2; color: #fff; }
.share-linkedin:hover { background: #084e95; color: #fff; }
.share-twitter { background: #000; color: #fff; }
.share-twitter:hover { background: #333; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-facebook:hover { background: #1260c4; color: #fff; }
.share-copy { background: var(--wh); color: var(--dk); border: 1px solid var(--bd); }
.share-copy:hover { background: var(--g); color: #fff; border-color: var(--g); }

/* Author box */
.author-box {
  margin-top: 40px;
  background: var(--of);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-info h4 { font-size: 15px; font-weight: 700; color: var(--dk); margin-bottom: 4px; }
.author-box-info p { font-size: 13.5px; color: var(--md); line-height: 1.65; margin-bottom: 10px; }
.author-box-links a { font-size: 12.5px; color: var(--g); text-decoration: none; font-weight: 600; font-family: var(--fb); }
.author-box-links a:hover { color: var(--gd); }

/* Related posts */
.related-posts { margin-top: 52px; }
.related-posts h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--gl); color: var(--dk); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--wh); border: 1px solid var(--bd); border-radius: 10px; overflow: hidden; transition: all .2s; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--gl); }
.related-card-thumb { width: 100%; aspect-ratio: 16/9; background: var(--of); overflow: hidden; }
.related-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.related-card-body { padding: 14px; }
.related-card-body .post-cat { margin-bottom: 6px; display: inline-block; }
.related-card-title { font-size: 13.5px; font-weight: 700; color: var(--dk); line-height: 1.35; text-decoration: none; display: block; transition: color .2s; }
.related-card-title:hover { color: var(--g); }
.related-card-date { font-size: 11.5px; color: var(--mu); margin-top: 6px; font-family: var(--fb); }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--wh); border: 1px solid var(--bd); border-radius: 14px; padding: 22px; }
.sidebar-widget h4 { font-family: var(--fh); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--dk); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gl); }

/* CTA widget */
.sidebar-cta { background: var(--dk); border-color: var(--dk); text-align: center; }
.sidebar-cta h4 { color: #fff; border-bottom-color: rgba(255,255,255,.1); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 16px; line-height: 1.6; }
.sidebar-cta-btn { display: flex; align-items: center; justify-content: center; background: var(--g); color: #fff; font-size: 13.5px; font-weight: 700; font-family: var(--fb); padding: 11px 20px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.sidebar-cta-btn:hover { background: var(--gd); color: #fff; }

/* Recent posts widget */
.sidebar-post { display: flex; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--bd); }
.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post-thumb { width: 64px; height: 48px; border-radius: 7px; overflow: hidden; flex-shrink: 0; background: var(--of); }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sidebar-post-title { font-size: 12.5px; font-weight: 600; color: var(--dk); line-height: 1.35; text-decoration: none; display: block; transition: color .2s; font-family: var(--fh); }
.sidebar-post-title:hover { color: var(--g); }
.sidebar-post-date { font-size: 11px; color: var(--mu); margin-top: 4px; font-family: var(--fb); }

/* Categories widget */
.sidebar-cats { display: flex; flex-direction: column; gap: 6px; }
.sidebar-cat-link { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--md); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--bd); font-family: var(--fb); transition: color .2s; }
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: var(--g); }
.sidebar-cat-count { font-size: 11px; background: var(--gxl); color: var(--g); padding: 2px 7px; border-radius: 100px; font-weight: 700; }

/* Tags widget */
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar-tag { font-size: 11.5px; color: var(--md); background: var(--of); border: 1px solid var(--bd); padding: 4px 10px; border-radius: 100px; text-decoration: none; font-family: var(--fb); transition: all .2s; }
.sidebar-tag:hover { background: var(--g); color: #fff; border-color: var(--g); }

/* Free tools widget */
.sidebar-tools { display: flex; flex-direction: column; gap: 6px; }
.sidebar-tool-link { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--md); text-decoration: none; padding: 7px 9px; border-radius: 7px; font-family: var(--fb); transition: background .15s; }
.sidebar-tool-link:hover { background: var(--gxl); color: var(--gd); }
.sidebar-tool-link span { font-size: 14px; }

/* ══════════════════════════════════════
   FOOTER — matches HTML site exactly
══════════════════════════════════════ */
.site-footer { background: #111; border-top: 1px solid rgba(255,255,255,.06); }
.footer-main { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.7; margin: 12px 0 18px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; }
.footer-logo-img { width: 30px; height: 30px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.footer-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-text { font-family: var(--fh); font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-logo-text span { color: var(--g); }
.footer-social { display: flex; gap: 9px; margin-bottom: 18px; }
.footer-soc-link { width: 32px; height: 32px; border-radius: 7px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 13px; text-decoration: none; transition: all .2s; }
.footer-soc-link:hover { background: var(--g); color: #fff; }
.footer-certs { display: flex; flex-direction: column; gap: 10px; }
.footer-cert img { height: 52px; width: auto; max-width: 150px; object-fit: contain; opacity: .85; }
.footer-cert img.scpn { background: white; border-radius: 5px; padding: 5px 8px; height: 44px; opacity: 1; }
.footer-col h4 { font-family: var(--fh); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--g); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; }
.footer-contact-icon { color: var(--g); font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-text { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,.65); text-decoration: none; }
.footer-contact-text a:hover { color: var(--g); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: rgba(255,255,255,.3); font-size: 12px; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,.3); font-size: 12px; text-decoration: none; transition: color .2s; }
.footer-bottom-links a:hover { color: var(--g); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { flex-direction: column; grid-column: auto; }
  .post-card.featured .post-thumb { width: 100%; aspect-ratio: 16/9; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { grid-row: 1; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 960px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
  .util-soc { display: none; }
}
@media (max-width: 768px) {
  body { padding-top: 92px; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .author-box { flex-direction: column; }
  .single-layout { padding: 32px 20px 56px; }
}
@media (max-width: 640px) {
  .util-bar { display: none; }
  .site-nav { top: 0; }
  .mobile-menu { top: 58px; }
  body { padding-top: 58px; }
  .cat-bar { top: 58px; }
  .share-bar { gap: 8px; }
}
@media (max-width: 400px) {
  .nav-inner { padding: 0 14px; }
  .nav-logo-text { font-size: 1rem; }
  .con { padding: 0 16px; }
}
