/* ============================================
   Maxxess Insights Grid
   Bundled with the plugin. No need to paste
   anything into Additional CSS.
   ============================================ */

.mx-insights {
    --mx-black: #272726;
    --mx-grey: #6b7280;
    --mx-green: #8bc041;

    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.mx-insights *,
.mx-insights *::before,
.mx-insights *::after { box-sizing: border-box; }

.mx-insights__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* When the shortcode runs with feature="no" */
.mx-insights__grid--no-feature {
    grid-template-columns: 1fr;
}

/* ---------- FEATURE (left, large) ---------- */

.mx-insight-feature {
    display: flex;
    flex-direction: column;
}
.mx-insight-feature__image-link {
    display: block;
    margin-bottom: 22px;
    overflow: hidden;
}
.mx-insight-feature__image-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/11;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.mx-insight-feature__image-link:hover img { transform: scale(1.03); }

.mx-insight-feature__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13pt;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mx-black);
    text-transform: uppercase;
    margin: 0 0 12px 0;
}
.mx-insight-feature__excerpt {
    font-size: 12pt;
    line-height: 1.6;
    color: var(--mx-grey);
    margin: 0 0 18px 0;
    max-width: 520px;
}
.mx-insight-feature__meta {
    font-size: 10pt;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mx-grey);
    margin: 0;
    font-weight: 600;
}

/* ---------- LIST (right, stacked cards) ---------- */

.mx-insight-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mx-insight-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
}

.mx-insight-card__image-link {
    display: block;
    overflow: hidden;
}
.mx-insight-card__image-link img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.mx-insight-card__image-link:hover img { transform: scale(1.05); }

.mx-insight-card__body {
    display: flex;
    flex-direction: column;
}

.mx-insight-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 12pt;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--mx-black);
    text-transform: uppercase;
    margin: 0 0 10px 0;
}
.mx-insight-card__excerpt {
    font-size: 11pt;
    line-height: 1.55;
    color: var(--mx-grey);
    margin: 0 0 14px 0;
}
.mx-insight-card__meta {
    font-size: 10pt;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mx-grey);
    margin: 0;
    font-weight: 600;
}

/* ---------- TITLE LINKS ---------- */

.mx-insight-feature__title a,
.mx-insight-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}
.mx-insight-feature__title a:hover,
.mx-insight-card__title a:hover {
    color: var(--mx-green);
}

/* ---------- PLACEHOLDER (post with no featured image) ---------- */

.mx-insight-placeholder {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.mx-insight-feature__image-link .mx-insight-placeholder {
    aspect-ratio: 16/11;
}
.mx-insight-card__image-link .mx-insight-placeholder {
    aspect-ratio: 4/3;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1024px) {
    .mx-insight-card { grid-template-columns: 160px 1fr; gap: 18px; }
}

@media (max-width: 768px) {
    .mx-insights__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .mx-insight-card {
        grid-template-columns: 140px 1fr;
        gap: 16px;
        text-align: center;
    }

    .mx-insight-feature__excerpt {
        max-width: 100%;
    }

    .mx-insight-feature__title,
    .mx-insight-card__title {
        font-size: 25px;
    }
    .mx-insight-feature__excerpt,
    .mx-insight-card__excerpt,
    .mx-insight-feature__meta,
    .mx-insight-card__meta {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mx-insight-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mx-insight-card__image-link img,
    .mx-insight-card__image-link .mx-insight-placeholder { aspect-ratio: 16/10; }
}
