/* ================================================================
   BLOG — Estilos específicos de listado y artículo individual.
   Tokens y botones base vienen de global.css.
================================================================ */

/* --- Category color tokens --- */
:root {
    --cat-regalos-bg:   #FFD93D; --cat-regalos-txt:   #633806;
    --cat-lectura-bg:   #7C5CBF; --cat-lectura-txt:   #EEEDFE;
    --cat-crianza-bg:   #FF6B6B; --cat-crianza-txt:   #4A1B0C;
    --cat-pers-bg:      #4CAF50; --cat-pers-txt:      #173404;
    --cat-ideas-bg:     #2196F3; --cat-ideas-txt:     #042C53;
    --cat-ocasiones-bg: #E91E63; --cat-ocasiones-txt: #ffffff;
}

/* ================================================================
   HERO BLOG
================================================================ */
.bl-hero {
    padding: 64px 0 48px;
    background:
        linear-gradient(180deg, rgba(124, 92, 191, 0.4) 0%, rgba(255, 107, 107, 0.6) 100%),
        url('../images/blog_hero_bg.png') center/cover no-repeat;
    text-align: center;
}
.bl-hero-pill {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--r-pill);
    font-size: .85rem; font-weight: 700; color: #fff;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}
.bl-hero h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.8rem; font-weight: 800;
    color: #fff; margin-bottom: 12px; letter-spacing: -.5px;
    text-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.bl-hero p {
    font-size: 1.1rem; color: rgba(255,255,255,.88);
    max-width: 560px; margin: 0 auto 28px;
    text-shadow: 0 2px 5px rgba(0,0,0,.3);
}

/* Search bar */
.bl-search-wrap {
    max-width: 460px; margin: 0 auto 32px;
    position: relative;
}
.bl-search-icon {
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%); font-size: 1.1rem; opacity: .5; pointer-events: none;
}
.bl-search {
    width: 100%; padding: 15px 22px 15px 50px;
    border-radius: var(--r-pill); border: 1.5px solid transparent;
    background: #fff; font-size: 1rem;
    box-shadow: var(--sh-md);
    transition: border-color .2s, box-shadow .2s;
    font-family: 'Inter', sans-serif;
}
.bl-search:focus { border-color: var(--primary); outline: none; box-shadow: 0 4px 20px rgba(124,92,191,.2); }

/* Category pills */
.bl-cat-pills {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
}
.bl-cat-pill {
    padding: 8px 20px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--r-pill);
    font-size: .9rem; font-weight: 600; color: #fff;
    cursor: pointer; transition: all .2s;
    backdrop-filter: blur(4px);
}
.bl-cat-pill:hover,
.bl-cat-pill.active {
    background: #fff; color: var(--primary);
    border-color: #fff; transform: translateY(-2px);
    box-shadow: var(--sh-sm);
}

/* ================================================================
   MAIN LAYOUT
================================================================ */
.bl-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 44px;
    margin: 56px auto 80px;
}

/* ================================================================
   FEATURED POST
================================================================ */
.bl-featured {
    display: flex;
    background: var(--white);
    border-radius: var(--r-card);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    margin-bottom: 48px;
    border: 1px solid var(--line);
    transition: transform .25s, box-shadow .25s;
    text-decoration: none; color: inherit;
}
.bl-featured:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.bl-feat-img {
    width: 55%; min-height: 320px;
    position: relative; flex-shrink: 0;
    overflow: hidden;
}
.bl-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-feat-img-placeholder { width: 100%; height: 100%; }
.bl-feat-body {
    width: 45%; padding: 36px 40px;
    display: flex; flex-direction: column; justify-content: center;
}
.bl-feat-cat {
    font-size: .82rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase;
    letter-spacing: .4px; margin-bottom: 12px; display: block;
}
.bl-feat-body h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem; line-height: 1.25; margin-bottom: 14px;
}
.bl-feat-body p {
    color: var(--text-soft); font-size: 1.05rem; margin-bottom: 24px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: .88rem; color: var(--text-soft); margin-bottom: 28px;
}
.bl-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .72rem; flex-shrink: 0;
}
.badge-destacado {
    position: absolute; top: 18px; right: 18px;
    background: var(--accent); color: #633806;
    padding: 5px 12px; border-radius: 6px;
    font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .4px;
    box-shadow: var(--sh-sm);
}

