/* ============================================================
       BLOG LISTING — matches the site's black & white theme
       ============================================================ */
    .blog-page * { box-sizing: border-box; }

    .blog-page {
        --bp-primary: #000000;
        --bp-dark: #111111;
        --bp-text: #222222;
        --bp-gray: #666666;
        --bp-light-gray: #f5f5f5;
        --bp-medium-gray: #e5e5e5;
        --bp-border: #e0e0e0;
        --bp-transition: all 0.25s ease;
        color: var(--bp-text);
    }

    .blog-page .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Hero */
    .blog-page .blog-hero {
        background: linear-gradient(rgba(0,0,0,0.88), rgba(0,0,0,0.92)),
                    url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
        background-size: cover;
        background-position: center;
        color: #fff;
        padding: 90px 20px 110px;
        text-align: center;
    }

    .blog-page .blog-hero h1 {
        font-size: 42px;
        font-weight: 800;
        margin: 0 0 16px;
        letter-spacing: -0.5px;
    }

    .blog-page .blog-hero p {
        max-width: 640px;
        margin: 0 auto 34px;
        color: #d8d8d8;
        font-size: 17px;
        line-height: 1.6;
    }

    .blog-page .search-box { max-width: 560px; margin: 0 auto; position: relative; }
    .blog-page .blog-search-form { display: flex; }
    .blog-page .blog-search-form input {
        flex: 1;
        padding: 16px 22px;
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 50px 0 0 50px;
        font-size: 16px;
        background: rgba(255,255,255,0.08);
        color: #fff;
        outline: none;
    }

    .blog-page .blog-search-form input::placeholder { color: rgba(255,255,255,0.65); }
    .blog-page .blog-search-form input:focus { background: rgba(255,255,255,0.14); }
    .blog-page .blog-search-form button {
        background: #fff;
        color: var(--bp-primary);
        border: none;
        border-radius: 0 50px 50px 0;
        padding: 0 26px;
        font-size: 16px;
        cursor: pointer;
        transition: var(--bp-transition);
    }
    .blog-page .blog-search-form button:hover { background: var(--bp-light-gray); }
    .blog-page #search-results {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.25);
        text-align: left;
        overflow: hidden;
        z-index: 50;
        max-height: 420px;
        overflow-y: auto;
    }

    /* Layout */
    .blog-page .blog-container {
        display: flex;
        gap: 40px;
        margin-top: -60px;
        margin-bottom: 40px;
    }

    .blog-page .blog-posts { flex: 1; min-width: 0; }
    /* Active filter chip */
    .blog-page .filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        background: #fff;
        border: 1px solid var(--bp-border);
        border-radius: 10px;
        padding: 16px 22px;
        margin-bottom: 26px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    }
    .blog-page .filter-bar strong { font-weight: 700; color: var(--bp-primary); }
    .blog-page .filter-bar a.clear-filter {
        color: var(--bp-gray);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border: 1px solid var(--bp-border);
        padding: 8px 16px;
        border-radius: 50px;
        transition: var(--bp-transition);
    }
    .blog-page .filter-bar a.clear-filter:hover { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
    /* Post cards */
    .blog-page .posts-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-page .blog-post-link { text-decoration: none; color: inherit; display: block; }
    .blog-page .blog-post {
        display: flex;
        gap: 26px;
        background: #fff;
        border: 1px solid var(--bp-border);
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 6px 22px rgba(0,0,0,0.04);
        transition: var(--bp-transition);
        opacity: 0;
        transform: translateY(16px);
    }

    .blog-page .blog-post.in-view { opacity: 1; transform: translateY(0); }
    .blog-page .blog-post:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 34px rgba(0,0,0,0.09);
        border-color: #ccc;
    }
    .blog-page .blog-post.in-view:hover { transform: translateY(-4px); }
    .blog-page .post-image {
        width: 280px;
        min-width: 280px;
        height: 100%;
        min-height: 200px;
        object-fit: cover;
        filter: grayscale(15%);
        transition: var(--bp-transition);
        background: var(--bp-light-gray);
    }
    .blog-page .blog-post:hover .post-image { filter: grayscale(0%); }
    .blog-page .post-content { padding: 24px 26px 24px 0; display: flex; flex-direction: column; }
    .blog-page .post-category {
        display: inline-block;
        align-self: flex-start;
        background: var(--bp-light-gray);
        color: var(--bp-primary);
        border: 1px solid #ddd;
        padding: 5px 14px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        margin-bottom: 12px;
    }

    .blog-page .post-title {
        font-size: 21px;
        font-weight: 800;
        line-height: 1.35;
        margin: 0 0 10px;
        color: var(--bp-primary);
    }

    .blog-page .post-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        font-size: 13px;
        color: var(--bp-gray);
        margin-bottom: 12px;
    }
    .blog-page .post-meta span { display: flex; align-items: center; gap: 6px; }
    .blog-page .post-excerpt {
        color: var(--bp-gray);
        font-size: 15px;
        line-height: 1.65;
        margin: 0 0 16px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .blog-page .read-more {
        margin-top: auto;
        font-weight: 700;
        font-size: 14px;
        color: var(--bp-primary);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        text-decoration: none;
    }
    .blog-page .blog-post:hover .read-more { gap: 12px; }
    .blog-page .read-more i { transition: var(--bp-transition); }
    .blog-page .no-posts {
        text-align: center;
        padding: 70px 20px;
        background: #fff;
        border: 1px dashed var(--bp-border);
        border-radius: 14px;
    }
    .blog-page .no-posts h2 { margin: 0 0 10px; color: var(--bp-primary); }
    .blog-page .no-posts p { color: var(--bp-gray); }
    /* Sidebar */
    .blog-page .sidebar { width: 340px; min-width: 340px; align-self: flex-start; position: sticky; top: 24px; }

    .blog-page .skip-link {
        position: absolute;
        left: -999px;
        top: 0;
        background: #000;
        color: #fff;
        padding: 12px 20px;
        border-radius: 0 0 8px 0;
        z-index: 999;
        text-decoration: none;
        font-weight: 700;
    }
    .blog-page .skip-link:focus { left: 0; }

    .blog-page .breadcrumb-bar {
        padding: 18px 0;
        font-size: 14px;
        color: var(--bp-gray);
    }
    .blog-page .breadcrumb-bar a { color: var(--bp-gray); text-decoration: none; }
    .blog-page .breadcrumb-bar a:hover { color: var(--bp-primary); text-decoration: underline; }
    .blog-page .breadcrumb-bar span.sep { margin: 0 8px; color: #bbb; }
    .blog-page .breadcrumb-bar span.current { color: var(--bp-primary); font-weight: 600; }

    @media print {
        .blog-page .blog-hero,
        .blog-page .sidebar,
        .blog-page .newsletter,
        .blog-page .pagination,
        .blog-page .back-to-top,
        .blog-page .breadcrumb-bar { display: none !important; }
        .blog-page .blog-container { margin-top: 0; }
        .blog-page .blog-post { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
    }
    .blog-page .sidebar-widget {
        background: #fff;
        border: 1px solid var(--bp-border);
        border-radius: 12px;
        padding: 26px;
        margin-bottom: 24px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .blog-page .widget-title {
        font-size: 18px;
        font-weight: 800;
        color: var(--bp-primary);
        margin: 0 0 20px;
        padding-bottom: 14px;
        border-bottom: 2px solid var(--bp-light-gray);
    }

    .blog-page .categories-list { list-style: none; margin: 0; padding: 0; }
    .blog-page .categories-list li { margin-bottom: 12px; }
    .blog-page .categories-list li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--bp-dark);
        text-decoration: none;
        padding: 6px 0;
        transition: var(--bp-transition);
        font-size: 15px;
    }
    .blog-page .categories-list li a:hover { color: var(--bp-gray); transform: translateX(4px); }
    .blog-page .categories-list li a.active-category { font-weight: 800; }
    .blog-page .categories-list li a span {
        background: var(--bp-light-gray);
        border: 1px solid #ddd;
        padding: 2px 10px;
        border-radius: 20px;
        font-size: 12px;
        color: var(--bp-gray);
    }

    .blog-page .recent-posts { list-style: none; margin: 0; padding: 0; }
    .blog-page .recent-posts li {
        display: flex;
        gap: 14px;
        padding-bottom: 18px;
        margin-bottom: 18px;
        border-bottom: 1px solid var(--bp-light-gray);
    }
    .blog-page .recent-posts li:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
    .blog-page .recent-post-img {
        width: 68px; height: 68px;
        object-fit: cover;
        border-radius: 8px;
        filter: grayscale(25%);
        transition: var(--bp-transition);
    }
    .blog-page .recent-posts li:hover .recent-post-img { filter: grayscale(0%); }
    .blog-page .recent-post-content h4 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
    .blog-page .recent-post-content h4 a { color: var(--bp-dark); text-decoration: none; }
    .blog-page .recent-post-content h4 a:hover { color: var(--bp-gray); }
    .blog-page .recent-post-content span { font-size: 12.5px; color: var(--bp-gray); }
    .blog-page .tags-container { display: flex; flex-wrap: wrap; gap: 9px; }
    .blog-page .tag {
        background: var(--bp-light-gray);
        color: var(--bp-dark);
        border: 1px solid #ddd;
        padding: 7px 14px;
        border-radius: 30px;
        font-size: 13px;
        text-decoration: none;
        transition: var(--bp-transition);
    }
    .blog-page .tag:hover, .blog-page .tag.active-tag { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
    /* Pagination */
    .blog-page .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 44px 0 60px;
        flex-wrap: wrap;
    }
    .blog-page .pagination a {
        min-width: 42px;
        height: 42px;
        padding: 0 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        border: 1px solid var(--bp-border);
        color: var(--bp-dark);
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
        transition: var(--bp-transition);
        background: #fff;
    }
    .blog-page .pagination a:hover { border-color: var(--bp-primary); }
    .blog-page .pagination a.active { background: var(--bp-primary); color: #fff; border-color: var(--bp-primary); }
    .blog-page .pagination span.dots { padding: 0 4px; color: var(--bp-gray); }
    /* Newsletter */
    .blog-page .newsletter {
        background: var(--bp-primary);
        color: #fff;
        padding: 60px 40px;
        text-align: center;
        border-radius: 14px;
        margin: 20px 0 70px;
    }
    .blog-page .newsletter h2 { font-size: 32px; font-weight: 800; margin: 0 0 14px; }
    .blog-page .newsletter p { max-width: 560px; margin: 0 auto 28px; color: #ddd; }
    .blog-page .newsletter-form { max-width: 480px; margin: 0 auto; display: flex; gap: 0; }
    .blog-page .newsletter-form input {
        flex: 1;
        padding: 16px 22px;
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 50px 0 0 50px;
        background: rgba(255,255,255,0.1);
        color: #fff;
        font-size: 15px;
        outline: none;
    }
    .blog-page .newsletter-form input::placeholder { color: rgba(255,255,255,0.7); }
    .blog-page .newsletter-form button {
        background: #fff;
        color: var(--bp-primary);
        border: none;
        border-radius: 0 50px 50px 0;
        padding: 0 30px;
        font-weight: 700;
        cursor: pointer;
        transition: var(--bp-transition);
        min-width: 130px;
    }
    .blog-page .newsletter-form button:hover { background: var(--bp-light-gray); }
    .blog-page .newsletter-form button:disabled { opacity: 0.7; cursor: default; }
    .blog-page .newsletter-msg { margin-top: 14px; font-size: 14px; min-height: 20px; }
    .blog-page .newsletter-msg.success { color: #7CFF9E; }
    .blog-page .newsletter-msg.error { color: #ff9e9e; }
    /* Back to top */
    .blog-page .back-to-top {
        position: fixed;
        right: 26px;
        bottom: 26px;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: var(--bp-primary);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: var(--bp-transition);
        box-shadow: 0 8px 22px rgba(0,0,0,0.25);
        z-index: 60;
    }
    .blog-page .back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
    @media (max-width: 992px) {
        .blog-page .sidebar { width: 100%; min-width: 0; order: -1; position: static; }
        .blog-page .blog-container { flex-direction: column; margin-top: -40px; }
        .blog-page .blog-post { flex-direction: column; }
        .blog-page .post-image { width: 100%; min-width: 0; height: 220px; }
        .blog-page .post-content { padding: 22px; }
    }

    @media (max-width: 576px) {
        .blog-page .blog-hero { padding: 70px 16px 90px; }
        .blog-page .blog-hero h1 { font-size: 30px; }
        .blog-page .newsletter-form { flex-direction: column; }
        .blog-page .newsletter-form input { border-radius: 50px; margin-bottom: 12px; }
        .blog-page .newsletter-form button { border-radius: 50px; padding: 16px; }
        .blog-page .filter-bar { flex-direction: column; align-items: flex-start; }
    }
