.section31 {
    max-width: 100vw;
    margin: 0 5%;
    padding: 20px;
    background-color: #ffffff;
}

.section31_title h1 {
    font-size: 3.5vh;
    color: #000000;
    margin-bottom: 2vh;
}

.section31_title p {
    font-size: 2vh;
    color: #666;
    margin-bottom: 5vh;
}

.section31_profiles {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40vw, 1fr));
}

@media screen and (max-width: 1008px) {
    .section31_profiles {
        grid-template-columns: repeat(auto-fill, minmax(80vw, 1fr));
    }
    
}

.section31_profile {
    width: 100%;
    display: flex;
    direction: row;
    justify-content: left;
    align-items: center;
    border-radius: 1.5vh;
    border: 1px solid transparent;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0);
}

.section31_profiles img {
    width: 16vh;
    height: 16vh;
    border-radius: 50%;
    margin-bottom: 2vh;

}

.section31_info {
    margin: 0 2vh;
    display: flex;
    flex-direction: column;
    justify-self: start;
    align-items: left;
    text-align: left;
}

.section31_info h1 {
    font-size: 2vh;
    /* Larger text for name */
    margin: 0;
    color: #000000;
}

.section31_info h2 {
    font-size: 1.7vh;
    /* Medium text for position */
    margin: 0;
    margin-bottom: 1vh;
    color: #1c1b1b;
}

.section31_info p {
    font-size: 1.5vh;
    /* Smaller text for position and description */
    color: #0c0c0c;
}

.section31_profile:hover {
    border-color: #00000076;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}


.section31_modal {
    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);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.section31_modal::-webkit-scrollbar {
    display: none;
}

.section31_modal-content {
    background-color: #fefefe;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 4vh;
    width: 80%;
    max-width: 50vh;
    border-radius: 2vh;
    box-shadow: 0 0 1vh rgba(0, 0, 0, 0.5);
}

.section31_close {
    color: #676666;
    float: right;
    font-size: 3vh;
    font-weight: bold;
}

.section31_modal-content h2 {
    font-size: 2.5vh;
    margin: 2vh 0;
}

.section31_modal-content h3 {
    font-size: 2vh;
    margin: 0;
}

.section31_modal-content p {
    font-size: 1.6vh;
    line-height: 1.6;
    margin: 1vh 0;
}

.section31_modal-content p:last-child {
    margin-bottom: 5vw;
}

.section31_close:hover,
.section31_close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transform: scale3d(1.2, 1.2, 1.2);
}

.section31_modal-content img {
    width: 100%;
    height: auto;
}

.section31_modal-content ul {
    padding-left: 5vh;
    padding-top: 1vh;
    padding-bottom: 1vh;
    margin: 0;
}

.section31_modal-content ul li {
    margin: 0, 0, 0, 0;
    /*top, right, bottom, left*/
    padding: 0, 0, 0, 0;
    /*top, right, bottom, left*/
    line-height: 1.7vh;
    font-size: 1.5vh;
}

.section31_modal-content ul:last-child {
    margin-bottom: 2vw;
}