
/* =========================================================
   B2BFINDER BLOG PAGE
   Reference Design - Purple SaaS Theme
========================================================= */

.b2bf-blog {
    --blog-purple: #5425f5;
    --blog-dark: #11142f;
    --blog-muted: #68718b;
    --blog-line: #e8eaf2;
    --blog-light: #f4f0ff;

    width: 100%;
    background: #fff;
    color: var(--blog-dark);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
}

.b2bf-blog *,
.b2bf-blog *::before,
.b2bf-blog *::after {
    box-sizing: border-box;
}

.b2bf-blog h1,
.b2bf-blog h2,
.b2bf-blog h3,
.b2bf-blog p {
    margin-top: 0;
}

.b2bf-blog a {
    text-decoration: none;
}

.b2bf-blog-container {
    width: min(1160px, calc(100% - 44px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.b2bf-blog-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--blog-line);
}

.b2bf-blog-header-inner {
    width: min(1160px, calc(100% - 44px));
    min-height: 68px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.b2bf-blog-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    color: var(--blog-dark) !important;
}

.b2bf-blog-logo strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.8px;
    color: var(--blog-dark);
}

.b2bf-blog-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--blog-purple);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}

.b2bf-blog-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
}

.b2bf-blog-nav a {
    position: relative;
    color: #34364b !important;
    font-size: 12px;
    font-weight: 600;
    transition: color .2s ease;
}

.b2bf-blog-nav a:hover,
.b2bf-blog-nav a.active {
    color: var(--blog-purple) !important;
}

.b2bf-blog-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--blog-purple);
}

.b2bf-blog-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.b2bf-blog-header-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.b2bf-blog-header-actions .blog-search-icon {
    color: var(--blog-purple) !important;
    font-size: 24px;
    margin-right: 8px;
}

.b2bf-blog-header-actions .blog-login {
    border: 1px solid var(--blog-line);
    color: var(--blog-dark) !important;
    background: #fff;
}

.b2bf-blog-header-actions .blog-start {
    background: var(--blog-purple);
    color: #fff !important;
    box-shadow: 0 5px 14px #5425f533;
}

.b2bf-blog-header-actions .blog-start:hover {
    background: #4218dc;
}


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

.b2bf-blog-hero {
    position: relative;
    background:
        radial-gradient(ellipse at 70% 30%, #e9e3ff 0%, transparent 48%),
        linear-gradient(105deg, #f8f6ff, #eeeaff 100%);
    overflow: hidden;
}

.b2bf-blog-hero::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -150px;
    top: 20px;
    border-radius: 50%;
    background: #e5ddff;
    opacity: .65;
}

.b2bf-blog-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 44px));
    min-height: 200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 30px;
}

.b2bf-blog-hero-content {
    padding: 25px 0;
}

.blog-eyebrow {
    display: inline-block;
    color: var(--blog-purple);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.b2bf-blog-hero-content h1 {
    font-size: clamp(32px, 3.4vw, 43px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.055em;
    color: var(--blog-dark);
    margin: 0 0 10px;
}

.b2bf-blog-hero-content h1 em {
    color: var(--blog-purple);
    font-style: normal;
}

.b2bf-blog-hero-content p {
    max-width: 510px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--blog-muted);
    margin: 0;
}

.b2bf-blog-hero-visual {
    align-self: stretch;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.b2bf-blog-hero-visual > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 13px 13px 0 0;
}

.blog-hero-placeholder {
    width: 90%;
    max-width: 390px;
    padding: 15px 19px;
    border: 5px solid #c6c1e8;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff, #f4f0ff);
    box-shadow: 0 12px 25px #29196620;
    transform: rotate(-2deg);
}

.hero-placeholder-logo {
    display: inline-grid;
    place-items: center;
    width: 19px;
    height: 19px;
    background: var(--blog-purple);
    color: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
}

.blog-hero-placeholder > strong {
    display: inline-block;
    font-size: 11px;
    margin-left: 5px;
}

.placeholder-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 9px 3px;
    border-bottom: 1px solid #e9e5f8;
    font-size: 9px;
    color: #66718e;
}

.placeholder-row:first-of-type {
    margin-top: 9px;
    font-weight: 800;
}


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.b2bf-blog-categories {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f5;
}

.blog-category-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-category-list::-webkit-scrollbar {
    display: none;
}

.blog-category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 33px;
    padding: 0 17px;
    border: 1px solid var(--blog-line);
    border-radius: 8px;
    color: #39435c !important;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #fff;
    transition: all .2s ease;
}

.blog-category-pill:hover {
    border-color: var(--blog-purple);
    color: var(--blog-purple) !important;
}

