/*
Theme Name: Kapizo Finance
Theme URI: https://kapizo.in
Author: Kapizo
Author URI: https://kapizo.in
Description: Custom Personal Finance Theme for Kapizo.in - Built for speed, SEO, and affiliate monetization
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: kapizo
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --primary: #0A2540;
  --primary-light: #1a3a5c;
  --accent: #00C896;
  --accent-hover: #00a87e;
  --accent-soft: #e6faf5;
  --gold: #F5A623;
  --red: #E53935;
  --white: #ffffff;
  --off-white: #F7F9FC;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(10,37,64,0.10);
  --shadow-lg: 0 12px 40px rgba(10,37,64,0.15);
  --shadow-xl: 0 24px 64px rgba(10,37,64,0.20);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.3;
  color: var(--primary);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; color: var(--gray-600); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,200,150,0.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}
.btn-white:hover {
  background: var(--accent);
  color: var(--white);
}

/* ============================================
   BADGE / TAG
============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-green { background: var(--accent-soft); color: var(--accent); }
.badge-blue { background: #e8f0fe; color: #1a56db; }
.badge-gold { background: #fef3c7; color: #d97706; }
.badge-red { background: #fee2e2; color: var(--red); }

/* ============================================
   HEADER & NAV
============================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
}

.site-logo span { color: var(--accent); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg { width: 20px; height: 20px; fill: var(--accent); }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 8px;
  padding: 8px 18px !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 60%, #0d4a3a 100%);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,150,0.15);
  border: 1px solid rgba(0,200,150,0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  color: rgba(255,255,255,0.72);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Hero card visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  color: white;
  transition: var(--transition);
}

.hero-card:hover {
  background: rgba(255,255,255,0.11);
  transform: translateX(6px);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-card-commission {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}

.hero-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-card-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ============================================
   TRUST BAR
============================================ */
.trust-bar {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
}

.trust-item svg { width: 16px; height: 16px; color: var(--accent); }

/* ============================================
   SECTION HEADERS
============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 560px; margin: 12px auto 0; font-size: 1.05rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============================================
   CATEGORY CARDS
============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,200,150,0.04));
  opacity: 0;
  transition: var(--transition);
}

.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cat-card:hover::before { opacity: 1; }

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.cat-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin: 0;
  line-height: 1.5;
}

.cat-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--gray-300);
  transition: var(--transition);
}

.cat-card:hover .cat-arrow {
  color: var(--accent);
  transform: translateY(-50%) translateX(4px);
}

/* ============================================
   ARTICLE CARDS
============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.articles-grid.featured {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
}

.article-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}

.article-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.article-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.3));
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.article-meta time {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.article-card h3 {
  font-size: 1rem;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--gray-800);
  flex: 1;
}

.article-card h3 a:hover { color: var(--accent); }

.article-excerpt {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-time {
  font-size: 0.78rem;
  color: var(--gray-400);
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.read-more:hover { gap: 8px; }

/* ============================================
   TOOLS / CALCULATORS
============================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tool-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.tool-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tool-emoji { font-size: 2rem; margin-bottom: 10px; }
.tool-card h4 { font-size: 0.9rem; color: var(--gray-700); }

/* ============================================
   AFFILIATE COMPARISON TABLE
============================================ */
.comparison-wrap {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th {
  background: var(--primary);
  color: var(--white);
  padding: 16px 20px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--gray-50); }
.comparison-table tr:hover td { background: var(--accent-soft); }

.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.table-name { font-weight: 600; color: var(--gray-800); font-size: 0.9rem; }
.table-sub { font-size: 0.78rem; color: var(--gray-400); }

.rating-stars { color: var(--gold); font-size: 0.85rem; }
.highlight-cell { font-weight: 700; color: var(--accent); }

/* ============================================
   DISCLAIMER BOX
============================================ */
.disclaimer-box {
  background: #fff8e1;
  border: 1.5px solid #ffe082;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 32px 0;
}

.disclaimer-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.disclaimer-text { font-size: 0.82rem; color: #6d4c00; line-height: 1.6; margin: 0; }
.disclaimer-text strong { color: #5a3a00; }

/* ============================================
   EMAIL CAPTURE
============================================ */
.email-section {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 24px;
}

.email-section::before {
  content: '₹';
  position: absolute;
  font-size: 20rem;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  right: -40px;
  top: -40px;
  font-family: var(--font-display);
  line-height: 1;
}

.email-section h2 { color: var(--white); margin-bottom: 12px; }
.email-section p { color: rgba(255,255,255,0.65); margin-bottom: 32px; font-size: 1.05rem; }

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  background: rgba(255,255,255,0.95);
  color: var(--gray-800);
}

.email-form input::placeholder { color: var(--gray-400); }

/* ============================================
   SINGLE POST LAYOUT
============================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
}

.post-header { margin-bottom: 32px; }

.post-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  margin: 16px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--gray-400);
}

/* Post content typography */
.post-content { font-size: 1.02rem; line-height: 1.8; }
.post-content h2 { margin: 40px 0 16px; padding-top: 8px; }
.post-content h3 { margin: 28px 0 12px; }
.post-content p { margin-bottom: 20px; color: var(--gray-700); }

.post-content ul,
.post-content ol {
  margin: 16px 0 20px 24px;
  color: var(--gray-700);
}

.post-content li { margin-bottom: 8px; }
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.post-content blockquote p {
  margin: 0;
  color: var(--gray-700);
  font-style: italic;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.post-content table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
}

.post-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
}

.post-content table tr:nth-child(even) td {
  background: var(--gray-50);
}

/* ============================================
   SIDEBAR
============================================ */
.sidebar { position: sticky; top: calc(var(--header-height) + 20px); }

.sidebar-widget {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--gray-400);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.affiliate-widget {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  color: white;
  border: none;
}

.affiliate-widget h4 { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.1); }

.affiliate-product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.affiliate-product-name {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.affiliate-product-commission {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.affiliate-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: white !important;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.affiliate-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* TOC */
.toc-list { display: flex; flex-direction: column; gap: 4px; }
.toc-list a {
  font-size: 0.85rem;
  color: var(--gray-500);
  padding: 6px 10px;
  border-radius: 6px;
  display: block;
}
.toc-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  padding-left: 14px;
}

/* ============================================
   CALCULATORS
============================================ */
.calculator-wrap {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calc-header {
  background: var(--primary);
  padding: 24px 28px;
  color: white;
}

.calc-header h3 { color: white; font-size: 1.1rem; margin-bottom: 4px; }
.calc-header p { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0; }

.calc-body { padding: 28px; }

.calc-field { margin-bottom: 20px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.calc-label span:first-child {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
}
.calc-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.calc-range {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--gray-200);
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,200,150,0.4);
}

.calc-result {
  background: var(--accent-soft);
  border: 1.5px solid rgba(0,200,150,0.2);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.calc-result-label {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.calc-result-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.calc-result-sub {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   FOOTER
============================================ */
#site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .site-logo { color: white; margin-bottom: 14px; }
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border-left: 3px solid rgba(245,166,35,0.4);
}

.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin: 0; }

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal a:hover { color: var(--accent); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  :root { --header-height: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid.featured { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .email-form { flex-direction: column; }
  .email-section { padding: 40px 24px; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .trust-bar-inner { gap: 20px; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .hero { padding: 56px 0 64px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-accent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,150,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0,200,150,0); }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================
   MOBILE MENU OVERLAY
============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu a:hover { background: var(--accent-soft); color: var(--accent); }

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

/* ============================================
   UTILITY
============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 32px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}
