/* ==========================================================================
   PREMIUM HUGO DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Colors - Light Theme */
  --bg-body: #fafafc;
  --bg-gradient: linear-gradient(135deg, #fcfcfe 0%, #f3f5f9 100%);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.75);
  --text: #0f172a;
  --text-muted: #64748b;
  --line: rgba(226, 232, 240, 0.8);
  --line-focus: #cbd5e1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.06);
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --success: #10b981;
  
  /* Shadows & Radius */
  --shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
  --shadow-hover: 0 20px 40px -15px rgba(79, 70, 229, 0.12), 0 4px 6px rgba(0, 0, 0, 0.02);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  
  /* Sizing */
  --container: 1140px;
  --glass-blur: 16px;
}

[data-theme="dark"] {
  /* Colors - Dark Theme */
  --bg-body: #080b11;
  --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #07090e 100%);
  --surface: #111827;
  --surface-glass: rgba(17, 24, 39, 0.75);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --line: rgba(51, 65, 85, 0.4);
  --line-focus: #475569;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a78bfa 100%);
  
  /* Shadows */
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   1. Base & Reset Styles
   ========================================================================== */
* { 
  box-sizing: border-box; 
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease, opacity 0.2s ease;
}

html { 
  scroll-behavior: smooth; 
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-body);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  line-height: 1.625;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-top: 0;
  color: var(--text);
}

a { 
  color: inherit; 
  text-decoration: none; 
}

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

img { 
  max-width: 100%; 
  height: auto; 
  border-radius: var(--radius-sm);
}

.container { 
  width: min(var(--container), calc(100% - 40px)); 
  margin: 0 auto; 
}

/* ==========================================================================
   2. Layout Utilities
   ========================================================================== */
.site-main { 
  padding: 40px 0 80px; 
  flex-grow: 1;
}

.eyebrow {
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  margin: 0 0 16px; 
  color: var(--accent); 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  font-size: .75rem;
}

.section-label { 
  margin: 0 0 12px; 
  color: var(--accent); 
  font-size: .75rem; 
  font-weight: 800; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
}

.meta-row { 
  display: flex; 
  align-items: center;
  gap: 16px; 
  flex-wrap: wrap; 
  color: var(--text-muted); 
  font-size: .875rem; 
  margin-top: 16px; 
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-row span:not(:last-child)::after {
  content: "•";
  margin-left: 16px;
  color: var(--line);
}

.meta-row--large { 
  font-size: 0.95rem; 
  margin-top: 20px; 
}

/* ==========================================================================
   3. Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: var(--accent-gradient);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   4. Site Header
   ========================================================================== */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--line);
}

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

.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 800; 
  letter-spacing: -0.03em; 
  font-size: 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.brand-mark { 
  background: var(--accent-gradient); 
  width: 14px;
  height: 14px;
  border-radius: 50px;
  display: inline-block;
  animation: pulse 2s infinite;
}

.brand-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.nav-link {
  padding: 8px 16px; 
  border-radius: 99px; 
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  padding: 0;
  margin-left: 8px;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.btn-bounce {
  animation: bounce 0.3s ease;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero { 
  padding: 40px 0 20px; 
}

.hero-grid, .content-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.9fr); 
  gap: 32px; 
  align-items: start; 
}

.hero-copy {
  padding-right: 20px;
}

