/*
Theme Name: Kindbridge
Theme URI: https://kindbridgeinc.com
Author: Kindbridge Inc
Author URI: https://kindbridgeinc.com
Description: Official theme for Kindbridge Inc — a non-profit sharing the stories of people battling serious illness and connecting them with compassionate donors who want to help.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kindbridge
Tags: non-profit, charity, blog, custom-colors, custom-menu, featured-images, responsive-layout, two-columns
*/

/* ==========================================
   VARIABLES & RESET
========================================== */
:root {
  --green:       #1a6b4a;
  --green-mid:   #2d9968;
  --green-dark:  #134f37;
  --green-light: #eaf5f0;
  --green-pale:  #f3faf6;
  --orange:      #e85c2a;
  --orange-light:#fdf1eb;
  --text:        #1c1c1c;
  --text-muted:  #5c5c5c;
  --text-light:  #8a8a8a;
  --border:      #e0e0da;
  --bg:          #f8f8f6;
  --white:       #ffffff;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:   0 6px 30px rgba(0,0,0,0.12);
  --max-w:       1180px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Lato', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================
   TYPOGRAPHY
========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  font-weight: 700;
}
h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 1rem; }
h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: .85rem; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-bottom: .75rem; }
h4 { font-size: 17px; font-family: var(--font-body); font-weight: 700; margin-bottom: .5rem; }
p  { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }
blockquote {
  border-left: 4px solid var(--green-mid);
  background: var(--green-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.1em;
  border-radius: 0 var(--radius) var(--radius) 0;
}
strong { font-weight: 700; }
em { font-style: italic; }

/* ==========================================
   LAYOUT UTILITIES
========================================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #cc4e22;
  border-color: #cc4e22;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232,92,42,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  text-decoration: none;
}
.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}
.section-label {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-mid);
  display: block;
  margin-bottom: .5rem;
}

/* ==========================================
   SITE HEADER
========================================== */
#site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 68px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.site-logo .logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,.65);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-body);
  display: block;
  margin-top: 1px;
}
.site-logo:hover { text-decoration: none; }

/* NAV */
#primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: .25rem;
  padding: 0;
  margin: 0;
}
#primary-menu li { position: relative; }
#primary-menu a {
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 600;
  padding: .5rem .85rem;
  border-radius: 6px;
  transition: all .2s;
  display: block;
  text-decoration: none;
  font-family: var(--font-body);
  letter-spacing: .2px;
}
#primary-menu a:hover { background: rgba(255,255,255,.15); color: #fff; }
#primary-menu .donate-nav a {
  background: var(--orange);
  color: #fff;
  border-radius: 50px;
  padding: .45rem 1.1rem;
}
#primary-menu .donate-nav a:hover { background: #cc4e22; }

/* Dropdown */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: .5rem 0;
  list-style: none;
  z-index: 100;
}
#primary-menu li:hover > .sub-menu { display: block; }
#primary-menu .sub-menu a {
  color: var(--text);
  padding: .5rem 1.1rem;
  font-size: 13.5px;
  border-radius: 0;
}
#primary-menu .sub-menu a:hover { background: var(--green-light); color: var(--green); }

/* HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 6px;
  color: #fff;
  font-size: 20px;
  padding: .3rem .6rem;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, #1f8a5e 100%);
  color: var(--white);
  padding: 80px 1.5rem 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hero p {
  font-size: 1.15em;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   MISSION PILLARS
========================================== */
.mission-pillars {
  padding: 60px 1.5rem;
  background: var(--white);
}
.mission-pillars h2 { text-align: center; margin-bottom: .5rem; }
.mission-pillars .intro { text-align: center; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.pillar {
  background: var(--green-pale);
  border: 1px solid #d0ead8;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.pillar h3 { font-size: 19px; margin-bottom: .5rem; color: var(--green-dark); }
.pillar p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ==========================================
   FEATURED STORIES
========================================== */
.featured-stories {
  padding: 70px 1.5rem;
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 { margin-bottom: .4rem; }
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto 2rem;
}
.story-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.story-card-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.story-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-card-body { padding: 1.25rem 1.4rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.story-card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
  font-family: var(--font-body);
}
.story-card h3 { font-size: 19px; margin-bottom: .5rem; line-height: 1.3; }
.story-card h3 a { color: var(--text); }
.story-card h3 a:hover { color: var(--green); text-decoration: none; }
.story-card p { color: var(--text-muted); font-size: 14.5px; flex: 1; margin-bottom: 1.1rem; }
.story-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
}
.read-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-mid);
  text-decoration: none;
  font-family: var(--font-body);
}
.read-more:hover { color: var(--green-dark); text-decoration: none; }
.read-more::after { content: ' →'; }
.donate-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  font-family: var(--font-body);
}
.donate-link:hover { color: #cc4e22; text-decoration: none; }
.section-center { text-align: center; }

/* ==========================================
   IMPACT COUNTER
========================================== */
.impact-section {
  background: var(--green);
  color: var(--white);
  padding: 60px 1.5rem;
}
.impact-section h2 { color: var(--white); text-align: center; margin-bottom: .5rem; }
.impact-section .intro { text-align: center; color: rgba(255,255,255,.78); margin-bottom: 2.5rem; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.impact-item { padding: 1rem; }
.impact-number {
  font-size: clamp(36px, 5vw, 52px);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .35rem;
}
.impact-label {
  font-size: 13px;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ==========================================
   HOMEPAGE DONATION CTA
========================================== */
.home-cta {
  background: var(--orange-light);
  border-top: 1px solid #f5cdb8;
  padding: 70px 1.5rem;
  text-align: center;
}
.home-cta h2 { margin-bottom: .75rem; }
.home-cta p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05em; }
.home-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   TRUST STRIP
========================================== */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-body);
}
.trust-item .icon { font-size: 16px; }

