/*
Theme Name: EverGreen Health Today
Theme URI: https://evergreenhealthtoday.com
Author: EverGreen Health
Author URI: https://evergreenhealthtoday.com
Description: A professional health & wellness WordPress theme with working BMI calculator, newsletter signup, interactive sections, and modern design. Perfect for health blogs, medical websites, and wellness portals.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: evergreen-health-today
Tags: health, medical, wellness, calculator, blog, responsive, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --forest:   #1b4332;
  --leaf:     #2d6a4f;
  --sage:     #52b788;
  --mint:     #95d5b2;
  --mist:     #d8f3dc;
  --cream:    #f8faf5;
  --snow:     #ffffff;
  --bark:     #1a2410;
  --stone:    #4a5e42;
  --pebble:   #8aaa82;
  --gold:     #e9c46a;
  --coral:    #e76f51;
  --sky:      #48cae4;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Outfit', sans-serif;
  --font-mono:  'DM Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(27,67,50,0.08);
  --shadow-md: 0 8px 32px rgba(27,67,50,0.14);
  --shadow-lg: 0 20px 60px rgba(27,67,50,0.18);
  --shadow-xl: 0 32px 80px rgba(27,67,50,0.24);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--bark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideRight {
  from { transform: scaleX(0); } to { transform: scaleX(1); }
}
@keyframes floatLeaf {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(4deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,183,136,0.4); }
  50%       { box-shadow: 0 0 0 12px rgba(82,183,136,0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   SCROLL INDICATOR
═══════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: rgba(82,183,136,0.15);
  z-index: 9999;
}
.scroll-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--mint));
  width: 0%; transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════ */
.topbar {
  background: var(--forest);
  color: var(--mint);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  padding: 10px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.5s ease;
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; animation: pulse 2s infinite; }
.topbar-links { display: flex; gap: 24px; }
.topbar-links a {
  color: var(--pebble);
  transition: color 0.2s;
  font-size: 11px;
}
.topbar-links a:hover { color: var(--mint); }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  background: rgba(248,250,245,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(149,213,178,0.25);
  padding: 0 48px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeIn 0.6s ease 0.1s both;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(27,67,50,0.3);
  flex-shrink: 0;
}
.logo-mark svg { width: 26px; height: 26px; fill: var(--mint); }
.logo-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.logo-tagline {
  font-size: 10px;
  font-weight: 500;
  color: var(--pebble);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--snow);
  border: 1.5px solid rgba(149,213,178,0.4);
  border-radius: 40px;
  padding: 6px 8px 6px 18px;
  width: 340px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}
/* The form inside header-search */
.header-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.header-search input,
.header-search .search-field {
  border: none; background: transparent; outline: none;
  font-family: var(--font-sans); font-size: 14px; color: var(--bark);
  width: 100%; flex: 1; padding: 0;
}
.header-search input::placeholder,
.header-search .search-field::placeholder { color: var(--pebble); }
.search-btn {
  background: var(--forest); border: none; cursor: pointer;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.search-btn:hover { background: var(--leaf); transform: scale(1.05); }
.search-btn svg { width: 14px; height: 14px; stroke: white; fill: none; stroke-width: 2; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
  font-size: 13px; font-weight: 600; color: var(--stone);
  padding: 9px 18px; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; background: transparent;
  transition: all 0.2s; font-family: var(--font-sans);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--forest); background: var(--mist); }
.btn-primary {
  font-size: 13px; font-weight: 600; color: white;
  padding: 10px 22px; border-radius: 10px;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  border: none; cursor: pointer; font-family: var(--font-sans);
  transition: all 0.2s; box-shadow: 0 4px 12px rgba(27,67,50,0.3);
  display: flex; align-items: center; gap: 6px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,67,50,0.4); }
.btn-primary svg { width: 14px; height: 14px; stroke: white; fill: none; stroke-width: 2; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.main-nav {
  background: var(--snow);
  border-bottom: 1px solid rgba(149,213,178,0.2);
  padding: 0 48px;
  position: relative;
  animation: fadeIn 0.6s ease 0.2s both;
}
.main-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 48px; right: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--sage), var(--mint), transparent);
  transform-origin: left;
  animation: slideRight 1s ease 0.8s both;
}
.nav-list { display: flex; list-style: none; gap: 0; }
.nav-list li a {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  font-size: 13px; font-weight: 500; color: var(--stone);
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.2s;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-list li a:hover,
.nav-list li a.active,
.nav-list li.current-menu-item > a { color: var(--forest); }
.nav-list li a:hover::after,
.nav-list li a.active::after,
.nav-list li.current-menu-item > a::after { transform: scaleX(1); }
.nav-list li a.active,
.nav-list li.current-menu-item > a { font-weight: 600; }

.nav-badge {
  font-size: 9px; font-weight: 700; background: var(--gold);
  color: var(--bark); padding: 2px 6px; border-radius: 20px;
  letter-spacing: 0.3px; text-transform: uppercase;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  flex-direction: column; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--forest); border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 640px;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(45,106,79,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(82,183,136,0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(149,213,178,0.1) 0%, transparent 60%),
    linear-gradient(155deg, #e6f4ea 0%, #d8f0de 35%, #eef7f0 70%, #f5fbf5 100%);
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(82,183,136,0.15);
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,183,136,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: 30%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,213,178,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.leaf-deco {
  position: absolute;
  opacity: 0.08;
  font-size: 120px;
  animation: floatLeaf 6s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
.leaf-deco.l1 { top: 40px; right: 200px; animation-delay: 0s; }
.leaf-deco.l2 { bottom: 40px; left: 60px; animation-delay: 2s; font-size: 80px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(27,67,50,0.08);
  border: 1px solid rgba(82,183,136,0.3);
  color: var(--forest);
  font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 40px;
  letter-spacing: 1.5px; text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease 0.3s both;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; animation: pulse 2s infinite; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 900;
  color: #0d2018;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  animation: fadeUp 0.7s ease 0.4s both;
  text-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.hero h1 em {
  font-style: italic;
  color: var(--forest);
  position: relative;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--mint));
  border-radius: 2px;
}
.hero-desc {
  font-size: 17px; color: var(--stone); line-height: 1.75;
  margin-bottom: 36px; max-width: 520px;
  font-weight: 300;
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero-actions {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.6s both;
}
.cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  color: white; font-size: 14px; font-weight: 600;
  padding: 15px 28px; border-radius: 12px; border: none; cursor: pointer;
  font-family: var(--font-sans); letter-spacing: 0.2px;
  box-shadow: 0 6px 24px rgba(27,67,50,0.35);
  transition: all 0.25s;
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(27,67,50,0.45); }
.cta-primary svg { width: 16px; height: 16px; stroke: white; fill: none; stroke-width: 2.5; }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--forest);
  padding: 15px 24px; border-radius: 12px;
  border: 2px solid rgba(27,67,50,0.2);
  cursor: pointer; background: transparent; font-family: var(--font-sans);
  transition: all 0.2s;
}
.cta-secondary:hover { border-color: var(--sage); background: rgba(82,183,136,0.06); }

.hero-trust {
  display: flex; align-items: center; gap: 20px; margin-top: 36px;
  animation: fadeUp 0.7s ease 0.7s both;
}
.trust-avatars { display: flex; }
.trust-avatars span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2.5px solid white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; background: linear-gradient(135deg, var(--sage), var(--mint));
  margin-left: -8px;
}
.trust-avatars span:first-child { margin-left: 0; }
.trust-text { font-size: 13px; color: var(--stone); font-weight: 400; }
.trust-text strong { color: var(--bark); font-weight: 700; }

