  [x-cloak] { display:none!important; }

  .blog-hero {
    background: var(--blue-light);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .blog-hero-text h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
  .blog-hero-text p { font-size: 15px; color: var(--text-muted); }
  .blog-search {
    flex-shrink: 0;
    width: 280px;
  }
  .blog-search input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border: 1.5px solid #D0D6E2;
    border-radius: 9px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B0B8C5' stroke-width='2.5'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 14px center;
    outline: none;
    transition: border-color .15s;
  }
  .blog-search input:focus { border-color: var(--blue); }

  .category-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .cat-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid #D0D6E2;
    background: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
  }
  .cat-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
  .cat-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  #blog-grid { transition: opacity .18s ease; }

  /* Featured article */
  .featured-card {
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 320px 1fr;
  }
  .featured-cover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #fff;
    text-align: center;
  }
  .featured-cover-emoji { font-size: 52px; margin-bottom: 12px; }
  .featured-cover-title { font-size: 15px; font-weight: 700; line-height: 1.4; opacity: .9; }
  .featured-body { padding: 28px 28px; display: flex; flex-direction: column; justify-content: center; }

  .cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 12px;
  }
  .cat-badge.instructions { background: #EBF1FE; color: var(--blue); }
  .cat-badge.tips { background: #E8F8F1; color: #18B078; }
  .cat-badge.compare { background: #FFF3E0; color: #E65100; }
  .cat-badge.examples { background: #FCE4EC; color: #C62828; }

  .featured-body h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; line-height: 1.35; }
  .featured-body .excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
  .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
  }
  .meta-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
  }

  /* Articles grid */
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }
  .article-card {
    background: #fff;
    border: 1px solid #E4E8EF;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .article-cover {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    padding: 16px;
    text-align: center;
    position: relative;
  }
  .article-cover-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    opacity: .9;
    margin-top: 8px;
  }
  .cover-1 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
  .cover-2 { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }
  .cover-3 { background: linear-gradient(135deg, #065f46 0%, #34d399 100%); }
  .cover-4 { background: linear-gradient(135deg, #92400e 0%, #f59e0b 100%); }
  .cover-5 { background: linear-gradient(135deg, #881337 0%, #fb7185 100%); }
  .cover-6 { background: linear-gradient(135deg, #164e63 0%, #22d3ee 100%); }

  .article-body { padding: 18px 18px; flex: 1; display: flex; flex-direction: column; }
  .article-body h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; line-height: 1.4; }
  .article-body .excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.55; flex: 1; margin-bottom: 14px; }
  .article-footer {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-hint); border-top: 1px solid #F0F2F5;
    padding-top: 12px; margin-top: auto;
  }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 24px;
  }
  .page-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1.5px solid #D0D6E2;
    background: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: all .15s;
  }
  .page-btn:hover { border-color: var(--blue); color: var(--blue); }
  .page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
  .page-btn.wide { width: auto; padding: 0 14px; }
  .page-btn.disabled { opacity: .4; cursor: default; pointer-events: none; }
  .grid-empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--text-muted); }
  .article-read-link { color: var(--blue); font-weight: 700; text-decoration: none; }
  .btn-featured { font-size: 14px; padding: 10px 20px; }

  .cta-block {
    background: linear-gradient(135deg, #2155C4 0%, #4A80F0 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
  }
  .cta-block h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
  .cta-block p { font-size: 15px; opacity: .85; margin-bottom: 24px; }
  .btn-white {
    background: #fff;
    color: var(--blue);
    padding: 12px 28px;
    border-radius: 9px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity .15s;
  }
  .btn-white:hover { opacity: .92; }

  @media (max-width: 780px) {
    .articles-grid { grid-template-columns: 1fr 1fr; }
    .featured-card { grid-template-columns: 1fr; }
    .featured-cover { min-height: 160px; }
  }
  @media (max-width: 560px) {
    .articles-grid { grid-template-columns: 1fr; }
    .blog-hero { flex-direction: column; align-items: flex-start; }
    .blog-search { width: 100%; }
  }

  /* Image covers */
  .featured-cover--image { padding:0; overflow:hidden; background:none; min-height:unset; }
  .featured-cover--image img { width:100%; height:220px; object-fit:cover; display:block; }
  .article-cover--image { padding:0; overflow:hidden; background:none; min-height:unset; }
  .article-cover--image img { width:100%; height:160px; object-fit:cover; display:block; }
