.nexergia-contextual {
    --nexergia-accent: #2352ee;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin: 44px 0;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid #c9d3e1;
    border-left: 6px solid var(--nexergia-accent);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
    color: #071a3d;
    box-shadow: 0 14px 34px rgba(7, 26, 61, 0.08);
}

.nexergia-contextual--industrial {
    --nexergia-accent: #b95a30;
}

.nexergia-contextual__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #1746c5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.news-details .single-para .nexergia-contextual h2 {
    margin: 0 0 10px;
    color: #071a3d;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.2;
}

.news-details .single-para .nexergia-contextual__description {
    max-width: 720px;
    margin: 0;
    color: #405474;
    font-size: 1.04rem;
    line-height: 1.65;
}

.nexergia-contextual__cta {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #1746c5;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.nexergia-contextual__cta:hover {
    background: #0e349b;
    color: #ffffff;
    transform: translateY(-1px);
}

.nexergia-contextual__cta:focus-visible {
    outline: 3px solid #f5c518;
    outline-offset: 4px;
}

.theme-dark .nexergia-contextual {
    border-color: #46566f;
    background: linear-gradient(135deg, #111828 0%, #172238 100%);
    color: #ffffff;
}

.theme-dark .news-details .single-para .nexergia-contextual h2 {
    color: #ffffff;
}

.theme-dark .news-details .single-para .nexergia-contextual__description {
    color: #d5deec;
}

.theme-dark .nexergia-contextual__eyebrow {
    color: #9bb7ff;
}

@media (max-width: 768px) {
    .nexergia-contextual {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 34px 0;
        padding: 24px;
    }

    .nexergia-contextual__cta {
        width: 100%;
    }
}