/* Tag chip */
.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alt); color: var(--text-soft);
    border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 600;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.tag:hover { background: var(--primary-soft); color: var(--primary); }

/* Category badges */
.cat-badge {
    position: absolute; top: 18px; left: 18px; z-index: 2;
    padding: 5px 12px; border-radius: 6px;
    font-weight: 700; font-size: .78rem;
    text-transform: uppercase; letter-spacing: .4px;
}
.cat-badge.is-static { position: static; display: inline-block; margin-bottom: 14px; }
.cat-regalos        { background: var(--cat-regalos-bg);   color: var(--cat-regalos-txt); }
.cat-lectura        { background: var(--cat-lectura-bg);   color: var(--cat-lectura-txt); }
.cat-crianza        { background: var(--cat-crianza-bg);   color: var(--cat-crianza-txt); }
.cat-personalizacion{ background: var(--cat-pers-bg);      color: var(--cat-pers-txt); }
.cat-ideas          { background: var(--cat-ideas-bg);     color: var(--cat-ideas-txt); }
.cat-ocasiones      { background: var(--cat-ocasiones-bg); color: var(--cat-ocasiones-txt); }
.cat-default        { background: var(--primary);          color: #fff; }

/* ================================================================
   ARTICLE GRID
================================================================ */
.bl-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.bl-card {
    background: var(--white); border-radius: var(--r-card);
    overflow: hidden; border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s;
    text-decoration: none; color: inherit;
    position: relative;
}
.bl-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.bl-card:hover .bl-card-img { transform: scale(1.05); }
.bl-card-img-wrap {
    position: relative; padding-top: 56.25%; overflow: hidden;
}
.bl-card-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.bl-card-img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.bl-time-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(255,255,255,.9);
    padding: 4px 9px; border-radius: 6px;
    font-size: .74rem; font-weight: 700; color: var(--text);
    z-index: 3;
}
.bl-card-body {
    padding: 20px; display: flex; flex-direction: column; flex: 1;
}
.bl-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.15rem; line-height: 1.3; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-excerpt {
    font-size: .93rem; color: var(--text-soft); margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bl-card-divider { height: 1px; background: var(--line); margin-bottom: 14px; }
.bl-card-foot {
    display: flex; justify-content: space-between; align-items: center;
}
.bl-fav-btn {
    font-size: 1.2rem; color: #ccc;
    transition: color .2s, transform .2s;
    background: none; border: none; cursor: pointer; line-height: 1;
}
.bl-fav-btn:hover,
.bl-fav-btn.active { color: var(--secondary); transform: scale(1.15); }

/* Inline CTA banner inside grid */
.bl-inline-cta {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--r-card); padding: 36px 40px;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    color: #fff; flex-wrap: wrap;
}
.bl-inline-cta h3 { font-family: 'Nunito', sans-serif; font-size: 1.7rem; margin-bottom: 6px; color: #fff; }
.bl-inline-cta p  { color: rgba(255,255,255,.9); font-size: 1rem; }
.bl-btn-white { background: #fff; color: var(--primary); padding: 11px 24px; border-radius: var(--r-pill); font-weight: 700; font-family: 'Nunito', sans-serif; white-space: nowrap; display: inline-block; transition: background .2s, transform .2s; }
.bl-btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* ================================================================
   PAGINATION
================================================================ */
.bl-pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px;
    grid-column: 1 / -1;
}
.bl-pagination .page-numbers {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 600;
    color: var(--text); border: 1.5px solid transparent;
    transition: all .2s; text-decoration: none;
}
.bl-pagination .page-numbers:hover    { background: var(--bg-alt); color: var(--primary); }
.bl-pagination .page-numbers.current  { background: var(--primary); color: #fff; border-color: var(--primary); }
.bl-pagination .page-numbers.dots     { border: none; cursor: default; }

/* ================================================================
   SIDEBAR WIDGETS
================================================================ */
.bl-sidebar-widget {
    background: var(--white);
    border-radius: var(--r-card);
    padding: 24px;
    border: 1px solid var(--line);
    margin-bottom: 24px;
    box-shadow: var(--sh-sm);
}
.bl-widget-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem; font-weight: 800;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase; letter-spacing: .5px;
}

/* Category list */
.bl-cat-list { list-style: none; }
.bl-cat-list li { margin-bottom: 10px; }
.bl-cat-list a {
    display: flex; justify-content: space-between;
    color: var(--text-soft); font-weight: 500; font-size: .93rem;
    text-decoration: none; transition: color .2s;
}
.bl-cat-list a:hover { color: var(--primary); }
.bl-cat-count {
    background: var(--bg-alt); color: var(--text-soft);
    padding: 1px 8px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700;
}

/* Popular posts */
.bl-pop-item {
    display: flex; gap: 12px; align-items: flex-start;
    margin-bottom: 16px; padding-bottom: 16px;
    border-bottom: 1px dashed var(--line);
    text-decoration: none; color: inherit;
    transition: color .2s;
}
.bl-pop-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.bl-pop-num {
    font-size: 2rem; font-weight: 800;
    color: var(--bg-alt); line-height: 1; flex-shrink: 0;
}
.bl-pop-item h4 { font-size: .9rem; line-height: 1.35; margin-bottom: 4px; transition: color .2s; }
.bl-pop-item:hover h4 { color: var(--primary); }
.bl-pop-meta { font-size: .75rem; color: var(--text-soft); }

/* Newsletter widget */
.bl-widget-nl {
    background: var(--bg-alt); border-color: transparent;
    text-align: center;
}
.bl-widget-nl .bl-widget-title { border-bottom-color: rgba(124,92,191,.2); }
.bl-widget-nl h3 { font-size: 1.1rem; font-family: 'Nunito', sans-serif; font-weight: 800; margin: 8px 0 6px; }
.bl-widget-nl p  { font-size: .88rem; color: var(--text-soft); margin-bottom: 16px; }
.bl-nl-input {
    width: 100%; padding: 11px 14px; border-radius: 8px;
    border: 1.5px solid var(--line); margin-bottom: 10px;
    font-size: .93rem; font-family: 'Inter', sans-serif; background: var(--white);
    transition: border-color .2s;
}
.bl-nl-input:focus { border-color: var(--primary); outline: none; }
.bl-nl-btn {
    width: 100%; padding: 11px; background: var(--primary); color: #fff;
    border-radius: 8px; font-weight: 700; font-family: 'Nunito', sans-serif;
    font-size: .93rem; cursor: pointer; transition: background .2s;
}
.bl-nl-btn:hover { background: var(--primary-dark); }

/* CTA widget */
.bl-widget-cta { background: var(--primary); border-color: transparent; text-align: center; }
.bl-widget-cta .bl-widget-title { border-bottom-color: rgba(255,255,255,.2); color: #fff; }
.bl-widget-cta h3 { color: #fff; font-size: 1.25rem; font-family: 'Nunito', sans-serif; font-weight: 800; margin-bottom: 8px; }
.bl-widget-cta p  { color: rgba(255,255,255,.88); font-size: .9rem; margin-bottom: 18px; }
.bl-widget-cta-btn {
    display: block; width: 100%; padding: 11px;
    background: #fff; color: var(--primary);
    border-radius: 8px; font-weight: 700; font-family: 'Nunito', sans-serif;
    text-align: center; text-decoration: none;
    transition: background .2s, transform .2s;
}
.bl-widget-cta-btn:hover { background: var(--bg-alt); transform: translateY(-1px); }

/* ================================================================
   FOOTER NEWSLETTER BANNER
================================================================ */
.bl-footer-banner {
    background: linear-gradient(135deg, #2d1f5e 0%, #1A1A2E 60%);
    border-bottom: 3px solid #FF6B6B;
    padding: 72px 0; text-align: center; color: #fff;
}
.bl-footer-banner h2 { color: #fff; font-family: 'Nunito', sans-serif; font-size: 2.4rem; font-weight: 800; margin-bottom: 14px; }
.bl-footer-banner p  { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.bl-fb-form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.bl-fb-form input {
    flex: 1; padding: 13px 20px;
    border-radius: var(--r-pill);
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; font-size: .95rem; font-family: 'Inter', sans-serif;
    transition: border-color .2s, background .2s;
}
.bl-fb-form input:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,.15); }
.bl-fb-form input::placeholder { color: rgba(255,255,255,.5); }
.bl-fb-form button {
    padding: 13px 26px; background: var(--primary); color: #fff;
    border-radius: var(--r-pill); font-weight: 700; font-family: 'Nunito', sans-serif;
    white-space: nowrap; transition: background .2s;
}
.bl-fb-form button:hover { background: var(--primary-dark); }
.bl-fb-proof { font-size: .82rem; color: rgba(255,255,255,.45); margin-top: 14px; }

/* ================================================================
   READING PROGRESS BAR
================================================================ */
#bl-reading-bar {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--primary); z-index: 9999;
    width: 0%; transition: width .1s linear;
}

/* ================================================================
   SINGLE POST — ARTICLE LAYOUT
================================================================ */
.bl-article-layout {
    display: grid; grid-template-columns: 300px 1fr;
    gap: 60px; margin: 40px auto 80px;
    max-width: 1200px;
}

/* Breadcrumb */
.bl-breadcrumb {
    font-size: .88rem; color: var(--text-soft);
    margin-bottom: 24px; font-weight: 500;
}
.bl-breadcrumb a { transition: color .2s; }
.bl-breadcrumb a:hover { color: var(--primary); }
.bl-breadcrumb span { color: var(--text-soft); margin: 0 6px; }

/* Article header */
.bl-art-header { margin-bottom: 32px; }
.bl-art-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.6rem; line-height: 1.2; margin: 16px 0 16px;
}
.bl-art-excerpt {
    font-size: 1.15rem; color: var(--text-soft); margin-bottom: 24px; line-height: 1.65;
}
.bl-art-meta-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    flex-wrap: wrap; gap: 14px;
}
.bl-author-info  { display: flex; align-items: center; gap: 12px; }
.bl-author-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary-soft); overflow: hidden; flex-shrink: 0;
}
.bl-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bl-author-name  { font-weight: 700; color: var(--text); font-size: .93rem; }
.bl-author-date  { font-size: .82rem; color: var(--text-soft); }

