.journeyCardBox {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 30px;
}

.journeyCard {
    width: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.journeyCard-upper {
    width: calc((100vw - 120px - 120px) / 5);
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('/img/doctor_banner.png');
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-size: cover;
}

.journeyCard-upper-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.journeyCard-upper-img:hover {
    transform: scale(1.05);
}


.journeyCard-lower {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 15px 0 0 0;
}



.journeyPopup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.journeyPopup-content {
    border-radius: 22px;
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.journeyPopup-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.journeyPopup-close:hover,
.journeyPopup-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media screen and (max-width: 1024px) {
    .journeyCardBox {
        grid-template-columns: auto auto;
    }

    .journeyCard-upper {
        width: calc((100vw - 120px - 30px) / 2);
    }

}

@media screen and (max-width: 600px) {
    .journeyCardBox {
        grid-template-columns: auto;
    }

    .pageContentBox {
        padding: 30px;
    }

    .journeyCard-upper {
        width: calc(100vw - 60px);
    }
}