header {
    margin: 8px !important;
}
header .header-container {
    padding: 0;
}
header .header-block {
    margin: 0 auto !important;
    max-width: 1060px !important;
    min-width: 1060px;
}

header .action-block {
    gap: 12px;
}

header .header-navigation {
    gap: 24px;
}

/* Header navigation - horizontal layout */
header .header-navigation .wp-block-navigation__container {
    flex-direction: row;
    align-items: center;
    gap: 24px;
}
header .header-navigation .nav-item {
    padding: 4px 8px;
}
header .header-navigation .nav-item a:hover {
    color: var(--primary-color);
}

header .registration-btn a {
    transition: all 0.3s ease;
}
header .registration-btn a:hover {
    background: var(--primary-color) !important;
}

header .logo-block {
    max-width: 136px;
}
header .logo-block img {
    width: 100%;
}

.mobile-header {
    display: none;
}



/* Lang selector */

header .language-dropdown {
    display: inline-block;
    position: relative;
}

header .language-dropdown p {
    margin: 0 !important;
}

header .language-toggle {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 4px;
    padding: 6px 8px;
    padding-right: 36px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    color: var(--dark-gray-color);
    display: flex;
    gap: 5px;
}
header .language-toggle:hover {
    background: #fff;
}
header .language-toggle .arrow-icon,
header .language-toggle .arrow-rotated,
header .lang-dropdown-menu .check-icon {
    position: absolute;
    top: 10px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
header .lang-dropdown-menu .check-icon {
    top: 8px;
    right: 18px;
}
header .language-toggle .arrow-icon.show,
header .language-toggle .arrow-rotated.show,
header .lang-dropdown-menu .check-icon {
    opacity: 1;
}
header .language-toggle .arrow-rotated {
    transform: rotate(180deg);
}

header .lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border: 1px solid #A7A7A7;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    max-height: 0; 
    overflow: hidden;
    z-index: 100;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
header .lang-dropdown-menu.show {
    opacity: 1;
    max-height: 500px; 
}
header .lang-dropdown-menu li {
    position: relative;
    padding: 4px 23px;
    padding-right: 43px;
}
header .lang-dropdown-menu li a {
    text-decoration: none;
    color: var(--dark-gray-color);
}

header .close-mobile-menu-block {
    display: none;
}

.lang-icon {
    width: 16px;
    height: 16px;
}

/* Mobile styles */
@media (max-width: 1110px) {
    header .header-block {
        min-width: auto;
        gap: 8px !important;
    }

    header .header-navigation {
        gap: 0;
    }

    header .header-navigation .wp-block-navigation-item__content,
    header .language-toggle {
        font-size: 13px;
    }
    header .language-toggle {
        padding-right: 26px;
    }
    header .language-toggle .arrow-icon {
        width: 11px;
    }

    header .action-block {
        gap: 8px;
    }
    header .action-block .wp-block-buttons a {
        font-size: 13px !important;
        padding: 6px !important;
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
        justify-content: space-between;
        margin: 0px !important;
        padding: 12px;
    }
    .header-block {
        display: flex !important;
        flex-direction: column;
        justify-content: start;
        position: fixed;
        top: 0;
        left: 0;
        height: 0;
        width: 100vw;
        padding: 0 !important;
        overflow: hidden;
        background: var(--light-gray-color) !important;
        z-index: 99999;
        transition: all 0.5s ease;
    }
    .header-block.show {
        height: 100vh;
        padding: 32px 0 !important;
    }

    .header-block ul.header-navigation {
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
        /* max-width: 300px; */
        max-width: unset;
        margin: 0 auto;
    }
    
    header .header-navigation .wp-block-navigation-item__content,
    header .language-toggle {
        font-size: 18px;
        color: var(--dark-gray-color);
    }
    
    header .header-navigation .wp-block-navigation-item__content:hover {
        color: var(--primary-color);
    }
    
    header .language-toggle {
        padding-right: 36px;
        font-size: 16px;
    }
    header .language-toggle .arrow-icon {
        width: 16px;
    }
    header .header-navigation,
    header .action-block {
        gap: 20px;
    }
    header .action-block {
        flex-direction: column-reverse;
    }
    header .action-block .wp-block-buttons {
        width: 100%;
    }
    header .action-block > .wp-block-buttons {
        order: 1;
    }
    header .action-block > .wp-block-buttons > .wp-block-button {
        width: 100%;
    }
    header .action-block .wp-block-buttons a {
        font-size: 16px !important;
        padding: 10px !important;

        display: block;
        text-align: center;
    }

    .mobile-header .menu-block {
        align-content: center;
    }

    .mobile-menu-toggle,
    .close-mobile-menu {
        background: transparent;
        border: 0;
        padding: 0;
    }

    header .close-mobile-menu-block {
        display: block;
        position: absolute;
        top: 16px;
        right: 16px;
    }
    header .close-mobile-menu img {
        width: 32px;
    }
    .mobile-menu-toggle img {
        width: 28px;
    }
} 