.fg-workflow-stack {
    position: relative;
    overflow: visible;
    padding: 8px 0;
    background: none !important;
    box-shadow: none !important;
}

.fg-workflow-stack * {
    box-sizing: border-box;
}

.fg-workflow-stack__chrome {
    display: none;
}

.fg-workflow-stack__layout {
    position: relative;
    z-index: 1;
}

.fg-workflow-stack__cards {
    display: flex;
    flex-direction: column;
    gap: var(--fg-workflow-gap, 42px);
    padding-bottom: 6vh;
}

.fg-workflow-stack__card {
    position: sticky;
    top: 96px;
}

.fg-workflow-stack__card-inner {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 1.12fr) minmax(260px, 0.88fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    transform-origin: center top;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.fg-workflow-stack__card.is-active .fg-workflow-stack__card-inner {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.fg-workflow-stack__card-copy {
    min-width: 0;
}

.fg-workflow-stack__card-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 10px;
}

.fg-workflow-stack__icon {
    width: 96px;
    height: 28px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: #2563eb;
    background: transparent;
}

.fg-workflow-stack__icon img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.fg-workflow-stack__card-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.fg-workflow-stack__card-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.fg-workflow-stack__hotspot-carousel {
    display: grid;
    gap: 0;
}

.fg-workflow-stack__hotspot-stage {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid rgba(15,23,42,0.08);
}

.fg-workflow-stack__carousel-progress {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.fg-workflow-stack__carousel-progress-track {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15,23,42,0.12);
}

.fg-workflow-stack__carousel-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: #dc2626;
}

.fg-workflow-stack__carousel-progress-track.is-active .fg-workflow-stack__carousel-progress-fill {
    animation: fgWorkflowSlideProgress 3.6s linear forwards;
}

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

.fg-workflow-stack__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fg-workflow-stack__slide.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.fg-workflow-stack__slide img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .fg-workflow-stack__card {
        position: relative;
        top: 0;
    }

    .fg-workflow-stack__card-inner {
        grid-template-columns: 1fr;
    }

    .fg-workflow-stack__hotspot-stage,
    .fg-workflow-stack__slide img {
        min-height: 190px;
    }
}

@media (max-width: 767px) {
    .fg-workflow-stack {
        padding: 4px 0;
    }

    .fg-workflow-stack__card-inner {
        padding: 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .fg-workflow-stack__hotspot-stage,
    .fg-workflow-stack__slide img {
        min-height: 160px;
    }
}