.blog-category-pill.active {
    background: var(--blog-purple);
    border-color: var(--blog-purple);
    color: #fff !important;
}


/* =========================================================
   BLOG MAIN LAYOUT
========================================================= */

.b2bf-blog-main {
    padding: 0 0 17px;
}

.b2bf-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(215px, .95fr);
    gap: 14px;
    align-items: start;
}

.b2bf-blog-primary {
    min-width: 0;
}

.b2bf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}


/* =========================================================
   BLOG CARDS
========================================================= */

.b2bf-blog-card {
    min-width: 0;
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px #21174b05;
    transition: transform .2s ease, box-shadow .2s ease;
}

.b2bf-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px #21174b12;
}

.blog-card-image {
    display: block;
    height: 96px;
    margin: 5px 5px 0;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(135deg, #eeeaff, #dcd5ff);
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.b2bf-blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: var(--blog-purple);
    background: linear-gradient(135deg, #f1edff, #ddd5ff);
}

.blog-card-placeholder span {
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.blog-card-placeholder strong {
    font-size: 10px;
}

.blog-card-content {
    padding: 9px 12px 10px;
}

.blog-card-category {
    display: inline-flex;
    align-items: center;
    background: #eee9ff;
    color: var(--blog-purple);
    border: 1px solid #e5ddff;
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 6px;
}

.blog-card-content h2 {
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -.035em;
    font-weight: 800;
    margin: 0 0 6px;
}

.blog-card-content h2 a {
    color: var(--blog-dark) !important;
}

.blog-card-content h2 a:hover {
    color: var(--blog-purple) !important;
}

.blog-card-excerpt {
    color: var(--blog-muted);
    font-size: 11px;
    line-height: 1.45;
    margin: 0 0 9px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    color: #69748e;
    font-size: 9px;
    line-height: 1.3;
}

.blog-card-meta img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-meta i {
    width: 1px;
    height: 11px;
    background: #d9dce6;
}


/* NO POSTS */

.blog-no-posts {
    grid-column: 1 / -1;
    padding: 45px 20px;
    text-align: center;
    border: 1px solid var(--blog-line);
    border-radius: 12px;
    background: #faf9ff;
}

.blog-no-posts h2 {
    font-size: 22px;
}

.blog-no-posts p {
    color: var(--blog-muted);
}

.blog-no-posts a {
    display: inline-flex;
    padding: 10px 18px;
    background: var(--blog-purple);
    color: #fff !important;
    border-radius: 7px;
}


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

.b2bf-blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.b2bf-blog-pagination .page-numbers {
    min-width: 34px;
    height: 33px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blog-line);
    border-radius: 7px;
    background: #fff;
    color: var(--blog-dark) !important;
    font-size: 11px;
    font-weight: 600;
}

.b2bf-blog-pagination .page-numbers:hover,
.b2bf-blog-pagination .page-numbers.current {
    background: var(--blog-purple);
    border-color: var(--blog-purple);
    color: #fff !important;
}


/* =========================================================
   SIDEBAR
========================================================= */

.b2bf-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.blog-sidebar-search,
.blog-sidebar-box {
    border: 1px solid var(--blog-line);
    border-radius: 10px;
    background: #fff;
    padding: 11px;
}

.blog-sidebar-search form {
    display: flex;
    align-items: center;
    position: relative;
}

.blog-sidebar-search input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 34px 0 11px;
    border: 1px solid #e1e5ef;
    border-radius: 7px;
    background: #fff;
    color: var(--blog-dark);
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.blog-sidebar-search input:focus {
    border-color: var(--blog-purple);
}

.blog-sidebar-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 27px;
    height: 27px;
    border: 0;
    background: transparent;
    color: var(--blog-muted);
    font-size: 21px;
    cursor: pointer;
}

.blog-sidebar-box h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.03em;
}

.blog-sidebar-category-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-sidebar-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 9px;
    border-radius: 6px;
    color: var(--blog-muted) !important;
    font-size: 10.5px;
    transition: all .2s ease;
}

.blog-sidebar-category-list a:hover {
    color: var(--blog-purple) !important;
    background: #f7f4ff;
}

.blog-sidebar-category-list a.active {
    color: var(--blog-purple) !important;
    background: #eeeaff;
}


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

