/* ============================================================
   Thomas Family Law Counsel — Blog Template styles
   Enqueued only on the "Blog" page template via css_script_manager.
   ============================================================ */

/* ── Hero + filter ─────────────────────────────────────────────── */

section.blog_hero_section {
    background: var(--navy);
    color: var(--cream);
    padding: 5rem 0 2.5rem;

    .section_label {
        color: var(--gold);
    }

    .section_title {
        color: var(--cream);
    }

    .lede {
        color: rgba(247, 244, 236, 0.82);
        max-width: 62ch;
    }

    .blog_filter_pills {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-top: 1.8rem;
    }

    .blog_filter_pill {
        border: 1px solid rgba(247, 244, 236, 0.25);
        color: rgba(247, 244, 236, 0.85);
        border-radius: 20px;
        padding: 0.4rem 1.1rem;
        font-size: 0.85rem;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .blog_filter_pill:hover,
    .blog_filter_pill.active {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--navy-deep);
    }
}

/* ── Grid ─────────────────────────────────────────────────────── */

section.blog_body_section {
    background: #fff;
    padding: 4rem 0 6rem;

    .blog_post_card {
        display: block;
        border: 1px solid var(--hairline);
        border-radius: 6px;
        overflow: hidden;
        height: 100%;
        transition: transform 0.2s ease, box-shadow 0.2s ease;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 28px rgba(27, 42, 74, 0.08);
        }
    }

    .blog_post_img_wrap {
        display: block;
        position: relative;

        img,
        .blog_post_img_placeholder {
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
            background: var(--cream);
        }
    }

    .blog_post_cat {
        position: absolute;
        left: 0.9rem;
        bottom: 0.9rem;
        background: var(--navy);
        color: var(--cream);
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 0.28rem 0.7rem;
        border-radius: 20px;
    }

    .blog_post_body {
        padding: 1.4rem 1.4rem 1.6rem;
    }

    .blog_post_meta {
        display: flex;
        gap: 1.1rem;
        font-size: 0.78rem;
        color: #8a8f99;
        margin-bottom: 0.7rem;

        i {
            color: var(--gold);
            margin-right: 0.3rem;
        }
    }

    .blog_post_title {
        font-size: 1.08rem;
        margin: 0 0 0.6rem;

        a {
            color: var(--navy);
        }

        a:hover {
            color: var(--gold);
        }
    }

    .blog_post_excerpt {
        color: #5a606c;
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .card_link {
        color: var(--navy);
        font-weight: 600;
        font-size: 0.88rem;
    }

    .card_link:hover {
        color: var(--gold);
    }

    .blog_no_posts {
        text-align: center;
        padding: 3rem 1rem;
        color: #5a606c;

        i {
            font-size: 1.6rem;
            color: var(--hairline);
            margin-bottom: 0.8rem;
        }

        p {
            margin-bottom: 1.2rem;
        }
    }
}

/* ── Pagination ───────────────────────────────────────────────── */

.blog_pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;

    span,
    a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        padding: 0 0.7rem;
        border: 1px solid var(--hairline);
        border-radius: 4px;
        color: var(--navy);
        font-size: 0.9rem;
    }

    a:hover {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--navy-deep);
    }

    span.current {
        background: var(--navy);
        border-color: var(--navy);
        color: var(--cream);
    }
}

/* ── Sidebar ──────────────────────────────────────────────────── */

.blog_sidebar {

    .sidebar_widget {
        border: 1px solid var(--hairline);
        border-radius: 6px;
        padding: 1.6rem 1.5rem;
        margin-bottom: 1.6rem;
    }

    .sidebar_widget_title {
        color: var(--navy);
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .blog_cat_list {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.6rem 0;
            border-bottom: 1px solid var(--hairline);
        }

        li:last-child {
            border-bottom: none;
        }

        a {
            color: #454b58;
            font-size: 0.92rem;
        }

        a:hover,
        a.active {
            color: var(--gold);
        }

        span {
            color: #8a8f99;
            font-size: 0.8rem;
        }
    }

    .more_blog_list {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .more_blog_card {
        display: flex;
        gap: 0.9rem;
        color: inherit;

        .more_blog_img_wrap {
            flex-shrink: 0;
            width: 76px;
            height: 76px;
            border-radius: 6px;
            overflow: hidden;
            background: var(--cream);
        }

        .more_blog_img,
        .more_blog_img_placeholder {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .more_blog_body {
            min-width: 0;
        }

        .more_blog_date {
            display: block;
            font-size: 0.72rem;
            color: #8a8f99;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 0.3rem;
        }

        .more_blog_title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--navy);
            line-height: 1.35;
            margin: 0;
            transition: color 0.2s ease;
        }
    }

    .more_blog_card:hover .more_blog_title {
        color: var(--gold);
    }

    .sidebar_cta_widget {
        background: var(--navy);
        color: var(--cream);
        text-align: center;

        p {
            font-size: 0.9rem;
            color: rgba(247, 244, 236, 0.8);
            margin-bottom: 1.2rem;
        }
    }
}
