/* Styles for the 4-Step Treatment Process section */

.process-section {
    padding: 6rem 2rem;
    background: var(--gradient-bg);
}

.process-section .container {
    grid-template-columns: 1fr;
}

.process-section .process-header {
    text-align: center;
    margin-bottom: 30px;
}

.process-section .process-flow-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.process-section .process-step-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 0; /* Remove margin-bottom from step-item */
}

.process-section .step-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 60px; /* Give a fixed width to align content */
}

.process-section .step-number-circle {
    background-color: var(--brand-green);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-section .step-number-circle.active {
    box-shadow: 0 0 0 5px rgba(var(--brand-green-rgb), 0.3);
}

.process-section .step-connector-line {
    width: 3px;
    background-color: var(--brand-green);
    /* The line color */
    align-self: flex-start; /* Align with the start of the content */
    margin-left: 28.5px; /* Center under the circle (60px width / 2 - 3px line width / 2) */
    height: 60px; /* Adjust height to connect steps */
    position: relative;
    top: -50px; /* Adjust to connect perfectly with the circle */
    z-index: 0;
}

.process-section .step-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    margin-top: -30px; /* Pull content up to overlap with line start */
    margin-bottom: 20px; /* Space between content blocks */
    transition: transform 0.3s ease;
}

.process-section .step-content:hover {
    transform: translateY(-5px);
}

.process-section .step-content:last-child {
    margin-bottom: 0;
}

.process-section .step-content h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 3px;
}

.process-section .step-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.process-section .step-connector-line:last-child {
    display: none;
}

/* Responsive adjustments for process section */
@media (max-width: 768px) {
    .process-section .process-step-item {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-section .step-visual {
        width: auto;
        margin: 0px;
    }

    .process-section .step-number-circle {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .process-section .step-connector-line {
        height: 0px;
        margin-left: 0; /* Center lines on small screens if flex-direction column */
        width: 3px;
    }

    .process-section .step-content:last-child {
        margin-bottom: 30px;
    }

    .process-section {
        padding: 4rem 2rem;
    }

    .process-section .step-content {
        padding: 25px;
        margin-top: -20px; /* Adjust for smaller padding */
        margin-bottom: 15px; /* Adjust for smaller spacing */
    }

    .process-section .step-content h4 {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .process-section .step-content p {
        font-size: 1rem;
    }

    .process-section .process-header {
        margin-bottom: 0px;
    }

    .process-flow-container .process-step-item:last-child .step-content {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .process-section .step-content h4 {
        width: 100%;
    }

    .process-section .container {
        padding: 0 0;
    }
}  

@media (max-width: 640px) {
    .process-section {
        padding: 3rem 1.5rem;
    }

    .process-section .step-content h4 {
        font-size: 1.2rem;
    }
}