.elementor-47686 .elementor-element.elementor-element-17e38d20{--display:flex;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;color:var( --e-global-color-primary );}.elementor-47686 .elementor-element.elementor-element-138d6be9{text-align:center;}.elementor-47686 .elementor-element.elementor-element-138d6be9 .elementor-heading-title{font-family:"YekanBakhFaNum", Sans-serif;font-size:20px;font-weight:600;line-height:38px;}.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-47686 .elementor-element.elementor-element-1b7e29a8{text-align:center;font-family:"YekanBakhFaNum", Sans-serif;font-size:16px;font-weight:400;line-height:32px;}/* Start custom CSS for html, class: .elementor-element-140f5c5f *//* --- General Styles & Fonts --- */
.custom-timeline-container {
    direction: rtl;
    font-family: 'YekanBakhFaNum', sans-serif;
    width: 100%;
    max-width: 1100px;
    margin: 0px auto;
    padding: 0px 20px;
    border-radius: 15px;
}

/* --- Desktop Timeline Styles (Horizontal) --- */
.custom-timeline {
    list-style: none;
    padding: 0;
    margin: 50px 0;
    display: flex;
    position: relative;
}

.custom-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 18px;
    transform: translateY(-50%);
}

.timeline-step {
    flex: 1;
    position: relative;
    min-height: 200px;
}

/* --- Marker Style --- */
.timeline-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    border: 7px solid #274185;
    border-radius: 50%;
    z-index: 1;
    box-sizing: border-box;
}

/* --- Content Box Style --- */
.timeline-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 227px;
    height: 79px;
    background-color: #ffffff;
    border: 1px solid #274185;
    border-radius: 14px;
    box-shadow: 0px 4px 42.6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content h4 {
    margin: 0;
    color: #15295D;
    font-weight: 600;
    font-size: 16px;
    line-height: 200%;
    white-space: nowrap;
}

/* --- Dashed Connector Line --- */
.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-image: linear-gradient(to bottom, #274185 50%, transparent 50%);
    background-size: 2px 12px;
}

/* --- Alternating Logic --- */
.timeline-step:nth-child(odd) .timeline-content {
    bottom: 50%;
    margin-bottom: 40px;
}
.timeline-step:nth-child(odd) .timeline-content::before {
    top: 100%;
}
.timeline-step:nth-child(even) .timeline-content {
    top: 50%;
    margin-top: 40px;
}
.timeline-step:nth-child(even) .timeline-content::before {
    bottom: 100%;
}

/* --- Special style for completed step --- */
.timeline-step.is-complete .timeline-marker {
    border-color: #34d399;
    background-color: #34d399;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

/* --- Responsive Styles for Mobile (Vertical) --- */
@media (max-width: 992px) {
    .custom-timeline {
        display: block;
    }
    .custom-timeline::before {
        display: none;
    }
    .timeline-step {
        min-height: auto;
        padding-right: 60px;
        margin-bottom: 40px;
        position: relative;
    }
    .timeline-step::after {
        content: '';
        position: absolute;
        right: 21px;
        top: 40px;
        width: 8px;
        height: calc(100% + 40px);
        background-color: #FFFFFF;
        border-radius: 18px;
        z-index: 0;
    }
    .timeline-step:last-child::after {
        display: none;
    }
    .timeline-step:last-child {
        margin-bottom: 0;
    }

    .timeline-marker {
        left: auto;
        right: 25px;
        top: 5px;
        transform: translateX(50%);
    }
    .timeline-content {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        padding: 15px;
    }
    .timeline-content::before {
        display: none;
    }
}
@media (max-width: 400px) {
    .timeline-content h4 {
        font-size: 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }
    .timeline-content {
        padding: 10px 8px;
        min-height: 60px;
    }
    .timeline-step {
        padding-right: 50px;
    }
    .timeline-marker {
        right: 20px;
    }
    .timeline-step:not(:first-child)::after {
        right: 20px;
    }
}/* End custom CSS */