:root {
  --color-primary: #7c3aed; /* Vibrant Violet */
  --color-primary-dark: #6d28d9;
  --color-primary-light: #a78bfa;
  --color-secondary: #0ea5e9; /* Vibrant Ocean */
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-danger: #ef4444;

  --color-bg: #fafafa;
  --color-bg-alt: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-nav: rgba(250, 250, 250, 0.75);
  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-border-light: #f8fafc;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.06), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 35px -5px rgba(0, 0, 0, 0.08), 0 10px 15px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --container: 1200px;
  --container-narrow: 768px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --color-bg: #09090b; /* Deep sleek dark */
  --color-bg-alt: #18181b;
  --color-bg-card: #18181b;
  --color-bg-nav: rgba(9, 9, 11, 0.75);
  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #64748b;
  --color-border: #27272a;
  --color-border-light: #18181b;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6), 0 4px 8px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 25px 35px -5px rgba(0, 0, 0, 0.7), 0 10px 15px -6px rgba(0, 0, 0, 0.5);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  transition: background var(--transition), color var(--transition);
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--color-bg-nav);

  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  transition: background var(--transition);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--container); margin: 0 auto; padding: 0 20px;
}

.nav-logo {
  font-size: 1.35rem; font-weight: 800;
  background: var(--color-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--color-text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--color-primary); background: var(--color-bg-alt);
}

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

.theme-toggle, .menu-toggle, .search-toggle {
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover, .menu-toggle:hover, .search-toggle:hover {
  background: var(--color-bg-alt); color: var(--color-text);
}

.menu-toggle { display: none; }

/* Search */
.search-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
  display: none; place-items: center; padding: 20px;

}

.search-overlay.open { display: grid; }

.search-modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 24px; width: 100%; max-width: 600px;
  box-shadow: var(--shadow-xl);
}

.search-modal input {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1.1rem; font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}

.search-modal input:focus { border-color: var(--color-primary); }

.search-results { margin-top: 16px; max-height: 400px; overflow-y: auto; }

.search-result-item {
  padding: 12px 16px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background var(--transition);
  display: block; color: var(--color-text);
}

.search-result-item:hover { background: var(--color-bg-alt); }
.search-result-item .title { font-weight: 600; }
.search-result-item .desc { font-size: 0.85rem; color: var(--color-text-secondary); margin-top: 2px; }

