/**
 * Vellis Process Steps widget styles.
 *
 * Vertical numbered timeline with gradient cards and hexagon icons.
 * Card background = solid color + the design's top dark-to-transparent overlay.
 */

.vellis-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    --vellis-step-number-size: 36px;
    --vellis-step-gap: 24px;
}

.vellis-step {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Number marker */
.vellis-step__marker {
    position: relative;
    flex: 0 0 auto;
    align-self: stretch;
    width: var(--vellis-step-number-size, 36px);
    display: flex;
    justify-content: center;
}

/* Connecting segment from this number down to the next one.
   Drawn per step and skipped on the last step, so no line hangs below it. */
.vellis-step:not(:last-child) .vellis-step__marker::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(var(--vellis-step-number-size, 36px) / 2);
    height: calc(100% + var(--vellis-step-gap, 24px));
    width: 2px;
    background-color: rgba(17, 63, 66, 0.15);
    z-index: 0;
}

.vellis-step__number {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--vellis-step-number-size, 36px);
    height: var(--vellis-step-number-size, 36px);
    border-radius: 50%;
    background-color: #fff;
    color: #113F42;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

/* Card */
.vellis-step__card {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 32px;
    border-radius: 10px;
    background-color: #113F42;
    color: #fff;
}

.vellis-steps--overlay .vellis-step__card {
    background-image: linear-gradient(180deg,
            rgba(0, 0, 0, var(--vellis-step-overlay, 0.35)) 0%,
            rgba(102, 102, 102, 0) 63.02%);
}

/* Step image (replaces the old hexagon icon) */
.vellis-step__image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.vellis-step__image img {
    display: block;
    width: 64px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Content */
.vellis-step__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vellis-step__heading {
    margin: 0 0 10px;
    color: #fff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.vellis-step__text {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.vellis-step__text p {
    margin: 0 0 12px;
}

.vellis-step__text p:last-child {
    margin-bottom: 0;
}

/* Responsive: stack icon above the text on small screens */
@media (max-width: 767px) {
    .vellis-step__card {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .vellis-step__content {
        align-items: center;
        text-align: center;
    }
}