/* =========================================================
   Ranosys Our Capabilities Widget — Pipeline Stepper
   ========================================================= */

.rsc-cap-section {
    padding: 100px 0;
    background: #FAF9F6;
    border-bottom: 1px solid #E5E7EB;
    font-family: inherit;
}

.rsc-cap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.rsc-cap-header {
    margin-bottom: 56px;
    text-align: center;
}

.rsc-cap-title {
    font-size: 36px;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    color: #111111;
    margin: 0 0 12px;
    line-height: 1.2;
}

.rsc-cap-subtitle {
    font-size: 1.125rem;
    color: #4B5563;
    margin: 0 auto;
    line-height: 1.5;
    max-width: 650px;
}

/* ── Grid ── */
.rsc-cap-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

/* ── Stepper Column ── */
.rsc-cap-stepper-wrapper {
    position: relative;
    padding: 10px 0;
}

.rsc-cap-stepper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* Vertical connector line — hidden */
.rsc-cap-connector {
    display: none;
}

/* ── Step Items ── */
.rsc-cap-step {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid transparent;
}

.rsc-cap-step:hover {
    background: rgba(245, 130, 32, 0.05);
}

.rsc-cap-step.active {
    background: #ffffff;
    border-color: #E5E7EB;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

/* Step dot — hidden */
.rsc-cap-dot {
    display: none;
}

.rsc-cap-step-text h5 {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: source-code-pro, sans-serif;
    margin: 0 0 4px;
    color: #6B7280;
    transition: color 0.3s;
}

.rsc-cap-step-text p {
    font-size: 0.8125rem;
    color: #9CA3AF;
    margin: 0;
    transition: color 0.3s;
}

.rsc-cap-step.active .rsc-cap-step-text h5 { color: #111111; }
.rsc-cap-step.active .rsc-cap-step-text p  { color: #4B5563; }

/* ── Detail Card ── */
.rsc-cap-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.rsc-cap-card-content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.rsc-cap-card-content.exiting  { opacity: 0; transform: translateY(-15px); }
.rsc-cap-card-content.entering { opacity: 0; transform: translateY(15px); }

/* Card header */
.rsc-cap-card-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.rsc-cap-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(245, 130, 32, 0.08);
    color: #F58220;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.rsc-cap-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #F58220;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rsc-cap-card-title {
    font-size: 1.5rem;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    color: #111111;
    margin: 0;
    line-height: 1.2;
}

.rsc-cap-card-desc {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Bullet list */
.rsc-cap-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rsc-cap-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: #374151;
    font-weight: 600;
}

.rsc-cap-bullets li i {
    color: #10B981;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Scroll fade animation ── */
.rsc-cap-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rsc-cap-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .rsc-cap-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .rsc-cap-stepper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .rsc-cap-step {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
        align-items: center;
        flex: 1;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    .rsc-cap-step-text { display: none; }

    .rsc-cap-card {
        min-height: auto;
        padding: 32px 24px;
    }
}

@media (max-width: 575px) {
    .rsc-cap-section { padding: 60px 0; }

    .rsc-cap-title { font-size: 2rem; }

    .rsc-cap-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .rsc-cap-bullets li { justify-content: center; }
}
