@media (min-width: 960px) {
    .dropdown-toggle {
        margin-left: 140px;
    }
}

@media (max-width: 959px) {
    .navbar-expand-md .navbar-nav {
        margin-top: 18px;
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-evenly;
    }
}
.nav-item.dropdown .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.4s linear;
}

.nav-item.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
}
.no-photo {
    width: 120px;
    height: 120px;
    background: #e1e1e1;
    border-radius: 50%;

}

#user-photo {
    width: 125px;
    height: 125px;
    border-radius: 50%;
}
nav.portal-navbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: linear-gradient(to bottom, #f6f5f5, #f6f5f5 75%, #e9e9e9 75%);
}

@media (max-width:768px){
        .nav-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 10px 20px;
            box-shadow: none;
            border-radius: 0px;
            background: linear-gradient(to bottom, #f6f5f5, #f6f5f5 75%, #e9e9e9 75%);
        }
}

.navbar-left {
    display: flex;
    align-items: center;
}

.home-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 20px;
}

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

.profile-photo {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: #ccc;
}

#user-photo {
    width: 170px;
    height: 170px;
}

.profile-info {
    font-family: Inter;
    margin-left: 30px;
    margin-bottom: 40px;
}

.profile-name {
    font-family: Inter;
    font-size: 27px;
    font-weight: 450;
}

.profile-group {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    opacity: 75%;
}

.profile-group:hover {
    text-decoration: underline;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.settings-btn {
    width: 164px;
    height: 45px;
    background-color: #125ad0;
    display: flex;
    align-items: center;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: Inter;
    font-size: 14px;
    margin-right: 40px;
    margin-bottom: 40px;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 5%;
    top: 100%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    z-index: 2;
    margin-top: -30px;
}

@media (max-width: 768px) {
    .dropdown-content {
        left: auto;
        right: 5px; /* Отступ от правого края */
        width: calc(100% - 20px); /* Ширина с учётом отступов */
        max-width: 200px;
        min-width: 150px;
    }
}
@media screen and (max-width: 768px){
    .setting-icon{
        margin-left:1px;
    }
}
.dropdown-content a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    width: 150px;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
}

.logout-btn {
    width: 106px;
    height: 45px;
    background-color: #125ad0;
    display: flex;
    align-items: center;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: Inter;
    font-size: 14px;
    margin-bottom: 40px;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */
.home-btn{
    display: flex;
    align-items: center;
    background-color: #125ad0;
    color: white;
    border: none;
    width: 106px;
    height: 45px;
    border-radius: 20px;
    font-family: Inter;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    margin-bottom: 40px;
}

.home-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 31px;
    background-color: #89ade8;
    border-radius: 50%;
    margin-right: 8px;
}

.setting-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    background-color: #89ade8;
    border-radius: 50%;
    margin-right: 8px;
}

.logout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    background-color: #89ade8;
    border-radius: 50%;
    margin-right: 8px;
    overflow: hidden;
}

.university-icon {
    height: 31px; /* Подберите размер, чтобы иконка совпадала по высоте с текстом */
    margin-right: 5px; /* Отступ справа для небольшого промежутка между иконкой и текстом */
    vertical-align: middle; /* Выравнивание иконки по центру текста */
}

@media (max-width: 768px) {
    /* Скрыть текст внутри кнопок, оставив только иконки */
    .btn-title {
        display: none;
    }

    /* Центрировать иконки внутри кнопок */
    .home-icon,
    .setting-icon,
    .logout-icon {
        margin-right: 0px;
    }
    .settings-btn {
        margin-right: 35px;
        padding: 6px;
        width: 45px;
    }
    .home-btn,
    .logout-btn {
        padding: 6px;
        width: 45px;
        margin-right: 25px;
    }
    .navbar-right {
        display: flex;
        align-items: center;
        flex-direction: row;
        z-index: 2;
    }
}

@media (max-width: 768px) {
    .home-btn {
        margin-right: 10px;
    }

}

@media (max-width: 768px) {
    /* Уменьшаем фото профиля и адаптируем текст */
    .venok {
        position: absolute;
        top: -14px;
        left: -18px;
        width: 130px;
    }
    .profile-photo,
    #user-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 43px;
    }

    .profile-info {
        margin-left: 15px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-group {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Ещё больше уменьшаем фото и текст для очень маленьких экранов */
    .venok {
        position: absolute;
        top: -13px;
        left: -17px;
        width: 95px;
    }
    .profile-photo,
    #user-photo {
        width: 65px;
        height: 65px;
        margin-bottom: 43px;
    }
    .navbar-right {
        margin-right: -30px;
        transform: scale(0.8);
        display: flex;
        align-items: center;
        flex-direction: row;
    }
    .profile-info {
        margin-left: 10px;
    }
    .home-btn {
        transform: scale(0.8);
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-group {
        display: none;
    }
    .profile {
        width: 100px;
    }
}

@media (max-width: 375px) {
    .venok {
        position: absolute;
        top: -9px;
        left: -12px;
        width: 85px;
        height: auto;
    }
}

@media (max-width: 2600px) {
    .santa-image {
        margin-left: 750px;
        margin-top: 10px;
    }
}
@media (max-width: 2000px) {
    .santa-image {
        margin-left: 650px;
        margin-top: 10px;
    }
}
@media (max-width: 1900px) {
    .santa-image {
        margin-left: 550px;
        margin-top: 10px;
    }
}
@media (max-width: 1799px) {
    .santa-image {
        margin-left: 180px;
        margin-top: 12px;
    }
}

@media (max-width: 1024px) {
    .santa-image {
        margin-left: 0px;
        margin-right: 23px;
        margin-top: 35px;
    }
    .santa-image img {
        width: 60px; /* Размер изображения */
    }
}

@media (max-width:  768px) {
    .santa-image {
        margin-left: 0px;
        margin-right: 23px;
        margin-top: 25px;
    }
    .santa-image img {
        width: 60px; /* Размер изображения */
    }
}
@media (max-width:  593px) {
    .santa-image {
        margin-left: 0px;
        margin-right: 23px;
        margin-top: 60px;
    }
    .santa-image img {
        width: 40px; /* Размер изображения */
    }
}

@media (max-width: 480px) {
    .santa-image {
        margin-left: 0px;
        margin-right: -20px;
        margin-top: 28px;
    }
    .santa-image img {
        width: 40px; /* Размер изображения */
    }
}
@media (max-width: 465px) {
    .santa-image {
        margin-left: 0px;
        margin-right: -85px;
        margin-top: 28px;
    }
    .santa-image img {
        width: 40px; /* Размер изображения */
    }
}
@media (max-width: 385px) {
    .settings-btn {
          margin-right: 20px;
    }
    .home-btn {
        margin-right: 3px;
    }
    .logout-btn {
        margin-right: 10px;
    }
}
@media (max-width: 350px) {
    .santa-image {
        margin-left: 0px;
        margin-right: -64px;
        margin-top: 36px;
    }
    .profile-name {
        font-size: 14px;
    }
    .santa-image img {
        width: 30px;
    }
    .settings-btn {
        margin-right: 10px;
    }
}
.profile-photo-container {
       position: relative;
       display: inline-block; /* Чтобы вмещать оба изображения в одном контейнере */
   }