/* ═══════════════════════════════════════════
   HERO CALCULATOR CARD
═══════════════════════════════════════════ */
.hero-card {
  background: var(--snow);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(149,213,178,0.3);
  position: relative;
  animation: fadeUp 0.8s ease 0.5s both;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--mint));
  border-radius: 24px 24px 0 0;
}
.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-icon {
  width: 42px; height: 42px; background: var(--mist);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--bark); }
.card-sub { font-size: 13px; color: var(--pebble); margin-bottom: 24px; }

.tabs {
  display: flex; gap: 4px;
  background: var(--cream); border-radius: 10px; padding: 4px;
  margin-bottom: 22px;
}
.tab {
  flex: 1; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; background: transparent; color: var(--stone);
  font-family: var(--font-sans); transition: all 0.2s;
  text-align: center;
}
.tab.active {
  background: var(--snow); color: var(--forest);
  box-shadow: 0 2px 8px rgba(27,67,50,0.1);
}

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label {
  font-size: 11px; font-weight: 700; color: var(--pebble);
  text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono);
}
.input-group input, .input-group select {
  padding: 10px 14px; border: 1.5px solid rgba(149,213,178,0.35);
  border-radius: 10px; font-size: 15px; font-weight: 600;
  color: var(--bark); background: var(--cream);
  outline: none; font-family: var(--font-sans);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.input-group input:focus, .input-group select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.12);
}

.result-card {
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  border-radius: 14px; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  margin: 20px 0;
  position: relative; overflow: hidden;
}
.result-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.result-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-mono); }
.result-category { font-size: 13px; font-weight: 600; color: var(--mint); margin-top: 4px; }
.result-value { font-family: var(--font-serif); font-size: 42px; font-weight: 900; color: white; line-height: 1; }
.result-unit { font-size: 11px; color: rgba(255,255,255,0.5); text-align: right; font-family: var(--font-mono); }

.calc-action {
  width: 100%; padding: 14px;
  background: var(--forest); color: white;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: var(--font-sans);
  letter-spacing: 0.3px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.calc-action:hover { background: var(--leaf); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(27,67,50,0.3); }

/* ═══════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════ */
.stats-bar {
  background: var(--forest);
  padding: 24px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
  animation: countUp 0.7s ease both;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 900;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 400; font-family: var(--font-mono); letter-spacing: 0.5px; }

/* ═══════════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════════ */
.section { padding: 80px 48px; }
.section-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--sage);
  letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-mono); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--sage);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 38px; font-weight: 700;
  color: var(--bark); line-height: 1.2;
  letter-spacing: -0.8px; margin-bottom: 16px;
}
.section-desc { font-size: 16px; color: var(--stone); line-height: 1.7; max-width: 520px; font-weight: 300; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px;
}
.view-all-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--forest);
  padding: 10px 20px; border-radius: 8px;
  border: 1.5px solid rgba(27,67,50,0.2);
  transition: all 0.2s;
}
.view-all-link:hover { background: var(--mist); border-color: var(--sage); }
.view-all-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform 0.2s; }
.view-all-link:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════
   CALCULATOR FILTER TABS
═══════════════════════════════════════════ */
.calc-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.calc-filter-btn {
  padding: 9px 18px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1.5px solid rgba(149,213,178,0.35);
  background: var(--snow);
  color: var(--stone);
  transition: all 0.2s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.calc-filter-btn:hover {
  border-color: var(--sage);
  color: var(--forest);
  background: var(--mist);
}

.calc-filter-btn.active {
  background: linear-gradient(135deg, var(--forest), var(--leaf));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(27,67,50,0.3);
}

/* ═══════════════════════════════════════════
   FULL TOOLS GRID (35+ tools)
═══════════════════════════════════════════ */
.calcs-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* hidden cards during filter */
.calc-card.hidden {
  display: none;
}

/* Card bottom row */
.cc-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.cc-arrow {
  font-size: 14px;
  color: var(--pebble);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.calc-card:hover .cc-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--forest);
}

