/* ================= BLOG: categories + posts (scoped to .bl) ================= */
.bl [hidden] {
    display: none !important
}
/* cover (image, or leaf fallback) */
.bl-cover {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(140deg, #0b3b2c, #2fa866)
}

.bl-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1)
}

.bl-cover>svg {
    position: absolute;
    z-index: -1;
    right: -24px;
    bottom: -34px;
    width: 58%;
    color: #8fe51c;
    opacity: .35;
    transform: rotate(-22deg)
}

a:hover>.bl-cover img,
a:hover .bl-cover img {
    transform: scale(1.05)
}

/* ---------- categories page ---------- */
.bl-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 330px));
    justify-content: center;
    gap: 1.2rem
}

.bl-cat {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 4/3.3;
    border-radius: 34px 6px 34px 6px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 30px 50px -32px rgba(11, 59, 44, .65);
    transition: transform .35s, box-shadow .35s
}

.bl-cat:nth-child(even) {
    border-radius: 6px 34px 6px 34px
}

.bl-cat .bl-cover {
    position: absolute;
    inset: 0
}

.bl-cat::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 36, 27, 0) 30%, rgba(6, 36, 27, .9))
}

.bl-cat:hover {
    transform: translateY(-7px);
    box-shadow: 0 40px 56px -30px rgba(11, 59, 44, .7)
}

.bl-cat-body {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem
}

.bl-cat-name {
    display: block;
    margin-top: .55rem;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff
}

.bl-cat-go {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--lime);
    color: #0b2a14;
    font-style: normal;
    transition: transform .25s
}

.bl-cat:hover .bl-cat-go {
    transform: translateX(5px)
}

/* ---------- posts page ---------- */
.bl-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.2rem;
    margin-bottom: 2.2rem
}

.bl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem
}

.bl-chip {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #dbe4d4;
    color: var(--ink);
    font: 600 .8rem Montserrat, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s, color .2s
}

.bl-chip:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    color: var(--ink)
}

.bl-chip.on {
    background: var(--forest);
    border-color: var(--forest);
    color: #fff
}

.bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .9rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

.bl-date {
    color: var(--leaf)
}

.bl-by {
    color: var(--mute)
}

/* featured */
.bl-feat {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    margin-bottom: 1.4rem;
    overflow: hidden;
    border-radius: 36px 120px 36px 36px;
    color: #fff;
    text-decoration: none;
    background: radial-gradient(420px 280px at 100% 0, rgba(143, 229, 28, .35), transparent 65%), linear-gradient(150deg, #0e3b30, #06241b);
    box-shadow: 0 40px 60px -36px rgba(11, 59, 44, .6);
    transition: transform .35s
}

.bl-feat:hover {
    transform: translateY(-5px)
}

.bl-feat .bl-cover {
    min-height: 340px;
    background: linear-gradient(140deg, #134d3a, #2fa866)
}

.bl-feat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .9rem;
    padding: clamp(1.6rem, 3.4vw, 2.8rem)
}

.bl-feat-body .bl-date {
    color: #b4ee68
}

.bl-feat-body .bl-by {
    color: #a9c4b4
}

.bl-feat h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff
}

.bl-feat p {
    margin: 0;
    color: #cfe4d8;
    font-size: .9rem
}

.bl-feat .bl-more {
    color: #b4ee68
}

/* cards */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.2rem
}

.bl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e3eadd;
    border-radius: 30px 6px 30px 6px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 22px 40px -30px rgba(11, 59, 44, .5);
    transition: transform .3s, box-shadow .3s, border-color .3s
}

.bl-card:nth-child(even) {
    border-radius: 6px 30px 6px 30px
}

.bl-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 30px 46px -28px rgba(11, 59, 44, .55)
}

.bl-card .bl-cover {
    height: 190px
}

.bl-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .5rem;
    padding: 1.3rem 1.4rem 1.4rem
}

.bl-body h3 {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--deep)
}

.bl-body p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .84rem;
    line-height: 1.6;
    color: var(--mute)
}

.bl-more {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: auto;
    padding-top: .7rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--forest)
}

.bl-more i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--lime);
    color: #0b2a14;
    font-style: normal;
    font-size: .9rem;
    transition: transform .25s
}

a:hover .bl-more i {
    transform: translateX(5px)
}

.bl-empty {
    margin: 2rem 0 0;
    padding: 2rem;
    text-align: center;
    border: 1.5px dashed #cfd9d1;
    border-radius: 20px;
    color: var(--mute)
}

.bl-empty a {
    color: var(--forest);
    font-weight: 700
}

.bl-pager {
    display: flex;
    justify-content: center;
    margin-top: 2.4rem
}

.bl-pager .pagination {
    gap: .3rem;
    flex-wrap: wrap;
    margin: 0
}

.bl-pager .page-link {
    border-radius: 99px !important;
    border: 1.5px solid #dbe4d4;
    color: var(--forest);
    font-weight: 600;
    font-size: .82rem
}

.bl-pager .active>.page-link {
    background: var(--forest);
    border-color: var(--forest);
    color: #fff
}

@media(max-width:900px) {
    .bl-feat {
        grid-template-columns: 1fr;
        border-radius: 36px
    }

    .bl-feat .bl-cover {
        min-height: 230px
    }
}

@media(max-width:600px) {
    .bl-cats {
        grid-template-columns: 1fr
    }

    .bl-cat {
        aspect-ratio: 16/11
    }
}

@media(prefers-reduced-motion:reduce) {

    .bl-card,
    .bl-cat,
    .bl-feat,
    .bl-cover img,
    .bl-more i,
    .bl-cat-go {
        transition: none
    }
}

/* categories as ONE horizontal row */
.bl-cats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: .8rem .2rem 1.8rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
}

.bl-cats::-webkit-scrollbar {
    display: none
}

.bl-cat {
    flex: 0 0 min(320px, 82%);
    scroll-snap-align: start
}
