.floating-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-menu-container.visible {
    transform: translateY(0);
}

/* Admin bar support */
.admin-bar .floating-menu-container {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .floating-menu-container {
        top: 46px;
    }
}

/* Menu area */
.floating-menu-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 clamp(20px, 5vw, 60px);
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60px;
}

.floating-menu-navigation {
    flex: 1;
}

.floating-menu-navigation ul {
 	display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 3vw, 40px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.floating-menu-navigation li {
    margin: 0;
}

.floating-menu-navigation a {
    display: inline-block;
    padding: 8px 12px;
    color: var(--wp--preset--color--dark-logo, #056795);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
}

.floating-menu-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--dark-logo, #056795);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.floating-menu-navigation a:hover::after,
.floating-menu-navigation a:focus::after {
    width: 80%;
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.language-switcher ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.language-switcher li {
    margin: 0;
}

.lang-item img {
    width: 28px !important;
    height: 28px !important;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.lang-item img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .floating-menu-navigation ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        row-gap: 5px;
        padding-block: 10px;
    }

    .floating-menu-navigation li {
      flex-basis: calc(33.33% - 20px);
      margin: 0px;
    }

    .floating-menu-navigation a {
        font-size: 12px!important;
        padding: 0;
    }
  
    .floating-menu-navigation a::after {
      bottom: -5px;
    }
    
    .lang-item:first-child {
        text-align: right;
        position: relative;
        right: -20px;
    }
    
    .lang-item:nth-child(2) {
        text-align: center;
    }
    
    .lang-item:nth-child(3) {
        position: relative;
        left: -20px;
    }
    
    .floating-menu .menu-item:nth-child(4), .floating-menu .menu-item:nth-child(5), .floating-menu .menu-item:nth-child(6) {
        text-align: center;
        line-height: 1;
        align-self: center;
    }
}