/* Tools Count Bar */
.tools-count-bar {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: var(--pebble);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.tools-count-bar span:first-child {
  font-weight: 700;
  color: var(--forest);
  font-size: 15px;
}

.tools-count-dot {
  margin: 0 8px;
}

/* ═══════════════════════════════════════════
   POPULAR CALCULATORS — HOME SECTION
═══════════════════════════════════════════ */
.popular-calcs-section {
  background: var(--cream);
  padding: 80px 48px 0;
}

/* "All 35+ Calculators" button */
.view-all-calcs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--forest);
  padding: 12px 24px; border-radius: 12px;
  border: 2px solid rgba(27,67,50,0.2);
  background: white;
  cursor: pointer; font-family: var(--font-sans);
  transition: all 0.25s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(27,67,50,0.06);
}
.view-all-calcs-btn:hover {
  border-color: var(--sage);
  background: var(--mist);
  box-shadow: 0 4px 16px rgba(27,67,50,0.12);
}
.view-all-calcs-btn svg {
  width: 18px; height: 18px;
  stroke: var(--forest); fill: none; stroke-width: 2.5;
  transition: transform 0.3s ease;
}
.view-all-calcs-btn.open svg { transform: rotate(180deg); }

/* Top 4 Popular Calculator Cards Grid */
.popular-calcs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 0 40px;
}
.popular-calc-card {
  background: var(--snow);
  border: 1.5px solid rgba(149,213,178,0.25);
  border-radius: 20px; padding: 26px 22px 22px;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: all 0.28s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.popular-calc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--mint));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.popular-calc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(27,67,50,0.14);
  border-color: rgba(82,183,136,0.45);
}
.popular-calc-card:hover::before { transform: scaleX(1); }

