/* Process Roadmap Styling */
.process-roadmap {
    position: relative;
    padding: 40px 0;
}

/* Vertical Line */
.process-roadmap::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--trust-icon-color); /* Changed to trust color */
    transform: translateX(-50%);
    opacity: 0.3; /* Subtle transparency for better look */
}

.roadmap-step {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    /* Reduced gap */
    position: relative;
    width: 100%;
}

.roadmap-step:last-child {
    margin-bottom: 0;
}

.roadmap-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 8px #fff;
    border: 2px solid var(--accent-color);
}

.roadmap-card {
    width: 42%;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    text-align: center;
    /* Center align all text */
}

.roadmap-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.1);
    border-color: var(--primary-color);
}

.roadmap-step:nth-child(odd) .roadmap-card {
    margin-right: auto;
    margin-left: 0;
}

.roadmap-step:nth-child(even) .roadmap-card {
    margin-left: auto;
    margin-right: 0;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--trust-icon-color);
    margin: 0 auto 20px auto;
    /* Center the icon */
    transition: all 0.3s;
}

.roadmap-card:hover .step-icon {
    background: var(--primary-color);
    color: white;
    transform: rotate(10deg);
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Connectors (Desktop) */
.roadmap-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--trust-icon-color); /* Changed to trust color */
    transform: translateY(-50%);
    opacity: 0.3;
}

.roadmap-step:nth-child(odd) .roadmap-card::after {
    right: -30px;
}

.roadmap-step:nth-child(even) .roadmap-card::after {
    left: -30px;
}

/* Responsive */
@media (max-width: 991px) {
    .process-roadmap::before {
        left: 30px;
        transform: none;
    }

    .roadmap-circle {
        left: 30px;
        transform: translateX(-50%);
    }

    .roadmap-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .roadmap-step:nth-child(odd) .step-icon {
        margin-left: 0;
    }

    .roadmap-card::after {
        left: -30px !important;
        right: auto !important;
    }
}

@media (max-width: 576px) {
    .process-roadmap::before {
        left: 20px;
    }

    .roadmap-circle {
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .roadmap-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 20px;
    }

    .roadmap-card::after {
        width: 20px;
        left: -20px !important;
    }
}