/**
 * Blog listing/detail styles aligned to Figma node 3:138.
 * Keep dynamic behavior in Blade/Livewire unchanged.
 */
:root {
    --bf-teal: #1ec2d8;
    --bf-green: #006b2c;
    --bf-yellow: #f7dd5d;
    --bf-bg: #f8f9fa;
    --bf-text: #191c1d;
    --bf-muted: #6e7b6c;
    --bf-border: #e8ecef;
    --bf-gradient: linear-gradient(105deg, #1ec2d8 0%, #f7dd5d 100%);
}

.blog-figma,
.blog-figma-detail {
    font-family: "Poppins", "Inter", system-ui, sans-serif;
    color: var(--bf-text);
}

.blog-figma {
    background: var(--bf-bg);
}

.blog-figma * {
    box-sizing: border-box;
}

/* Hero */
.bf-hero {
    text-align: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 20px 32px;
}

.bf-badge {
    display: inline-block;
    margin-bottom: 32px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #23502c;
    background: var(--bf-gradient);
}

.bf-hero-title {
    margin: 0 0 24px;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.bf-hero-title .bf-accent-yellow,
.bf-hero-title .bf-accent-teal {
    background: var(--bf-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.bf-hero-sub {
    max-width: 672px;
    margin: 0 auto 0;
    color: #3e4a3d;
    font-size: 20px;
    line-height: 1.625;
}

.bf-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px;
}

.bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.15s ease;
}

.bf-btn:hover {
    transform: translateY(-1px);
}

.bf-btn-primary {
    background: var(--bf-gradient);
    color: #fff;
}

.bf-btn-outline {
    background: #fff;
    color: var(--bf-green);
    border-color: var(--bf-green);
    padding: 14px 34px;
}

/* Find/Search */
.bf-find {
    max-width: 1120px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.bf-find-title {
    margin: 0 0 24px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
}

.bf-find-bar {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 16px;
    background: #fff;
}

.bf-find-input-wrap {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f3f4f5;
}

.bf-find-input-wrap svg {
    opacity: 0.5;
}

.bf-find-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--bf-text);
    font-size: 16px;
}

.bf-find-input::placeholder {
    color: #6e7b6c;
}

.bf-find-select-wrap {
    flex: 0 0 256px;
    position: relative;
    border-radius: 12px;
    background: #f3f4f5;
}

.bf-find-select {
    width: 100%;
    border: 0;
    outline: none;
    appearance: none;
    background: transparent;
    color: var(--bf-text);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 40px 12px 16px;
}

.bf-find-select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 1.8px solid #6b7280;
    border-bottom: 1.8px solid #6b7280;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.bf-find-submit {
    border: 0;
    cursor: pointer;
    padding: 12px 32px;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: var(--bf-gradient);
}

/* Grid */
.bf-insights {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 120px;
}

.bf-insights-head {
    text-align: center;
    margin-bottom: 28px;
}

.bf-insights-head h2 {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 700;
}

.bf-insights-head p {
    margin: 0;
    color: #3e4a3d;
    font-size: 16px;
}

.bf-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bf-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bf-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.bf-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bf-card-badge {
    position: absolute;
    top: 12px;
    left: 16px;
    padding: 3.5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--bf-green);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
}

.bf-card-body {
    display: flex;
    flex-direction: column;
    padding: 32px;
    flex: 1;
}

.bf-card-meta {
    margin-bottom: 16px;
    color: var(--bf-muted);
    font-size: 12px;
}

.bf-card-title {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.bf-card-title a {
    color: var(--bf-text);
    text-decoration: none;
}

.bf-card-excerpt {
    margin: 0;
    color: #3e4a3d;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    flex: 1;
}

.bf-card-more {
    margin-top: 16px;
    color: var(--bf-green);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.bf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 28px 0 0;
}

.bf-pagination a:not(.bf-page-nav),
.bf-pagination > span:not(.bf-page-nav):not(.bf-page-ellipsis),
.bf-pagination span.active {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #040404;
    background: #99a1af;
}

.bf-pagination span.active {
    background: var(--bf-gradient);
}

.bf-pagination .bf-page-nav {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 18px;
    text-decoration: none;
    color: var(--bf-teal);
    border: 1.5px solid var(--bf-teal);
}

.bf-pagination .disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* CTA */
.bf-cta {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 96px;
}

.bf-cta-inner {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 48px;
    padding: 96px 24px;
    background: linear-gradient(91deg, rgba(30, 194, 216, 0.9) 0%, rgba(250, 221, 78, 0.9) 100%);
}

.bf-cta-paw {
    position: absolute;
    top: 0;
    right: 0;
    width: 164px;
    height: 159px;
    opacity: 0.2;
}

.bf-cta-paw svg {
    width: 100%;
    height: 100%;
}

.bf-cta h2 {
    margin: 0 0 24px;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 800;
    color: #242524;
    position: relative;
    z-index: 1;
}

.bf-cta p {
    max-width: 740px;
    margin: 0 auto 32px;
    color: rgba(71, 72, 71, 0.8);
    font-size: 18px;
    line-height: 1.56;
    position: relative;
    z-index: 1;
}

.bf-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.bf-cta .bf-btn-primary {
    padding: 16px 40px;
}

.bf-cta .bf-btn-outline {
    padding: 16px 40px;
    color: var(--bf-text);
    border-color: transparent;
}

.empty-bf {
    text-align: center;
    color: var(--bf-muted);
    padding: 48px 20px;
}

/* detail page */
.blog-figma-detail {
    background: var(--bf-bg);
    padding-top: 32px;
}

.blog-figma-detail-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.bf-breadcrumb {
    
    align-items: center;
    gap: 4px;
    font-size: 12px;
    margin-bottom: 24px;
    color: #3e4a3d;
}

.bf-breadcrumb a {
    color: #3e4a3d;
    text-decoration: none;
    font-weight: 500;
}

.bf-breadcrumb strong {
    color: #191c1d;
    font-weight: 500;
}

.bf-breadcrumb span {
    margin: 0;
    color: #99a1af;
}

.bf-article-title {
    margin: 0;
    color: #191c1d;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.bf-article-lead {
    margin: 20px 0 0;
    max-width: 760px;
    color: #191c1d;
    font-size: 16px;
    line-height: 1.5;
}

.bf-meta-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border-top: 1px solid #c2c2c2;
    border-bottom: 1px solid #c2c2c2;
    padding: 16px 0;
}