.pcc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.pcc-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: transform 0.25s;
}
.popular-calc-card:hover .pcc-icon { transform: scale(1.1); }
.pcc-icon.green  { background: linear-gradient(135deg,#d1fae5,#a7f3d0); }
.pcc-icon.amber  { background: linear-gradient(135deg,#fef3c7,#fde68a); }
.pcc-icon.blue   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); }
.pcc-icon.teal   { background: linear-gradient(135deg,#ccfbf1,#99f6e4); }

.pcc-badge {
  font-size: 9px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.pcc-badge.popular  { background: rgba(27,67,50,0.08); color: var(--forest); }
.pcc-badge.trending { background: rgba(231,111,81,0.12); color: #c0472b; }
.pcc-badge.new      { background: rgba(233,196,106,0.2); color: #8B6914; }

.pcc-title {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 700;
  color: var(--bark); line-height: 1.3;
  letter-spacing: -0.3px;
  transition: color 0.2s;
}
.popular-calc-card:hover .pcc-title { color: var(--forest); }
.pcc-desc { font-size: 13px; color: var(--pebble); line-height: 1.6; flex: 1; font-weight: 300; }
.pcc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; margin-top: 4px;
  border-top: 1px solid var(--mist);
}
.pcc-users { font-size: 11px; color: var(--pebble); font-family: var(--font-mono); }
.pcc-cta {
  font-size: 12px; font-weight: 700; color: var(--forest);
  background: var(--mist); padding: 5px 12px; border-radius: 20px;
  transition: all 0.2s;
}
.popular-calc-card:hover .pcc-cta {
  background: var(--forest); color: white;
}

/* ═══════════════════════════════════════════
   ALL CALCULATORS EXPANDABLE PANEL
═══════════════════════════════════════════ */
.all-calcs-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s ease;
  opacity: 0;
  background: var(--snow);
  border-top: 2px solid rgba(149,213,178,0.2);
}
.all-calcs-panel.open {
  max-height: 4000px;
  opacity: 1;
}
.all-calcs-inner {
  padding: 56px 48px 64px;
}
.all-calcs-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.all-calcs-panel-title {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 700;
  color: var(--bark); letter-spacing: -0.5px;
  margin-top: 8px;
}
.close-calcs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px;
  border: 1.5px solid rgba(149,213,178,0.35);
  background: var(--mist); color: var(--forest);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.close-calcs-btn:hover { background: var(--forest); color: white; border-color: var(--forest); }

.calcs-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.cc-card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.cc-arrow { font-size: 16px; color: var(--pebble); transition: transform 0.2s, color 0.2s; }
.calc-card:hover .cc-arrow { transform: translateX(4px); color: var(--forest); }

/* ═══════════════════════════════════════════
   CALCULATOR CARDS GRID
═══════════════════════════════════════════ */
.calc-section { background: var(--cream); }
.calcs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.calc-card {
  background: var(--snow);
  border: 1px solid rgba(149,213,178,0.2);
  border-radius: 16px; padding: 22px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative; overflow: hidden;
}
.calc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--sage));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.calc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(82,183,136,0.4); }
.calc-card:hover::after { transform: scaleX(1); }

.cc-icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.cc-icon-wrap.green  { background: #e8f5e9; }
.cc-icon-wrap.teal   { background: #e0f7fa; }
.cc-icon-wrap.blue   { background: #e3f2fd; }
.cc-icon-wrap.amber  { background: #fff8e1; }
.cc-icon-wrap.rose   { background: #fce4ec; }
.cc-icon-wrap.purple { background: #f3e5f5; }

.calc-card h3 { font-size: 15px; font-weight: 700; color: var(--bark); margin-bottom: 6px; letter-spacing: -0.2px; }
.calc-card p  { font-size: 12px; color: var(--pebble); line-height: 1.55; }
.cc-badge {
  display: inline-block; margin-top: 14px;
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.cc-badge.popular  { background: rgba(27,67,50,0.08); color: var(--forest); }
.cc-badge.new      { background: rgba(233,196,106,0.2); color: #8B6914; }
.cc-badge.trending { background: rgba(231,111,81,0.12); color: #c0472b; }

/* ═══════════════════════════════════════════
   FEATURED ARTICLES
═══════════════════════════════════════════ */
.articles-section { background: var(--snow); }
.articles-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }

.featured-article { cursor: pointer; }
.featured-img {
  width: 100%; height: 320px;
  background: linear-gradient(160deg, var(--forest) 0%, var(--leaf) 40%, var(--sage) 100%);
  border-radius: 20px; margin-bottom: 22px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  box-shadow: 0 12px 40px rgba(27,67,50,0.2);
}
.featured-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.3) 0%, transparent 60%);
  z-index: 0;
}
.featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(27,67,50,0.75));
  z-index: 1;
}
.featured-img-content { position: relative; z-index: 2; padding: 24px; }
.featured-img-tag {
  font-size: 10px; font-weight: 700; background: var(--gold);
  color: var(--bark); padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
}
.img-deco-leaf {
  position: absolute; top: 24px; right: 24px;
  font-size: 72px; opacity: 0.18;
  animation: floatLeaf 8s ease-in-out infinite;
  z-index: 1;
}
.img-deco-cross {
  position: absolute; bottom: 80px; left: 24px;
  font-size: 48px; opacity: 0.12;
  animation: floatLeaf 10s ease-in-out infinite;
  animation-delay: 3s;
  z-index: 1;
}
.feat-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  color: var(--sage); letter-spacing: 1.5px; text-transform: uppercase;
  font-family: var(--font-mono); margin-bottom: 10px;
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 700; color: var(--bark);
  line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.3px;
}
.feat-title:hover { color: var(--forest); }
.feat-excerpt { font-size: 14px; color: var(--stone); line-height: 1.7; margin-bottom: 16px; font-weight: 300; }
.feat-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--pebble); font-family: var(--font-mono); flex-wrap: wrap; }
.feat-meta-dot { width: 3px; height: 3px; background: var(--pebble); border-radius: 50%; }
.feat-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px; font-size: 13px; font-weight: 600;
  color: var(--forest); border-bottom: 1.5px solid var(--sage);
  padding-bottom: 2px; transition: gap 0.2s;
}
.feat-read-more:hover { gap: 10px; }

.articles-sidebar { 
  display: flex; flex-direction: column; gap: 0; 
  background: var(--cream);
  border-radius: 20px;
  padding: 8px;
  border: 1px solid rgba(149,213,178,0.2);
}
.sidebar-article {
  display: flex; gap: 14px; padding: 16px;
  border-bottom: 1px solid rgba(149,213,178,0.15);
  cursor: pointer; transition: all 0.25s;
  border-radius: 14px;
  background: transparent;
}
.sidebar-article:last-child { border-bottom: none; }
.sidebar-article:hover { 
  transform: translateX(4px); 
  background: var(--snow);
  box-shadow: 0 4px 16px rgba(27,67,50,0.08);
}
.sa-thumb {
  width: 84px; height: 84px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  box-shadow: 0 4px 12px rgba(27,67,50,0.2);
  position: relative;
  overflow: hidden;
}
.sa-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.sa-content { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.sa-tag { font-size: 9px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 1.5px; font-family: var(--font-mono); margin-bottom: 5px; }
.sa-title { font-size: 14px; font-weight: 700; color: var(--bark); line-height: 1.4; margin-bottom: 5px; transition: color 0.2s; }
.sidebar-article:hover .sa-title { color: var(--forest); }
.sa-meta { font-size: 11px; color: var(--pebble); font-family: var(--font-mono); }
.sa-arrow { 
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--mist); color: var(--forest);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0; align-self: center;
  opacity: 0; transform: translateX(-4px);
  transition: all 0.2s;
}
.sidebar-article:hover .sa-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════
   POPULAR TOPICS SECTION
═══════════════════════════════════════════ */
.popular-topics-section {
  background: linear-gradient(135deg, #0d2416 0%, var(--forest) 50%, #1a4d35 100%);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}
.popular-topics-section::before {
  content: '🌿';
  position: absolute; top: -30px; right: 100px;
  font-size: 200px; opacity: 0.04;
  animation: floatLeaf 12s ease-in-out infinite;
  pointer-events: none;
}
.pt-header { margin-bottom: 36px; }
.pt-eyebrow {
  font-size: 10px; font-weight: 700; color: var(--sage);
  font-family: var(--font-mono); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pt-eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1.5px; background: var(--sage); }
.pt-title {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 900; color: white;
  line-height: 1.2; letter-spacing: -0.5px;
}
.pt-title em { font-style: italic; color: var(--mint); }

.popular-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pt-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(149,213,178,0.15);
  border-radius: 18px; padding: 28px 24px;
  display: flex; align-items: center; gap: 18px;
  text-decoration: none; color: white;
  transition: all 0.28s ease;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.pt-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(82,183,136,0.08), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.pt-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(149,213,178,0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.pt-card:hover::before { opacity: 1; }
.pt-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(82,183,136,0.15);
  border: 1px solid rgba(149,213,178,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
  transition: all 0.25s;
}
.pt-card:hover .pt-icon-wrap {
  background: rgba(82,183,136,0.25);
  transform: scale(1.08);
}
.pt-card-content { flex: 1; }
.pt-card-title {
  font-size: 15px; font-weight: 700; color: white;
  line-height: 1.3; margin-bottom: 4px;
}
.pt-card-desc {
  font-size: 12px; color: rgba(255,255,255,0.45);
  line-height: 1.5; font-weight: 300;
}
.pt-card-arrow {
  font-size: 16px; color: var(--sage);
  opacity: 0; transform: translateX(-6px);
  transition: all 0.25s; flex-shrink: 0;
}
.pt-card:hover .pt-card-arrow { opacity: 1; transform: translateX(0); }

/* ═══════════════════════════════════════════
   FEATURED HEALTH ARTICLES GRID
═══════════════════════════════════════════ */
.featured-articles-grid-section {
  background: #f7f9f7;
  padding: 72px 48px;
  border-top: 1px solid rgba(149,213,178,0.15);
}
.fag-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.fag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fag-card {
  background: var(--snow);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(149,213,178,0.18);
  transition: all 0.28s ease;
  display: flex; flex-direction: column;
  position: relative;
}
.fag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27,67,50,0.14);
  border-color: rgba(82,183,136,0.4);
}
.fag-thumb {
  height: 200px;
  position: relative;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.fag-thumb-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.fag-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(13,36,22,0.75));
  z-index: 1;
}
.fag-thumb-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 52px; opacity: 0.5; z-index: 1;
}
.fag-thumb-badge {
  position: relative; z-index: 2;
  font-size: 9px; font-weight: 700;
  background: var(--gold); color: var(--bark);
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
}
.fag-body { padding: 22px 22px 18px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fag-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-family: var(--font-mono); color: var(--pebble);
}
.fag-cat { font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 1px; }
.fag-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--bark); line-height: 1.35; letter-spacing: -0.3px;
  transition: color 0.2s; flex: 1;
}
.fag-card:hover .fag-title { color: var(--forest); }
.fag-excerpt { font-size: 13px; color: var(--pebble); line-height: 1.65; font-weight: 300; }
.fag-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--mist);
  font-size: 11px; font-family: var(--font-mono); color: var(--pebble);
}
.fag-read-link {
  font-size: 12px; font-weight: 600; color: var(--forest);
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.2s;
}
.fag-card:hover .fag-read-link { gap: 8px; }
.fag-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--sage));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.fag-card:hover::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════════ */
.newsletter-section {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(82,183,136,0.15), transparent 60%),
    linear-gradient(135deg, #0d2416 0%, #1b4332 50%, #2d6a4f 100%);
  padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: '🌿';
  position: absolute; top: -20px; right: 80px;
  font-size: 180px; opacity: 0.04;
  animation: floatLeaf 10s ease-in-out infinite;
  pointer-events: none;
}
.nl-label {
  font-size: 10px; font-weight: 700; color: var(--sage);
  font-family: var(--font-mono); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.nl-label::before { content: ''; display: inline-block; width: 20px; height: 1.5px; background: var(--sage); }
.nl-title {
  font-family: var(--font-serif);
  font-size: 40px; font-weight: 900; color: white;
  line-height: 1.15; letter-spacing: -1px; margin-bottom: 18px;
}
.nl-title em { font-style: italic; color: var(--mint); }
.nl-desc { font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.7; font-weight: 300; }

.nl-form { display: flex; flex-direction: column; gap: 14px; }
.nl-input-wrap {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(149,213,178,0.2);
  border-radius: 12px; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s;
}
.nl-input-wrap:focus-within { border-color: rgba(149,213,178,0.5); }
.nl-input-wrap svg { width: 16px; height: 16px; stroke: var(--pebble); fill: none; stroke-width: 2; flex-shrink: 0; }
.nl-input-wrap input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 14px; color: white; font-family: var(--font-sans);
}
.nl-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.nl-submit {
  padding: 15px; background: var(--sage); color: var(--forest);
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: var(--font-sans);
  letter-spacing: 0.3px; transition: all 0.2s; width: 100%;
}
.nl-submit:hover { background: var(--mint); transform: translateY(-1px); }
.nl-fine {
  font-size: 11px; color: rgba(255,255,255,0.3);
  font-family: var(--font-mono); text-align: center;
}
.nl-success {
  display: none; text-align: center; padding: 20px;
  background: rgba(82,183,136,0.15); border: 1px solid rgba(82,183,136,0.3);
  border-radius: 12px; color: var(--mint); font-weight: 600;
  font-family: var(--font-mono); font-size: 13px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer { background: #0a1a0d; padding: 60px 48px 32px; }
.disclaimer {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(149,213,178,0.1);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 48px;
}
.disclaimer p { font-size: 12px; color: rgba(255,255,255,0.28); line-height: 1.65; font-family: var(--font-mono); }
.disclaimer strong { color: rgba(149,213,178,0.6); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-mark { width: 36px; height: 36px; background: rgba(82,183,136,0.12); border: 1px solid rgba(82,183,136,0.2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.footer-logo-name { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: rgba(255,255,255,0.8); }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.25); line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(149,213,178,0.7); margin-bottom: 18px; letter-spacing: 1.5px; text-transform: uppercase; font-family: var(--font-mono); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--mint); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.18); font-family: var(--font-mono); }
.footer-heart { color: var(--sage); }

/* ═══════════════════════════════════════════
   WORDPRESS STANDARD CONTENT
═══════════════════════════════════════════ */
.entry-content { max-width: 1200px; margin: 0 auto; padding: 60px 48px; }
.entry-content h1, .entry-content h2, .entry-content h3 {
  font-family: var(--font-serif); color: var(--bark); margin-bottom: 16px;
}
.entry-content p { margin-bottom: 20px; color: var(--stone); line-height: 1.8; }
.entry-content a { color: var(--forest); border-bottom: 1px solid var(--sage); }
.entry-content img { border-radius: 12px; margin: 24px 0; }
.wp-block-image { margin: 24px 0; }
.aligncenter { text-align: center; margin: 0 auto; display: block; }

/* ═══════════════════════════════════════════
   GOOGLE DISCOVER — POST VISUAL STYLES
═══════════════════════════════════════════ */

/* Post reading progress bar */
.post-reading-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(82,183,136,0.15); z-index: 9998;
}
.post-reading-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--forest), var(--sage), var(--mint));
  transition: width 0.1s linear;
}

