/* Shared blog/insights layout styles */

/* Optional hero banner (only if used by a page) */
.insights-hero {
    position: relative;
    overflow: hidden;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.insights-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/img/page-header.jpg') center/cover no-repeat;
    z-index: 0;
    filter: brightness(0.6);
}
.insights-hero h2 { position: relative; z-index: 1; font-size: 48px; font-weight: 700; margin: 0; }

/* Card grid */
.insights-grid .blog-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-bottom: 30px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100% !important;
}
.insights-grid .blog-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.insights-grid .blog-thumb img { width: 100%; height: 260px; object-fit: cover; display: block; }
.insights-grid .blog-content { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.insights-grid .blog-content h2 { margin: 0 0 10px; line-height: 1.35; font-weight: 700; }
.insights-grid .blog-content p {
    color: #555; font-size: 15px; margin: 0 0 16px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.insights-grid .blog-meta { display: flex; justify-content: space-between; color: #888; font-size: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f0f0; }

/* Equal-height columns */
.insights-grid [class^="col-"], .insights-grid [class*=" col-"] { display: flex; }

@media (max-width: 768px) {
    .insights-hero { height: 280px; }
    .insights-hero h2 { font-size: 36px; }
}

    .insights-hero {
        position: relative;
        overflow: hidden;
        height: 360px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        text-align: center;
    }
    .insights-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('assets/img/page-header.jpg') center/cover no-repeat;
        z-index: 0;
        filter: brightness(0.6);
    }
    .insights-hero h2 {
        position: relative;
        z-index: 1;
        font-size: 48px;
        font-weight: 700;
        margin: 0;
    }

    .insights-grid .blog-item {
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        transition: transform .2s ease, box-shadow .2s ease;
        margin-bottom: 30px;
        border: 1px solid #eee;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .insights-grid .blog-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }
    .insights-grid .blog-thumb img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        display: block;
    }
    .insights-grid .blog-content {
        padding: 18px 22px 20px;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }
    .insights-grid .blog-content h2 { 
        margin: 0 0 10px; 
        line-height: 1.35; 
        font-weight: 700; 
        text-align: left;
    }
    .blog-content a{
        color: #000;
    }
    .blog-content a:hover{
        color: #fecc00;
    }
    .insights-grid .blog-content p {
        color: #555;
        font-size: 15px;
        margin: 0 0 16px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .insights-grid .blog-meta { display: flex; justify-content: space-between; color: #888; font-size: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #f0f0f0; }

    /* Equal height columns */
    .insights-grid [class^="col-"], .insights-grid [class*=" col-"] { display: flex; }