.bl-share-btns { display: flex; gap: 8px; }
.bl-share-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); border: 1.5px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-soft); font-size: .85rem; cursor: pointer;
    transition: all .2s; text-decoration: none;
}
.bl-share-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

/* Featured image */
.bl-art-feat-img {
    width: 100%; height: 420px; border-radius: var(--r-card);
    overflow: hidden; margin-bottom: 36px;
    box-shadow: var(--sh-sm);
}
.bl-art-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-art-feat-placeholder { width: 100%; height: 100%; }

/* Article body */
.bl-art-body {
    max-width: 700px;
    font-size: 1.08rem; line-height: 1.9; color: #333344;
}
.bl-art-body p { margin-bottom: 1.5em; }
.bl-art-body h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.75rem; margin: 2em 0 .9em;
    padding-left: 16px; border-left: 4px solid var(--primary);
    color: var(--text);
}
.bl-art-body h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.35rem; margin: 1.5em 0 .75em;
    color: var(--text);
}
.bl-art-body ul { margin-bottom: 1.5em; padding-left: 22px; }
.bl-art-body li { margin-bottom: .7em; position: relative; padding-left: 10px; }
.bl-art-body li::before { content: '•'; color: var(--primary); font-weight: bold; position: absolute; left: -10px; font-size: 1.1em; }
.bl-art-body blockquote {
    border-left: 4px solid var(--primary);
    background: var(--bg-alt); padding: 22px 28px;
    border-radius: 0 12px 12px 0; margin: 2em 0;
    font-family: 'Nunito', sans-serif; font-style: italic;
    font-size: 1.18rem; color: var(--text);
}
.bl-art-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.bl-art-body a:hover { color: var(--primary-dark); }
.bl-art-body img { border-radius: var(--r-card); margin: 1.5em 0; }

