/* ═══════════════════════════════════════════════════════════════
   blog.css — Blog archive redesign
   ═══════════════════════════════════════════════════════════════ */

.bl-page {
    --bl-navy    : #0B2038;
    --bl-sky     : #54B6F4;
    --bl-text    : #1A3A56;
    --bl-muted   : #5C7A8C;
    --bl-bg      : #EEF4FA;
    --bl-card-bg : #FFFFFF;
    --bl-border  : #D8E7F2;
    --bl-shadow  : 0 14px 44px rgba(11,32,56,.13);
    --bl-shadow-s: 0 3px 16px rgba(11,32,56,.07);

    background : var(--bl-bg);
    font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.7;
    color      : var(--bl-text);
}

.bl-page * { box-sizing: border-box; }
.bl-page img { max-width: 100%; display: block; }
.bl-page a { text-decoration: none; color: inherit; }
.bl-page h1, .bl-page h2 { margin: 0; letter-spacing: -.03em; }
.bl-page p { margin: 0; }

.bl-wrap {
    width : min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

/* ── EYEBROW ──────────────────────────────────────────────────── */
.bl-eyebrow {
    display       : inline-flex;
    padding       : 6px 16px;
    border-radius : 999px;
    background    : rgba(84,182,244,.18);
    border        : 1px solid rgba(84,182,244,.40);
    color         : #54B6F4;
    font-weight   : 800;
    font-size     : .75rem;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin-bottom : 20px;
}

/* ── HERO ─────────────────────────────────────────────────────── */
.bl-hero {
    background: linear-gradient(140deg, #06264a 0%, #0B2038 50%, #143A63 100%);
    padding   : 76px 0 100px;
    text-align: center;
    position  : relative;
    overflow  : hidden;
}
.bl-hero::before {
    content   : '';
    position  : absolute;
    top       : -40%; left: 50%;
    transform : translateX(-50%);
    width     : 800px; height: 800px;
    background: radial-gradient(circle, rgba(84,182,244,.13) 0%, transparent 68%);
    pointer-events: none;
}
.bl-hero::after {
    content   : '';
    position  : absolute;
    bottom    : -1px; left: 0; right: 0;
    height    : 60px;
    background: var(--bl-bg);
    clip-path : ellipse(55% 100% at 50% 100%);
}
.bl-hero .bl-wrap {
    display       : flex;
    flex-direction: column;
    align-items   : center;
    position      : relative;
    z-index       : 1;
}
.bl-hero h1 {
    font-size    : clamp(2rem, 5vw, 3.4rem);
    font-weight  : 900;
    color        : #FFFFFF;
    line-height  : 1.08;
    margin-bottom: 16px;
    max-width    : 700px;
}
.bl-lead {
    font-size  : clamp(.95rem, 1.7vw, 1.05rem);
    color      : rgba(255,255,255,.70);
    max-width  : 540px;
    line-height: 1.75;
}

/* ── BODY ─────────────────────────────────────────────────────── */
.bl-body { padding: 16px 0 88px; }

/* ── GRID ─────────────────────────────────────────────────────── */
.bl-grid {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 24px;
    margin-bottom        : 56px;
}

/* ── FEATURED (first post) ────────────────────────────────────── */
.bl-card-featured {
    grid-column          : 1 / -1;
    display              : grid;
    grid-template-columns: 1.2fr 1fr;
}
.bl-card-featured .bl-card-img-wrap { height: 420px; }
.bl-card-featured .bl-card-body {
    padding        : 44px 40px;
    justify-content: center;
}
.bl-card-featured .bl-card-title {
    font-size    : clamp(1.5rem, 2.8vw, 2.2rem);
    line-height  : 1.18;
    margin-bottom: 6px;
}
.bl-card-featured .bl-card-excerpt {
    -webkit-line-clamp: 4;
    font-size          : 1rem;
    line-height        : 1.78;
}

/* ── CARD ─────────────────────────────────────────────────────── */
.bl-card {
    background    : var(--bl-card-bg);
    border-radius : 20px;
    border        : 1px solid var(--bl-border);
    box-shadow    : var(--bl-shadow-s);
    overflow      : hidden;
    display       : flex;
    flex-direction: column;
    transition    : transform .25s, box-shadow .25s, border-color .25s;
}
.bl-card:hover {
    transform   : translateY(-5px);
    box-shadow  : var(--bl-shadow);
    border-color: var(--bl-sky);
}

/* ── CARD IMAGE ───────────────────────────────────────────────── */
.bl-card-img-wrap {
    position  : relative;
    overflow  : hidden;
    height    : 210px;
    flex-shrink: 0;
    display   : block;
}
.bl-card-img-link {
    display: block;
    width  : 100%;
    height : 100%;
}
.bl-card-img {
    width     : 100%;
    height    : 100%;
    object-fit: cover;
    display   : block;
    transition: transform .55s ease;
}
.bl-card:hover .bl-card-img { transform: scale(1.06); }

/* Category badge */
.bl-cat-badge {
    position      : absolute;
    top           : 14px;
    left          : 14px;
    padding       : 5px 13px;
    border-radius : 999px;
    background    : rgba(11,32,56,.72);
    color         : #54B6F4;
    font-size     : .70rem;
    font-weight   : 800;
    text-transform: uppercase;
    letter-spacing: .09em;
    backdrop-filter: blur(6px);
    border        : 1px solid rgba(84,182,244,.35);
    transition    : background .2s, color .2s;
    z-index       : 1;
}
.bl-cat-badge:hover { background: #54B6F4; color: #0B2038; }
.bl-cat-badge-solo {
    display       : inline-flex;
    margin        : 16px 0 0 20px;
    position      : static;
    backdrop-filter: none;
}

/* ── CARD BODY ────────────────────────────────────────────────── */
.bl-card-body {
    padding       : 24px 24px 28px;
    display       : flex;
    flex-direction: column;
    flex          : 1;
    gap           : 10px;
}

.bl-card-meta {
    display    : flex;
    align-items: center;
    gap        : 6px;
    font-size  : .78rem;
    font-weight: 600;
    color      : var(--bl-sky);
}
.bl-meta-sep  { color: var(--bl-muted); opacity: .55; }
.bl-read-time { color: var(--bl-muted); font-weight: 500; }

.bl-card-title {
    font-size  : clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 800;
    color      : var(--bl-navy);
    line-height: 1.32;
}
.bl-card-title a { color: inherit; }
.bl-card-title a:hover { color: var(--bl-sky); }

.bl-card-excerpt {
    font-size         : .9rem;
    color             : var(--bl-muted);
    line-height       : 1.72;
    display           : -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow          : hidden;
    flex              : 1;
}

.bl-read-more {
    display    : inline-flex;
    align-items: center;
    gap        : 6px;
    font-size  : .85rem;
    font-weight: 800;
    color      : var(--bl-sky);
    margin-top : auto;
    transition : gap .2s;
}
.bl-read-more:hover { gap: 10px; }
.bl-read-more svg { flex-shrink: 0; transition: transform .2s; }
.bl-read-more:hover svg { transform: translateX(2px); }

/* ── PAGINATION ───────────────────────────────────────────────── */
.bl-pagination { display: flex; justify-content: center; }
.bl-pagination ul {
    display        : flex;
    gap            : 8px;
    list-style     : none;
    padding        : 0;
    margin         : 0;
    flex-wrap      : wrap;
    justify-content: center;
}
.bl-pagination ul li a,
.bl-pagination ul li span {
    display        : inline-flex;
    align-items    : center;
    justify-content: center;
    min-width      : 44px;
    height         : 44px;
    padding        : 0 14px;
    border-radius  : 12px;
    border         : 1px solid var(--bl-border);
    background     : var(--bl-card-bg);
    color          : var(--bl-text);
    font-weight    : 700;
    font-size      : .9rem;
    transition     : background .2s, border-color .2s, color .2s;
}
.bl-pagination ul li a:hover {
    background  : var(--bl-sky);
    border-color: var(--bl-sky);
    color       : #fff;
}
.bl-pagination ul li .current,
.bl-pagination ul li span.current {
    background  : var(--bl-navy);
    border-color: var(--bl-navy);
    color       : #fff;
}

/* ── EMPTY ────────────────────────────────────────────────────── */
.bl-empty {
    text-align: center;
    color     : var(--bl-muted);
    padding   : 64px 0;
    font-size : 1.05rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1020px) {
    .bl-grid                            { grid-template-columns: repeat(2, 1fr); }
    .bl-card-featured                   { grid-template-columns: 1fr; }
    .bl-card-featured .bl-card-img-wrap { height: 280px; }
    .bl-card-featured .bl-card-body     { padding: 28px 28px 32px; }
}
@media (max-width: 620px) {
    .bl-grid          { grid-template-columns: 1fr; gap: 18px; }
    .bl-wrap          { width: calc(100% - 32px); }
    .bl-hero          { padding: 52px 0 76px; }
    .bl-card-img-wrap { height: 200px; }
    .bl-pagination ul li a,
    .bl-pagination ul li span { min-width: 38px; height: 38px; font-size: .82rem; }
}
