.hiw-timeline {
    --hiw-accent: #1F4ED8;
    --hiw-heading: #050505;
    --hiw-body: #5B5B5B;
    --hiw-number: #EEF0F5;
    width: 100%;
    background: #fff;
    overflow: hidden;
    font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

.hiw-timeline *,
.hiw-timeline *::before,
.hiw-timeline *::after {
    box-sizing: border-box;
}

/* Keep the widget from inheriting narrow icon/content widths in Elementor. */
.elementor-widget-hiw_timeline,
.elementor-widget-hiw_timeline > .elementor-widget-container,
.elementor-widget-hiw_timeline .hiw-timeline {
    width: 100%;
    max-width: none;
}

.hiw-timeline__desktop {
    position: relative;
    width: min(100%, 1200px);
    height: 520px;
    margin: 0 auto;
    background: #fff;
}

.hiw-timeline__main-title {
    position: absolute;
    z-index: 5;
    top: 39px;
    left: 12.1%;
    margin: 0;
    color: var(--hiw-heading);
    font-size: clamp(31px, 3vw, 42px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.045em;
}

/*
 * Elementor and some themes apply global SVG sizing rules (for icon SVGs).
 * The high-specificity + !important rules below keep this decorative curve
 * locked to the 1200x520 timeline canvas instead of collapsing to icon size.
 */
.hiw-timeline svg.hiw-timeline__curve {
    position: absolute !important;
    z-index: 1 !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    transform: none !important;
    filter: drop-shadow(0 4px 4px rgba(31, 78, 216, 0.08));
}

.hiw-timeline svg.hiw-timeline__curve path {
    fill: none !important;
    stroke: var(--hiw-accent) !important;
    stroke-width: 4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    vector-effect: non-scaling-stroke !important;
}

.hiw-timeline__dot {
    position: absolute;
    z-index: 6;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    place-items: center;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.10);
    transform: translate(-50%, -50%);
}

.hiw-timeline__dot span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--hiw-accent);
    display: block;
}

.hiw-timeline__dot--1 { left: 21.17%; top: 59.8%; }
.hiw-timeline__dot--2 { left: 50.83%; top: 44.0%; }
.hiw-timeline__dot--3 { left: 71.5%; top: 11.15%; }

.hiw-timeline__number {
    position: absolute;
    z-index: 0;
    color: var(--hiw-number);
    font-size: 112px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.06em;
    user-select: none;
    pointer-events: none;
}

.hiw-timeline__number--1 { left: 27.0%; top: 51.0%; }
.hiw-timeline__number--2 { left: 58.5%; top: 35.0%; }
.hiw-timeline__number--3 { left: 78.5%; top: 3.6%; }

.hiw-timeline__step {
    position: absolute;
    z-index: 4;
    width: 27%;
    max-width: 260px;
    color: var(--hiw-body);
}

.hiw-timeline__step h3,
.hiw-timeline__mobile-step h3 {
    margin: 0 0 8px;
    color: var(--hiw-heading);
    font-size: 19px;
    line-height: 1.16;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.hiw-timeline__copy,
.hiw-timeline__copy p {
    color: var(--hiw-body);
    font-size: 11.5px;
    line-height: 1.38;
    font-weight: 400;
}

.hiw-timeline__copy p {
    margin: 0 0 12px;
}

.hiw-timeline__copy p:last-child {
    margin-bottom: 0;
}

.hiw-timeline__step--1 {
    left: 19.0%;
    top: 67.4%;
    max-width: 265px;
}

.hiw-timeline__step--2 {
    left: 48.2%;
    top: 53.2%;
    max-width: 260px;
}

.hiw-timeline__step--3 {
    left: 69.1%;
    top: 18.1%;
    max-width: 252px;
}

.hiw-timeline__mobile {
    display: none;
}

@media (max-width: 1024px) {
    .hiw-timeline__desktop {
        height: 470px;
    }

    .hiw-timeline__main-title {
        top: 34px;
        font-size: 34px;
    }

    .hiw-timeline__number {
        font-size: 94px;
    }

    .hiw-timeline__step h3 {
        font-size: 17px;
    }

    .hiw-timeline__copy,
    .hiw-timeline__copy p {
        font-size: 10.5px;
    }
}

@media (max-width: 767px) {
    .hiw-timeline {
        overflow: visible;
    }

    .hiw-timeline__desktop {
        display: none;
    }

    .hiw-timeline__mobile {
        position: relative;
        display: block;
        max-width: 640px;
        margin: 0 auto;
        padding: 28px 20px 34px;
    }

    .hiw-timeline__mobile-title {
        margin: 0 0 32px;
        color: var(--hiw-heading);
        font-size: 32px;
        line-height: 1.1;
        font-weight: 500;
        letter-spacing: -0.045em;
    }

    .hiw-timeline__mobile-rail {
        position: absolute;
        left: 44px;
        top: 104px;
        bottom: 52px;
        width: 3px;
        background: var(--hiw-accent);
        border-radius: 99px;
    }

    .hiw-timeline__mobile-step {
        position: relative;
        display: grid;
        grid-template-columns: 54px 1fr;
        gap: 14px;
        margin: 0 0 34px;
        min-height: 150px;
    }

    .hiw-timeline__mobile-step:last-child {
        margin-bottom: 0;
    }

    .hiw-timeline__mobile-marker {
        position: relative;
        min-height: 52px;
    }

    .hiw-timeline__mobile-num {
        position: absolute;
        left: 23px;
        top: -25px;
        color: var(--hiw-number);
        font-size: 82px;
        line-height: 1;
        font-weight: 700;
        letter-spacing: -0.06em;
        transform: translateX(-50%);
    }

    .hiw-timeline__mobile-dot {
        position: absolute;
        z-index: 2;
        left: 23px;
        top: 15px;
        width: 18px;
        height: 18px;
        border: 5px solid #fff;
        border-radius: 50%;
        background: var(--hiw-accent);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
        transform: translate(-50%, -50%);
    }

    .hiw-timeline__mobile-step h3 {
        font-size: 19px;
        margin-bottom: 9px;
    }

    .hiw-timeline__copy,
    .hiw-timeline__copy p {
        font-size: 13px;
        line-height: 1.5;
    }
}
