.our-process {
    color: #fff;
    margin: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.our-process-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.process-flex-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width: 100%;
}

.our-process-title {
    flex-basis: 100%;
    font-size: 3rem;
    text-align: left;
}

.external-process-icons {
    display: none;
}

.process-icons {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5%;
}

.process-icons span {
    display: flex;
    margin-left: 0.8%;
    justify-content: center;
    align-self: center;
}

.process-icons img,
.external-process-icons img {
    width: 30px;
    height: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.process-icons img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.text-content {
    max-width: 400px;
}

.process-image,
.process-image-inner {
    align-items: center;
    display: flex;
    position: relative;
}

.process-image {
    margin-left: auto;
    margin-right: -50px;
    overflow: hidden;
    padding-right: 30px;
}

.process-description p {
    font-size: 1.25rem;
}

.mainImage {
    height: 500px;
    width: auto;
    margin-right: 20px;
}

.next-arrow-container {
    height: auto;
    margin-left: 100px;
    width: 100px;
    z-index: 1;
}

.next-arrow-container label {
    display: none;
}


#step1:checked~.our-process-content .arrow-step1 {
    cursor: pointer;
    display: block;
}

#step2:checked~.our-process-content .arrow-step2 {
    cursor: pointer;
    display: block;
}

#step3:checked~.our-process-content .arrow-step3 {
    cursor: pointer;
    display: block;
}

#step4:checked~.our-process-content .arrow-step4 {
    cursor: pointer;
    display: block;
}

.next-arrow {
    width: 100px;
    height: auto;
    margin-left: 100px;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.3s;
}

.next-arrow:hover {
    transform: translateX(10px);
}

.process-description {
    font-size: 1.5rem;
    width: 60%;
    max-width: 1500px;
    text-align: justify;
    transition: all 0.5s ease;
    position: relative;
    min-height: 425px;
}

.first-word,
.background-text {
    transition: all 0.5s ease;
}

.first-word {
    display: block;
    font-size: 8vw;
}

.background-text {
    color: #0003;
    font-size: 4rem;
    left: 50%;
    position: absolute;
    top: 30%;
    transform: translate(-30%, 40%) scale(1.5);
    z-index: 0;
}

/* Radio button controls */
.process-controls {
    display: none;
}

/* Step content containers */
.step-content {
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Show active step based on radio selection */
#step1:checked~.our-process-content .step-content.step1,
#step2:checked~.our-process-content .step-content.step2,
#step3:checked~.our-process-content .step-content.step3,
#step4:checked~.our-process-content .step-content.step4 {
    opacity: 1;
}

/* Active icons */
#step1:checked~.our-process-content .process-icons label[for="step1"] img,
#step2:checked~.our-process-content .process-icons label[for="step2"] img,
#step3:checked~.our-process-content .process-icons label[for="step3"] img,
#step4:checked~.our-process-content .process-icons label[for="step4"] img,
#step1:checked~.external-process-icons label[for="step1"] img,
#step2:checked~.external-process-icons label[for="step2"] img,
#step3:checked~.external-process-icons label[for="step3"] img,
#step4:checked~.external-process-icons label[for="step4"] img {
    opacity: 1;
    transform: scale(1.1);
}

/* Background text */
.background-text {
    display: none;
}

#step1:checked~.our-process-content .background-text.step2,
#step2:checked~.our-process-content .background-text.step3,
#step3:checked~.our-process-content .background-text.step4,
#step4:checked~.our-process-content .background-text.step1 {
    display: block;
}

/* Next arrow labels */
.next-arrow-label {
    z-index: 10;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 1270px) {
    .our-process-content {
        flex-direction: column-reverse;
    }

    .process-description {
        width: 70%;
        max-width: none;
    }

    .first-word {
        font-size: 3rem;
        z-index: 2;
    }

    .next-arrow {
        margin-left: 20px;
    }

    .process-image {
        display: flex;
        align-items: center;
        margin-left: auto;
        position: relative;
        overflow: hidden;
        margin-right: 0;
        padding-right: 0px;
        width: 30%;
        float: right;
    }

    .mainImage {
        height: 350px;
        max-height: 50vh;
        width: auto;
        margin-right: 20px;
    }
}

@media (max-width: 1015px) {
    .next-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .our-process-title {
        font-size: 2.5rem;
    }

    .rest-of-words {
        font-size: 1.85rem;
    }

    .process-icons {
        display: none;
    }

    .external-process-icons {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        gap: 10px;
        display: flex;
        align-items: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .external-process-icons span {
        height: auto;
        align-self: center;
        margin-left: 0.8%;
        justify-content: center;
        height: 100%;
    }

    .external-process-icons span br {
        display: none;
    }

    .next-arrow {
        display: none;
        width: 0;
    }

    .mainImage {
        display: none;
        width: 0;
    }

    .background-text {
        display: none;
        width: 0;
    }

    .process-image {
        display: none;
        width: 0;
    }

    .process-description {
        width: 100%;
        min-height: auto;
    }

    .first-word {
        font-size: 2.5rem;
    }

    .step-content {
        position: relative;
        display: none;
    }

    /* Show active step based on radio selection */
    #step1:checked~.our-process-content .step-content.step1,
    #step2:checked~.our-process-content .step-content.step2,
    #step3:checked~.our-process-content .step-content.step3,
    #step4:checked~.our-process-content .step-content.step4 {
        opacity: 1;
        display: block;
    }
}

@media (max-width: 541px) {
    .mainImage {
        height: 180px;
    }

    .first-word {
        font-size: 2rem;
    }

    .rest-of-words {
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .our-process-title {
        font-size: 2rem;
    }
}