/* ════════════════════════════════════════════
   Content Block V2 — light companion to Hero V7
   Full-width text + image two-column block in
   the V2 family style: white background, no
   decorative shadows, accent-colored links.
   Image order is handled with grid `order`
   (no direction:rtl trick).
   Depends on scw-base (tokens + .scw-section).
   ════════════════════════════════════════════ */

.scw-cb2 {
    background: var(--scw-cb2-bg, #FFFFFF);
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.scw-cb2 *,
.scw-cb2 *::before,
.scw-cb2 *::after {
    box-sizing: border-box;
}

.scw-cb2__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── Image left: media first via order (text stays first in DOM) ── */
.scw-cb2--img-left .scw-cb2__media {
    order: -1;
}

/* ── Text column ── */
.scw-cb2__heading {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--scw-cb2-heading, #0F0F0F);
    margin: 0 0 24px;
}

.scw-cb2__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--scw-cb2-text, #52525B);
}

.scw-cb2__body p {
    margin: 0 0 16px;
}

.scw-cb2__body p:last-child {
    margin-bottom: 0;
}

.scw-cb2__body a {
    color: var(--scw-cb2-a2, #EC4899);
    text-decoration: none;
}

.scw-cb2__body a:hover {
    text-decoration: underline;
}

.scw-cb2__body strong,
.scw-cb2__body b {
    color: var(--scw-cb2-heading, #0F0F0F);
}

/* ── Image column ── */
.scw-cb2__media {
    border-radius: var(--scw-cb2-radius, 20px);
    overflow: hidden;
}

.scw-cb2__media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1023px)
   ════════════════════════════════════════════ */
@media (max-width: 1023px) {
    .scw-cb2__inner {
        gap: 40px;
    }

    .scw-cb2__heading {
        font-size: clamp(24px, 3vw, 32px);
    }

    .scw-cb2__body {
        font-size: 15px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 767px)
   ════════════════════════════════════════════ */
@media (max-width: 767px) {
    .scw-cb2__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Always text first, image below on mobile (overrides the img-left order) */
    .scw-cb2__media,
    .scw-cb2--img-left .scw-cb2__media {
        order: 2;
    }

    .scw-cb2__heading {
        margin-bottom: 20px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-cb2__inner {
        gap: 24px;
    }

    .scw-cb2__heading {
        font-size: 24px;
    }
}

/* ── Elementor Editor Overrides ── */
.elementor-editor-active .scw-cb2 {
    min-height: 120px;
}
