    :root {
      --bg: #f4f7fb;
      --primary: #4f46e5;
      --primary-soft: #eef2ff;
      --accent: #22c55e;
      --text: #111827;
      --text-muted: #6b7280;
      --border: #e5e7eb;
      --radius-md: 12px;
      --gap: 14px;
    }
    html[data-theme="dark"] {
      --bg: #020617;
      --primary: #6366f1;
      --primary-soft: rgba(79,70,229,0.16);
      --text: #e5e7eb;
      --text-muted: #9ca3af;
      --border: #1f2933;
    }

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

    body {
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left,  #e0f2fe 0, transparent 40%),
        radial-gradient(circle at bottom right, #e0f2fe 0, transparent 45%),
        var(--bg);
    }
    html[data-theme="dark"] body {
      background:
        radial-gradient(circle at top left,  rgba(56,189,248,0.16) 0, transparent 40%),
        radial-gradient(circle at bottom right, rgba(129,140,248,0.16) 0, transparent 45%),
        var(--bg);
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    .container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

    .site-header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); background: rgba(244,247,251,0.9); border-bottom: 1px solid rgba(209,213,219,0.6); }
    html[data-theme="dark"] .site-header { background: rgba(15,23,42,0.92); border-bottom: 1px solid rgba(30,64,175,0.8); }
    .header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; position: relative; }
    .logo { display: inline-flex; align-items: center; border: none; background: none; }
    .logo-img { height: 52px; width: auto; display: block; user-select: none; }
    .main-nav { display: flex; align-items: center; gap: 18px; font-size: 0.95rem; color: var(--text-muted); flex-wrap: wrap; }
    .main-nav a { position: relative; padding: 4px 0; }
    .main-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; border-radius: 999px; background: linear-gradient(to right, var(--primary), var(--accent)); transition: width 0.18s ease-out; }
    .main-nav a:hover::after, .main-nav a.is-current::after { width: 100%; }
    .theme-switch { display: inline-flex; align-items: center; border: none; background: transparent; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; }
    .theme-switch-track { width: 44px; height: 24px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, #fff, rgba(148,163,184,0.3)); position: relative; display: inline-flex; align-items: center; padding: 3px; box-shadow: 0 4px 10px rgba(148,163,184,0.5), inset 0 0 0 1px rgba(148,163,184,0.45); transition: background 0.22s, box-shadow 0.22s; }
    .theme-switch-thumb { width: 18px; height: 18px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #4b5563; transform: translateX(0); box-shadow: 0 3px 6px rgba(15,23,42,0.35), 0 0 0 1px rgba(148,163,184,0.6); transition: transform 0.22s cubic-bezier(0.22,0.61,0.36,1), background 0.22s, color 0.22s, box-shadow 0.22s; }
    .theme-switch.is-dark .theme-switch-track { background: radial-gradient(circle at 30% 30%, rgba(248,250,252,0.25), #4f46e5); box-shadow: 0 8px 18px rgba(79,70,229,0.7), inset 0 0 0 1px rgba(191,219,254,0.5); }
    .theme-switch.is-dark .theme-switch-thumb { transform: translateX(20px); background: #020617; color: #e5e7eb; box-shadow: 0 4px 10px rgba(15,23,42,0.85), 0 0 0 1px rgba(55,65,81,0.9); }

    .blog-hero {
      padding: 56px 0 48px;
      border-bottom: 1px solid rgba(209,213,219,0.5);
      position: relative;
      overflow: visible;
      z-index: 5;
    }
    html[data-theme="dark"] .blog-hero { border-bottom-color: rgba(30,64,175,0.5); }

    .blog-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(79,70,229,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(34,197,94,0.04) 0%, transparent 60%);
      pointer-events: none;
    }
    html[data-theme="dark"] .blog-hero::before {
      background:
        radial-gradient(ellipse 60% 80% at 70% 50%, rgba(79,70,229,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(34,197,94,0.06) 0%, transparent 60%);
    }

    .blog-hero-inner {
      position: relative;
      z-index: 10;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
      gap: 28px;
      align-items: center;
    }

    .blog-hero-copy {
      max-width: 720px;
    }

    .hero-panel {
      position: relative;
      z-index: 20;
      background: radial-gradient(circle at top left, #eef2ff, #ffffff);
      border-radius: 18px;
      padding: 18px 18px 16px;
      box-shadow: 0 18px 35px rgba(15, 23, 42, 0.09);
      border: 1px solid rgba(199, 210, 254, 0.8);
    }

    html[data-theme="dark"] .hero-panel {
      background: rgba(2, 6, 23, 0.72);
      border-color: #2563eb;
      box-shadow: none;
    }

    .hero-panel-header {
      margin-bottom: 8px;
    }

    .hero-panel-title,
    .hero-panel-heading {
      margin: 0;
      font-size: 0.98rem;
      font-weight: 600;
      letter-spacing: 0;
      line-height: 1.25;
      color: var(--text);
    }

    .hero-panel-tagline,
    .hero-panel-copy {
      margin: 2px 0 0;
      font-size: 0.8rem;
      line-height: 1.45;
      color: var(--text-muted);
    }

    .blog-hero-kicker {
      display: inline-flex; align-items: center; gap: 7px;
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--text-muted);
      margin-bottom: 22px;
    }
    .blog-hero-kicker-dot {
      width: 6px; height: 6px; border-radius: 999px;
      background: var(--accent); flex-shrink: 0;
    }

    .blog-hero-quote {
      margin: 0 0 6px;
      font-size: clamp(1.9rem, 3.8vw, 3rem);
      font-weight: 700;
      letter-spacing: -0.04em;
      line-height: 1.1;
      color: var(--text);
    }
    .blog-hero-quote em {
      font-style: normal;
      color: var(--primary);
    }

    .blog-hero-sub {
      margin: 18px 0 0;
      font-size: 1rem;
      color: var(--text-muted);
      line-height: 1.65;
      max-width: 540px;
    }

    .blog-hero-sub strong { color: var(--text); font-weight: 500; }

    @media (max-width: 800px) {
      .blog-hero-inner {
        grid-template-columns: minmax(0, 1fr);
      }
      .blog-hero-inner .hero-panel {
        order: -1;
      }
    }

    @media (max-width: 600px) {
      .blog-hero { padding: 40px 0 36px; }
    }

    .filter-bar { padding: 20px 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .filter-label { font-size: 0.8rem; color: var(--text-muted); margin-right: 4px; }
    .filter-btn { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.9); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-family: inherit; font-size: 0.85rem; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
    html[data-theme="dark"] .filter-btn { background: rgba(15,23,42,0.9); border-color: #1f2937; }
    .filter-btn:hover { border-color: rgba(79,70,229,0.9); color: var(--primary); }
    .filter-btn.active { background: var(--primary-soft); border-color: rgba(79,70,229,0.6); color: var(--primary); font-weight: 500; }
    html[data-theme="dark"] .filter-btn.active { background: rgba(79,70,229,0.18); }
    .filter-btn i { font-size: 0.8rem; }

    .tools-filter {
      margin-top: 4px;
    }

    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
    }

    .search-wrap {
      position: relative;
      z-index: 30;
      flex: 1 1 320px;
      min-width: 0;
    }

    .search-input {
      width: 100%;
      padding: 8px 10px 8px 30px;
      border-radius: 999px;
      border: 1px solid var(--border);
      font-size: 0.9rem;
      outline: none;
      background: #ffffff;
      color: var(--text);
      box-shadow: 0 6px 14px rgba(148, 163, 184, 0.18);
    }

    .search-input::placeholder {
      color: #9ca3af;
    }

    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.85rem;
      color: #9ca3af;
    }

    .hero-panel-links {
      position: relative;
      z-index: 1;
      margin-top: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .hero-panel-links a {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: rgba(255, 255, 255, 0.95);
    }

    .hero-panel-links a i {
      font-size: 0.85rem;
      color: #4f46e5;
    }

    .hero-panel-links a:hover {
      border-color: rgba(79, 70, 229, 0.9);
      color: var(--primary);
    }

    .search-dropdown {
      position: absolute;
      left: 0;
      top: calc(100% + 6px);
      width: 100%;
      max-height: 320px;
      overflow-y: auto;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: #ffffff;
      box-shadow: 0 14px 32px rgba(148, 163, 184, 0.32);
      padding: 4px 0;
      display: none;
      z-index: 9999;
    }

    .search-dropdown.visible {
      display: block;
    }

    .search-item {
      padding: 7px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .search-item-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .search-item-title {
      font-weight: 500;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-subtitle {
      font-size: 0.8rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .search-item-meta {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.78rem;
      color: var(--text-muted);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .search-item-meta-badge {
      padding: 2px 7px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      font-size: 0.75rem;
    }

    .search-item:hover {
      background: #f3f4ff;
    }

    html[data-theme="dark"] .hero-panel-heading {
      color: #f8fafc;
    }

    html[data-theme="dark"] .hero-panel-copy {
      color: #cbd5e1;
    }

    html[data-theme="dark"] .search-input {
      background: transparent;
      color: #e5e7eb;
      border-color: #1f2937;
      box-shadow: none;
    }

    html[data-theme="dark"] .search-input:focus {
      border-color: #334155;
      box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.22);
    }

    html[data-theme="dark"] .search-input::placeholder {
      color: #94a3b8;
      opacity: 1;
    }

    html[data-theme="dark"] .search-icon {
      color: #94a3b8;
    }

    html[data-theme="dark"] .search-dropdown {
      background: #020617;
      border-color: #1f2937;
      box-shadow: 0 18px 42px rgba(0,0,0,0.72);
    }

    html[data-theme="dark"] .search-item {
      color: #e5e7eb;
    }

    html[data-theme="dark"] .search-item:hover {
      background: #0f172a;
    }

    html[data-theme="dark"] .search-item-title {
      color: #f8fafc;
    }

    html[data-theme="dark"] .search-item-subtitle,
    html[data-theme="dark"] .search-item-meta {
      color: #94a3b8;
    }

    html[data-theme="dark"] .search-item-meta-badge {
      background: rgba(129,140,248,0.16);
      border-color: rgba(129,140,248,0.34);
      color: #c7d2fe;
    }

    html[data-theme="dark"] input[type="search"]::-webkit-search-cancel-button {
      filter: invert(1) opacity(.82);
    }

    .category-explorer { margin: 18px 0 24px; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .category-explorer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
    .category-explorer-head h2, .blog-list-head h2 { margin: 0; font-size: 1.08rem; letter-spacing: -0.03em; }
    .category-explorer-head p, .blog-list-head p { display: none; }
    .category-reset-link { display: none; }
    .category-rail { display: block; position: relative; }
    .category-primary-row,
    .category-secondary-panel-inner {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
    }
    .category-primary-row { position: relative; }
    .category-secondary-panel {
      position: relative;
      display: block;
      width: max-content;
      max-width: min(760px, 100%);
      margin-top: 12px;
      margin-left: var(--category-panel-left, 0px);
      padding: 11px 12px 12px;
      border: 1px solid rgba(209,213,219,0.82);
      border-radius: 18px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.86), rgba(248,250,252,0.74));
      box-shadow:
        0 18px 34px rgba(148,163,184,0.18),
        inset 0 1px 0 rgba(255,255,255,0.82);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      max-height: 0;
      overflow: visible; /* keep the folder notch visible above the animated drawer */
      transform: translateY(-8px) scale(0.985);
      transform-origin: top right;
      transition:
        opacity 0.22s ease,
        transform 0.24s cubic-bezier(0.22, 0.61, 0.36, 1),
        max-height 0.30s cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 0.30s;
    }
    .category-secondary-panel[hidden] {
      display: none !important;
    }
    .category-secondary-panel.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      max-height: 420px;
      transform: translateY(0) scale(1);
      transition-delay: 0s;
    }
    @media (prefers-reduced-motion: reduce) {
      .category-secondary-panel {
        transition: none;
        transform: none;
      }
    }
    html[data-theme="dark"] .category-secondary-panel {
      background: rgba(2, 6, 23, 0.72);
      border-color: #2563eb;
      box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.28),
        0 18px 42px rgba(0, 0, 0, 0.72),
        0 0 28px rgba(37, 99, 235, 0.22);
    }

    html[data-theme="dark"] .category-secondary-panel-inner {
      position: relative;
      z-index: 2;
    }
    .category-secondary-panel::before,
    .category-secondary-panel::after {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      pointer-events: none;
      background: transparent;
    }

    .category-secondary-panel::before {
      top: -15px;
      right: calc(var(--category-folder-notch-right, 42px) - 5px);
      border-left: 15px solid transparent;
      border-right: 15px solid transparent;
      border-bottom: 15px solid rgba(209,213,219,0.86);
      filter: drop-shadow(0 -3px 6px rgba(148,163,184,0.10));
      z-index: 0;
    }

    .category-secondary-panel::after {
      top: -13px;
      right: calc(var(--category-folder-notch-right, 42px) - 3px);
      border-left: 13px solid transparent;
      border-right: 13px solid transparent;
      border-bottom: 13px solid rgba(255,255,255,0.94);
      z-index: 1;
    }

    html[data-theme="dark"] .category-secondary-panel::before {
      border-bottom-color: rgba(37,99,235,0.88);
      filter:
        drop-shadow(0 -4px 8px rgba(37,99,235,0.38))
        drop-shadow(0 0 10px rgba(37,99,235,0.22));
    }

    html[data-theme="dark"] .category-secondary-panel::after {
      border-bottom-color: rgba(2, 6, 23, 0.72);
    }

    .category-card-btn,
    .category-more-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border: 1px solid rgba(209,213,219,0.72);
      border-radius: 999px;
      background: rgba(255,255,255,0.72);
      padding: 6px 10px;
      color: var(--text-muted);
      font: inherit;
      font-size: 0.79rem;
      line-height: 1;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(148,163,184,0.08);
      transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }
    html[data-theme="dark"] .category-card-btn,
    html[data-theme="dark"] .category-more-btn {
      background: rgba(15,23,42,0.82);
      border-color: rgba(55,65,81,0.95);
      color: #cbd5e1;
      box-shadow: 0 8px 18px rgba(0,0,0,0.24);
    }
    .category-card-btn:hover,
    .category-more-btn:hover {
      color: var(--text);
      background: #fff;
      border-color: rgba(79,70,229,0.34);
      box-shadow: 0 8px 18px rgba(148,163,184,0.16);
      transform: translateY(-1px);
    }
    html[data-theme="dark"] .category-card-btn:hover,
    html[data-theme="dark"] .category-more-btn:hover {
      background: #111827;
      border-color: rgba(129,140,248,0.46);
    }
    .category-card-btn.active {
      color: var(--primary);
      background: var(--primary-soft);
      border-color: rgba(79,70,229,0.42);
      font-weight: 650;
      box-shadow: 0 8px 20px rgba(79,70,229,0.12);
    }
    html[data-theme="dark"] .category-card-btn.active {
      background: rgba(79,70,229,0.20);
      border-color: rgba(129,140,248,0.44);
      color: #c7d2fe;
    }
    .category-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.12rem; height: 1.12rem; border-radius: 999px; color: var(--category-color, var(--primary)); background: color-mix(in srgb, var(--category-color, #4f46e5) 12%, transparent); font-size: 0.68rem; flex: 0 0 auto; }
    html[data-theme="dark"] .category-card-icon {
      color: color-mix(in srgb, var(--category-color, #818cf8) 62%, #ffffff);
      background: color-mix(in srgb, var(--category-color, #818cf8) 24%, rgba(15,23,42,0.92));
      box-shadow:
        0 0 0 1px color-mix(in srgb, var(--category-color, #818cf8) 30%, transparent),
        0 0 14px color-mix(in srgb, var(--category-color, #818cf8) 22%, transparent);
    }
    html[data-theme="dark"] .category-card-btn.active .category-card-icon,
    html[data-theme="dark"] .category-card-btn:hover .category-card-icon,
    html[data-theme="dark"] .category-more-btn:hover .category-card-icon {
      color: #ffffff;
      background: color-mix(in srgb, var(--category-color, #818cf8) 42%, rgba(15,23,42,0.9));
      box-shadow:
        0 0 0 1px color-mix(in srgb, var(--category-color, #818cf8) 46%, transparent),
        0 0 18px color-mix(in srgb, var(--category-color, #818cf8) 34%, transparent);
    }
    .category-card-copy { display: inline-flex; align-items: center; }
    .category-card-copy strong { display: inline; font-size: inherit; line-height: 1; margin: 0; font-weight: inherit; }
    .category-card-copy small { display: none; }
    .category-card-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 1.12rem;
      height: 1.12rem;
      border-radius: 999px;
      background: rgba(107,114,128,0.10);
      color: inherit;
      font-size: 0.62rem;
      font-weight: 700;
      padding: 0 4px;
    }
    html[data-theme="dark"] .category-card-count {
      background: rgba(148,163,184,0.14);
      color: #dbeafe;
    }
    .category-more-btn {
      margin-left: 2px;
      position: relative;
      z-index: 2;
    }
    .category-more-btn[aria-expanded="true"] {
      color: var(--primary);
      background: rgba(255,255,255,0.92);
      border-color: rgba(79,70,229,0.34);
      box-shadow: 0 10px 22px rgba(148,163,184,0.18);
    }
    html[data-theme="dark"] .category-more-btn[aria-expanded="true"] {
      background: rgba(15,23,42,0.96);
      color: #c7d2fe;
      border-color: rgba(129,140,248,0.44);
    }
    .category-more-icon { font-size: 0.68rem; transition: transform 0.18s ease; }
    .category-more-btn[aria-expanded="true"] .category-more-icon { transform: rotate(180deg); }
    .category-more-label { font-size: 0.76rem; }
    .blog-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 6px 0 16px; }
    @media (max-width: 700px) {
      .category-explorer { margin-top: 8px; margin-bottom: 20px; }
      .category-explorer-head { margin-bottom: 9px; }
      .category-card-btn, .category-more-btn { font-size: 0.76rem; padding: 6px 9px; }
      .category-secondary-panel { width: 100%; max-width: 100%; margin-left: 0 !important; padding: 10px; }
      .category-secondary-panel::before { right: calc(var(--category-folder-notch-right, 34px) - 5px); }
      .category-secondary-panel::after { right: calc(var(--category-folder-notch-right, 34px) - 3px); }
      .blog-list-head { display:block; }
    }

    .blog-section { padding: 12px 0 64px; position: relative; z-index: 1; }

    .blog-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: auto;         /* ← rows grow to content, never clip */
      grid-auto-flow: dense;        /* ← pack gaps like bricks             */
      align-items: stretch;         /* ← all cards in a band match height  */
      gap: var(--gap);
    }

    .blog-card {
      position: relative;
      border-radius: var(--radius-md);
      background: rgba(255,255,255,0.92);
      border: 1px solid var(--border);
      box-shadow: 0 10px 22px rgba(148,163,184,0.14);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: transform 0.12s ease-out, box-shadow 0.12s, border-color 0.12s, background 0.12s;
    }
    .blog-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(148,163,184,0.25); border-color: rgba(129,140,248,0.9); background: #fff; }
    html[data-theme="dark"] .blog-card { background: rgba(15,23,42,0.96); border-color: #1f2937; box-shadow: 0 18px 38px rgba(0,0,0,0.9); }
    html[data-theme="dark"] .blog-card:hover { background: #020617; border-color: rgba(129,140,248,0.9); }
    .card-accent { position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(120deg, rgba(79,70,229,0.07), transparent 45%), linear-gradient(300deg, rgba(34,197,94,0.07), transparent 40%); opacity: 0; transition: opacity 0.18s; }
    .blog-card:hover .card-accent { opacity: 1; }

    .card-image {
      flex-shrink: 0;
      overflow: hidden;
      background: #e5e7eb;
    }
    html[data-theme="dark"] .card-image { background: #1f2937; }
    .card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.4s ease-out;
    }
    .blog-card:hover .card-image img { transform: scale(1.04); }

    .card-body {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      flex: 1;
      gap: 0;
    }

    .card-meta {
      display: flex;
      align-items: center;
      gap: 7px;
      flex-wrap: wrap;
      flex-shrink: 0;
      margin-bottom: 8px;
    }
    .blog-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 500; background: var(--primary-soft); color: #4f46e5; white-space: nowrap; }
    html[data-theme="dark"] .blog-tag { color: #c7d2fe; }
    .tag-pdf   { background: #fff7ed; color: #c2410c; }
    .tag-image { background: #f5f3ff; color: #6d28d9; }
    .tag-video { background: #fdf2f8; color: #9d174d; }
    .tag-guide { background: #eff6ff; color: #1d4ed8; }
    html[data-theme="dark"] .tag-pdf   { background: rgba(194,65,12,0.15);  color: #fb923c; }
    html[data-theme="dark"] .tag-image { background: rgba(109,40,217,0.15); color: #c4b5fd; }
    html[data-theme="dark"] .tag-video { background: rgba(157,23,77,0.15);  color: #f9a8d4; }
    html[data-theme="dark"] .tag-guide { background: rgba(29,78,216,0.15);  color: #93c5fd; }
    .card-date { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

    .card-title {
      margin: 0 0 8px;
      line-height: 1.3;
      letter-spacing: -0.015em;
    }

    .card-excerpt {
      margin: 0 0 12px;
      font-size: 0.875rem;
      color: var(--text-muted);
      line-height: 1.6;
      flex: 1;
    }

    .card-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding-top: 10px;
      border-top: 1px solid rgba(209,213,219,0.55);
      margin-top: auto;
      flex-shrink: 0;
    }
    html[data-theme="dark"] .card-footer { border-top-color: rgba(31,41,55,0.9); }
    .card-author { display: flex; align-items: center; gap: 6px; min-width: 0; }
    .card-avatar { width: 22px; height: 22px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.62rem; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    html[data-theme="dark"] .card-avatar { background: rgba(79,70,229,0.2); color: #c7d2fe; }

    .card-avatar.author-photo-placeholder {
      overflow: hidden;
      background: linear-gradient(135deg, #eef2ff, #f8fafc);
      color: var(--primary);
      border: 2px solid rgba(79,70,229,0.18);
    }
    html[data-theme="dark"] .card-avatar.author-photo-placeholder {
      background: linear-gradient(135deg, rgba(79,70,229,0.22), rgba(15,23,42,0.92));
      color: #c7d2fe;
      border-color: rgba(129,140,248,0.32);
    }
    .card-avatar.author-photo-placeholder img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .card-author-name { font-size: 0.78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .card-readtime { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

    .blog-card[data-hidden] { display: none !important; }

    .load-more-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
    .load-more-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 28px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.9); background: rgba(255,255,255,0.96); font-family: inherit; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s; }
    html[data-theme="dark"] .load-more-btn { background: rgba(15,23,42,0.96); border-color: rgba(51,65,85,0.9); }
    .load-more-btn:hover { border-color: rgba(79,70,229,0.95); color: var(--primary); background: #fff; box-shadow: 0 8px 20px rgba(79,70,229,0.1); }
    html[data-theme="dark"] .load-more-btn:hover { background: #020617; }
    .load-more-btn i { color: var(--primary); }
    .posts-count { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

    .newsletter-section { padding: 48px 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border-top: 1px solid rgba(209,213,219,0.4); border-bottom: 1px solid rgba(209,213,219,0.4); }
    html[data-theme="dark"] .newsletter-section { background: rgba(15,23,42,0.96); border-color: rgba(30,64,175,0.7); }
    .newsletter-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
    .newsletter-copy h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.02em; }
    .newsletter-copy p  { margin: 0; color: var(--text-muted); font-size: 0.9rem; max-width: 380px; }
    .newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
    .nl-input { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.9rem; font-family: inherit; background: #fff; color: var(--text); outline: none; width: 220px; box-shadow: 0 6px 14px rgba(148,163,184,0.18); transition: border-color 0.15s; }
    .nl-input::placeholder { color: #9ca3af; }
    .nl-input:focus { border-color: rgba(79,70,229,0.8); }
    html[data-theme="dark"] .nl-input { background: #020617; border-color: #1f2937; box-shadow: 0 6px 16px rgba(0,0,0,0.85); }
    .nl-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 9px 20px; font-size: 0.9rem; font-weight: 500; font-family: inherit; border: 1px solid transparent; cursor: pointer; background-image: linear-gradient(135deg, #4f46e5, #6366f1); color: #f9fafb; box-shadow: 0 12px 24px rgba(79,70,229,0.28); transition: transform 0.1s, box-shadow 0.1s; }
    .nl-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px rgba(79,70,229,0.36); }
    .nl-note { width: 100%; font-size: 0.78rem; color: var(--text-muted); margin: 4px 0 0; }

    .site-footer { border-top: 1px solid rgba(209,213,219,0.7); padding: 20px 0 26px; background: rgba(248,250,252,0.96); }
    html[data-theme="dark"] .site-footer { background: rgba(15,23,42,0.98); border-top: 1px solid rgba(30,64,175,0.8); }
    .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.86rem; color: var(--text-muted); }
    .footer-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
    .footer-nav a:hover { color: var(--primary); }
    .footer-meta { margin: 0; width: 100%; text-align: right; font-size: 0.78rem; }

    .footer-brand { display: flex; flex-direction: column; gap: 2px; }
    .footer-language { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
    .lang-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.9); background: rgba(255,255,255,0.96); font-size: 0.82rem; color: var(--text-muted); cursor: pointer; outline: none; white-space: nowrap; }
    .lang-toggle .lang-chevron { font-size: 0.75rem; transition: transform 0.14s; }
    .lang-toggle.is-open .lang-chevron { transform: rotate(180deg); }
    .lang-toggle:hover { border-color: rgba(79,70,229,0.95); color: var(--primary); }
    html[data-theme="dark"] .lang-toggle { background: #020617; border-color: #1f2937; }
    .lang-dropdown { position: absolute; right: 0; bottom: calc(100% + 6px); min-width: 200px; max-height: 240px; overflow-y: auto; padding: 6px 0; border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: 0 16px 30px rgba(148,163,184,0.3); display: none; z-index: 30; }
    .lang-dropdown.is-open { display: block; }
    html[data-theme="dark"] .lang-dropdown { background: #0d1526; border-color: rgba(37,99,235,0.35); box-shadow: 0 16px 30px rgba(0,0,0,0.6); }
    .lang-option { display: flex; align-items: center; padding: 6px 12px; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
    .lang-option:hover { background: #f3f4ff; color: var(--primary); }
    .lang-option.is-active { font-weight: 600; color: var(--primary); background: #eef2ff; }
    html[data-theme="dark"] .lang-option:hover { background: rgba(30,64,175,0.35); color: #e5e7eb; }
    html[data-theme="dark"] .lang-option.is-active { background: rgba(37,99,235,0.4); color: #e5e7eb; }

    @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .blog-card { animation: fadeUp 0.38s ease both; }

    @media (max-width: 800px) {
      .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 20px 8px; }
      .theme-switch { position: absolute; right: 20px; top: 22px; }
      .main-nav { width: 100%; justify-content: flex-start; border-top: 1px solid rgba(209,213,219,0.7); padding-top: 8px; margin-top: 6px; }
      html[data-theme="dark"] .main-nav { border-top-color: rgba(31,41,55,0.9); }
      .blog-hero-stats { display: none; }
      .blog-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 520px) {
      .blog-grid { grid-template-columns: 1fr; grid-auto-flow: row; }
      .blog-card { grid-column: span 1 !important; grid-row: span 1 !important; }
      .newsletter-form { width: 100%; }
      .nl-input { width: 100%; }
      .footer-meta { text-align: left; }

      .footer-language { width: 100%; justify-content: flex-start; }
      .lang-dropdown { right: auto; left: 0; max-width: 100%; }
    }