/* main demo container — mimics your layout but ensures responsive side-by-side blogs */
.insights-right {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.insight-card {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-blue {
    /* subtle blue accent border / top glow */
    border-top: 4px solid #2c7da0;
}

.latest-blogs {
    padding: 1.8rem 2rem 2rem 2rem;
    background: #ffffff;
}

.latest-blogs h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1f4870, #2c7da0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.75rem;
    border-left: 5px solid #2c7da0;
    padding-left: 1rem;
    display: inline-block;
}

/* ========== KEY: SIDE BY SIDE (3 COLUMNS) ========== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0.5rem;
}

/* BLOG CARD STYLES — unified, modern, side-by-side layout */
.blog-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(44, 125, 160, 0.15);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -12px rgba(0, 0, 0, 0.2);
    border-color: rgba(44, 125, 160, 0.3);
}

/* image link + container — fixed aspect ratio for uniformity */
.blog-img {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f0f4f9;
    position: relative;
    aspect-ratio: 16 / 10;
}

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

.blog-card:hover .blog-img img {
    transform: scale(1.03);
}

/* content area */
.blog-content {
    padding: 1.4rem 1.3rem 1.6rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0a4b6e;
    text-decoration: none;
    transition: color 0.2s;
    margin-bottom: 0.75rem;
    display: inline-block;
    word-break: break-word;
}

.blog-title:hover {
    color: #1f6392;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-date {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c7a8e;
    background: #f0f4fa;
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    width: fit-content;
    margin-top: auto;
}

/* loading & error states */
.loading-placeholder {
    grid-column: span 3;
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #2c7da0;
    background: #f8fafd;
    border-radius: 2rem;
    font-weight: 500;
}

.error-message {
    grid-column: span 3;
    text-align: center;
    padding: 2.5rem;
    background: #fff5f0;
    border-radius: 2rem;
    color: #b13e3e;
    font-weight: 500;
    border-left: 4px solid #e07c4c;
}

/* responsive: tablet -> 2 columns, mobile -> 1 column */
@media (max-width: 950px) {
    .blog-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    }
    .latest-blogs {
    padding: 1.5rem;
    }
    .latest-blogs h3 {
    font-size: 1.6rem;
    }
}

@media (max-width: 620px) {
    body {
    padding: 1rem;
    }
    .blog-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    }
    .blog-title {
    font-size: 1.1rem;
    }
}

/* subtle animation for cards */
@keyframes fadeSlideUp {
    from {
    opacity: 0;
    transform: translateY(18px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.blog-card {
    animation: fadeSlideUp 0.4s ease-out forwards;
}