/* Inline CTA inside article */
.bl-art-inline-cta {
    background: var(--bg-alt); border-radius: var(--r-card);
    padding: 28px 32px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; margin: 2.5em 0;
    border: 1px solid rgba(124,92,191,.2); flex-wrap: wrap;
}
.bl-art-inline-cta h3 { font-size: 1.3rem; margin-bottom: 6px; color: var(--primary); font-family: 'Nunito', sans-serif; }
.bl-art-inline-cta p  { font-size: .95rem; color: var(--text-soft); margin: 0; }

/* Author box */
.bl-author-box {
    background: var(--bg); border-radius: var(--r-card);
    padding: 28px 32px; display: flex; gap: 22px;
    margin-top: 56px; border: 1px solid var(--line);
    align-items: flex-start;
}
.bl-author-box-img {
    width: 76px; height: 76px; border-radius: 50%;
    background: var(--primary-soft); overflow: hidden; flex-shrink: 0;
}
.bl-author-box-img img { width: 100%; height: 100%; object-fit: cover; }
.bl-author-box h3 { font-family: 'Nunito', sans-serif; font-size: 1.15rem; margin-bottom: 8px; }
.bl-author-box p  { font-size: .93rem; color: var(--text-soft); margin-bottom: 10px; }
.bl-author-box a  { font-size: .88rem; font-weight: 600; color: var(--primary); }

