/* =============================================
   V2 Blog Insights Block
   ============================================= */

/* ── Section ── */
.v2-bi-section {
    padding: 60px 0;
    position: relative;
}

/* ── Background presets ── */
.v2-bi-bg-white {
    background-color: #ffffff;
}

.v2-bi-bg-light-gray {
    background-color: #f8fafc;
}

.v2-bi-bg-dark {
    background-color: #0f172a;
}

/* ── Text color presets ── */
.v2-bi-text-dark {
    color: #1e293b;
}

.v2-bi-text-dark .v2-bi-card-title {
    color: var(--primary-color);
}

.v2-bi-text-dark .v2-bi-card-date {
    color: #64748b;
}

.v2-bi-text-light {
    color: #f1f5f9;
}


/* ── Header ── */
.v2-bi-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.v2-bi-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.v2-bi-text-light .v2-bi-title {
    color: #f1f5f9;
}

/* ── Section Decorative line ── */
.v2-bi-decor-line {
    display: block;
    width: 35px;
    height: 6px;
    border-radius: 6px;
    background-color: #ea580c;
    margin: 0 auto;
}

/* ── Blog Grid ── */
.v2-bi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* ── Blog Card ── */
.v2-bi-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ── Card Image ── */
.v2-bi-card-image {
    flex: 0 0 30%;
    max-width: 30%;
    min-height: 150px;
    overflow: hidden;
    position: relative;
}

.v2-bi-card-image a {
    display: block;
    height: 100%;
}

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

.v2-bi-card-image::after {
    content: "+";
    font-size: 30px;
    color: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: 300;
    opacity: 0;
}

.v2-bi-card-image::before {
    content: "";
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
}

.v2-bi-card:hover .v2-bi-card-image::before, .v2-bi-card:hover .v2-bi-card-image::after {
    opacity: 1;
}

/* ── Placeholder when no image ── */
.v2-bi-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 150px;
    background-color: #d1d5db;
    position: relative;
}

.v2-bi-card-placeholder::after {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1;
}

/* ── Card Content ── */
.v2-bi-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
}

/* ── Card Title ── */
.v2-bi-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 14px;
    color: var(--primary-color);
}

/* ── Card Decorative Line (orange line under title) ── */
.v2-bi-card-line {
    display: block;
    width: 35px;
    height: 6px;
    border-radius: 6px;
    background-color: #ea580c;
    margin-bottom: 16px;
}

/* ── Card Meta (date + read more on same row) ── */
.v2-bi-card-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: auto;
}

.v2-bi-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
    font-weight: 400;
    white-space: nowrap;
}

.v2-bi-date-icon {
    flex-shrink: 0;
    color: #1e3a5f;
}

.v2-bi-text-light .v2-bi-date-icon {
    color: #94a3b8;
}

/* ── Read More Link ── */
.v2-bi-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    margin-left: auto;
}

.v2-bi-read-more:hover {
    color: #c2410c;
    gap: 8px;
}

.v2-bi-read-more svg {
    transition: transform 0.2s ease;
}

.v2-bi-read-more:hover svg {
    transform: translateX(2px);
}

/* =============================================
   Dark Background Card Overrides
   ============================================= */
.v2-bi-bg-dark .v2-bi-card {
    background-color: #1e293b;
}

.v2-bi-bg-dark .v2-bi-card-title {
    color: #f1f5f9;
}

.v2-bi-bg-dark .v2-bi-card-date {
    color: #94a3b8;
}

.v2-bi-bg-dark .v2-bi-card-placeholder {
    background-color: #334155;
}

/* =============================================
   Responsive
   ============================================= */

/* Tablet landscape */
@media (max-width: 1024px) {
    .v2-bi-title {
        font-size: 30px;
    }

    .v2-bi-grid {
        gap: 24px;
    }

    .v2-bi-card-content {
        padding: 20px;
    }

    .v2-bi-card-title {
        font-size: 16px;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .v2-bi-section {
        padding: 48px 0;
    }

    .v2-bi-header {
        margin-bottom: 32px;
    }

    .v2-bi-title {
        font-size: 26px;
    }

    .v2-bi-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .v2-bi-card {
        flex-direction: row;
    }

    .v2-bi-card-image {
        flex: 0 0 38%;
        max-width: 38%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .v2-bi-section {
        padding: 40px 0;
    }

    .v2-bi-title {
        font-size: 22px;
    }

    .v2-bi-card {
        flex-direction: column;
    }

    .v2-bi-card-image {
        flex: none;
        max-width: 100%;
        min-height: 180px;
    }

    .v2-bi-card-placeholder {
        min-height: 180px;
    }

    .v2-bi-card-content {
        padding: 16px;
    }

    .v2-bi-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .v2-bi-card-line {
        margin-bottom: 12px;
    }

    .v2-bi-card-meta {
        gap: 12px;
    }

    .v2-bi-card-date {
        font-size: 13px;
    }

    .v2-bi-read-more {
        font-size: 14px;
    }
}
