header {
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

header .goback a {
    text-decoration: none;
}

header .goback a {
    text-decoration: none;
}

header .goback a button {
    background-color: transparent;
    padding: 1.3rem 3.8rem;
    color: #275B81;
    font-family: "Advent Pro", sans-serif !important;
    font-size: 2.3rem;
    font-weight: 700;
    outline: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    letter-spacing: 3px;
}

header .goback a button:hover {
    transform: scale(1.03);
    color: #18669d;
}

.member-nav {
    display: block;
    position: relative;
    background: #f8f8f800;
    padding: 10px;
}

.member-nav .menu-open-close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    color: #24577b;
}

.member-nav .menu-open-close i {
    transition: opacity 0.3s ease-in-out;
    font-size: 2rem;
}

#menuicon,
#xicon {
    right: 20px;
    position: absolute;
    cursor: pointer;
}

#xicon {
    font-size: 3rem;
    display: none;
    opacity: 0;
}

.menu-active .menu-open-close i.bx-menu-alt-right {
    opacity: 0;
}

.member-nav .menu .menu-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    cursor: pointer;
    color: white;
}

.member-nav .menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding: 1rem;
    background-color: whitesmoke;
    color: #24577b;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4rem;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.menu.active {
    opacity: 1;
    transform: translateX(0);
}

.menutitle {
    font-size: 2rem;
    font-weight: 700;
}

.userinfos,
.accountinfos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

}

.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu label {
    font-size: 1rem;
    color: #24577b;
    margin-bottom: 0.3rem;
    display: block;
    font-weight: 600;
}

.menu input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #24577b;
    font-size: 0.95rem;
    border: #24577b4f solid 1px;
    outline: none;
    transition: all .3s ease-in-out;
}

.menu input:hover {
    transform: scale(1.01);
}

.lougout {
    margin-top: auto;
}

.lougout a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    background-color: #24577b;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lougout a:hover {
    background-color: #327bb0;
    transform: scale(1.02);
}

.popup-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    font-family: Arial, sans-serif;
}

.popup {
    background: #fff;
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.popup p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
}

.popup button {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.25s ease;
    margin: 0 12px;
}

.popup button[type="submit"] {
    background-color: #e74c3c;
    color: #fff;
    transition: all .3s ease-in-out;
}

.popup button[type="submit"]:hover {
    background-color: #c0392b;
}

.popup #cancelLogout {
    background-color: #bdc3c7;
    color: #2c3e50;
    transition: all .3s ease-in-out;

}

.popup #cancelLogout:hover {
    background-color: #95a5a6;
}


#saveProfile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    background-color: #24577b;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 5px;
    cursor: pointer;
}

#saveProfile:hover {
    background-color: #327bb0;
    transform: scale(1.02);
}

.menu-active .menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    width: 100%;
    background: #f4f4f4;
    padding-top: 30px;
}

.profile-card {
    width: 95%;
    height: auto;
    background: white;
    padding: 40px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    transition: 0.3s ease-in-out;
    background-image: url(http://www.transparenttextures.com/patterns/lined-paper.png);
}

.member-info-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    background: #d1e7fd;
    padding: 1.2rem;
    width: 100%;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
}

.member-info-title:hover {
    background: #b0d4f5;
    color: #000;
}

/*  Profile Image + Name Section */
.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 1rem;
}

/*  Profile Image */
.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #0077b6;
    transition: transform 0.3s ease-in-out;
}

.profile-img:hover {
    transform: scale(1.1);
}

/*  Name Styling */
.profile-image-container h2 {
    font-size: 45px;
    color: #222;
    margin-bottom: 5px;
    text-align: center;
    transition: color 0.3s ease-in-out;
}

.profile-image-container h2:hover {
    color: #0077b6;
}

/*  Role Styling */
.member-role {
    font-size: 22px;
    font-weight: bold;
    color: #555;
    background: #ffe599;
    padding: 8px 20px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.member-role:hover {
    background: #ffcc33;
    color: #333;
}

/*  Profile Content */
.profile-content {
    flex: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/*  School, Grade, Diploma, Major in a Row */
.profile-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.profile-row p {
    font-size: 20px;
    font-weight: bold;
    background: #e8f0fe;
    padding: 14px 22px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    transition: 0.3s ease-in-out;
}

.profile-row p:hover {
    background: #c7e0ff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/*  Gender & Date of Birth Row */
.personal-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

.personal-info p {
    font-size: 20px;
    font-weight: bold;
    background: #f7e6ff;
    padding: 14px 22px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    transition: 0.3s ease-in-out;
}

.personal-info p:hover {
    background: #f0c6ff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/*  Google Scholar Section */
.google-scholar {
    background: #e0f2f1;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    width: 100%;
    transition: 0.3s ease-in-out;
}

.google-scholar:hover {
    background: #b2dfdb;
    color: #005f5f;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.stats div {
    background: #e0e0e0;
    padding: 16px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex: 1;
    max-width: 220px;
    transition: 0.3s ease-in-out;
}

.stats div:hover {
    background: #bfbfbf;
    transform: scale(1.05);
}

/*  Highlighted Team Section  */
.team-info {
    font-size: 22px;
    font-weight: bold;
    color: white;
    background: #0077b6;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    width: fit-content;
    align-self: center;
    margin-top: 25px;
    transition: 0.3s ease-in-out;
}

.team-info:hover {
    background: #005f99;
}