/* Premium editorial treatment for the homepage Knowledge Hub preview. */
.mep-insights {
    position: relative;
    isolation: isolate;
    padding: clamp(5.25rem, 7vw, 7.5rem) 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 22%),
        linear-gradient(135deg, #12151b 0%, #15171c 52%, #171316 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.055);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mep-insights-ambient {
    position: absolute;
    z-index: -1;
    top: -22rem;
    right: -15rem;
    width: 48rem;
    height: 48rem;
    border-radius: 50%;
    opacity: 0.42;
    background: radial-gradient(circle, rgba(255, 92, 58, 0.16), rgba(255, 92, 58, 0.035) 42%, transparent 70%);
    filter: blur(8px);
    pointer-events: none;
}

.mep-insights-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: end;
    gap: clamp(2rem, 6vw, 7rem);
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
    padding: 0 0 clamp(2rem, 3vw, 2.75rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
}

.mep-insights-heading-primary .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.mep-insights-heading-primary .section-subtitle::before {
    content: '';
    width: 34px;
    height: 1px;
    background: var(--accent-electric);
    box-shadow: 0 0 12px rgba(255, 92, 58, 0.45);
}

.mep-insights-heading h2 {
    max-width: 760px;
    margin: 0;
    color: #f6f7f9;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.4vw, 5.7rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.mep-insights-heading h2 span {
    color: var(--accent-electric);
}

.mep-insights-heading-secondary {
    max-width: 520px;
    padding-bottom: 0.35rem;
}

.mep-insights-heading-secondary p {
    margin: 0 0 1.5rem;
    color: rgba(235, 238, 243, 0.66);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.72;
}

.mep-insights-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f5f6f8;
    font-weight: 650;
    transition: color 180ms ease, gap 180ms ease;
}

.mep-insights-header-link svg {
    width: 17px;
    height: 17px;
    color: var(--accent-electric);
}

.mep-insights-header-link:hover {
    gap: 0.78rem;
    color: var(--accent-electric);
}

.mep-insights-grid {
    display: grid;
    grid-template-columns: 1.12fr 1fr 1fr;
    gap: clamp(1rem, 1.6vw, 1.55rem);
}

.mep-insights-grid .blog-card-link {
    min-width: 0;
    height: 100%;
}

.mep-insights-grid .blog-card {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 475px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        #171a20;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.mep-insights-grid .blog-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 92, 58, 0.08), transparent 42%);
    transition: opacity 220ms ease;
}

.mep-insights-grid .blog-card-link:hover .blog-card {
    transform: translateY(-7px);
    border-color: rgba(255, 92, 58, 0.34);
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 92, 58, 0.04);
}

.mep-insights-grid .blog-card-link:hover .blog-card::after {
    opacity: 1;
}

.mep-insights-media {
    position: relative;
    aspect-ratio: 16 / 8.6;
    overflow: hidden;
    background: #0e1116;
}

.mep-insights-grid .blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) contrast(1.03) brightness(0.85);
    transition: transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1), filter 260ms ease;
}

.mep-insights-grid .blog-card-link:hover .blog-card-image {
    transform: scale(1.045);
    filter: saturate(1.02) contrast(1.05) brightness(0.95);
}

.mep-insights-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.03), rgba(10, 12, 16, 0.42));
}

.mep-insights-number {
    position: absolute;
    z-index: 1;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(10, 12, 16, 0.52);
    backdrop-filter: blur(12px);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mep-insights-grid .blog-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.35rem, 1.8vw, 1.75rem);
}

.mep-insights-grid .blog-card-meta {
    margin-bottom: 1.15rem;
}

.mep-insights-grid .blog-card-title {
    margin-bottom: 0.8rem;
    color: #f4f5f7;
    font-size: clamp(1.18rem, 1.45vw, 1.42rem);
    line-height: 1.28;
    letter-spacing: -0.022em;
}

.mep-insights-grid .blog-card-excerpt {
    display: -webkit-box;
    margin-bottom: 1.5rem;
    overflow: hidden;
    color: rgba(232, 235, 240, 0.62);
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mep-insights-grid .blog-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    color: rgba(232, 235, 240, 0.57);
}

.mep-insights-grid .blog-read-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.mep-insights-grid .blog-read-time svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 980px) {
    .mep-insights-heading {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .mep-insights-heading-secondary {
        max-width: 680px;
    }

    .mep-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mep-insights-grid .blog-card-link:first-child {
        grid-column: 1 / -1;
    }

    .mep-insights-grid .blog-card-link:first-child .blog-card {
        display: grid;
        min-height: 0;
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    }

    .mep-insights-grid .blog-card-link:first-child .mep-insights-media {
        height: 100%;
        min-height: 360px;
        aspect-ratio: auto;
    }
}

@media (max-width: 680px) {
    .mep-insights {
        padding: 4.5rem 0;
    }

    .mep-insights-heading h2 {
        font-size: clamp(2.75rem, 13vw, 4.4rem);
    }

    .mep-insights-grid {
        grid-template-columns: 1fr;
    }

    .mep-insights-grid .blog-card-link:first-child {
        grid-column: auto;
    }

    .mep-insights-grid .blog-card-link:first-child .blog-card {
        display: flex;
    }

    .mep-insights-grid .blog-card-link:first-child .mep-insights-media {
        min-height: 0;
        aspect-ratio: 16 / 8.6;
    }

    .mep-insights-grid .blog-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mep-insights-grid .blog-card,
    .mep-insights-grid .blog-card-image,
    .mep-insights-header-link {
        transition: none;
    }
}