/* ── Hero Image ── */
.post-hero-wrap {
  width: 100%;
  margin-bottom: 0;
}
.post-hero-img {
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.post-hero-no-img {
  width: 100%;
  min-height: 400px;
  background: linear-gradient(160deg, var(--forest) 0%, var(--leaf) 50%, var(--sage) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
}
.post-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,26,13,0.1) 0%, rgba(10,26,13,0.75) 100%);
}
.post-hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 48px;
}

/* Breadcrumb */
.post-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-family: var(--font-mono);
  color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.post-breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.post-breadcrumb a:hover { color: var(--mint); }
.post-breadcrumb span:last-child { color: rgba(255,255,255,0.5); }

/* Hero Badges */
.post-hero-badges {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.post-cat-badge {
  display: inline-block;
  background: var(--gold); color: var(--bark);
  font-size: 10px; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}
.post-cat-badge:hover { background: var(--mint); }
.post-time-badge {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.85);
  font-size: 11px; font-family: var(--font-mono);
  padding: 4px 12px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* Hero Title */
.post-hero-title {
  font-family: var(--font-serif);
  font-size: 42px; font-weight: 900;
  color: #ffffff; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Hero Meta */
.post-hero-meta {
  display: flex; align-items: center; gap: 14px;
}
.post-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; border: 2px solid rgba(255,255,255,0.4);
  flex-shrink: 0;
}
.author-av { width: 40px !important; height: 40px !important; border-radius: 50% !important; display: block !important; }
.post-author-name { font-size: 14px; font-weight: 600; color: white; margin-bottom: 3px; }
.post-meta-row { font-size: 12px; color: rgba(255,255,255,0.6); font-family: var(--font-mono); display: flex; gap: 6px; align-items: center; }
.post-meta-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.4); border-radius: 50%; }

