/* ==========================================================================
   BLOG / INSIGHTS
========================================================================== */

.mg-insights {
    padding: 5rem 0 7rem;
}

.mg-insights-header {
    max-width: 760px;
    margin-bottom: 5rem;
}

.mg-insights-header .mg-kicker {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.mg-insights-header h1 {
    font-size: var(--fs-3xl);
    color: var(--color-heading);
    margin: 0 0 1.5rem 0;
}

.mg-insights-header .mg-lead {
    font-size: var(--fs-lg);
    color: var(--color-text);
    margin: 0;
    line-height: var(--lh-body);
}

/* Featured Article */
.mg-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.mg-featured-image {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.mg-featured-image img {
    width: 100%;
    display: block;
    border: 1px solid var(--color-border);
    transition: transform var(--transition);
}

.mg-featured:hover .mg-featured-image img {
    transform: scale(1.05);
}

.mg-featured-content h2 {
    margin: 0.75rem 0 1.25rem 0;
    font-size: var(--fs-2xl);
    line-height: var(--lh-heading);
}

.mg-featured-content h2 a {
    color: var(--color-heading);
    text-decoration: none;
    transition: color var(--transition);
}

.mg-featured-content h2 a:hover {
    color: var(--color-primary);
}

.mg-featured-content p {
    font-size: var(--fs-md);
    color: var(--color-text);
    line-height: var(--lh-body);
    margin-bottom: 1.5rem;
}

.mg-tag {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: var(--color-surface-alt);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
}

.mg-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Article Grid */
.mg-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

/* Card component styles are now in components.css */

/* Pagination */
.mg-pagination {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
}

.mg-pagination .older-posts,
.mg-pagination .newer-posts {
    display: inline-flex;
    padding: 1rem 2rem;
    border: 1px solid var(--color-border);
    color: var(--color-heading);
    text-decoration: none;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.mg-pagination .older-posts:hover,
.mg-pagination .newer-posts:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.mg-pagination-info {
    display: none;
}

/* Empty State */
.mg-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--color-muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .mg-featured {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mg-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .mg-insights {
        padding: 3rem 0 5rem;
    }

    .mg-insights-header {
        margin-bottom: 3rem;
    }

    .mg-insights-header h1 {
        font-size: var(--fs-2xl);
    }

    .mg-featured {
        margin-bottom: 4rem;
    }

    .mg-featured-content h2 {
        font-size: var(--fs-xl);
    }

    .mg-article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mg-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .mg-pagination .older-posts,
    .mg-pagination .newer-posts {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
