/* ==========================================================================
   Custom Step Timeline Elementor Widget Stylesheet
   Unified 3-Column Timeline Layout across PC, Tablet, and Mobile
   ========================================================================== */

.step-timeline-wrapper {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.step-timeline-container {
    --badge-width: 95px;
    --circle-size: 68px;
    --columns-gap: 24px;
    --step-spacing: 48px;
    --line-thickness: 2px;
    --line-style: dotted;
    --line-color: #2b76f6;
    --icon-size: 32px;

    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
    position: relative;
    padding: 0;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Step Timeline Item (3 Columns: Badge | Marker & Line | Content)
   -------------------------------------------------------------------------- */
.step-timeline-item {
    display: grid;
    grid-template-columns: var(--badge-width) var(--circle-size) 1fr;
    column-gap: var(--columns-gap);
    align-items: center;
    position: relative;
    margin-bottom: var(--step-spacing);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.step-timeline-item:last-child,
.step-timeline-item.is-last-step {
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Column 1: Step Label (STEP 01)
   -------------------------------------------------------------------------- */
.step-col-badge {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.step-badge-text {
    display: block;
    width: 100%;
    color: #2b76f6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: right;
    white-space: nowrap;
    transition: color 0.25s ease;
}

/* --------------------------------------------------------------------------
   Column 2: Circle Marker & Connector Line
   -------------------------------------------------------------------------- */
.step-col-marker {
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Circle Badge */
.step-circle {
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    background-color: #2b76f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(43, 118, 246, 0.28);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-sizing: border-box;
}

.step-timeline-item:hover .step-circle {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(43, 118, 246, 0.38);
}

/* Icon Container */
.step-circle-icon {
    width: var(--icon-size);
    height: var(--icon-size);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    fill: #ffffff;
    line-height: 1;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

/* SVG Rendering */
.step-circle-icon svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Media Image */
.step-circle-icon.step-icon-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* FontAwesome / Library Icons */
.step-circle-icon i {
    font-size: var(--icon-size);
    color: currentColor;
}

/* Vertical Dotted Connector Line */
.step-connector {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: calc(var(--step-spacing) - 12px);
    border-left: var(--line-thickness) var(--line-style) var(--line-color);
    z-index: 1;
    pointer-events: none;
}

.step-timeline-item:last-child .step-connector,
.step-timeline-item.is-last-step .step-connector {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Column 3: Step Content (Title & Description)
   -------------------------------------------------------------------------- */
.step-col-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    box-sizing: border-box;
}

.step-title {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
    letter-spacing: -0.2px;
    word-break: break-word;
    text-align: left;
    transition: color 0.25s ease;
}

.step-desc {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #6b7280;
    letter-spacing: 0.1px;
    word-break: break-word;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Unified Responsive Breakpoints (Tablet & Mobile)
   Maintains the 3-column timeline structure consistently
   -------------------------------------------------------------------------- */

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
    .step-timeline-container {
        --badge-width: 85px;
        --circle-size: 56px;
        --columns-gap: 18px;
        --step-spacing: 40px;
        --icon-size: 26px;
    }

    .step-col-content {
        text-align: left;
        align-items: flex-start;
    }

    .step-title {
        font-size: 19px;
        text-align: left;
    }

    .step-desc {
        font-size: 13px;
        text-align: left;
    }

    .step-badge-text {
        font-size: 13px;
        letter-spacing: 1.2px;
    }
}

/* Mobile Breakpoint (max-width: 767px) */
@media (max-width: 767px) {
    .step-timeline-container {
        --badge-width: 68px;
        --circle-size: 46px;
        --columns-gap: 12px;
        --step-spacing: 32px;
        --icon-size: 22px;
    }

    .step-col-content {
        text-align: left;
        align-items: flex-start;
    }

    .step-title {
        font-size: 16px;
        margin-bottom: 4px;
        text-align: left;
    }

    .step-desc {
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
    }

    .step-badge-text {
        font-size: 11px;
        letter-spacing: 0.8px;
    }
}

/* Extra Small Mobile (max-width: 420px) */
@media (max-width: 420px) {
    .step-timeline-container {
        --badge-width: 58px;
        --circle-size: 40px;
        --columns-gap: 10px;
        --step-spacing: 28px;
        --icon-size: 19px;
    }

    .step-col-content {
        text-align: left;
        align-items: flex-start;
    }

    .step-title {
        font-size: 15px;
        text-align: left;
    }

    .step-desc {
        font-size: 11px;
        text-align: left;
    }

    .step-badge-text {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}