/* ==========================================
   CONTENT AREA (Pages & Posts)
========================================== */
.content-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 50px 1.5rem 70px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}
.content-wrapper.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 820px;
}

/* PAGE CONTENT */
.page-content h1 { margin-bottom: 1.5rem; }
.page-content .page-header {
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

/* SINGLE POST */
.post-header { margin-bottom: 2rem; }
.post-categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.cat-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  font-family: var(--font-body);
}
.cat-badge:hover { background: var(--green); color: #fff; text-decoration: none; }
.post-header h1 { line-height: 1.2; margin-bottom: .75rem; }
.post-meta {
  color: var(--text-light);
  font-size: 13.5px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.post-meta span { display: flex; align-items: center; gap: .3rem; }

.post-featured-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.post-body p { font-size: 17px; line-height: 1.85; margin-bottom: 1.25rem; }
.post-body h2 { margin-top: 2rem; margin-bottom: .75rem; }
.post-body h3 { margin-top: 1.5rem; }
.post-body ul, .post-body ol { margin-bottom: 1.25rem; }

/* DONATION CTA BOX - In Article */
.donation-cta-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.donation-cta-box h3 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: .6rem;
}
.donation-cta-box p {
  color: rgba(255,255,255,.87);
  font-size: 15px;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}
.donation-cta-box .btn-donate {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: .8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15.5px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(232,92,42,0.4);
}
.donation-cta-box .btn-donate:hover {
  background: #cc4e22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,92,42,0.5);
  text-decoration: none;
}

/* POST TAGS */
.post-tags { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.post-tags span { font-size: 13px; color: var(--text-light); margin-right: .5rem; font-family: var(--font-body); }
.tag-link {
  display: inline-block;
  background: #f0f0ec;
  color: var(--text-muted);
  font-size: 12.5px;
  padding: 3px 10px;
  border-radius: 4px;
  margin: 2px;
  font-family: var(--font-body);
}
.tag-link:hover { background: var(--green-light); color: var(--green); text-decoration: none; }

/* AUTHOR BOX */
.author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--green-pale);
  border: 1px solid #d0ead8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.author-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-head);
}
.author-info h4 { font-size: 15px; margin-bottom: .25rem; }
.author-info p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* RELATED POSTS */
.related-posts { margin-top: 3rem; }
.related-posts h3 { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .2s;
}
.related-card:hover { box-shadow: var(--shadow); }
.related-card-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: .85rem 1rem; }
.related-card-body h4 { font-size: 14.5px; line-height: 1.35; margin-bottom: 0; }
.related-card-body h4 a { color: var(--text); }
.related-card-body h4 a:hover { color: var(--green); text-decoration: none; }

/* ==========================================
   SIDEBAR
========================================== */
.sidebar { position: sticky; top: 88px; }
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.widget-title {
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .7rem 1.1rem;
  font-family: var(--font-body);
  margin: 0;
}
.widget-body { padding: 1.1rem 1.1rem 1.25rem; }
.widget-body p { font-size: 14px; margin-bottom: .85rem; color: var(--text-muted); }

/* DONATION WIDGET */
.donate-widget {
  background: linear-gradient(160deg, var(--green-dark), var(--green-mid));
  border: none;
  text-align: center;
  padding: 1.75rem 1.4rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.donate-widget .heart-icon { font-size: 36px; margin-bottom: .75rem; }
.donate-widget h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: .6rem;
  font-family: var(--font-head);
}
.donate-widget p { color: rgba(255,255,255,.82); font-size: 13.5px; margin-bottom: 1.25rem; }
.donate-widget .btn-donate-sidebar {
  display: block;
  background: var(--orange);
  color: #fff;
  padding: .8rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all .2s;
  margin-bottom: .5rem;
  box-shadow: 0 4px 14px rgba(232,92,42,0.35);
}
.donate-widget .btn-donate-sidebar:hover {
  background: #cc4e22;
  text-decoration: none;
  transform: translateY(-1px);
}
.donate-widget .secure-note { font-size: 11px; color: rgba(255,255,255,.55); margin-bottom: 0; }

