.profile-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.16);
}

.profile-extra-links {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 180px;
    padding: 8px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.profile-extra-links a {
    width: 100%;
}

.profile-menu:hover .profile-extra-links,
.profile-menu:focus-within .profile-extra-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.school-active {
    border: 2px solid #10b981;
    background: #ecfdf5;
    color: #065f46;
}

.image-gallery {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 30px;
    padding: 0 16px 12px;
    overflow: visible;
}

.image-card2 {
    display: flex;
    flex-direction: column;
    width: 240px;
    height: auto;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
    transition: transform 0.3s ease-in-out;
}

.image-card2:hover {
    transform: scale(1.03);
}

.image-card2 a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-card2 img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.image-card2 .text-container {
    background-color: #ffffff;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
}

.image-card2 .image-text {
    color: black;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
    margin-top: 10px;
    margin-left: 5px;
}

.image-card2 .image-text2 {
    color: #666666;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0px;
    margin-left: 5px;
}

.image-card2 .image-text3 {
    color: #666666;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
    margin-top: 0px;
    margin-left: 5px;
}
