/* ========================================
   Process Slider - Scoped under .sv-process-slider
   Two-level: outer (processes) + inner (cards)
   ======================================== */

/* --- Reset: Override global main.css leaks --- */
.sv-process-slider h2,
.sv-process-slider h3 {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.sv-process-slider h2 {
    font-size: 38px;
    line-height: 1.25;
    color: #1a1a2e;
}

.sv-process-slider h3 {
    font-size: 24px;
    line-height: 1.3;
    color: #1a1a2e;
}

.sv-process-slider a,
.sv-process-slider button,
.sv-process-slider span,
.sv-process-slider p,
.sv-process-slider img {
    transition: none;
}

.sv-process-slider a {
    color: inherit;
    text-decoration: none;
}

.sv-process-slider button {
    color: inherit;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.sv-process-slider p {
    margin-bottom: 0;
}

.sv-process-slider img {
    max-width: 100%;
}
/* --- End Reset --- */

.sv-process-slider {
    padding: 80px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* --- Headers Container (one header per process) --- */
.sv-process-headers {
    position: relative;
    margin-bottom: 30px;
}

.sv-process-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.sv-process-header.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.sv-process-header .sv-process-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #e64c29;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sv-process-header .sv-process-subtitle-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.sv-process-header .sv-process-title {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.25;
    margin-bottom: 16px;
}

.sv-process-header .sv-process-bio {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.sv-process-slider .sv-process-cta {
    display: inline-block;
    padding: 12px 28px;
    background-color: #e64c29;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.sv-process-slider .sv-process-cta:hover {
    background-color: #c73e1f;
    color: #fff;
}

/* --- Process Navigation Dots --- */
.sv-process-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.sv-process-slider .sv-process-nav-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 2px solid #d0d0d0;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #777;
    outline: none;
}

.sv-process-slider .sv-process-nav-dot:hover {
    border-color: #e64c29;
    color: #e64c29;
}

.sv-process-slider .sv-process-nav-dot.active {
    border-color: #e64c29;
    background: #e64c29;
    color: #fff;
}

.sv-process-nav-label {
    white-space: nowrap;
}

/* --- Process Groups Container --- */
.sv-process-groups {
    position: relative;
}

.sv-process-group {
    display: none;
}

.sv-process-group.active {
    display: block;
    animation: svGroupIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes svGroupIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Body: Two Panels --- */
.sv-process-body {
    display: flex;
    gap: 40px;
    align-items: stretch;
    min-height: 420px;
}

/* --- Left Panel: Steps --- */
.sv-process-steps {
    flex: 0 0 35%;
    max-width: 35%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sv-process-slider .sv-process-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    border-radius: 8px;
}

.sv-process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: transparent;
    border-radius: 3px;
    transition: all 0.35s ease;
}

[dir="rtl"] .sv-process-step::before {
    left: auto;
    right: 0;
}

.sv-process-step:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sv-process-step.active {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sv-process-step.active::before {
    background: #e64c29;
    width: 4px;
}

.sv-process-slider .sv-process-step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #999;
    background: #f0f0f0;
    transition: background 0.35s ease, color 0.35s ease;
}

.sv-process-step.active .sv-process-step-number {
    background: #e64c29;
    color: #fff;
}

.sv-process-slider .sv-process-step-title {
    font-size: 17px;
    font-weight: 600;
    color: #555;
    transition: color 0.35s ease;
    line-height: 1.3;
}

.sv-process-step.active .sv-process-step-title {
    color: #1a1a2e;
}

/* Progress bar under each step */
.sv-process-step-progress {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.sv-process-step-progress-bar {
    height: 100%;
    width: 0;
    background: #e64c29;
    border-radius: 2px;
    transition: none;
}

.sv-process-step.active .sv-process-step-progress-bar {
    animation: svProgressFill 5s linear forwards;
}

.sv-process-slider-paused .sv-process-step.active .sv-process-step-progress-bar {
    animation-play-state: paused;
}

@keyframes svProgressFill {
    from { width: 0; }
    to { width: 100%; }
}

/* --- Right Panel: Card Detail --- */
.sv-process-detail {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.sv-process-slider .sv-process-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.sv-process-slide.sv-slide-out {
    opacity: 0;
    transform: translateX(-40px);
}

.sv-process-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

[dir="rtl"] .sv-process-slide {
    transform: translateX(-40px);
}

[dir="rtl"] .sv-process-slide.sv-slide-out {
    transform: translateX(40px);
}

[dir="rtl"] .sv-process-slide.active {
    transform: translateX(0);
}

.sv-process-slide-image {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.sv-process-slide-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sv-process-slide-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.sv-process-slide-step-label {
    font-size: 13px;
    font-weight: 700;
    color: #e64c29;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.sv-process-slide-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.3;
}

.sv-process-slide-bio {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

/* No-image variant */
.sv-process-slide--no-image .sv-process-slide-content {
    padding: 40px 32px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .sv-process-slider .sv-process-headers {
        min-height: auto;
    }

    .sv-process-slider .sv-process-body {
        flex-direction: column;
        gap: 30px;
        min-height: auto;
    }

    .sv-process-slider .sv-process-steps {
        flex: none;
        max-width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .sv-process-slider .sv-process-step {
        flex-shrink: 0;
        min-width: 160px;
        padding: 14px 16px;
    }

    .sv-process-slider .sv-process-step::before {
        top: auto;
        bottom: 0;
        left: 15%;
        width: 70%;
        height: 3px;
    }

    .sv-process-slider .sv-process-step.active::before {
        width: 70%;
        height: 4px;
    }

    [dir="rtl"] .sv-process-slider .sv-process-step::before {
        left: 15%;
        right: auto;
    }

    .sv-process-slider .sv-process-step-progress {
        left: 5%;
        width: 90%;
    }

    .sv-process-slider .sv-process-detail {
        min-height: 350px;
    }

    .sv-process-slider .sv-process-header .sv-process-title {
        font-size: 30px;
    }

    .sv-process-slider h2 {
        font-size: 30px;
    }
}

@media (max-width: 575px) {
    .sv-process-slider {
        padding: 50px 0;
    }

    .sv-process-slider .sv-process-headers {
        margin-bottom: 20px;
    }

    .sv-process-slider .sv-process-header .sv-process-title {
        font-size: 26px;
    }

    .sv-process-slider h2 {
        font-size: 26px;
    }

    .sv-process-slider h3 {
        font-size: 20px;
    }

    .sv-process-slider .sv-process-nav {
        margin-bottom: 24px;
        gap: 6px;
    }

    .sv-process-slider .sv-process-nav-dot {
        padding: 6px 14px;
        font-size: 13px;
    }

    .sv-process-slider .sv-process-step {
        min-width: 140px;
        padding: 12px 14px;
    }

    .sv-process-slider .sv-process-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .sv-process-slider .sv-process-step-title {
        font-size: 15px;
    }

    .sv-process-slider .sv-process-slide-image {
        width: 100%;
    }

    .sv-process-slider .sv-process-slide-image img {
        width: 100%;
        height: auto;
    }

    .sv-process-slider .sv-process-slide-content {
        padding: 22px 20px;
    }

    .sv-process-slider .sv-process-slide-title {
        font-size: 20px;
    }
}
