/*
Theme Name:  Dollarsz
Theme URI:   https://dollarsz.com
Author:      Moses
Author URI:  https://dollarsz.com
Description: A fast, SEO-optimised personal finance blog theme for Dollarsz.com. Built with Wealth Green colour palette, newsletter integration, category badges, and mobile-first layout.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dollarsz
Tags:        finance, blog, newsletter, two-columns, custom-menu, featured-images, threaded-comments
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================================================== */
:root {
  /* Brand greens */
  --green-900: #0F1F02;
  --green-800: #173404;
  --green-700: #27500A;
  --green-600: #3B6D11;
  --green-500: #639922;
  --green-400: #97C459;
  --green-300: #C0DD97;
  --green-100: #EAF3DE;
  --green-50:  #F4FAF0;

  /* Category accents */
  --amber-700: #633806;
  --amber-600: #854F0B;
  --amber-500: #BA7517;
  --amber-400: #EF9F27;
  --amber-100: #FAEEDA;
  --blue-700:  #0C447C;
  --blue-500:  #185FA5;
  --blue-100:  #E6F1FB;
  --purple-700:#3C3489;
  --purple-500:#534AB7;
  --purple-100:#EEEDFE;

  /* Neutrals */
  --gray-900:  #1A1A18;
  --gray-700:  #2C2C2A;
  --gray-500:  #5F5E5A;
  --gray-300:  #B4B2A9;
  --gray-100:  #F1EFE8;
  --white:     #FFFFFF;
  --page-bg:   #F7F9F4;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(39,80,10,0.08);
  --shadow-md: 0 4px 18px rgba(39,80,10,0.12);
  --shadow-lg: 0 12px 40px rgba(39,80,10,0.16);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   3. TYPOGRAPHY SCALE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 600; }
h5 { font-size: 16px; font-weight: 600; }
h6 { font-size: 14px; font-weight: 600; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--green-500);
  padding: 16px 20px;
  background: var(--green-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--green-700);
  margin: 24px 0;
}

code {
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
  color: var(--green-700);
}

pre {
  background: var(--gray-900);
  color: var(--green-300);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
pre code { background: none; color: inherit; padding: 0; }

hr {
  border: none;
  border-top: 1px solid rgba(39,80,10,0.1);
  margin: 40px 0;
}

/* ==========================================================================
   4. UTILITY CLASSES
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--green-500);
  color: var(--white);
  border: none;
}
.btn-primary:hover { background: var(--green-400); }

.btn-outline {
  background: transparent;
  color: var(--green-700);
  border: 1.5px solid var(--green-500);
}
.btn-outline:hover { background: var(--green-500); color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ==========================================================================
   6. CATEGORY BADGES
   ========================================================================== */
.cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.cat-earn    { background: var(--green-100); color: var(--green-700); }
.cat-invest  { background: var(--amber-100); color: var(--amber-700); }
.cat-save    { background: var(--blue-100);  color: var(--blue-700);  }
.cat-rich    { background: var(--purple-100);color: var(--purple-700);}
.cat-default { background: var(--gray-100);  color: var(--gray-500);  }

/* ==========================================================================
   7. SITE HEADER
   ========================================================================== */
.site-header {
  background: var(--green-800);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--green-500);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--green-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.site-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.site-name span { color: var(--green-400); }

/* Header search */
.header-search-wrap {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.header-search-wrap .search-form {
  display: flex;
  width: 100%;
}
.header-search-wrap .search-field {
  width: 100%;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 0 16px 0 40px;
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}
.header-search-wrap .search-field::placeholder { color: rgba(255,255,255,0.5); }
.header-search-wrap .search-field:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--green-400);
}
.header-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  pointer-events: none;
}
.header-search-wrap .search-submit {
  display: none; /* Icon is enough */
}

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-subscribe {
  background: var(--green-500) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-weight: 600 !important;
}
.nav-subscribe:hover { background: var(--green-400) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   8. CATEGORY STRIP
   ========================================================================== */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(39,80,10,0.1);
  position: sticky;
  top: 71px;
  z-index: 100;
}
.category-strip .container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.category-strip .container::-webkit-scrollbar { display: none; }
.strip-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.strip-link:hover,
.strip-link.active { color: var(--green-700); border-bottom-color: var(--green-500); }
.strip-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ==========================================================================
   9. HERO
   ========================================================================== */
.site-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 55%, var(--green-600) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(99,153,34,0.18);
  pointer-events: none;
}
.site-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 10%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(192,221,151,0.10);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(192,221,151,0.2);
  border: 1px solid rgba(192,221,151,0.4);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-300);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.hero-title em { font-style: normal; color: var(--green-400); }
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-300);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 3px;
  font-weight: 500;
}

