/* UPDATED: Changed from a single column to a 2-column grid */
.pathways-enhanced {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* This line creates the 2x2 grid */
    gap: 10px;
}

.pathway-item {
    background: var(--card-bg, #ffffff);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--card-border, #dee2e6);
    position: relative;
    overflow: hidden;
    display: flex; /* Added for better internal alignment */
    flex-direction: column; /* Added for better internal alignment */
}

.pathway-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--success-green), var(--info-blue));
}

.pathway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pathway-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #212529);
    text-transform: capitalize;
}

.pathway-percentage {
    font-size: 12px;
    font-weight: 600;
    color: var(--info-blue);
}

.pathway-description {
    font-size: 11px;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 6px;
    flex-grow: 1; /* Allows this element to fill available space */
}

.pathway-progress {
    height: 6px;
    background: var(--surface-secondary, #f8f9fa);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px; /* Adjusted margin */
}

.pathway-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green), var(--info-blue));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.pathway-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto; /* Pushes markers to the bottom */
}

.pathway-marker {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--info-blue-bg);
    color: var(--info-blue);
    font-weight: 500;
}