.ifag-process-axe-container {
    padding: 30px 20px;
    background-color: #f8f9fa;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.ifag-axe-list {
    display: flex;
    flex-direction: column;
}

.ifag-axe-item {
    display: flex;
    align-items: stretch;
    position: relative;
    min-height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ifag-axe-visual {
    position: relative;
    width: 30px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.ifag-axe-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #e2e8f0;
    transform: translateX(-50%);
}

.ifag-axe-item:first-child .ifag-axe-line {
    top: 50%;
}

.ifag-axe-item:last-child .ifag-axe-line {
    bottom: 50%;
}

.ifag-axe-line-active {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #ce2139;
    transform: translateX(-50%);
    z-index: 1;
}

.ifag-axe-item:first-child .ifag-axe-line-active {
    top: 15%; 
}

.ifag-axe-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.ifag-axe-item.is-active .ifag-axe-dot {
    background-color: #ce2139;
    border-color: #ce2139;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(206, 33, 57, 0.1);
}

/* Hover Effects */
.ifag-axe-item:hover .ifag-axe-title {
    color: #ce2139;
    transform: translateX(8px);
}

.ifag-axe-item:hover .ifag-axe-dot {
    border-color: #ce2139;
    background-color: #ce2139;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 4px rgba(206, 33, 57, 0.15);
}

.ifag-axe-item:hover .ifag-axe-line {
    background-color: #ce2139;
    width: 2px;
    opacity: 0.6;
}

.ifag-axe-item:hover .ifag-axe-line-active {
    width: 5px;
}

.ifag-axe-content {
    padding: 8px 0 8px 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.ifag-axe-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
    color: #4a5568;
    transition: all 0.3s ease;
}

.ifag-axe-item.is-active .ifag-axe-title {
    color: #2d3748;
    font-weight: 500;
}

/* Specific adjustment for the first item red bar ending */
.ifag-axe-item.is-active:first-child .ifag-axe-line-active {
    top: 0;
    height: 100%;
}

@media (max-width: 768px) {
    .ifag-process-axe-container {
        padding: 20px 15px;
    }
}

/* The red bar in the image is a solid line on the left side of the dot */
/* It seems the active item has a thicker line segment */