/* Hero featured card */
.hero-featured-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.6s ease 0.15s both;
}
.hero-feat-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--green-100), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.hero-feat-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-feat-body { padding: 20px 22px 22px; }
.hero-feat-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.hero-feat-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 10px;
}
.hero-feat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--gray-300);
  font-weight: 500;
}

/* ==========================================================================
   10. SECTION HEADINGS
   ========================================================================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px; height: 22px;
  background: var(--green-500);
  border-radius: 2px;
}
.see-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-600);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.see-all-link:hover { gap: 8px; }

/* ==========================================================================
   11. MAIN LAYOUT
   ========================================================================== */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.site-main { min-width: 0; }

/* ==========================================================================
   12. POST CARDS (ARCHIVE / LOOP)
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(39,80,10,0.07);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post-card:hover .post-card-title { color: var(--green-700); }

.post-card-thumb {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  flex-shrink: 0;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin: 8px 0;
  transition: color 0.2s;
  flex: 1;
}
.post-card-excerpt {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-300);
  font-weight: 500;
}
.post-card-date { display: flex; align-items: center; gap: 4px; }
.read-time-badge {
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* Wide / featured card */
.post-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card-wide .post-card-thumb {
  width: 280px;
  height: auto;
  min-height: 180px;
  flex-shrink: 0;
  border-radius: 0;
}
.post-card-wide .post-card-title { font-size: 20px; }

/* Pagination */
.post-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid rgba(39,80,10,0.1);
  transition: background 0.2s, color 0.2s;
}
.page-numbers:hover { background: var(--green-100); color: var(--green-700); }
.page-numbers.current { background: var(--green-500); color: var(--white); border-color: var(--green-500); }
.page-numbers.prev,
.page-numbers.next { width: auto; padding: 0 16px; }

/* ==========================================================================
   13. SINGLE POST
   ========================================================================== */
.single-post-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.entry-header { margin-bottom: 28px; }
.entry-cats { display: flex; gap: 8px; margin-bottom: 14px; }
.entry-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.15;
  margin-bottom: 16px;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--gray-300);
  font-weight: 500;
  flex-wrap: wrap;
}
.entry-meta a { color: var(--green-600); }
.entry-meta a:hover { text-decoration: underline; }

.entry-feat-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 36px;
}
.entry-feat-img img { width: 100%; height: 420px; object-fit: cover; }

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
}
.entry-content h2 { margin: 40px 0 16px; font-size: 28px; }
.entry-content h3 { margin: 32px 0 12px; font-size: 22px; }
.entry-content h4 { margin: 24px 0 10px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: var(--green-600); text-decoration: underline; }
.entry-content a:hover { color: var(--green-700); }
.entry-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.entry-content .wp-block-quote { margin: 28px 0; }

/* Author box */
.author-box {
  background: var(--green-50);
  border: 1px solid var(--green-300);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 48px 0;
}
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-500), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}
.author-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.author-bio { font-size: 14px; color: var(--gray-500); line-height: 1.65; }

/* Post tags */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.entry-tags a {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.entry-tags a:hover { background: var(--green-100); color: var(--green-700); border-color: var(--green-300); }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* Comments */
.comments-area {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.comments-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.comment-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(39,80,10,0.07);
}
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.comment-date { font-size: 12px; color: var(--gray-300); }
.comment-text { font-size: 14px; color: var(--gray-700); line-height: 1.65; }

/* Comment form */
.comment-form-wrap { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid rgba(39,80,10,0.07); }
.comment-form-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.form-input, .form-textarea {
  width: 100%;
  border: 1.5px solid rgba(39,80,10,0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-700);
  background: var(--page-bg);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus, .form-textarea:focus { border-color: var(--green-500); background: var(--white); }
.form-textarea { height: 120px; resize: vertical; }

/* ==========================================================================
   14. SIDEBAR WIDGETS
   ========================================================================== */
.widget-area { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(39,80,10,0.07);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-100);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* About widget */
.widget-about-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.widget-about-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.widget-about-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.widget-about-bio { font-size: 13px; color: var(--gray-500); line-height: 1.65; margin-bottom: 16px; }
.widget-social-links { display: flex; gap: 8px; }
.widget-social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.widget-social-btn:hover { background: var(--green-100); color: var(--green-700); }

/* Newsletter widget */
.widget-newsletter {
  background: linear-gradient(145deg, var(--green-800), var(--green-700));
  border: none;
  position: relative;
  overflow: hidden;
}
.widget-newsletter::after {
  content: '$';
  position: absolute;
  right: -10px; top: -15px;
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
  pointer-events: none;
  line-height: 1;
}
.widget-newsletter .widget-title {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.15);
}
.widget-newsletter .widget-title::before { background: var(--green-400); }
.nl-widget-desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 12px; }
.nl-widget-perk {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 500;
  margin-bottom: 6px;
}
.nl-widget-perk::before { content: '✓'; color: var(--green-400); font-weight: 700; }
.nl-widget-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.nl-widget-input {
  width: 100%;
  height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.nl-widget-input::placeholder { color: rgba(255,255,255,0.45); }
.nl-widget-input:focus { border-color: var(--green-400); }
.nl-widget-btn {
  width: 100%;
  height: 44px;
  background: var(--green-500);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}
.nl-widget-btn:hover { background: var(--green-400); }
.nl-widget-privacy { font-size: 11px; color: rgba(255,255,255,0.4); text-align: center; }

/* Popular posts widget */
.popular-post-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.popular-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--green-100); line-height: 1; width: 28px; flex-shrink: 0; }
.popular-post-title { font-size: 13px; font-weight: 600; color: var(--gray-700); line-height: 1.45; margin-bottom: 3px; transition: color 0.2s; }
.popular-post-item:hover .popular-post-title { color: var(--green-700); }
.popular-post-meta { font-size: 11px; color: var(--gray-300); }