/* ── Post Body ── */
.post-body-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 48px 0;
}

/* Share Bar */
.post-share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 20px 0; margin-bottom: 36px;
  border-bottom: 1px solid var(--mist);
}
.post-share-label {
  font-size: 11px; font-weight: 700; color: var(--pebble);
  font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase;
  margin-right: 4px;
}
.post-share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; font-family: var(--font-sans);
  padding: 7px 14px; border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.post-share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.psbfb { background: #1877f2; color: white; }
.psbfb:hover { background: #1464d0; }
.psbtw { background: #1da1f2; color: white; }
.psbtw:hover { background: #0c85d0; }
.psbwa { background: #25d366; color: white; }
.psbwa:hover { background: #1aab52; }
.psbcp { background: var(--snow); color: var(--stone); border-color: rgba(149,213,178,0.4); }
.psbcp:hover { background: var(--mist); border-color: var(--sage); color: var(--forest); }

/* Post Content Typography */
.post-entry-content {
  font-size: 17px; line-height: 1.85; color: var(--stone);
}
.post-entry-content h2 {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  color: var(--bark); margin: 40px 0 16px; letter-spacing: -0.4px;
}
.post-entry-content h3 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--bark); margin: 32px 0 12px;
}
.post-entry-content p { margin-bottom: 22px; }
.post-entry-content a { color: var(--forest); border-bottom: 1px solid var(--sage); transition: color 0.2s; }
.post-entry-content a:hover { color: var(--leaf); }
.post-entry-content ul, .post-entry-content ol {
  margin: 0 0 22px 24px; display: flex; flex-direction: column; gap: 8px;
}
.post-entry-content ul { list-style: disc; }
.post-entry-content ol { list-style: decimal; }
.post-entry-content li { line-height: 1.7; }
.post-entry-content blockquote {
  margin: 32px 0; padding: 20px 24px;
  border-left: 4px solid var(--sage);
  background: var(--mist); border-radius: 0 12px 12px 0;
  font-style: italic; font-size: 18px; color: var(--forest);
}
.post-entry-content img {
  border-radius: 14px; margin: 28px 0;
  width: 100%; height: auto; display: block;
}
.post-entry-content table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 14px;
}
.post-entry-content th {
  background: var(--forest); color: white; padding: 12px 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  text-align: left;
}
.post-entry-content td {
  padding: 11px 16px; border-bottom: 1px solid var(--mist); color: var(--stone);
}
.post-entry-content tr:hover td { background: rgba(216,243,220,0.3); }
.post-entry-content code {
  background: var(--mist); color: var(--forest);
  padding: 2px 7px; border-radius: 4px; font-family: var(--font-mono); font-size: 13px;
}
.post-entry-content pre {
  background: var(--bark); color: var(--mint);
  padding: 20px; border-radius: 12px; overflow-x: auto; margin: 28px 0;
}
.post-entry-content strong { color: var(--bark); }

/* Tags */
.post-tags-wrap {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--mist);
}
.post-tags-label { font-size: 11px; font-weight: 700; color: var(--pebble); font-family: var(--font-mono); letter-spacing: 1px; text-transform: uppercase; }
.post-tag-pill {
  display: inline-block; background: var(--mist); color: var(--forest);
  font-size: 11px; font-weight: 600; font-family: var(--font-mono);
  padding: 5px 12px; border-radius: 20px; text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: 1px solid rgba(82,183,136,0.2);
}
.post-tag-pill:hover { background: var(--sage); color: white; }

/* Medical Disclaimer */
.post-disclaimer {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 36px; padding: 20px 24px;
  background: var(--mist); border-radius: 14px;
  border-left: 4px solid var(--sage);
  font-size: 13px; color: var(--stone); line-height: 1.65;
  font-family: var(--font-mono);
}
.post-disclaimer-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.post-disclaimer strong { color: var(--forest); }

/* Author Card */
.post-author-card {
  display: flex; gap: 20px; align-items: flex-start;
  margin-top: 36px; padding: 28px;
  background: var(--snow); border-radius: 18px;
  border: 1px solid rgba(149,213,178,0.3);
  box-shadow: var(--shadow-sm);
}
.pac-avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--mist); }
.pac-av-img { width: 72px !important; height: 72px !important; border-radius: 50% !important; display: block !important; }
.pac-label { font-size: 10px; font-weight: 700; color: var(--sage); font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.pac-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--bark); margin-bottom: 8px; }
.pac-bio { font-size: 13px; color: var(--stone); line-height: 1.65; }

/* Post Nav */
.post-nav-row {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid var(--mist);
  flex-wrap: wrap;
}
.post-nav-item {
  flex: 1; min-width: 200px;
}
.post-nav-item a { text-decoration: none; }
.post-nav-next { text-align: right; }
.pnr-dir { display: block; font-size: 10px; font-weight: 700; color: var(--sage); font-family: var(--font-mono); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 4px; }
.pnr-title a { font-size: 14px; font-weight: 600; color: var(--bark); line-height: 1.4; transition: color 0.2s; }
.pnr-title a:hover { color: var(--forest); }

/* Related Section */
.related-section {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 48px 0;
}
.related-header { margin-bottom: 28px; }
.related-title {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  color: var(--bark); margin-top: 8px;
}

/* Comments */
.post-comments-wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 48px 80px;
}

/* ═══════════════════════════════════════════
   ARCHIVE GRID CARDS
═══════════════════════════════════════════ */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--snow);
  border: 1px solid rgba(149,213,178,0.2);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.archive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(82,183,136,0.45);
}
.archive-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--sage));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.archive-card:hover::after { transform: scaleX(1); }

.archive-thumb {
  width: 100%;
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  flex-shrink: 0;
}
.archive-thumb-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  font-size: 50px; opacity: 0.6; z-index: 1;
}
.archive-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(27,67,50,0.65));
  z-index: 1;
}
.archive-cat-badge {
  position: relative; z-index: 2;
  font-size: 9px; font-weight: 700;
  font-family: var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--gold); color: var(--bark);
  padding: 3px 9px; border-radius: 4px;
}