/* RECENT POSTS WIDGET */
.recent-post-item {
  display: flex;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.recent-post-info h4 { font-size: 13.5px; line-height: 1.35; margin-bottom: .2rem; }
.recent-post-info h4 a { color: var(--text); font-family: var(--font-body); font-weight: 600; }
.recent-post-info h4 a:hover { color: var(--green); text-decoration: none; }
.recent-post-info span { font-size: 11.5px; color: var(--text-light); font-family: var(--font-body); }

/* CATEGORIES WIDGET */
.widget-body ul { list-style: none; padding: 0; margin: 0; }
.widget-body ul li { padding: .45rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.widget-body ul li:last-child { border-bottom: none; }
.widget-body ul li a { color: var(--text-muted); }
.widget-body ul li a:hover { color: var(--green); text-decoration: none; }
.widget-body ul li .count {
  float: right;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 50px;
  font-family: var(--font-body);
}

/* ==========================================
   ARCHIVE / BLOG INDEX
========================================== */
.archive-header {
  background: var(--green);
  color: var(--white);
  padding: 40px 1.5rem;
}
.archive-header .container { max-width: var(--max-w); }
.archive-header h1 { color: var(--white); font-size: clamp(22px, 3.5vw, 36px); margin-bottom: .25rem; }
.archive-header p { color: rgba(255,255,255,.78); font-size: 15px; margin: 0; }

.archive-grid-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 1.5rem 60px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.archive-list { display: flex; flex-direction: column; gap: 1.5rem; }

.archive-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.archive-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.archive-card-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.archive-card-img img { width: 100%; height: 100%; object-fit: cover; }
.archive-card-body { padding: 1.25rem 1.4rem; display: flex; flex-direction: column; }
.archive-card-body .cat-badge { align-self: flex-start; margin-bottom: .6rem; }
.archive-card-body h2 { font-size: 19px; margin-bottom: .5rem; line-height: 1.3; }
.archive-card-body h2 a { color: var(--text); }
.archive-card-body h2 a:hover { color: var(--green); text-decoration: none; }
.archive-card-body p { font-size: 14.5px; color: var(--text-muted); flex: 1; margin-bottom: .85rem; }
.archive-card-body .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: .5rem;
  justify-content: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
}
.pagination a:hover { background: var(--green-light); color: var(--green); border-color: var(--green-mid); text-decoration: none; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }

/* ==========================================
   GENERIC PAGE
========================================== */
.page-hero {
  background: var(--green);
  padding: 50px 1.5rem 55px;
  color: #fff;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: rgba(255,255,255,.75); margin: .5rem 0 0; font-size: 15px; }

/* ==========================================
   404 PAGE
========================================== */
.error-page {
  text-align: center;
  padding: 100px 1.5rem;
  max-width: 580px;
  margin: 0 auto;
}
.error-page .error-num { font-size: 100px; font-family: var(--font-head); color: var(--green-light); line-height: 1; margin-bottom: 1rem; }
.error-page h1 { font-size: 28px; margin-bottom: .75rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ==========================================
   FOOTER
========================================== */
#site-footer {
  background: #0e2d1e;
  color: rgba(255,255,255,.72);
  padding: 60px 1.5rem 0;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand .logo-text { color: #fff; font-size: 20px; margin-bottom: .5rem; font-family: var(--font-head); font-weight: 700; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 1.1rem; color: rgba(255,255,255,.58); }
.footer-ein { font-size: 12px; color: rgba(255,255,255,.4); }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ==========================================
   COMMENTS
========================================== */
.comments-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comment-respond { background: var(--green-pale); border: 1px solid #d0ead8; border-radius: 12px; padding: 1.75rem; margin-top: 2rem; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: .35rem; font-family: var(--font-body); color: var(--text-muted); }
.comment-form input, .comment-form textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  margin-bottom: 1rem;
  background: var(--white);
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(45,153,104,0.12); }
.comment-form input[type="submit"] {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .7rem 1.75rem;
  font-weight: 700;
  cursor: pointer;
  width: auto;
  transition: background .2s;
}
.comment-form input[type="submit"]:hover { background: var(--green-dark); }

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .archive-grid-wrapper { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .archive-card { grid-template-columns: 1fr; }
  .archive-card-img { min-height: 200px; }
}

@media (max-width: 700px) {
  #primary-menu { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--green-dark); padding: 1rem; gap: 0; z-index: 998; }
  #primary-menu.open { display: flex; }
  #primary-menu a { padding: .7rem 1rem; border-radius: 6px; }
  #primary-menu .sub-menu { position: static; box-shadow: none; background: rgba(255,255,255,.08); border-radius: 6px; margin-top: .25rem; display: none; }
  #primary-menu .sub-menu a { color: rgba(255,255,255,.8); }
  .menu-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero { padding: 55px 1.25rem 65px; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