/* Related posts */
.bl-related { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.bl-related h3 { font-family: 'Nunito', sans-serif; font-size: 1.7rem; margin-bottom: 28px; }
.bl-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Comments */
.bl-comments { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); max-width: 700px; }
.bl-comments h3 { font-family: 'Nunito', sans-serif; font-size: 1.7rem; margin-bottom: 28px; }
.bl-comments .comment-list { list-style: none; }
.bl-comments .comment      { display: flex; gap: 16px; margin-bottom: 28px; }
.bl-comments .comment.depth-2 { margin-left: 56px; }
.bl-comment-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    overflow: hidden;
}
.bl-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bl-comment-body { flex: 1; background: var(--white); padding: 18px 20px; border-radius: var(--r-card); border: 1px solid var(--line); }
.bl-comment-header { display: flex; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.bl-comment-author { font-weight: 700; font-size: .93rem; }
.bl-comment-date   { font-size: .78rem; color: var(--text-soft); }
.bl-comment-text   { font-size: .93rem; line-height: 1.6; margin-bottom: 10px; }
.bl-comment-reply  { font-size: .83rem; color: var(--primary); font-weight: 600; cursor: pointer; }

/* Comment form */
.bl-comment-form { background: var(--bg); padding: 28px; border-radius: var(--r-card); margin-top: 36px; }
.bl-comment-form h4 { font-family: 'Nunito', sans-serif; font-size: 1.15rem; margin-bottom: 18px; }
.bl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.bl-comment-input {
    width: 100%; padding: 13px 15px;
    border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--white); font-size: .93rem; font-family: 'Inter', sans-serif;
    transition: border-color .2s;
}
.bl-comment-input:focus { border-color: var(--primary); outline: none; }
.bl-comment-form textarea.bl-comment-input { resize: vertical; margin-bottom: 14px; }
.bl-comment-consent { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-soft); margin-bottom: 20px; cursor: pointer; }

/* Article sidebar */
.bl-art-sidebar { position: sticky; top: 100px; }
.bl-back-btn {
    display: block; width: 100%; padding: 11px;
    border: 2px solid var(--primary); color: var(--primary);
    border-radius: var(--r-pill); font-weight: 700; font-family: 'Nunito', sans-serif;
    text-align: center; margin-bottom: 24px;
    text-decoration: none; transition: background .2s, color .2s;
}
.bl-back-btn:hover { background: var(--bg-alt); }
.bl-toc-list { list-style: none; }
.bl-toc-list li { margin-bottom: 10px; }
.bl-toc-list a {
    display: block; color: var(--text-soft); font-size: .9rem;
    border-left: 2px solid transparent; padding-left: 12px;
    transition: all .2s; text-decoration: none;
}
.bl-toc-list a:hover   { color: var(--primary); }
.bl-toc-list a.active  { color: var(--primary); border-left-color: var(--primary); font-weight: 600; }

/* ================================================================
   SIDEBAR (aside on listing page)
================================================================ */
.bl-sidebar { min-width: 0; }

/* ================================================================
   SINGLE POST — hero, breadcrumb, share, tags, nav, related
================================================================ */
.bl-article-hero {
    padding: 36px 0 0;
    background: var(--bg);
}
.bl-art-breadcrumb {
    font-size: .88rem; color: var(--text-soft);
    margin-bottom: 20px; font-weight: 500;
}
.bl-art-breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color .2s; }
.bl-art-breadcrumb a:hover { color: var(--primary); }