.search-close {
  position: absolute; top: 20px; right: 20px;
  background: var(--color-bg-card); border: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.5rem; color: var(--color-text);
  box-shadow: var(--shadow-md);
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: var(--color-bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero h1 span {
  background: var(--color-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 600px; margin: 0 auto 32px;
}

.hero-search {
  display: flex; max-width: 500px; margin: 0 auto;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition);
}

.hero-search:focus-within { border-color: var(--color-primary); }

.hero-search input {
  flex: 1; padding: 16px 20px; border: none;
  font-size: 1rem; font-family: var(--font-sans);
  background: transparent; color: var(--color-text);
  outline: none;
}

.hero-search button {
  padding: 16px 28px; border: none;
  background: var(--color-primary);
  color: white; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; font-family: var(--font-sans);
  transition: background var(--transition);
}

.hero-search button:hover { background: var(--color-primary-dark); }

/* Homepage / landing layout */
.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-copy p {
  margin-left: 0;
  margin-right: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-actions .btn,
.home-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow-xl);
}

.hero-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.hero-panel p {
  margin: 0 0 18px;
  color: var(--color-text-secondary);
  font-size: 0.96rem;
}

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

.hero-panel-list li {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.hero-panel-list strong {
  display: block;
  margin-bottom: 2px;
}

.hero-panel-list span {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.hero-panel-list .icon {
  color: var(--color-primary);
  flex: none;
  margin-top: 2px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.metric {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.metric strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric span {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.path-card {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--color-text);
  transition: all var(--transition);
}

.path-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-xl);
  color: var(--color-text);
}

.path-card .icon {
  color: var(--color-primary);
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.path-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.path-card p {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.path-card .meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
}

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

.community-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.community-card .card-image {
  height: 160px;
}

.community-card .card-body {
  padding: 20px;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-xl);
}

.home-cta h2 {
  color: white;
  margin-bottom: 8px;
}

.home-cta p {
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.home-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.home-cta .btn {
  background: white;
  color: var(--color-primary);
}

.home-cta .btn:hover {
  color: var(--color-primary-dark);
}

.home-cta .btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.home-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.page-hero {
  padding: 128px 0 48px;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  display: none;
}

.page-hero .container,
.page-hero .container-narrow {
  position: relative;
  z-index: 1;
}

.page-hero-inner {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

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

.topic-groups {
  display: grid;
  gap: 28px;
}

.topic-group {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.topic-group h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.topic-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
}

.topic-links a {
  display: inline-flex;
  padding: 8px 0;
  color: var(--color-text);
  font-weight: 600;
}

.topic-links a:hover {
  color: var(--color-primary);
}

.start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.start-step {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.start-step .step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 14px;
}

.start-step h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.start-step p,
.start-step li {
  color: var(--color-text-secondary);
}

.start-step ul {
  margin: 12px 0 0 20px;
}

.start-step li + li {
  margin-top: 8px;
}

.start-stack {
  display: grid;
  gap: 16px;
}

.start-stack .path-card {
  min-height: 100%;
}

/* Featured Posts */
.section { padding: 60px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center; margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--color-text-secondary);
  max-width: 500px; margin: 0 auto;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.card-image {
  height: 200px;
  background: var(--color-primary);
  display: grid; place-items: center;
  color: white; font-size: 2.5rem;
}

.card-image.cat-online { background: #6366f1; }
.card-image.cat-cert { background: #06b6d4; }
.card-image.cat-career { background: #10b981; }
.card-image.cat-study { background: #f59e0b; }
.card-image.cat-ai { background: #ec4899; }
.card-image.cat-remote { background: #8b5cf6; }
.card-image.cat-review { background: #f97316; }

.card-body { padding: 20px; }

.card-category {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px;
  border-radius: 20px; margin-bottom: 10px;
}

.card-category.cat-online { background: rgba(99,102,241,0.1); color: #6366f1; }
.card-category.cat-cert { background: rgba(6,182,212,0.1); color: #06b6d4; }
.card-category.cat-career { background: rgba(16,185,129,0.1); color: #10b981; }
.card-category.cat-study { background: rgba(245,158,11,0.1); color: #f59e0b; }
.card-category.cat-ai { background: rgba(236,72,153,0.1); color: #ec4899; }
.card-category.cat-remote { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.card-category.cat-review { background: rgba(249,115,22,0.1); color: #f97316; }

.card-body h3 {
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 8px; line-height: 1.4;
}

.card-body h3 a { color: var(--color-text); }
.card-body h3 a:hover { color: var(--color-primary); }

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
}

.category-card .icon {
  font-size: 2rem; margin-bottom: 12px;
}

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

.category-card p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.category-card .count {
  display: inline-block; margin-top: 12px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--color-primary);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-card {
  padding: 32px 20px;
}

.stat-number {
  font-size: 2.25rem; font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Newsletter */
.newsletter-box {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  color: white;
}

.newsletter-box h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-box p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex; max-width: 450px; margin: 0 auto;
  background: white; border-radius: var(--radius-md);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1; padding: 14px 18px; border: none;
  font-size: 0.95rem; font-family: var(--font-sans);
  outline: none; color: #0f172a;
}

.newsletter-form button {
  padding: 14px 24px; border: none;
  background: var(--color-primary-dark); color: white;
  font-weight: 600; cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.newsletter-form button:hover { background: #4338ca; }

/* Related Links */
.related-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-links li {
  padding: 16px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.related-links li:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related-links a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

.related-links a:hover {
  color: var(--color-primary);
}

/* Footer */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand h3 {
  font-size: 1.25rem; font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 16px;
  color: var(--color-text);
}

.footer-col a {
  display: block; font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: 4px 0;
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Article Page */
.article-header {
  padding: 120px 0 40px;
  background: var(--color-bg-alt);
}

.article-header .container-narrow {
  max-width: var(--container-narrow);
}

.article-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.article-breadcrumb a { color: var(--color-text-muted); }
.article-breadcrumb a:hover { color: var(--color-primary); }
.article-breadcrumb .sep { color: var(--color-text-muted); }

.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.article-header .excerpt {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-body {
  padding: 40px 0 60px;
}

.article-body .container-narrow {
  max-width: var(--container-narrow);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  letter-spacing: -0.3px;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-content a:hover { color: var(--color-primary-dark); }

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  width: 100%;
}

.article-content .tip-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  border-left: 4px solid var(--color-accent);
}

.article-content .tip-box strong:first-child {
  color: var(--color-accent);
}

.article-content .pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.article-content .pros, .article-content .cons {
  padding: 20px;
  border-radius: var(--radius-md);
}

.article-content .pros {
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
}

.article-content .cons {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}

.article-content .pros h4, .article-content .cons h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.article-content .pros h4 { color: var(--color-success); }
.article-content .cons h4 { color: var(--color-danger); }

.article-content .pros ul, .article-content .cons ul {
  margin: 0; list-style: none;
}

.article-content .pros ul li::before {
  content: '\2713\0020';
  color: var(--color-success);
  font-weight: 700;
}

.article-content .cons ul li::before {
  content: '\2717\0020';
  color: var(--color-danger);
  font-weight: 700;
}

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

.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.article-content th {
  background: var(--color-bg-alt);
  font-weight: 700;
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content .cta-box {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
  text-align: center;
  color: white;
}

.article-content .cta-box h3 {
  color: white; margin-top: 0;
}

.article-content .cta-box p {
  opacity: 0.9; margin-bottom: 20px;
}

.article-content .cta-box .btn {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition);
}

.article-content .cta-box .btn:hover {
  transform: translateY(-2px);
  color: var(--color-primary-dark);
}

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

.article-content .compare-table th,
.article-content .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.article-content .compare-table thead th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

.article-content .compare-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.article-content .compare-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.article-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 32px 0 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.article-tags a {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  transition: all var(--transition);
}

.article-tags a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.article-footer-nav {
  display: flex; justify-content: space-between;
  gap: 20px; margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.article-footer-nav a {
  font-size: 0.9rem;
  font-weight: 600;
}

.article-footer-nav .prev { text-align: left; }
.article-footer-nav .next { text-align: right; }
.article-footer-nav .dir { display: block; font-size: 0.8rem; font-weight: 400; color: var(--color-text-muted); }

/* Category Page */
.category-header {
  padding: 120px 0 40px;
  position: relative; overflow: hidden;
  background: var(--color-bg-alt);
  text-align: center;
}

.category-header::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139,92,246,0.05) 0%, transparent 50%);
  z-index: 0;
}

.category-header .container { position: relative; z-index: 1; }
.category-header .icon { font-size: 3rem; margin-bottom: 16px; }
.category-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.category-header p { color: var(--color-text-secondary); max-width: 500px; margin: 0 auto; }

.category-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.category-shape {
  position: absolute; border-radius: 50%;
  opacity: 0.1;
}
.category-shape:nth-child(1) {
  width: 300px; height: 300px;
  background: var(--color-primary);
  top: -100px; right: -80px;

}
.category-shape:nth-child(2) {
  width: 200px; height: 200px;
  background: var(--color-secondary);
  bottom: -60px; left: -40px;

}
.category-shape:nth-child(3) {
  width: 150px; height: 150px;
  background: var(--color-accent);
  top: 50%; left: 10%;

}

/* Article List */
.article-list { list-style: none; margin: 0; }
.article-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
  display: block;
  color: var(--color-text);
}

.article-list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color var(--transition);
}

.article-list a:hover h3 { color: var(--color-primary); }

.article-list p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* About / Contact Pages */
.page-header {
  padding: 120px 0 40px;
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header h1 {
  font-size: 2rem; font-weight: 800; margin-bottom: 8px;
}

.page-content {
  padding: 40px 0 60px;
}

.page-content h2 {
  font-size: 1.5rem; font-weight: 700;
  margin: 32px 0 16px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  margin: 0 0 20px 24px;
}

.page-content li { margin-bottom: 8px; }

/* 404 */
.error-page {
  text-align: center;
  padding: 160px 20px 100px;
}

.error-page h1 { font-size: 6rem; font-weight: 800; color: var(--color-primary); line-height: 1; margin-bottom: 8px; }
.error-page h2 { font-size: 1.5rem; margin-bottom: 8px; }
.error-page p { color: var(--color-text-secondary); margin-bottom: 24px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  font-family: var(--font-sans);
  border: none; cursor: pointer;
}

.btn:hover { background: var(--color-primary-dark); color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

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

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--color-bg-nav);

    border-bottom: 1px solid var(--color-border);
    flex-direction: column; padding: 12px 20px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }

  .menu-toggle { display: grid; }

  .card-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-links { grid-template-columns: 1fr; }

  .article-content .pros-cons { grid-template-columns: 1fr; }

  .hero { padding: 100px 0 60px; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .hero-home,
  .home-cta,
  .start-grid,
  .path-grid,
  .community-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .home-actions,
  .page-hero-actions,
  .home-cta-actions {
    justify-content: center;
  }

  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .article-footer-nav { flex-direction: column; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .article-header { padding: 100px 0 30px; }
  .topic-links { grid-template-columns: 1fr; }
}

/* ============================================
   UI/UX IMPROVEMENTS - Animations & Effects
   ============================================ */

/* SVG Icon sizing */
.icon {
  width: 1em; height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

.icon-lg { width: 2em; height: 2em; vertical-align: -0.5em; }
.icon-xl { width: 3rem; height: 3rem; vertical-align: -0.75rem; }
.icon-inline { margin-right: 6px; }

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed; top: 64px; left: 0; right: 0; height: 3px;
  z-index: 999; background: transparent;
}

.scroll-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 50ms linear;
}

/* Back to Top */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  z-index: 998;
}

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

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.back-to-top svg { width: 20px; height: 20px; }

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero Background Animation */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139,92,246,0.05) 0%, transparent 50%);
  pointer-events: none;
}



/* Floating shapes */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;

}

.hero-shape:nth-child(1) {
  width: 300px; height: 300px;
  background: var(--color-primary);
  top: -10%; left: -5%;
  animation-duration: 25s;
}

.hero-shape:nth-child(2) {
  width: 200px; height: 200px;
  background: var(--color-secondary);
  bottom: -5%; right: -3%;
  animation-duration: 20s;
  animation-delay: -5s;
}

.hero-shape:nth-child(3) {
  width: 150px; height: 150px;
  background: var(--color-accent);
  top: 40%; right: 10%;
  animation-duration: 18s;
  animation-delay: -10s;
}



/* Card hover effects */
.card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.15);
  border-color: var(--color-primary-light);
}

.card-image {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}

.card:hover .card-image {
  transform: scale(1.03);
}

/* Category card hover */
.category-card {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}

.category-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Button effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) rotate(15deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::after {
  transform: translateX(100%) rotate(15deg);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99,102,241,0.3);
}

/* Nav link underline effect */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Stat cards - count up animation */
.stat-number {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Newsletter pulse */
.newsletter-box {
  position: relative;
  overflow: hidden;
}

.newsletter-box::before {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%);

  pointer-events: none;
}



/* Skeleton loading animation */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-border) 50%, var(--color-bg-alt) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smooth anchor scroll */
html { scroll-behavior: smooth; }

/* Better focus styles */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Article content image hover */
.article-content img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-content img:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Table row hover */
.article-content tbody tr {
  transition: background 0.2s ease;
}

.article-content tbody tr:hover {
  background: var(--color-bg-alt);
}

/* Breadcrumb hover */
.article-breadcrumb a {
  transition: color 0.2s ease;
}

/* Meta bar subtle styling */
.article-meta-bar {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.article-meta-bar span {
  display: inline-flex; align-items: center; gap: 4px;
}

/* Tag hover effect */
.article-tags a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-tags a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Footer link animation */
.footer-col a {
  position: relative;
  width: fit-content;
}

.footer-col a::after {
  content: '';
  position: absolute; bottom: 2px; left: 0; right: 0;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col a:hover::after {
  transform: scaleX(1);
}

/* Search result hover */
.search-result-item {
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

/* Pros/cons list styling fix */
.article-content .pros ul li::before,
.article-content .cons ul li::before {
  display: inline-block;
  margin-right: 6px;
}
