/* Blog list, post footer, newsletter. Plain classes (bl-*, nl-*), no inline styles. */
:root { --bl-ink: #111c27; --bl-muted: #5f6b76; --bl-line: #e6eaee; --bl-accent: #1f5fbf; --bl-bg: #f3f6f8; }
.bl { color: var(--bl-ink); }
.bp-related .bl-card, .bp-related .bl-card h2 a { color: var(--bl-ink); }
.single-post .nl-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin: 2rem 1rem 0; padding: 1.25rem 1.4rem; border-radius: 14px; background: var(--bl-bg); border: 1px solid var(--bl-line); color: var(--bl-ink); }
.bl a { text-decoration: none; }

/* Page header */
.bl-head { padding: .5rem 1rem 1.25rem; }
.bl-head h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; color: var(--bl-ink); margin: 0 0 .25rem; letter-spacing: -.01em; }
.bl-head p { color: var(--bl-muted); margin: 0; font-size: 1.02rem; }
.bl-filter { display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem; background: var(--bl-bg); border: 1px solid var(--bl-line); border-radius: 999px; padding: .3rem .4rem .3rem .9rem; font-size: .9rem; color: var(--bl-ink); }
.bl-filter a { display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--bl-muted); font-weight: 700; }
.bl-filter a:hover { background: var(--bl-accent); color: #fff; }

/* Featured post */
.bl-hero { display: block; position: relative; border-radius: 16px; overflow: hidden; margin: 0 1rem 1.5rem; background: #12303f; min-height: 280px; }
.bl-hero img { display: block; width: 100%; height: 100%; min-height: 340px; max-height: 420px; object-fit: cover; opacity: 1; transition: transform .35s ease, opacity .35s ease; }
.bl-hero:hover img { transform: scale(1.02); }
.bl-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.5rem 1.3rem; background: rgba(17, 28, 39, .82); color: #fff; }
.bl-hero-text h2 { font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 800; line-height: 1.2; color: #fff; margin: .3rem 0 .45rem; }
.bl-hero-text p { margin: 0 0 .5rem; color: rgba(255, 255, 255, .86); font-size: .98rem; line-height: 1.45; }
.bl-hero .bl-kicker { color: #b9d2ff; }
.bl-hero .bl-meta { color: rgba(255, 255, 255, .78); }

/* Card grid */
.bl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding: 0 1rem; }
.bl-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bl-line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.bl-card:hover { box-shadow: 0 8px 24px rgba(17, 28, 39, .09); transform: translateY(-2px); }
.bl-card-img { display: block; aspect-ratio: 16 / 9; background: var(--bl-bg); overflow: hidden; }
.bl-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.bl-card h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: .25rem 0 .45rem; }
.bl-card h2 a { color: var(--bl-ink); }
.bl-card h2 a:hover { color: var(--bl-accent); }
.bl-card p { color: var(--bl-muted); font-size: .92rem; line-height: 1.5; margin: 0 0 .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-accent); }
.bl-meta { margin-top: auto; font-size: .8rem; color: var(--bl-muted); }
.bl-meta span + span::before { content: "\00b7"; margin: 0 .4rem; }

.bl-empty { margin: 1rem; padding: 2.5rem 1rem; text-align: center; background: var(--bl-bg); border-radius: 14px; color: var(--bl-muted); }
.bl-empty h2 { font-size: 1.2rem; color: var(--bl-ink); margin-bottom: .4rem; }

/* Pagination */
.bl-pager { display: flex; justify-content: center; align-items: center; gap: .35rem; flex-wrap: wrap; margin: 1.75rem 1rem 0; }
.bl-pager a, .bl-pager span { min-width: 2.4rem; height: 2.4rem; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--bl-line); color: var(--bl-ink); font-weight: 600; font-size: .92rem; background: #fff; }
.bl-pager a:hover { border-color: var(--bl-accent); color: var(--bl-accent); }
.bl-pager .is-current { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }
.bl-pager .is-gap { border: 0; background: transparent; color: var(--bl-muted); min-width: 1rem; padding: 0; }

/* Newsletter button */
.nl-btn { border: 0; border-radius: 8px; background: var(--bl-ink); color: #fff; font-weight: 700; padding: .6rem 1.3rem; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.nl-btn:hover { background: var(--bl-accent); }

/* Newsletter pop-up (Vue-driven; hidden attribute toggled by blog.js) */
.nl-pop { position: fixed; right: 1rem; bottom: 1rem; z-index: 99999; width: min(380px, calc(100vw - 2rem)); }
.nl-pop[hidden] { display: none; }
.nl-pop-card { position: relative; border-radius: 14px; padding: 1.25rem 1.25rem 1rem; color: var(--bl-ink); background: #fff; border: 1px solid var(--bl-line); box-shadow: 0 12px 36px rgba(17, 28, 39, .22); }
.nl-pop-close { position: absolute; top: .55rem; right: .65rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--bl-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.nl-pop-close:hover { background: var(--bl-bg); color: var(--bl-ink); }
.nl-pop-label { display: inline-block; margin-bottom: .35rem; padding: .1rem .55rem; border-radius: 6px; background: var(--bl-bg); color: var(--bl-accent); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nl-pop h4 { font-size: 1.1rem; font-weight: 700; color: var(--bl-ink); margin: 0 2rem .3rem 0; line-height: 1.25; }
.nl-pop p { margin: 0 0 .85rem; color: var(--bl-muted); font-size: .92rem; line-height: 1.45; }
.nl-pop-form { display: flex; flex-direction: column; gap: .5rem; margin: 0; }
.nl-pop-form .form-control { flex: 0 0 auto; width: 100%; min-width: 0; height: 2.6rem; border: 1px solid #cfd6dd; border-radius: 8px; padding: 0 .9rem; font-size: .95rem; }
.nl-pop-form .form-control.is-invalid { border-color: #d64545; background-image: none; }
.nl-pop-form .nl-btn { height: 2.6rem; width: 100%; }
.nl-pop-note { display: block; margin-top: .55rem; font-size: .75rem; color: var(--bl-muted); }

/* Post footer: categories, tags, share */
.bp-foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #e6eaee; }
.bp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; }
.bp-chips b { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #5f6b76; margin-right: .2rem; }
.bp-chip { font-size: .85rem; font-weight: 600; background: #f3f6f8; color: #111c27; border-radius: 8px; padding: .3rem .7rem; text-decoration: none; }
.bp-chip:hover { background: #1f5fbf; color: #fff; text-decoration: none; }
.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.bp-share a.bp-btn { display: inline-flex; align-items: center; gap: .4rem; border-radius: 8px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; text-decoration: none; }
.bp-btn.wa, .bp-btn.tg, .bp-btn.fb, .bp-btn.tw { background: var(--bl-bg); color: var(--bl-ink); border: 1px solid var(--bl-line); }
.bp-share a.bp-btn:hover { background: var(--bl-ink); border-color: var(--bl-ink); color: #fff; }

/* Related posts */
.bp-related { margin-top: 2.25rem; }
.bp-related > h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 1rem; padding-left: .7rem; border-left: 4px solid #1f5fbf; color: #111c27; }
.bp-related .bl-grid { padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.bp-related .bl-card h2 { font-size: .98rem; }

@media (max-width: 767px) {
    .bl-grid, .bp-related .bl-grid { grid-template-columns: 1fr; }
    .bl-hero { display: flex; flex-direction: column; min-height: 0; background: #111c27; }
    .bl-hero img { min-height: 0; height: 190px; max-height: 190px; }
    .bl-hero-text { position: static; padding: 1rem 1.1rem 1.1rem; background: none; }
    .nl-pop p { display: none; }
    .nl-pop-card { padding: 1rem 1rem .9rem; }
}

/* Subscribe / unsubscribe confirmation pages */
.nl-page { padding: 3rem 1rem 6rem; background: #f3f6f8; }
.nl-page-card { max-width: 30rem; margin: 0 auto; background: #fff; border: 1px solid #e6eaee; border-radius: 16px; padding: 2rem 1.75rem; text-align: center; box-shadow: 0 8px 28px rgba(17, 28, 39, .07); }
.nl-page-logo img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.nl-page-body p { color: #111c27; font-size: 1.02rem; line-height: 1.55; }
.nl-page-body a { color: #1f5fbf; font-weight: 600; }
.nl-page-body .fa { font-size: 2rem; color: #1f5fbf; margin-bottom: .5rem; }
.nl-btn-dark { background: #111c27; color: #fff; }
.nl-btn-dark:hover { background: #1f5fbf; color: #fff; }