.hero-copy h1 { 
  font-size: clamp(2rem, 4.5vw, 3.2rem); 
  line-height: 1.15; 
  letter-spacing: -0.04em; 
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text { 
  font-size: 1.1rem; 
  color: var(--text-muted); 
  max-width: 60ch; 
  margin: 0 0 28px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 48px; 
  padding: 0 24px; 
  border-radius: 99px; 
  font-weight: 600;
  border: 1px solid var(--line); 
  background: var(--surface);
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.btn-primary { 
  background: var(--accent-gradient); 
  border-color: transparent; 
  color: #fff; 
  box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover { 
  color: #fff; 
  opacity: .95; 
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(79, 70, 229, 0.45);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover { 
  border-color: var(--accent); 
  color: var(--accent); 
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Hero Info Panel */
.hero-panel { 
  padding: 28px; 
  background: var(--surface-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow);
}

.hero-search-like {
  padding: 16px 20px; 
  border-radius: var(--radius-sm); 
  background: var(--accent-soft); 
  color: var(--accent); 
  margin-bottom: 24px; 
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-search-like::before {
  content: "✨";
}

.hero-stats { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 12px; 
}

.hero-stats div { 
  padding: 18px 12px; 
  border-radius: var(--radius-sm); 
  background: var(--surface); 
  border: 1px solid var(--line);
  text-align: center; 
}

.hero-stats strong { 
  display: block; 
  font-size: 1.5rem; 
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--accent);
}

.hero-stats span { 
  color: var(--text-muted); 
  font-size: .8rem; 
  font-weight: 500;
}

/* ==========================================================================
   6. Main Content Area & Cards
   ========================================================================== */
.content-shell { 
  padding-top: 24px; 
}

.main-column, .side-column { 
  min-width: 0; 
}

.card-list { 
  display: grid; 
  gap: 24px; 
}

/* Core Card Styles */
.feature-card, .post-card, .side-card, .article-header, .article-body {
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  box-shadow: var(--shadow);
}

/* Featured Article Card */
.feature-card { 
  padding: 36px; 
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--accent-gradient);
}

.feature-card h2 { 
  font-size: 1.65rem;
  margin: 0 0 14px; 
  letter-spacing: -0.03em; 
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 16px;
  line-height: 1.7;
}

/* Post Card */
.post-card { 
  overflow: hidden; 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.post-card-body { 
  padding: 28px 32px; 
}

.post-card-body h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.post-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Sidebar styles */
.side-column { 
  display: grid; 
  gap: 24px; 
  position: sticky; 
  top: 112px; 
}

.side-card { 
  padding: 28px; 
}

.side-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.side-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

.plain-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 12px; 
}

.plain-list a { 
  color: var(--text); 
  font-weight: 500;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plain-list a::before {
  content: "→";
  color: var(--accent);
}

.plain-list a:hover {
  color: var(--accent);
}

/* ==========================================================================
   7. Blog Pages (List & Single)
   ========================================================================== */
.list-page, .single-page { 
  padding-top: 16px; 
}

.page-header { 
  padding: 40px 0; 
  margin-bottom: 32px; 
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

.page-lead { 
  font-size: 1.15rem; 
  color: var(--text-muted); 
  max-width: 65ch; 
  margin: 12px 0 0;
}

/* Article Styling */
.article-header { 
  padding: 40px; 
  margin-bottom: 24px; 
  position: relative;
  overflow: hidden;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin: 0;
  line-height: 1.2;
}

.article-body {
  padding: 44px 48px; 
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body > * {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.article-body :is(h2, h3, h4) { 
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  color: var(--text);
}

.article-body h2 { font-size: 1.6rem; }
.article-body h3 { font-size: 1.3rem; }

.article-body p { 
  margin: 0 0 1.5em; 
}

.article-body blockquote {
  margin: 2em auto; 
  padding: 12px 24px; 
  border-left: 4px solid var(--accent); 
  background: var(--accent-soft);
  color: var(--text);
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Custom code styling and copy button */
.article-body code { 
  padding: .2rem .4rem; 
  background: var(--accent-soft); 
  color: var(--accent);
  border-radius: 6px; 
  font-family: 'Fira Code', monospace;
  font-size: 0.875rem;
  word-break: break-all;
}

.article-body pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: 0.9rem;
  word-break: normal;
}

.code-container {
  position: relative;
  margin: 1.8em auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-body pre { 
  margin: 0;
  overflow: auto; 
  padding: 24px; 
  background: #0f172a; 
  color: #e2e8f0; 
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Code Copy Button */
.copy-code-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.code-container:hover .copy-code-btn {
  opacity: 1;
}

.copy-code-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.copy-code-btn.copied {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* Post Navigation and Social Sharing */
.post-nav { 
  display: flex; 
  justify-content: space-between; 
  gap: 20px; 
  margin-top: 36px; 
  color: var(--accent); 
  flex-wrap: wrap; 
  font-weight: 600;
}

.post-nav a {
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  box-shadow: var(--shadow);
}

.post-nav a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Social Share in Article */
.social-share {
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72ch;
  flex-wrap: wrap;
  gap: 16px;
}

.share-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ==========================================================================
   8. Ads Settings (Google AdSense Ready placeholder styles)
   ========================================================================== */
.ad-slot {
  margin: 32px 0; 
  padding: 24px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ad-slot-label { 
  color: var(--text-muted); 
  font-size: .68rem; 
  font-weight: 800;
  text-transform: uppercase; 
  letter-spacing: .15em; 
  margin-bottom: 16px; 
  text-align: center;
}

.ad-slot-placeholder {
  min-height: 100px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border: 1.5px dashed var(--line); 
  border-radius: var(--radius-sm); 
  color: var(--text-muted); 
  background: var(--bg-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   9. Site Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line); 
  background: var(--surface-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 60px 0 40px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0;
}

.footer-links h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Newsletter Signup widget */
.newsletter-widget p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input[type="email"] {
  flex-grow: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.newsletter-form .btn-subscribe {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.newsletter-form .btn-subscribe:hover {
  background: var(--accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: flex; 
  justify-content: space-between; 
  gap: 20px; 
  align-items: center; 
  flex-wrap: wrap; 
}

.footer-bottom p { 
  margin: 0; 
  color: var(--text-muted); 
  font-size: 0.875rem;
}

.footer-meta { 
  display: flex; 
  gap: 20px; 
  color: var(--text-muted); 
  font-size: 0.875rem;
}

/* ==========================================================================
   10. Interactive Components
   ========================================================================== */
/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Premium Toast */
.premium-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateY(40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(400px, calc(100% - 48px));
}

.premium-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.premium-toast-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.premium-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.premium-toast-close:hover {
  color: var(--text);
}

/* Pagination inside blog lists */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  gap: 8px;
}

.pagination li a, .pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pagination li a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.pagination li.active a, .pagination li.active span {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ==========================================================================
   11. Animations & Responsive
   ========================================================================== */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.85); }
}

/* Media Queries */
@media (max-width: 980px) {
  .hero-grid, .content-grid { 
    grid-template-columns: 1fr; 
    gap: 40px;
  }
  .side-column { 
    position: static; 
  }
  .hero-stats { 
    grid-template-columns: repeat(3, 1fr); 
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .header-inner { 
    flex-direction: column; 
    padding: 16px 0; 
    gap: 16px;
  }
  .main-nav { 
    justify-content: center;
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .page-header, .article-header, .article-body, .feature-card, .post-card-body, .side-card, .hero-panel { 
    padding: 24px; 
  }
  .article-body {
    font-size: 1rem;
    padding: 28px 24px;
  }
  .site-main { 
    padding-top: 24px; 
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
