
/* Base Styles */
.flowchart-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

/* Flowchart Steps */
.flowchart-steps {
    display: flex;
    justify-content: space-around;
    gap: 30px; /* Space between items */
    position: relative;
    padding: 20px 0;
}

/* Connectors between steps */
.flowchart-steps:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px; /* Line thickness */
    background-color: #e0e0e0; /* Connector line color */
    z-index: 1; /* Ensure line is behind steps but above container */
    transform: translateY(-50%);
    width: calc(100% - 200px); /* Adjust width to not go under the first/last box edges */
    margin: 0 100px; /* Center the line between the boxes */
}

.flowchart-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px 20px;
    width: 30%; /* Approx 1/3 for 3 items, adjust with gap */
    min-width: 250px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative; /* Needed for z-index to lift above connector line */
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flowchart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.flowchart-step-number {
    font-size: 20px;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
}

.flowchart-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    background-color: #f0f0f0; /* Light background for the icon area */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.flowchart-icon i { /* Styling for Font Awesome icons */
    font-size: 30px; /* Adjust icon size */
    color: #888; /* Icon color */
}

.flowchart-description {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    min-height: 60px; /* Ensure consistent height for descriptions */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flowchart-steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .flowchart-steps:before {
        width: 2px;
        height: calc(100% - 150px); /* Adjust line height for vertical layout */
        left: 50%;
        top: 0;
        bottom: 0;
        right: auto;
        transform: translateX(-50%);
        margin: 75px 0; /* Adjust margin to start/end between items */
    }

    .flowchart-item {
        width: 80%; /* Widen items for better mobile readability */
        max-width: 400px;
        padding: 25px 15px;
    }

    .flowchart-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .flowchart-item {
        width: 90%;
        min-width: unset;
    }
}