.archive-body { padding: 20px 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.archive-meta {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; font-family: var(--font-mono); color: var(--pebble);
}
.archive-cat-tag { font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 1px; }
.archive-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
  color: var(--bark); line-height: 1.35; letter-spacing: -0.3px;
  transition: color 0.2s;
}
.archive-card:hover .archive-title { color: var(--forest); }
.archive-excerpt {
  font-size: 13px; color: var(--pebble);
  line-height: 1.65; font-weight: 300; flex: 1;
}
.archive-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--mist);
  font-size: 11px; font-family: var(--font-mono); color: var(--pebble);
}
.archive-author { font-weight: 500; color: var(--stone); }

@media (max-width: 1024px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .archive-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   RELATED POSTS SECTION
═══════════════════════════════════════════ */
.related-posts-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 2px solid var(--mist);
}

.related-posts-header {
  margin-bottom: 32px;
}

.related-posts-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--bark);
  letter-spacing: -0.5px;
  margin-top: 8px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  background: var(--snow);
  border: 1px solid rgba(149,213,178,0.2);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  cursor: pointer;
}

.related-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(82,183,136,0.45);
}

/* Thumbnail */
.rpc-thumb {
  width: 100%;
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  flex-shrink: 0;
}

.rpc-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(27,67,50,0.65));
  border-radius: 0;
  transition: opacity 0.3s;
}

.related-post-card:hover .rpc-thumb-overlay {
  opacity: 0.8;
}

.rpc-thumb-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 44px;
  opacity: 0.75;
}

.rpc-cat-badge {
  position: relative;
  z-index: 2;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--bark);
  padding: 3px 9px;
  border-radius: 4px;
}

/* Body */
.rpc-body {
  padding: 18px 20px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpc-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--pebble);
}

.rpc-tag {
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rpc-dot { color: var(--pebble); }

.rpc-time { color: var(--pebble); }

.rpc-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.35;
  letter-spacing: -0.2px;
  transition: color 0.2s;
  flex: 1;
}

.related-post-card:hover .rpc-title {
  color: var(--forest);
}

.rpc-excerpt {
  font-size: 12px;
  color: var(--pebble);
  line-height: 1.6;
  font-weight: 300;
}

.rpc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--mist);
  gap: 8px;
}

.rpc-author {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--stone);
  font-weight: 500;
  font-family: var(--font-mono);
}

.rpc-author-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpc-avatar-img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: block !important;
}