.bf-meta-item {
    padding: 0 12px;
}

.bf-meta-item:not(:last-child) {
    border-right: 1px solid #c2c2c2;
}

.bf-label {
    display: block;
    margin-bottom: 4px;
    color: #c2c2c2;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.bf-meta-item strong {
    color: #191c1d;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.bf-rule {
    border: 0;
    height: 1px;
    background: #c2c2c2;
    margin: 0;
}

.bf-article-layout {
    margin-top: 54px;
    display: grid;
    grid-template-columns: minmax(0, 813px) minmax(320px, 432px);
    justify-content: space-between;
    gap: 40px;
    align-items: start;
}

.bf-main {
    min-width: 0;
}

.bf-featured {
    margin: 0 0 32px;
    border-radius: 24px;
    overflow: hidden;
}

.bf-featured img {
    width: 100%;
    height: 584px;
    object-fit: cover;
    display: block;
}

.bf-prose {
    color: #191c1d;
    font-size: 16px;
    line-height: 1.5;
}

.bf-prose p {
    margin: 0 0 20px;
}

.bf-prose h2,
.bf-prose h3 {
    margin: 0 0 12px;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;
}

.bf-prose h2:not(:first-child),
.bf-prose h3:not(:first-child) {
    margin-top: 32px;
}

.bf-prose blockquote {
    margin: 32px 0;
    padding: 0 0 0 8px;
    border-left: 0;
    color: #191c1d;
    font-size: 16px;
    line-height: 1.45;
    font-style: normal;
}

.bf-prose ul,
.bf-prose ol {
    margin: 12px 0 0;
    padding-left: 20px;
}

.bf-prose ul li,
.bf-prose ol li {
    margin-bottom: 8px;
}

.bf-prose ul.bf-checklist {
    list-style: none;
    padding-left: 0;
}

.bf-prose ul.bf-checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.bf-prose ul.bf-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #16a34a;
    box-shadow: inset 0 0 0 2px #16a34a;
}

.bf-prose ul.bf-checklist li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
}

.bf-sidebar {
    width: 100%;
}

.bf-sidebar-title {
    margin: 0 0 24px;
    color: #191c1d;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.bf-sidebar-card {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
}

.bf-sidebar-card:last-child {
    margin-bottom: 0;
}

.bf-sidebar-card img {
    width: 100%;
    height: 256px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.bf-sidebar-card-body {
    padding: 12px 0 0;
}

.bf-sidebar-card .bf-card-meta {
    margin-bottom: 8px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.bf-sidebar-card h4 {
    margin: 0;
    color: #191c1d;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
}

.bf-sidebar-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--bf-green);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .bf-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bf-article-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .bf-sidebar-title {
        font-size: 28px;
    }

    .bf-sidebar-card h4 {
        font-size: 24px;
    }
}

@media (max-width: 760px) {
    .bf-hero {
        padding-top: 56px;
    }

    .bf-hero-sub {
        font-size: 16px;
    }

    .bf-find-title,
    .bf-insights-head h2 {
        font-size: 30px;
    }

    .bf-find-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .bf-find-select-wrap {
        flex: 1 1 auto;
    }

    .bf-find-submit {
        width: 100%;
    }

    .bf-card-grid {
        grid-template-columns: 1fr;
    }

    .bf-card-body {
        padding: 24px;
    }

    .bf-pagination {
        gap: 10px;
    }

    .bf-cta-inner {
        border-radius: 28px;
        padding: 64px 20px;
    }

    .bf-cta p {
        font-size: 16px;
    }

    .blog-figma-detail-inner {
        padding-bottom: 56px;
    }

    .bf-article-title {
        font-size: clamp(34px, 9vw, 48px);
    }

    .bf-meta-grid {
        flex-wrap: wrap;
        gap: 10px;
    }

    .bf-meta-item {
        border-right: 0 !important;
        padding: 0;
        min-width: 46%;
    }

    .bf-featured img {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .bf-prose h2,
    .bf-prose h3 {
        font-size: 30px;
    }

    .bf-sidebar-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .bf-sidebar-card img {
        height: 220px;
    }

    .bf-sidebar-card h4 {
        font-size: 22px;
    }
}
