.nexum-process-wrapper {
    position: relative;
    width: 100%;
}

.nexum-process-line {
    position: absolute;
    top: 72px;
    left: 8%;
    width: 84%;
    height: 2px;
    z-index: 1;
    overflow: hidden;
}

.nexum-process-line::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 45%;
    opacity: 0.9;
}

.nexum-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
    z-index: 2;
}

.nexum-process-item {
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: all 0.35s ease;
}

.nexum-process-item::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    transition: all 0.35s ease;
}

.nexum-process-item:hover {
    transform: translateY(-8px);
}

.nexum-process-item:hover::before {
    transform: scale(3);
}

.nexum-process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nexum-process-number::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: 0.15;
}

.nexum-process-title {
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.nexum-process-description {
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

/* ---- FLIP CARD: WHOLE CARD ROTATES ---- */
.nexum-process-item.style2 {
    perspective: 1200px;
    display: flex;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nexum-process-item.style2 .nexum-process-back {
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.nexum-process-item.style2 .nexum-process-card-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s ease;
}

.nexum-process-item.style2:hover .nexum-process-card-inner {
    transform: translateY(-8px) rotateY(180deg);
}

.nexum-process-item.style2 .nexum-process-front,
.nexum-process-item.style2 .nexum-process-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nexum-process-item.style2 .nexum-process-front {
    transform: rotateY(0deg);
}

.nexum-process-item.style2 .nexum-process-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
}

@media (max-width: 1024px) {
    .nexum-process-line {
        display: none;
    }
}

@media (max-width: 767px) {
    .nexum-process-grid {
        grid-template-columns: 1fr;
    }

    .nexum-process-item {
        text-align: center; /* Changed from left to center */
    }

    .nexum-process-number {
        margin: 0 auto; /* Changed from 0 to center the number */
    }

    /* Mobile: disable hover flip, use .flipped class instead */
    .nexum-process-item.style2:hover .nexum-process-card-inner {
        transform: none;
    }

    .nexum-process-item.style2 .nexum-process-back {
        position: absolute;
        inset: 0;
        transform: rotateY(180deg);
        display: flex;
        justify-content: center; /* Ensure back content is centered */
        align-items: center;
        text-align: center; /* Ensure back text is centered */
    }

    /* Tapped state */
    .nexum-process-item.style2.flipped .nexum-process-card-inner {
        transform: rotateY(180deg);
    }
}