/* group photo */
.group-photo {
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.photo-gallery {
    max-width: 55vw;
    text-align: center;
    border: 0.3vw solid #009688;
    border-radius: 3vw;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    padding: 0 2.5vw 2vw 2.5vw;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.photo-gallery img {
    width: 50vw;
    height: auto;
    border-radius: 2vw;
    cursor: pointer;
}

.photo-gallery h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2vw !important;
    color: #009688 !important;
    margin: 40px 0;
    font-weight: 700;
}

/* members card */
#content h1 {
    color: #b482ff !important;
}

.member-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
    justify-content: center;
}

.member-group {
    font-size: 36px !important;
    text-align: center;
    margin: 50px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.6);
}

.card {
    width: 260px;
    background-color: #f4fbff;
    border: 2px solid #6495ED;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    margin: 0px auto;
    transition: transform 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #9bb7ff;
    margin-bottom: 25px;
    cursor: pointer;
}

.card h2 {
    font-size: 28px !important;
    color: #333 !important;
    margin-top: 5px;
    letter-spacing: 1px;
    font-family: 'Helvetica Neue', sans-serif !important;
}

.card p {
    font-size: 18px;
    color: #777;
    margin: 8px 0;
}

.card::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 15px;
    background: linear-gradient(45deg, #3699ea, #a56dfa, #517cff);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 0.2;
}

.job-label {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    background-color: rgb(129, 82, 217);
    font-size: 18px !important;
    color: #fff !important;
    font-family: 'Georgia', serif !important;
    user-select: none;
}

/* Responsive Design */
@media (max-width: 800px) {
    .member-container {
        gap: 50px;
    }

    .member-group {
        font-size: 24px !important;
        margin: 30px;
    }

    .member-img {
        max-width: 150px;
    }
}

@media (max-width: 600px) {
    .member-container {
        gap: 40px;
    }

    .member-group {
        font-size: 20px !important;
    }

    .member-img {
        max-width: 120px;
    }
}

/* Popup */
.member-popup {
    display: none;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000;
    transform: translate(-50%, -50%) scale(0.9);
    width: 550px;
    max-width: 90%;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.member-popup.show {
    display: flex;
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.member-popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s;
}

.member-popup .close-btn:hover {
    color: #007bff;
}

.member-popup i {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 50%;
    background-color: #f0f4f8;
}

.member-popup .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    box-shadow: 3px 3px 10px rgb(204, 204, 204, 0.65) inset;
    border-radius: 110px;
    border-width: 0px;
    border-style: solid;
    border-color: #ccc;
    padding: 20px;
    margin-right: 20px;
}

.member-popup img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.member-popup .text-content {
    padding: 20px;
}

.member-popup h2 {
    margin: 0px;
    font-size: 28px !important;
    color: #333 !important;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.member-popup h2:hover {
    color: #007bff;
}

.member-popup h3 {
    margin: 10px 0;
    font-size: 20px !important;
    color: #555 !important;
}

.member-popup p {
    text-align: left;
    text-indent: 2em;
    margin: 0;
    color: #555 !important;
    font-size: 16px !important;
    line-height: 1.6;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    transition: opacity 0.3s;
}

.overlay.show {
    display: block;
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.member-popup.show {
    animation: slideIn 0.4s ease-out;
}

/* Responsive Design */
@media (max-width: 800px) {
    .member-popup {
        flex-direction: column;
    }

    .member-popup h2 {
        font-size: 24px;
    }

    .member-popup h3 {
        font-size: 18px;
    }

    .member-popup p {
        font-size: 14px;
    }

    .member-popup .img-box {
        width: 180px;
        height: 180px;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .member {
        margin-top: 360px;
    }

    .member-popup {
        width: 95%;
        padding: 5px;
    }

    .member-popup .img-box {
        width: 150px;
        height: 150px;
        padding: 0px;
        margin: 0;
        margin-top: 10px;
    }

    .member-popup img {
        width: 110px;
        height: 110px;
    }

    .member h1{
        font-size: 26px!important;
    }

    .member-popup h2 {
        font-size: 20px;
    }

    .member-popup h3 {
        font-size: 16px;
    }

    .member-popup p {
        font-size: 12px;
    }

    .group-photo {
        position: absolute;
        top: 3vw;
    }

    .photo-gallery {
        padding: 15px;
    }

    .photo-gallery img {
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .photo-gallery h1 {
        margin: 10px 0;
    }
}