.rpc-date {
  font-size: 10px;
  color: var(--pebble);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* Arrow indicator */
.rpc-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 28px;
  background: var(--mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--forest);
  font-weight: 700;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.related-post-card:hover .rpc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Bottom accent line on hover */
.related-post-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--sage));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.related-post-card:hover::after {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — COMPLETE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .calcs-grid      { grid-template-columns: repeat(3, 1fr); }
  .calcs-grid-full { grid-template-columns: repeat(3, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .popular-topics-grid  { grid-template-columns: repeat(2, 1fr); }
  .fag-grid             { grid-template-columns: repeat(3, 1fr); }
  .popular-calcs-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 40px;
  }
  .hero-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
  .articles-layout       { grid-template-columns: 1fr; }
  .newsletter-section    { grid-template-columns: 1fr; gap: 40px; }
  .calcs-grid            { grid-template-columns: repeat(2, 1fr); }
  .calcs-grid-full       { grid-template-columns: repeat(2, 1fr); }
  .related-posts-grid    { grid-template-columns: repeat(2, 1fr); }
  .popular-topics-grid   { grid-template-columns: repeat(2, 1fr); }
  .fag-grid              { grid-template-columns: repeat(2, 1fr); }
  .popular-topics-section { padding: 48px 40px; }
  .featured-articles-grid-section { padding: 48px 40px; }
  .popular-calcs-grid    { grid-template-columns: repeat(2, 1fr); }
  .all-calcs-inner       { padding: 40px; }
  .calcs-grid-full       { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Tablet / Mobile 768px ─── */
@media (max-width: 768px) {
  .topbar { padding: 8px 16px; flex-direction: column; gap: 6px; }
  .topbar-links { display: none; }

  .site-header { padding: 0 16px; height: 64px; }
  .header-search { display: none; }
  .menu-toggle { display: flex; }
  .logo-name { font-size: 16px; }
  .logo-tagline { display: none; }

  .main-nav { padding: 0 16px; }
  .nav-list { display: none; flex-direction: column; }
  .nav-list.open { display: flex; padding: 8px 0; }
  .nav-list li a { padding: 12px 16px; font-size: 14px; }

  /* ━━━ HERO — flex column so card stacks below text ━━━ */
  .hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    padding: 32px 16px 40px;
    min-height: auto;
    gap: 28px;
  }
  .hero > * { width: 100% !important; max-width: 100% !important; }

  .hero h1 { font-size: 30px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 15px; margin-bottom: 20px; }
  .hero-eyebrow { font-size: 10px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .cta-primary,
  .cta-secondary { width: 100%; justify-content: center; padding: 14px 20px; }

  /* ━━━ BMI CALCULATOR CARD — FULL WIDTH ━━━ */
  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 22px 16px;
    border-radius: 18px;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .card-title { font-size: 17px; }
  .card-sub   { font-size: 12px; margin-bottom: 16px; }
  .tabs { margin-bottom: 16px; }
  .tab  { padding: 8px 10px; font-size: 12px; }

  .input-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }
  .input-group label { font-size: 10px; letter-spacing: 0.5px; }
  .input-group input,
  .input-group select {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
  }
  .result-card    { padding: 16px 18px; margin: 14px 0; border-radius: 12px; }
  .result-value   { font-size: 36px; }
  .result-label   { font-size: 10px; }
  .result-category{ font-size: 12px; }
  .calc-action    { padding: 13px; font-size: 14px; border-radius: 10px; }
  #bmiAdvice      { font-size: 12px; padding: 10px 12px; }

  .stats-bar   { padding: 16px; grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 26px; }
  .stat-label  { font-size: 11px; }

  .section       { padding: 48px 16px; }
  .section-title { font-size: 28px; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 14px; }

  .calcs-grid      { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .calcs-grid-full { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .calc-card       { padding: 16px 14px; }
  .cc-icon-wrap    { width: 40px; height: 40px; font-size: 18px; }
  .calc-card h3    { font-size: 13px; }
  .calc-card p     { font-size: 11px; }

  .calc-filter-bar { gap: 6px; margin-bottom: 24px; }
  .calc-filter-btn { padding: 7px 12px; font-size: 10px; }

  .articles-layout    { grid-template-columns: 1fr; gap: 24px; }
  .newsletter-section { padding: 48px 16px; gap: 32px; }
  .nl-title           { font-size: 28px; }
  .popular-topics-grid { grid-template-columns: 1fr; gap: 10px; }
  .popular-topics-section { padding: 40px 16px; }
  .pt-title           { font-size: 26px; }
  .fag-grid           { grid-template-columns: 1fr; }
  .featured-articles-grid-section { padding: 40px 16px; }
  .fag-header         { flex-direction: column; align-items: flex-start; gap: 14px; }
  .popular-calcs-grid { grid-template-columns: 1fr; gap: 14px; }
  .popular-calcs-section { padding: 40px 16px 0; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .view-all-calcs-btn { width: 100%; justify-content: center; }
  .all-calcs-inner    { padding: 32px 16px 40px; }
  .all-calcs-panel-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .calcs-grid-full    { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 36px 16px 24px; }

  .related-posts-grid { grid-template-columns: 1fr; gap: 14px; }
  .entry-content      { padding: 28px 16px; }
}

/* ─── Small Mobile 480px ─── */
@media (max-width: 480px) {
  .hero { padding: 24px 14px 32px; gap: 22px; }
  .hero h1 { font-size: 26px; }

  .hero-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px;
    border-radius: 16px;
  }
  .input-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .input-group input,
  .input-group select { padding: 9px 10px; font-size: 16px; }
  .result-value { font-size: 32px; }
  .card-title   { font-size: 16px; }

  .calcs-grid      { grid-template-columns: 1fr 1fr; }
  .calcs-grid-full { grid-template-columns: 1fr 1fr; }

  .stats-bar   { padding: 14px 12px; }
  .stat-number { font-size: 22px; }

  .calc-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .calc-filter-bar::-webkit-scrollbar { display: none; }
  .calc-filter-btn { flex-shrink: 0; }

  .nl-title           { font-size: 24px; }
  .newsletter-section { padding: 36px 14px; }
}

/* ─── Extra Small 360px ─── */
@media (max-width: 360px) {
  .hero     { padding: 20px 12px 28px; }
  .hero-card { padding: 16px 12px; }
  .input-grid { grid-template-columns: 1fr; }
  .hero h1    { font-size: 22px; }
  .card-title { font-size: 15px; }
  .calcs-grid      { grid-template-columns: 1fr; }
  .calcs-grid-full { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   LIVE SEARCH DROPDOWN
   Posts · Pages · Calculators · Categories · Tags
═══════════════════════════════════════════════════════════ */

/* Make the search wrap a positioned container for the dropdown */
#headerSearchWrap {
  position: relative;
}

/* ── Dropdown container ── */
.live-search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1.5px solid rgba(82,183,136,0.25);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(40,70,50,0.13), 0 2px 8px rgba(40,70,50,0.07);
  z-index: 9999;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(82,183,136,0.3) transparent;
}
.live-search-dropdown::-webkit-scrollbar { width: 5px; }
.live-search-dropdown::-webkit-scrollbar-thumb { background: rgba(82,183,136,0.35); border-radius: 10px; }

.live-search-dropdown.lsd-open { display: block; animation: lsdFadeIn 0.18s ease; }

@keyframes lsdFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Group header ── */
.lsd-group { padding: 4px 0; }
.lsd-group + .lsd-group { border-top: 1px solid rgba(0,0,0,0.06); }

.lsd-glabel {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc, #4a7c59);
  padding: 8px 14px 4px;
  opacity: 0.85;
}

/* ── Result item ── */
.lsd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--bark, #2d3b2a);
  transition: background 0.12s;
  cursor: pointer;
}
.lsd-item:hover,
.lsd-item.lsd-active {
  background: rgba(82,183,136,0.08);
  color: var(--forest, #2d6a4f);
}

/* ── Type icon badge ── */
.lsd-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.92;
}

/* ── Text body ── */
.lsd-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.lsd-title {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.lsd-meta {
  font-size: 11px;
  color: var(--pebble, #8a9e8a);
  white-space: nowrap;
}

/* ── Highlight matched text ── */
.lsd-hl {
  background: rgba(255,210,50,0.4);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
  font-style: normal;
}

/* ── Thumbnail (articles) ── */
.lsd-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid rgba(0,0,0,0.07);
}

/* ── Footer "View all" link ── */
.lsd-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--forest, #2d6a4f);
  text-decoration: none;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: rgba(82,183,136,0.04);
  border-radius: 0 0 14px 14px;
  font-weight: 600;
  transition: background 0.12s;
}
.lsd-footer-link:hover,
.lsd-footer-link.lsd-active {
  background: rgba(82,183,136,0.12);
  color: var(--leaf, #40916c);
}

/* ── Empty state ── */
.lsd-empty {
  padding: 20px 18px;
  text-align: center;
  font-size: 13px;
  color: var(--pebble, #8a9e8a);
  line-height: 1.5;
}
.lsd-empty strong { color: var(--bark, #2d3b2a); }

/* ── Loading state ── */
.lsd-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  font-size: 13px;
  color: var(--pebble, #8a9e8a);
}
.lsd-spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(82,183,136,0.25);
  border-top-color: var(--sage, #52b788);
  border-radius: 50%;
  display: inline-block;
  animation: lsdSpin 0.7s linear infinite;
}
@keyframes lsdSpin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .live-search-dropdown {
    width: calc(100vw - 16px);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
  }
}