.blog-newsletter {
    padding: 13px;
    border: 1px solid #e8e2ff;
    border-radius: 11px;
    background: linear-gradient(135deg, #f7f4ff, #fff);
}

.blog-newsletter-heading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-icon {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: #eee8ff;
    color: var(--blog-purple);
    border-radius: 10px;
    font-size: 19px;
}

.blog-newsletter-heading h3 {
    font-size: 13px;
    font-weight: 800;
    margin: 1px 0 3px;
    letter-spacing: -.03em;
}

.blog-newsletter-heading p {
    font-size: 10px;
    color: var(--blog-muted);
    line-height: 1.4;
    margin: 0;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.blog-newsletter-form input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e0e4ef;
    border-radius: 7px;
    font-family: inherit;
    font-size: 10px;
    background: #fff;
    outline: none;
}

.blog-newsletter-form input:focus {
    border-color: var(--blog-purple);
}

.blog-newsletter-form button {
    width: 100%;
    height: 35px;
    border: 0;
    border-radius: 7px;
    background: var(--blog-purple);
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

.blog-newsletter-form button:hover {
    background: #4218dc;
}

.blog-newsletter > small {
    display: block;
    text-align: center;
    color: var(--blog-muted);
    font-size: 9px;
    margin-top: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

.b2bf-blog-footer {
    border-top: 1px solid var(--blog-line);
    background: #fff;
    padding: 20px 0 0;
}

.blog-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 18px;
}

.blog-footer-brand > p {
    max-width: 260px;
    color: var(--blog-muted);
    font-size: 10px;
    line-height: 1.6;
    margin: 8px 0 12px;
}

.blog-footer-social {
    display: flex;
    align-items: center;
    gap: 17px;
}

.blog-footer-social a {
    color: #59637b !important;
    font-size: 16px;
    font-weight: 700;
}

.blog-footer-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-footer-column strong {
    font-size: 11px;
    font-weight: 800;
    color: var(--blog-dark);
    margin-bottom: 2px;
}

.blog-footer-column a {
    font-size: 10px;
    color: var(--blog-muted) !important;
    transition: color .2s ease;
}

.blog-footer-column a:hover {
    color: var(--blog-purple) !important;
}

.blog-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--blog-line);
    padding: 11px 0;
    color: var(--blog-muted);
    font-size: 9px;
}

.blog-footer-bottom b {
    color: #ff3b5c;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .b2bf-blog-header-inner {
        gap: 12px;
    }

    .b2bf-blog-nav {
        gap: 14px;
    }

    .b2bf-blog-nav a {
        font-size: 11px;
    }

    .b2bf-blog-layout {
        grid-template-columns: minmax(0, 2.3fr) minmax(190px, .9fr);
    }

    .b2bf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-footer-grid {
        gap: 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .b2bf-blog-container,
    .b2bf-blog-header-inner,
    .b2bf-blog-hero-inner {
        width: calc(100% - 30px);
    }

    .b2bf-blog-header-inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        gap: 10px;
    }

    .b2bf-blog-logo strong {
        font-size: 17px;
    }

    .b2bf-blog-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 6px 0;
        gap: 20px;
    }

    .b2bf-blog-nav a {
        white-space: nowrap;
    }

    .b2bf-blog-nav a.active::after {
        bottom: -7px;
    }

    .b2bf-blog-header-actions {
        gap: 5px;
    }

    .b2bf-blog-header-actions a {
        min-height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }

    .b2bf-blog-header-actions .blog-search-icon {
        font-size: 21px;
        margin-right: 2px;
    }

    .b2bf-blog-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .b2bf-blog-hero-content {
        padding: 30px 0 12px;
    }

    .b2bf-blog-hero-content h1 {
        font-size: 31px;
    }

    .b2bf-blog-hero-content p {
        font-size: 12px;
    }

    .b2bf-blog-hero-visual {
        min-height: 140px;
    }

    .b2bf-blog-hero-visual > img {
        height: 140px;
        border-radius: 10px;
    }

    .blog-hero-placeholder {
        width: 95%;
    }

    .b2bf-blog-categories {
        padding: 12px 0;
    }

    .blog-category-list {
        gap: 7px;
    }

    .blog-category-pill {
        min-height: 32px;
        padding: 0 12px;
        font-size: 10px;
    }

    .b2bf-blog-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .b2bf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .blog-card-image {
        height: 105px;
    }

    .blog-card-content {
        padding: 9px;
    }

    .blog-card-content h2 {
        font-size: 13px;
    }

    .blog-card-excerpt {
        font-size: 10px;
    }

    .blog-card-meta {
        gap: 5px;
        font-size: 9px;
    }

    .blog-card-meta img {
        width: 23px;
        height: 23px;
    }

    .b2bf-blog-sidebar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .blog-sidebar-box {
        padding: 14px;
    }

    .blog-newsletter {
        padding: 15px;
    }

    .blog-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .blog-footer-brand {
        grid-column: 1 / -1;
    }

    .blog-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .b2bf-blog-hero-content h1 {
        font-size: 27px;
    }

    .b2bf-blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-image {
        height: 150px;
    }

}
