/* ════════════════════════════════════════════
   Subpage Hero Widget — scw-sh
   Two-column hero for inner/subpages
   ════════════════════════════════════════════ */

.scw-sh {
    position: relative;
    background: linear-gradient(
        var(--scw-sh-bg-angle, 135deg),
        var(--scw-sh-bg-start, #fce4ec),
        var(--scw-sh-bg-end, #e8eaf6)
    );
    padding: 56px 32px 80px;
    overflow: hidden;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* ── Decorative gradient orbs ── */
.scw-sh__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.scw-sh__orb--1 {
    width: 360px;
    height: 360px;
    background: var(--scw-sh-accent, #e91e63);
    top: -120px;
    right: 10%;
}

.scw-sh__orb--2 {
    width: 280px;
    height: 280px;
    background: var(--scw-sh-bg-end, #e8eaf6);
    bottom: -80px;
    left: -60px;
}

/* ── Inner: two-column grid ── */
.scw-sh__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Centered fallback when no image */
.scw-sh--no-image .scw-sh__inner {
    grid-template-columns: 1fr;
    max-width: 760px;
    text-align: center;
}

/* ── Text column ── */
.scw-sh__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.scw-sh--no-image .scw-sh__content {
    align-items: center;
}

/* ── Breadcrumb ── */
.scw-sh__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    font-size: 13px;
    color: var(--scw-sh-breadcrumb-color, #555570);
}

.scw-sh--no-image .scw-sh__breadcrumb {
    justify-content: center;
}

.scw-sh__breadcrumb a {
    color: var(--scw-sh-breadcrumb-color, #555570) !important;
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

.scw-sh__breadcrumb a:hover {
    color: var(--scw-sh-heading-color, #1a1a2e) !important;
}

.scw-sh__breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
    font-size: 11px;
}

.scw-sh__breadcrumb-current {
    font-weight: 600;
    color: var(--scw-sh-heading-color, #1a1a2e);
}

/* ── Badge / pill label ── */
.scw-sh__badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    padding: 6px 16px;
    background: var(--scw-sh-badge-bg, rgba(233, 30, 99, 0.1));
    color: var(--scw-sh-accent, #e91e63);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 100px;
    line-height: 1;
}

.scw-sh--no-image .scw-sh__badge {
    align-self: center;
}

.scw-sh__badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ── Title ── */
.scw-sh__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--scw-sh-heading-color, #1a1a2e);
    margin: 0;
}

.scw-sh__accent {
    color: var(--scw-sh-accent, #e91e63);
}

/* ── Description ── */
.scw-sh__desc {
    font-size: 16px;
    line-height: 1.65;
    color: var(--scw-sh-desc-color, #555570);
    margin: 0;
    max-width: 500px;
}

.scw-sh--no-image .scw-sh__desc {
    max-width: 580px;
}

/* ── CTA button ── */
.scw-sh__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.scw-sh--no-image .scw-sh__cta-wrap {
    align-items: center;
}

.scw-sh__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--scw-sh-cta-bg, #3f51b5);
    color: var(--scw-sh-cta-color, #ffffff) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.scw-sh__cta:hover {
    background: var(--scw-sh-cta-hover, #303f9f);
    color: var(--scw-sh-cta-color, #ffffff) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.scw-sh__cta:active {
    transform: translateY(0);
}

.scw-sh__note {
    font-size: 12px;
    color: var(--scw-sh-note-color, #888899);
    font-weight: 500;
}

/* ── Image column ── */
.scw-sh__media {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Decorative accent rectangle behind image */
.scw-sh__media::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    width: 60%;
    height: 60%;
    background: var(--scw-sh-accent, #e91e63);
    opacity: 0.12;
    border-radius: var(--scw-sh-img-radius, 20px);
    pointer-events: none;
}

.scw-sh__img-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: var(--scw-sh-img-radius, 20px);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12),
                0 4px 16px rgba(0, 0, 0, 0.06);
}

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

/* Accent bar on the left edge of the image */
.scw-sh__img-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--scw-sh-accent, #e91e63);
}

/* ── Floating stat card on image ── */
.scw-sh__img-stat {
    position: absolute;
    bottom: 16px;
    left: -20px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scw-sh__img-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--scw-sh-accent, #e91e63);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.scw-sh__img-stat-icon svg {
    width: 18px;
    height: 18px;
}

.scw-sh__img-stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.scw-sh__img-stat-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--scw-sh-heading-color, #1a1a2e);
    line-height: 1;
    letter-spacing: -0.02em;
}

.scw-sh__img-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--scw-sh-desc-color, #555570);
    line-height: 1;
}

/* ── Bottom curve SVG ── */
.scw-sh__curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
    z-index: 1;
}

.scw-sh__curve svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .scw-sh {
        padding: 48px 24px 72px;
    }

    .scw-sh__inner {
        gap: 36px;
    }

    .scw-sh__img-wrap {
        max-width: 400px;
    }

    .scw-sh__orb--1 {
        width: 260px;
        height: 260px;
    }

    .scw-sh__orb--2 {
        width: 200px;
        height: 200px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-sh {
        padding: 40px 20px 64px;
    }

    .scw-sh__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .scw-sh__content {
        align-items: center;
        gap: 14px;
    }

    .scw-sh__breadcrumb {
        justify-content: center;
        font-size: 12px;
    }

    .scw-sh__badge {
        align-self: center;
    }

    .scw-sh__desc {
        max-width: 100%;
    }

    .scw-sh__cta-wrap {
        align-items: center;
    }

    .scw-sh__media {
        order: -1;
    }

    .scw-sh__media::before {
        top: -8px;
        right: -8px;
        width: 50%;
        height: 50%;
    }

    .scw-sh__img-wrap {
        max-width: 360px;
    }

    .scw-sh__img-stat {
        left: auto;
        right: -8px;
        bottom: 12px;
        padding: 10px 14px;
    }

    .scw-sh__orb--1 {
        width: 180px;
        height: 180px;
        top: -60px;
        right: -20px;
    }

    .scw-sh__orb--2 {
        width: 140px;
        height: 140px;
    }

    .scw-sh__curve svg {
        height: 40px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-sh {
        padding: 32px 16px 52px;
    }

    .scw-sh__inner {
        gap: 24px;
    }

    .scw-sh__content {
        gap: 12px;
    }

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

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

    .scw-sh__cta {
        padding: 13px 28px;
        font-size: 13px;
        width: 100%;
    }

    .scw-sh__badge {
        font-size: 10px;
        padding: 5px 14px;
    }

    .scw-sh__img-wrap {
        max-width: 100%;
    }

    .scw-sh__media::before {
        display: none;
    }

    .scw-sh__img-stat {
        right: 8px;
        bottom: 8px;
    }

    .scw-sh__img-stat-icon {
        width: 30px;
        height: 30px;
    }

    .scw-sh__img-stat-icon svg {
        width: 14px;
        height: 14px;
    }

    .scw-sh__img-stat-num {
        font-size: 14px;
    }

    .scw-sh__img-stat-label {
        font-size: 10px;
    }

    .scw-sh__orb {
        display: none;
    }

    .scw-sh__curve svg {
        height: 28px;
    }
}

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