/* Categories widget */
.widget-cat-list { display: flex; flex-direction: column; gap: 8px; }
.widget-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--page-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: background 0.2s, color 0.2s;
}
.widget-cat-link:hover { background: var(--green-100); color: var(--green-700); }
.widget-cat-left { display: flex; align-items: center; gap: 10px; }
.widget-cat-count { font-size: 12px; font-weight: 700; color: var(--green-600); background: var(--green-100); padding: 2px 9px; border-radius: 999px; }

/* Tag cloud widget */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px !important;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tagcloud a:hover { background: var(--green-100); color: var(--green-700); border-color: var(--green-300); }

/* ==========================================================================
   15. NEWSLETTER SECTION (FULL WIDTH)
   ========================================================================== */
.nl-section {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.nl-section::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(192,221,151,0.1);
}
.nl-section::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(192,221,151,0.08);
}
.nl-section-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.nl-eyebrow {
  display: inline-block;
  background: rgba(192,221,151,0.2);
  border: 1px solid rgba(192,221,151,0.35);
  color: var(--green-300);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.nl-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.nl-section-title em { font-style: normal; color: var(--green-400); }
.nl-section-sub { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 28px; }

.nl-social-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.nl-avatars { display: flex; }
.nl-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--green-800);
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--white);
  overflow: hidden;
}
.nl-avatar:first-child { margin-left: 0; }
.nl-social-text { font-size: 13px; color: rgba(255,255,255,0.65); font-weight: 500; }

.nl-perks { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.nl-perk-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; }
.nl-perk-check { width: 22px; height: 22px; background: rgba(192,221,151,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green-300); font-size: 11px; font-weight: 700; }

.nl-section-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto 14px; }
.nl-section-form input {
  flex: 1;
  height: 52px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.nl-section-form input::placeholder { color: rgba(255,255,255,0.45); }
.nl-section-form input:focus { border-color: var(--green-400); }
.nl-section-form button {
  height: 52px;
  padding: 0 28px;
  background: var(--green-500);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.nl-section-form button:hover { background: var(--green-400); }
.nl-section-fine { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.6);
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); margin: 14px 0 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--green-700); color: var(--white); }
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-400); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--green-400); }

/* ==========================================================================
   17. ANIMATIONS
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }

/* ==========================================================================
   18. RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-featured-card { display: none; }
  .main-wrap, .single-post-wrap { grid-template-columns: 1fr; }
  .widget-area { order: -1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   19. RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 640px) {
  .header-search-wrap { display: none; }
  .primary-nav .nav-label { display: none; }
  .primary-nav a:not(.nav-subscribe) { display: none; }
  .menu-toggle { display: block; }

  .posts-grid { grid-template-columns: 1fr; }
  .post-card-wide { flex-direction: column; }
  .post-card-wide .post-card-thumb { width: 100%; height: 180px; }

  .nl-section-form { flex-direction: column; }
  .nl-section-form input, .nl-section-form button { width: 100%; }

  .footer-main { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
}

/* ==========================================================================
   20. WORDPRESS CORE ALIGNMENT HELPERS
   ========================================================================== */
.alignleft  { float: left; margin-right: 24px; margin-bottom: 16px; }
.alignright { float: right; margin-left: 24px; margin-bottom: 16px; }
.aligncenter { display: block; margin: 24px auto; text-align: center; }
.alignwide  { max-width: 960px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

/* WP captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray-300); text-align: center; margin-top: 6px; }

/* Sticky posts */
.sticky .post-card { border-left: 3px solid var(--green-500); }
