/* ================================================
   blog.css — Blog Listing Page
   ================================================ */


.mono {
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-weight: 400;
    letter-spacing: .05em;
}

/* ========================================
   HERO
========================================= */

.blog-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    background: #000;
    isolation: isolate;
}

.blog-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,239,23,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,239,23,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center top, #000 30%, transparent 80%);
    z-index: -1;
}

.blog-hero .container { position: relative; z-index: 1; }

.blog-hero-content {
    max-width: 820px;
    margin-top: 32px;
}

.blog-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(196,239,23,.06);
    border: 1px solid rgba(196,239,23,.25);
    border-radius: 100px;
    font-size: 10px;
    color: #C4EF17;
    margin-bottom: 24px;
}

/* Pulse dot — reused */
.hc-pulse-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #C4EF17;
    box-shadow: 0 0 0 3px rgba(196,239,23,.2);
    animation: bPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
}
@keyframes bPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(196,239,23,.2); }
    50%       { box-shadow: 0 0 0 7px rgba(196,239,23,.04); }
}

.blog-hero h1 {
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.0;
    letter-spacing: -.025em;
    margin-bottom: 28px;
}
.blog-hero h1 .h1-line { display: block; color: #fff; }
.blog-hero h1 .h1-highlight {
    display: inline-block;
    color: #C4EF17;
    font-style: normal;
}

.blog-hero-desc {
    font-size: clamp(15px, 1.2vw, 18px);
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    max-width: 740px;
    margin-bottom: 40px;
    font-weight: 300;
}

.blog-hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.bh-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bh-stat strong {
    font-family: 'Marcellus', serif;
    font-size: clamp(28px, 3vw, 40px);
    color: #C4EF17;
    line-height: 1;
    font-weight: 400;
}
.bh-stat span {
    font-size: 10px;
    color: rgba(255,255,255,.4);
}


/* ========================================
   FILTER BAR — sticky
========================================= */

.blog-filter {
    position: sticky;
    top: 64px;
    z-index: 40;
    background: rgba(0,0,0,.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 24px 0 20px;
    margin-bottom: 60px;
}

.bf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.bf-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 100px;
    transition: border-color .25s, background .25s;
}
.bf-search:focus-within {
    border-color: rgba(196,239,23,.4);
    background: rgba(196,239,23,.04);
}
.bf-search svg {
    color: rgba(255,255,255,.4);
    flex-shrink: 0;
    transition: color .2s;
}
.bf-search:focus-within svg { color: #C4EF17; }
.bf-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
}
.bf-search input::placeholder { color: rgba(255,255,255,.35); }

.bf-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.4);
    white-space: nowrap;
}
.bf-count strong {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* Category pills */
.bf-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bf-cat {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,.7);
    cursor: pointer;
    transition: all .25s ease;
}
.bf-cat:hover {
    border-color: rgba(196,239,23,.4);
    color: #C4EF17;
}
.bf-cat.is-active {
    background: #C4EF17;
    border-color: #C4EF17;
    color: #000;
    font-weight: 600;
}


/* ========================================
   FEATURED POST
========================================= */

.blog-featured {
    padding: 0 0 100px;
}

.bf-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #060606 100%);
    border: 1px solid rgba(196,239,23,.15);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(196,239,23,.06);
    position: relative;
}
.bf-card::before {
    content: '';
    position: absolute;
    top: 0; left: 40px; right: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C4EF17, transparent);
    opacity: .6;
    z-index: 1;
}

.bf-card-img {
    position: relative;
    height: 100%;
    min-height: 440px;
    overflow: hidden;
    text-decoration: none;
}
.bf-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(20%) brightness(.85);
    transition: transform .8s cubic-bezier(.16,1,.3,1), filter .6s ease;
}
.bf-card-img:hover img {
    transform: scale(1.03);
    filter: grayscale(0) brightness(1);
}

.bf-featured-badge {
    position: absolute;
    top: 24px; left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #C4EF17;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 2px;
    z-index: 2;
}

.bf-card-body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bf-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bf-cat-tag {
    display: inline-block;
    padding: 5px 11px;
    background: rgba(196,239,23,.08);
    border: 1px solid rgba(196,239,23,.25);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #C4EF17;
    text-transform: uppercase;
}
.bf-card-meta .mono {
    font-size: 11px;
    color: rgba(255,255,255,.4);
    letter-spacing: .5px;
}

.bf-card-body h2 {
    font-family: 'Marcellus', serif;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.15;
    font-weight: 400;
}
.bf-card-body h2 a {
    color: #fff;
    text-decoration: none;
    transition: color .25s ease;
}
.bf-card-body h2 a:hover { color: #C4EF17; }

.bf-card-body p {
    font-size: 15px;
    color: rgba(255,255,255,.55);
    line-height: 1.75;
}

.bf-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.bf-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bf-author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(196,239,23,.25);
}
.bf-author-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.bf-author-info strong {
    display: block;
    font-family: 'Marcellus', serif;
    font-size: 15px;
    color: #fff;
    font-weight: 400;
}
.bf-author-info .mono {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.4);
    margin-top: 2px;
}

.bf-read-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(196,239,23,.3);
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #C4EF17;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .25s ease;
}
.bf-read-cta:hover {
    background: #C4EF17;
    color: #000;
    gap: 12px;
}
.bf-read-cta svg { transition: transform .25s; }
.bf-read-cta:hover svg { transform: translate(2px, -2px); }


/* ========================================
   BLOG GRID
========================================= */

.blog-list { padding: 40px 0 100px; }