.bl-art-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2.6rem; line-height: 1.2;
    margin: 16px 0 16px; color: var(--text);
}

.bl-share-row {
    display: flex; align-items: center; gap: 8px;
    flex-wrap: wrap; margin-bottom: 28px;
}

.bl-art-hero-img {
    width: 100%; max-width: 1100px; height: 440px;
    margin: 28px auto 0; padding: 0 24px;
    overflow: hidden;
}
.bl-art-hero-img img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; border-radius: var(--r-card);
}

/* Article wrapper */
.bl-article { min-width: 0; }

/* Tags */
.bl-art-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 36px; padding-top: 28px;
    border-top: 1px solid var(--line);
}

/* Post navigation */
.bl-post-nav {
    display: flex; justify-content: space-between;
    gap: 20px; margin-top: 48px; padding-top: 36px;
    border-top: 1px solid var(--line);
}
.bl-nav-link {
    display: flex; flex-direction: column; gap: 4px;
    max-width: 48%; text-decoration: none; color: inherit;
    padding: 16px 20px; border: 1.5px solid var(--line);
    border-radius: var(--r-card); transition: all .2s;
}
.bl-nav-link:hover { border-color: var(--primary); background: var(--bg-alt); }
.bl-nav-next { text-align: right; }
.bl-nav-dir { font-size: .8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .4px; }
.bl-nav-title { font-size: .92rem; font-weight: 600; color: var(--text); line-height: 1.3; }

/* Related posts */
.bl-related { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.bl-related-title {
    font-family: 'Nunito', sans-serif; font-size: 1.7rem; margin-bottom: 28px;
}
.bl-related-card {
    display: flex; flex-direction: column;
    border-radius: var(--r-card); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--sh-sm);
    text-decoration: none; color: inherit;
    transition: transform .25s, box-shadow .25s;
    background: var(--white);
}
.bl-related-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.bl-related-img {
    height: 160px; overflow: hidden;
}
.bl-related-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bl-related-card:hover .bl-related-img img { transform: scale(1.05); }
.bl-related-body {
    padding: 16px;
}
.bl-related-body h3 { font-family: 'Nunito', sans-serif; font-size: 1rem; margin: 8px 0 6px; line-height: 1.3; }
.bl-related-body p  { font-size: .85rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Author box (single.php variant) */
.bl-avatar-lg {
    width: 64px; height: 64px;
    border-radius: 50%; flex-shrink: 0;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.3rem;
}
.bl-author-bio { font-size: .93rem; color: var(--text-soft); }

/* ================================================================
   EMPTY STATE
================================================================ */
.bl-empty {
    grid-column: 1 / -1; text-align: center;
    padding: 60px 20px; display: none;
}
.bl-empty.show { display: block; }
.bl-empty p { color: var(--text-soft); font-size: 1rem; margin-top: 12px; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
    .bl-layout        { grid-template-columns: 1fr; }
    .bl-article-layout{ grid-template-columns: 1fr; }
    .bl-sidebar       { display: none; }
    .bl-art-sidebar   { display: none; }
}
@media (max-width: 900px) {
    .bl-featured { flex-direction: column; }
    .bl-feat-img { width: 100%; min-height: 220px; }
    .bl-feat-body{ width: 100%; padding: 24px; }
    .bl-related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .bl-hero h1    { font-size: 2rem; }
    .bl-grid       { grid-template-columns: 1fr; }
    .bl-inline-cta { flex-direction: column; text-align: center; padding: 28px 22px; }
    .bl-cat-pills  { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .bl-cat-pills::-webkit-scrollbar { display: none; }
    .bl-cat-pill   { white-space: nowrap; }
    .bl-art-header h1 { font-size: 2rem; }
    .bl-art-feat-img  { height: 240px; }
    .bl-related-grid  { grid-template-columns: 1fr; }
    .bl-form-row { grid-template-columns: 1fr; }
    .bl-fb-form  { flex-direction: column; }
    .bl-comments .comment.depth-2 { margin-left: 20px; }
}
