/*
Theme Name: SaveSmart Live
Theme URI: https://savesmartlive.com
Author: SaveSmart Live
Description: A clean, modern personal finance blog theme with AdSense optimization, social sharing, and mobile-first design.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: savesmartlive
Tags: blog, finance, responsive, custom-menu, featured-images, threaded-comments
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-size: 16px; line-height: 1.7; color: #374151; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #059669; text-decoration: none; }
a:hover { color: #047857; }

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #D1FAE5;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --text-dark: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --bg-white: #ffffff;
  --bg-light: #F9FAFB;
  --bg-green: #ECFDF5;
  --border: #E5E7EB;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1200px;
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.site-main { min-height: 60vh; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--text-dark); font-weight: 700; line-height: 1.3; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.site-logo img { height: 48px; width: auto; }
.site-logo a { display: flex; align-items: center; gap: 0.6rem; }
.site-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }
.site-logo-text span { color: var(--primary); }

.main-nav { display: flex; align-items: center; flex: 1; justify-content: center; }
.main-nav ul { display: flex; list-style: none; gap: 0.15rem; flex-wrap: nowrap; }
.main-nav ul li a { display: block; padding: 0.4rem 0.65rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); border-radius: var(--radius); transition: all 0.2s; white-space: nowrap; }
.main-nav ul li a:hover, .main-nav ul li.current-menu-item a, .main-nav ul li.current-cat a { color: var(--primary); background: var(--bg-green); }

.header-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.search-toggle, .menu-toggle { background: none; border: 1px solid var(--border); cursor: pointer; padding: 0.45rem; color: var(--text-dark); display: flex; align-items: center; justify-content: center; border-radius: var(--radius); transition: all 0.2s; }
.search-toggle:hover, .menu-toggle:hover { background: var(--bg-green); border-color: var(--primary); color: var(--primary); }
.menu-toggle { display: none; }
.search-toggle svg, .menu-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Search Overlay */
.search-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 200; display: none; align-items: flex-start; justify-content: center; padding-top: 80px; backdrop-filter: blur(4px); }
.search-overlay.active { display: flex; }
.search-box-wrap { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; width: min(600px, 92vw); box-shadow: var(--shadow-lg); }
.search-overlay-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.search-overlay-top h3 { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.search-close { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--text-muted); line-height: 1; padding: 0.25rem; }
.search-close:hover { color: var(--text-dark); }
.search-box-wrap .search-form { display: flex; gap: 0; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.search-box-wrap .search-form:focus-within { border-color: var(--primary); }
.search-box-wrap input[type="search"] { flex: 1; border: none; padding: 0.8rem 1rem; font-size: 1rem; outline: none; }
.search-box-wrap button { background: var(--primary); color: #fff; border: none; padding: 0.8rem 1.25rem; cursor: pointer; font-weight: 600; transition: background 0.2s; display: flex; align-items: center; gap: 0.35rem; }
.search-box-wrap button:hover { background: var(--primary-dark); }
.search-box-wrap button svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Mobile nav */
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0.5rem 1.25rem 1rem; }
.mobile-menu ul li a { display: flex; align-items: center; padding: 0.7rem 0; font-weight: 600; font-size: 0.9375rem; color: var(--text-dark); border-bottom: 1px solid var(--bg-light); gap: 0.5rem; }
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a::before { content: '›'; color: var(--primary); font-size: 1.2rem; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section { background: linear-gradient(135deg, #065F46 0%, #059669 55%, #34D399 100%); padding: 3.5rem 0 4rem; color: #fff; text-align: center; position: relative; overflow: hidden; }
.hero-section::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.03'%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"); }
.hero-section .container { position: relative; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.2); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; border: 1px solid rgba(255,255,255,0.3); }
.hero-section h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: #fff; margin-bottom: 0.75rem; text-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.hero-section p { font-size: 1.0625rem; opacity: 0.9; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.hero-search-form { display: flex; max-width: 560px; margin: 0 auto 1.5rem; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); overflow: hidden; }
.hero-search-form input[type="search"] { flex: 1; border: none; padding: 1rem 1.25rem; font-size: 1rem; outline: none; min-width: 0; }
.hero-search-form button { background: var(--accent); color: #fff; border: none; padding: 1rem 1.5rem; font-weight: 700; cursor: pointer; transition: background 0.2s; font-size: 0.9375rem; display: flex; align-items: center; gap: 0.4rem; white-space: nowrap; flex-shrink: 0; }
.hero-search-form button:hover { background: var(--accent-dark); }
.hero-search-form button svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }
.hero-stats { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.5rem; color: #fff; }
.hero-stat span { font-size: 0.8125rem; opacity: 0.8; }

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot { text-align: center; }
.ad-slot ins { display: block; }
.ad-banner-wrap { padding: 1rem 0; background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.ad-placeholder { background: var(--bg-light); border: 2px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-muted); font-size: 0.75rem; width: 100%; }
.ad-placeholder-728 { height: 90px; max-width: 728px; margin: 0 auto; }
.ad-placeholder-300 { height: 250px; max-width: 300px; margin: 0 auto; }
.ad-in-content { margin: 2rem auto; text-align: center; }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.875rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-section { padding: 3rem 0; background: var(--bg-light); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 1rem; }
.category-card { background: #fff; border-radius: var(--radius-lg); padding: 1.375rem 1rem; text-align: center; border: 1px solid var(--border); transition: all 0.25s; text-decoration: none; display: block; }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card .cat-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--bg-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.875rem; }
.category-card .cat-icon svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 2; }
.category-card .cat-name { font-size: 0.8125rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.category-card:hover .cat-name { color: var(--primary); }

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-section { padding: 3.5rem 0; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; }
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all 0.25s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-image .no-image { width: 100%; height: 100%; background: var(--bg-green); display: flex; align-items: center; justify-content: center; }
.post-card-image .no-image svg { width: 40px; height: 40px; stroke: var(--primary); opacity: 0.3; fill: none; stroke-width: 1.5; }
.post-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-category-badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.6875rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.65rem; text-decoration: none; }
.post-card-title { font-size: 1.0625rem; margin-bottom: 0.65rem; line-height: 1.45; }
.post-card-title a { color: var(--text-dark); text-decoration: none; }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: 0.875rem; color: var(--text-muted); flex: 1; line-height: 1.65; 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: 1rem; padding-top: 0.875rem; border-top: 1px solid var(--bg-light); }
.post-card-meta { font-size: 0.775rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.35rem; }
.post-card-meta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.read-more-link { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--primary); font-weight: 700; font-size: 0.8125rem; text-decoration: none; }
.read-more-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.2s; }
.read-more-link:hover { color: var(--primary-dark); }
.read-more-link:hover svg { transform: translateX(3px); }

/* Pagination */
.pagination-wrap { padding: 2rem 0; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.5rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 600; color: var(--text-dark); text-decoration: none; transition: all 0.2s; }
.nav-links a:hover, .nav-links span.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-links .prev, .nav-links .next { padding: 0 1rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section { background: linear-gradient(135deg, #065F46 0%, #059669 100%); color: #fff; padding: 3rem 0; text-align: center; }
.newsletter-section h2 { color: #fff; margin-bottom: 0.5rem; font-size: 1.75rem; }
.newsletter-section p { opacity: 0.88; margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form { display: flex; max-width: 460px; margin: 0 auto; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.newsletter-form input[type="email"] { flex: 1; border: none; padding: 0.9rem 1.25rem; font-size: 0.9375rem; outline: none; min-width: 0; }
.newsletter-form button { background: var(--accent); color: #fff; border: none; padding: 0.9rem 1.25rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-size: 0.9375rem; transition: background 0.2s; flex-shrink: 0; }
.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-note { font-size: 0.775rem; opacity: 0.65; margin-top: 0.75rem; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; padding: 2.5rem 0; align-items: start; }
.single-post-hero { width: 100%; aspect-ratio: 16/6; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.post-breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.post-breadcrumb a { color: var(--primary); }
.post-breadcrumb svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.post-category-badge-lg { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.875rem; text-decoration: none; }
.post-title { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.3; margin-bottom: 1.125rem; }
.post-meta-bar { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.8125rem; color: var(--text-muted); padding: 0.875rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
.post-meta-bar span { display: flex; align-items: center; gap: 0.35rem; }
.post-meta-bar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.post-content { font-size: 1.0625rem; line-height: 1.85; color: var(--text-body); }
.post-content h2 { font-size: 1.625rem; margin: 2.25rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-light); }
.post-content h3 { font-size: 1.25rem; margin: 1.75rem 0 0.75rem; color: var(--primary-dark); }
.post-content h4 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content blockquote { border-left: 4px solid var(--primary); background: var(--bg-green); padding: 1.25rem 1.5rem; margin: 1.75rem 0; border-radius: 0 var(--radius) var(--radius) 0; }
.post-content blockquote p { margin: 0; font-style: italic; color: var(--primary-dark); font-size: 1.0625rem; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--primary-dark); }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.post-content table th { background: var(--bg-green); padding: 0.75rem 1rem; text-align: left; font-weight: 700; border: 1px solid var(--border); color: var(--primary-dark); }
.post-content table td { padding: 0.75rem 1rem; border: 1px solid var(--border); }
.post-content table tr:nth-child(even) td { background: var(--bg-light); }
.post-content .wp-block-image { margin: 1.5rem 0; }
.post-content code { background: var(--bg-light); border: 1px solid var(--border); border-radius: 4px; padding: 0.1em 0.35em; font-size: 0.9em; }

/* Post Tags */
.post-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.post-tags-label { font-size: 0.875rem; font-weight: 700; color: var(--text-muted); }
.tag-link { display: inline-block; background: var(--bg-light); border: 1px solid var(--border); color: var(--text-body); font-size: 0.8125rem; padding: 0.25rem 0.75rem; border-radius: 99px; text-decoration: none; transition: all 0.2s; }
.tag-link:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* Author Box */
.author-box { background: var(--bg-green); border: 1px solid var(--primary-light); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2rem 0; display: flex; gap: 1.25rem; align-items: flex-start; }
.author-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--primary-light); flex-shrink: 0; overflow: hidden; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.75rem; font-weight: 700; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.author-info .author-role { font-size: 0.8125rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   SOCIAL SHARE
   ============================================================ */
.social-share { margin: 2.5rem 0; padding: 1.5rem; background: var(--bg-light); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.social-share h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; text-decoration: none; color: #fff; cursor: pointer; border: none; transition: opacity 0.2s, transform 0.15s; font-family: inherit; }
.share-btn:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }
.share-btn.fb  { background: #1877F2; }
.share-btn.tw  { background: #000; }
.share-btn.pt  { background: #E60023; }
.share-btn.wa  { background: #25D366; }
.share-btn.tg  { background: #229ED9; }
.share-btn.li  { background: #0A66C2; }
.share-btn.copy { background: var(--text-muted); }
.share-btn.copy.copied { background: var(--primary); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.25rem; overflow: hidden; }
.sidebar-widget-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--primary-light); color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }
.sidebar-widget-title svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; stroke-width: 2; }
.widget-search-form { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.widget-search-form:focus-within { border-color: var(--primary); }
.widget-search-form input { flex: 1; border: none; padding: 0.65rem 0.875rem; font-size: 0.875rem; outline: none; }
.widget-search-form button { background: var(--primary); color: #fff; border: none; padding: 0.65rem 0.875rem; cursor: pointer; display: flex; align-items: center; }
.widget-search-form button svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.5; }
.widget-cat-list { list-style: none; }
.widget-cat-list li { }
.widget-cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; font-size: 0.875rem; color: var(--text-body); text-decoration: none; border-bottom: 1px solid var(--bg-light); transition: color 0.2s; }
.widget-cat-list li:last-child a { border-bottom: none; }
.widget-cat-list li a:hover { color: var(--primary); }
.widget-cat-list .count { background: var(--bg-light); color: var(--text-muted); font-size: 0.7rem; padding: 0.15rem 0.55rem; border-radius: 99px; font-weight: 600; }
.recent-post-item { display: flex; gap: 0.875rem; padding: 0.75rem 0; border-bottom: 1px solid var(--bg-light); align-items: flex-start; }
.recent-post-item:last-child { border-bottom: none; }
.recent-post-thumb { width: 68px; height: 68px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--bg-green); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-info { flex: 1; min-width: 0; }
.recent-post-info a { font-size: 0.8125rem; font-weight: 600; color: var(--text-dark); text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-post-info a:hover { color: var(--primary); }
.recent-post-date { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem; }

/* Sidebar Ad */
.sidebar-ad { text-align: center; }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-hero { background: var(--bg-green); padding: 2.5rem 0; border-bottom: 1px solid var(--primary-light); margin-bottom: 2.5rem; }
.page-hero h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--primary-dark); }
.page-hero .breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.5rem; }
.page-hero .breadcrumb a { color: var(--primary); }
.page-layout { max-width: 860px; margin: 0 auto; padding: 0 1.25rem 3rem; }
.page-layout h2 { font-size: 1.375rem; color: var(--primary-dark); margin: 2rem 0 0.75rem; }
.page-layout h3 { font-size: 1.125rem; margin: 1.5rem 0 0.5rem; }
.page-layout p, .page-layout li { font-size: 1rem; line-height: 1.8; color: var(--text-body); }
.page-layout ul, .page-layout ol { margin: 0.5rem 0 1rem 1.5rem; }
.page-layout a { color: var(--primary); }
.page-layout .highlight-box { background: var(--bg-green); border-left: 4px solid var(--primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.page-layout .highlight-box p { margin: 0; color: var(--primary-dark); font-weight: 600; }

/* Contact form */
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-top: 1.5rem; box-shadow: var(--shadow); }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 2rem; }
.contact-info-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem; background: var(--bg-light); border-radius: var(--radius); }
.contact-info-item svg { width: 20px; height: 20px; stroke: var(--primary); fill: none; stroke-width: 2; flex-shrink: 0; }
.contact-info-item p { margin: 0; font-size: 0.9rem; color: var(--text-body); }
.contact-info-item strong { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.125rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--text-dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: 0.9375rem; outline: none; transition: border-color 0.2s; font-family: inherit; background: #fff; color: var(--text-dark); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit { background: var(--primary); color: #fff; border: none; padding: 0.875rem 2rem; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.2s; font-family: inherit; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-submit svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header { background: var(--bg-light); padding: 2rem 0; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.search-header h1 { font-size: 1.5rem; }
.search-header h1 span { color: var(--primary); }
.no-results { text-align: center; padding: 4rem 0; }
.no-results-icon { width: 64px; height: 64px; stroke: var(--border); fill: none; stroke-width: 1.5; margin: 0 auto 1.5rem; }

/* ============================================================
   404
   ============================================================ */
.error-404-wrap { text-align: center; padding: 5rem 1.25rem; }
.error-404-num { font-size: clamp(5rem, 12vw, 8rem); color: var(--primary-light); font-weight: 900; line-height: 1; margin-bottom: 0.5rem; }
.error-404-wrap h2 { font-size: 1.75rem; margin-bottom: 0.75rem; }
.error-404-wrap p { color: var(--text-muted); margin-bottom: 2rem; max-width: 420px; margin-left: auto; margin-right: auto; }
.btn-home { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: #fff; padding: 0.875rem 1.75rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; transition: all 0.2s; }
.btn-home:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-home svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ============================================================
   ARCHIVE / CATEGORY
   ============================================================ */
.archive-hero { background: var(--bg-green); padding: 2.5rem 0; border-bottom: 1px solid var(--primary-light); margin-bottom: 2rem; }
.archive-hero .archive-label { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.archive-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text-dark); margin-bottom: 0.4rem; }
.archive-hero p { color: var(--text-muted); font-size: 0.9375rem; }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments-section h3 { font-size: 1.25rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment { padding: 1rem 0; border-bottom: 1px solid var(--bg-light); }
.comment-author-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-author-name { font-weight: 700; font-size: 0.9375rem; }
.comment-date { font-size: 0.775rem; color: var(--text-muted); }
.comment-body p { font-size: 0.9375rem; margin: 0; color: var(--text-body); }
.comment-form-wrap h3 { font-size: 1.125rem; margin: 2rem 0 1rem; }
.comment-form .form-group { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; }
.comment-form input, .comment-form textarea { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.9rem; font-size: 0.9375rem; font-family: inherit; outline: none; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--primary); }
.comment-form textarea { min-height: 110px; resize: vertical; }
.comment-form .submit-btn { background: var(--primary); color: #fff; border: none; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 0.9375rem; font-family: inherit; }
.comment-form .submit-btn:hover { background: var(--primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #111827; color: #D1D5DB; padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .footer-logo-text { display: block; font-size: 1.375rem; font-weight: 800; color: #fff; text-decoration: none; margin-bottom: 0.75rem; }
.footer-brand .footer-logo-text span { color: #34D399; }
.footer-brand p { font-size: 0.875rem; color: #9CA3AF; line-height: 1.75; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background 0.2s; text-decoration: none; }
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; fill: #9CA3AF; }
.footer-social a:hover svg { fill: #fff; }
.footer-col h4 { color: #fff; font-size: 0.8125rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a { color: #9CA3AF; font-size: 0.875rem; text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 0.35rem; }
.footer-col ul li a:hover { color: #34D399; }
.footer-col ul li a::before { content: '›'; color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; font-size: 0.8rem; color: #6B7280; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: #9CA3AF; }
.footer-bottom a:hover { color: #34D399; }
.footer-bottom-links { display: flex; gap: 1rem; }

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .single-layout { grid-template-columns: 1fr 280px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  h1 { font-size: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-search-form { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .share-buttons { gap: 0.4rem; }
  .share-btn { padding: 0.45rem 0.75rem; font-size: 0.75rem; }
  .hero-stats { gap: 1.25rem; }
  .author-box { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .sidebar, .social-share, .newsletter-section, .ad-slot, .ad-banner-wrap { display: none !important; }
  .single-layout { grid-template-columns: 1fr; }
  body { font-size: 12pt; }
}