.bl-head {
    margin-bottom: 56px;
}
.bl-head h2 { margin-top: 10px; }

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.bl-card {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .35s ease, transform .35s ease, background .35s ease;
}
.bl-card:hover {
    border-color: rgba(196,239,23,.3);
    transform: translateY(-4px);
    background: #0e0e0e;
}

.bl-card-img-link {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
}
.bl-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.bl-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(30%) brightness(.8);
    transition: transform .7s cubic-bezier(.16,1,.3,1), filter .6s;
}
.bl-card:hover .bl-card-img img {
    transform: scale(1.06);
    filter: grayscale(0) brightness(.95);
}

.bl-card-cat {
    position: absolute;
    top: 16px; left: 16px;
    padding: 5px 11px;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(196,239,23,.2);
    border-radius: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #C4EF17;
    text-transform: uppercase;
    z-index: 1;
}

.bl-card-body {
    padding: 24px 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bl-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bl-card-tags span {
    padding: 4px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: rgba(255,255,255,.55);
    letter-spacing: .5px;
}

.bl-card-body h3 {
    font-family: 'Marcellus', serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}
.bl-card-body h3 a {
    color: #fff;
    text-decoration: none;
    transition: color .25s ease;
}
.bl-card-body h3 a:hover { color: #C4EF17; }

.bl-card-body p {
    font-size: 13px;
    color: rgba(255,255,255,.5);
    line-height: 1.7;
    flex: 1;
}

.bl-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.bl-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.bl-author-av {
    width: 28px; height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
}
.bl-author-av img { width: 100%; height: 100%; object-fit: cover; }
.bl-author strong {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bl-card-meta {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.bl-card-meta .mono {
    font-size: 10px;
    color: rgba(255,255,255,.4);
}


/* ========================================
   PAGINATION
========================================= */

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.06);
    position: relative;
}

.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .25s ease;
}
.bp-btn:hover:not(.is-disabled) {
    border-color: #C4EF17;
    color: #C4EF17;
    background: rgba(196,239,23,.04);
}
.bp-btn.is-disabled {
    opacity: .35;
    pointer-events: none;
}

.bp-nums {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bp-num {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.08);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: all .2s ease;
}
.bp-num:hover {
    border-color: rgba(196,239,23,.3);
    color: #C4EF17;
}
.bp-num.is-active {
    background: #C4EF17;
    border-color: #C4EF17;
    color: #000;
    font-weight: 600;
}

.bp-ellipsis {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,.3);
    padding: 0 4px;
}

.bp-page-label {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255,255,255,.35);
}


/* ========================================
   NEWSLETTER CTA
========================================= */

.blog-cta {
    padding: 60px 0 140px;
}

.blog-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(196,239,23,.04) 0%, rgba(10,10,10,1) 60%);
    border: 1px solid rgba(196,239,23,.2);
    border-radius: 6px;
    padding: 60px 60px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.blog-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196,239,23,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196,239,23,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at right center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at right center, #000 30%, transparent 70%);
    z-index: -1;
}
.blog-cta-glow {
    position: absolute;
    top: 50%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(196,239,23,.18) 0%, transparent 65%);
    filter: blur(40px);
    transform: translateY(-50%);
    z-index: -1;
    animation: bGlow 8s ease-in-out infinite;
}
@keyframes bGlow {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50%       { opacity: .8; transform: translateY(-50%) scale(1.08); }
}

.bcc-left h2 { margin: 10px 0 18px; }
.bcc-left p {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.8;
    max-width: 400px;
}

.bcc-form {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(0,0,0,.7);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 4px;
    margin-bottom: 16px;
}
.bcc-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}
.bcc-form input::placeholder { color: rgba(255,255,255,.3); }

.bcc-form .btn-lime {
    padding: 12px 22px;
    font-size: 12px;
}

.bcc-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    font-size: 10px;
    color: rgba(255,255,255,.45);
}

/* Reuse btn-lime */
.btn-lime {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #C4EF17;
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background .2s, gap .2s, transform .2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-lime:hover { background: #fff; gap: 14px; transform: translateY(-1px); }
.btn-lime svg { transition: transform .2s; }
.btn-lime:hover svg { transform: translate(3px, -3px); }


/* ========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .bl-grid { grid-template-columns: 1fr 1fr; }
    .bf-card { grid-template-columns: 1fr; }
    .bf-card-img { min-height: 320px; }
    .bf-card-body { padding: 36px 32px; }
    .blog-cta-card { grid-template-columns: 1fr; gap: 32px; padding: 44px 36px; }
}

@media (max-width: 800px) {
    .blog-filter {
        position: static;
    }
    .bf-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .bf-search { max-width: none; }
}

@media (max-width: 600px) {
    .blog-hero { padding: 120px 0 60px; }
    .blog-hero-stats { gap: 24px; }
    .bl-grid { grid-template-columns: 1fr; gap: 16px; }
    .blog-list { padding: 24px 0 60px; }
    .blog-cta { padding: 40px 0 80px; }
    .blog-cta-card { padding: 32px 24px; }
    .bcc-form { flex-direction: column; gap: 8px; }
    .bcc-form .btn-lime { width: 100%; justify-content: center; }

    .bf-card-img { min-height: 240px; }
    .bf-card-body { padding: 28px 24px; }
    .bf-card-foot { flex-direction: column; align-items: flex-start; gap: 16px; }

    .bp-btn span { display: none; }
    .bp-num { width: 32px; height: 32px; font-size: 12px; }
}