/* Utility Bar (Скрывается при скролле) */
.utility-bar {
    height: var(--utility-height);
    background-color: #e3f2fd;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);

    font-size: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1031;
    transition: transform 0.3s ease-in-out;
}

.utility-bar a {
    color: #0056b3 !important;
    /* transition: color 0.2s; */
}

.utility-bar a:hover {
    color: #00c8ff !important;
    /* background-color: rgba(234, 255, 255, 0.862); */
}

.r-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    /* ключевое — выравнивание по правому краю */
    min-width: 150px;
    background: #e3f2fd;
    border-radius: 0.5rem;
    padding: 1rem 0.5rem 0.5rem;
    z-index: 1302;
}

.r-menu-custom.show {
    display: block;
}

.r-item-custom {
    display: block;
    padding: 0.5rem 0.5rem;
    color: #212529;
    text-decoration: none;
    border-radius: 0.375rem;
    /* transition: transform 0.3s ease-in-out; */
}

.r-menu-custom a:hover {
    color: #fff !important;
    background-color: rgba(0, 68, 255, 0.878);
}

/* X button */
.close-x {
    position: absolute;
    top: 0.1rem;
    right: 0.2rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.close-x:hover {
    color: #000;
}

body.scrolled .utility-bar {
    transform: translateY(-100%);
}

body.scrolled .navbar {
    top: 0;
}




/*Style for navigation menu - white + dark blue*/

.navbar {
    height: (--navbar-height);
    top: var(--utility-height);
    background-color: rgba(0, 20, 60, 0.7);
    border-bottom: 5px solid rgb(212, 217, 219);
    backdrop-filter: blur(6px);
    padding: 20px 20px 30px 20px;
    min-height: var(--navbar-height);
    z-index: 1030;
    transition: top 0.2s ease-in-out;
}

.navbar a {
    color: whitesmoke;
    transition: all 0.2s;
    border-radius: 10px;
}

.navbar a:visited,
.navbar a:link {
    color: whitesmoke;
}

.dropdown-menu a:hover,
.btn:hover {
    color: black !important;
    background: whitesmoke;
}

.dropdown-menu a:active {
    color: rgba(0, 0, 0, 0.7) !important;
    background: rgba(245, 245, 245, 0.7);
}

.dropdown-menu {
    background-color: rgba(0, 20, 60, 0.7);
    color: whitesmoke;
}

.btn:active {
    color: rgba(0, 0, 0, 0.7) !important;
    background: rgba(245, 245, 245, 0.2) !important;
}

.navbar-toggler {
    background-color: whitesmoke;
}

.navbar-brand {
    font-weight: 500;
    color: whitesmoke;
}

.logo1 {
    position: absolute;
    top: 4px;
    left: 10px;
    height: 80px;
}

.logo2 {
    position: absolute;
    top: 15px;
    left: 225px;
    height: 60px;
}

