/** {*/
/*    box-sizing: border-box;*/
/*    padding: 0;*/
/*    margin: 0;*/
/*    font-family: sans-serif;*/
/*}*/

/*body {*/
/*    padding-top: 140px; !* Adjusted for potential new height *!*/
/*}*/

/* Fixed header styles */
.sign-up-toggle img {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.sign-up-toggle.rotated img {
    transform: rotate(90deg); /* points down (was right) */
}
.main-container {
    position: fixed;
    top: 0;
    /*left: 0;*/
    width: 100%;
    z-index: 10;
    padding: 0 100px;
}
.menu-toggle-icon {
    transition: transform 0.4s ease;
    transform-origin: center;
}

.menu-toggle-icon.rotated {
    transform: rotate(180deg);
}
.toggle-part {
    display: flex;
    gap: 21px;
    align-items: center;
}
/* The wrapper is a positioning container for the content and its shadow */
.nav-wrapper {
    width: 100%;
    margin: 20px auto;
    position: relative;
    height: 100px;
    /* MODIFIED: Slower, smoother transition for height */
    transition: height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    /* NEW: Add drop-shadow filter for the header shadow */
    filter: drop-shadow(4px 4px 16px rgba(0, 0, 0, 0.24));
}

/*.nav-wrapper.open {*/
/*    height: 400px;*/
/*}*/

/* NEW: State for language menu wrapper */
.nav-wrapper.lang-open {
    height: 220px;
}

/* The main container sits on top of the shadow */
.nav-container {
    width: 100%;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    /* MODIFIED: Changed background to white */
    background: #ffffff;
    backdrop-filter: blur(80px);
    z-index: 2;
    /* MODIFIED: Slower, smoother transitions for clip-path and height */
    transition: clip-path 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-container.open {
    height: 400px;
}

/* --- Generic Styles for ANY Dropdown Menu --- */
.dropdown-menu {
    position: absolute;
    top: 105px;
    z-index: 3;
    padding: 10px;
}

.dropdown-menu a {
    font-family: Mardoto-Regular,sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 100%;

    display: block;
    padding: 12px 0;
    color: #002D48;
    text-decoration: none;
    border-radius: 6px;
}

.dropdown-menu:not(.language-menu) > * {
    opacity: 0;
    transform: translateY(20px);
    /* MODIFIED: Slower, smoother item animations */
    transition: opacity 1.0s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover {
    /* MODIFIED: Changed hover state for light background */
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}
.password-element {
    border: unset!important;
    background: unset!important;
}
/* Styles specific to the login form */
.login-menu input {
    /* MODIFIED: Styles updated for a light theme */
    width: 100%;
    padding: 24px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    color: #212529;
    font-size: 16px;
}

.login-menu input::placeholder {
    color: #868e96;
}

.login-menu .password-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    background: #f1f3f5;
    border-radius: 80px;
}

.login-menu .password-row input {
    flex-grow: 1;
}

.login-menu .forgot-password-btn {
    background: #002D48;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    white-space: nowrap;
}

.login-menu .login-btn {
    width: 100%;
    background: #002D48;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Logic for showing/hiding items in ANY open menu */
.nav-container.open .dropdown-menu:not(.language-menu) > * {
    opacity: 1;
    transform: translateY(0);
}

.nav-container.open .dropdown-menu:not(.language-menu) > *:nth-child(1) {
    transition-delay: 0.1s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav-container.open .dropdown-menu:not(.language-menu) > *:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-container.open .dropdown-menu:not(.language-menu) > *:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-container.open .dropdown-menu:not(.language-menu) > *:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-container.open .dropdown-menu:not(.language-menu) > *:nth-child(5) {
    transition-delay: 0.5s;
}

/* Smooth closing */
.nav-container.closing .dropdown-menu:not(.language-menu) > * {
    opacity: 0;
    transform: translateY(20px);
}

.nav-container.closing .dropdown-menu:not(.language-menu) > *:nth-child(1) {
    transition-delay: 0.5s;
}

.nav-container.closing .dropdown-menu:not(.language-menu) > *:nth-child(2) {
    transition-delay: 0.4s;
}

.nav-container.closing .dropdown-menu:not(.language-menu) > *:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-container.closing .dropdown-menu:not(.language-menu) > *:nth--child(4) {
    transition-delay: 0.2s;
}

.nav-container.closing .dropdown-menu:not(.language-menu) > *:nth-child(5) {
    transition-delay: 0.1s;
}


/* --- General Layout Styles --- */
.main-content {
    height: 100px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 4;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 100px;
}

.main-menu {
    display: flex;
    gap: 40px;
}

.right-block {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* MODIFIED: Changed link color for light background */
.header-links a, .right-block a {
    color: #002D48;
    text-decoration: none;
    cursor: pointer;
}

/* --- MODIFIED: Language Block Styles for Self-Containment --- */
.language-block {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border-radius: 80px;
    border: 2px solid #002D48;
    height: 56px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* MODIFIED: Removed box-shadow for consistency with overall drop-shadow */
    /* MODIFIED: Slower, smoother transitions for language block (removed box-shadow transition) */
    transition: height 1.0s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    border-radius 1.0s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 1.0s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.language-block.open {
    height: 140px;
    border-radius: 32px;
    transform: translateY(40px);
}

.language-visible {
    display: flex;
    align-items: center;
    gap: 25px;
    padding-top: 17px;
    padding-bottom: 12px;
    padding-left: 24px;
    padding-right: 24px;
    min-height: 52px;
    cursor: pointer;
}

.language {
    font-family: Mardoto-Regular,sans-serif;
    font-weight: normal;
    font-size: 16px;
    line-height: 100%;
    color: #002D48 !important;
    display: flex;
    justify-content: center;
}

.language-block img {
    object-fit: contain;
}

.language-menu {
    position: static; /* No longer absolute */
    padding: 5px 24px 15px 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-menu a {
    color: #002D48 !important;
    padding: 8px 0;
    text-align: center;
    border-radius: 20px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.language-menu a:hover {
    background: rgba(0, 45, 72, 0.1);
    color: #002D48 !important;
}

/* --- Trampoline animation for items inside language block --- */
.language-menu > * {
    opacity: 0;
    transform: translateY(20px);
    /* MODIFIED: Slower, smoother item animations for language menu */
    transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.68, -0.6, 0.27, 1.65);
}

.language-block.open .language-menu > * {
    opacity: 1;
    transform: translateY(0);
}

.language-block.open .language-menu > *:nth-child(1) {
    transition-delay: 0.1s;
}

.language-block.open .language-menu > *:nth-child(2) {
    transition-delay: 0.2s;
}

/* Closing animation */
.language-block:not(.open) .language-menu > * {
    opacity: 0;
    transform: translateY(20px);
    /* MODIFIED: Match the opening duration and easing for smooth closing */
    transition: opacity 0.8s ease-in, transform 1.2s cubic-bezier(0.68, -0.6, 0.27, 1.65);
}

/* Content styles */
.content {
    padding: 20px 100px;
    min-height: 100vh;
}

.content-section {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: #343a40;
    margin-bottom: 15px;
}

.content-section p {
    color: #495057;
    line-height: 1.6;
}

/* The wrapper is a positioning container for the content and its shadow */
.nav-wrapper {
    width: 100%;
    margin: 20px auto;
    position: relative;
    height: 100px;
    transition: height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: drop-shadow(4px 4px 16px rgba(0, 0, 0, 0.24));
}

/* --- COMBINED LOGIC: Height for different open menus --- */
/* Default open height (for "About" menu and Login Form) */
/*.nav-wrapper.open {*/
/*    height: 400px;*/
/*}*/

/* Height for the language menu */
.nav-wrapper.lang-open {
    height: 220px;
}

/* Taller height SPECIFICALLY for the logged-in user menu */
body.logged-in .nav-wrapper:has(> .nav-container[data-open-menu=".login-menu"].open) {
    height: 480px;
}

/* The main container sits on top of the shadow */
.nav-container {
    width: 100%;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    backdrop-filter: blur(80px);
    z-index: 2;
    transition: clip-path 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    height 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- COMBINED LOGIC: Height for different open menus --- */
/* Default open height */
.nav-container.open {
    height: 400px;
}

/* Taller height SPECIFICALLY for the logged-in user menu */
/*body.logged-in .nav-container[data-open-menu=".login-menu"].open {*/
/*    height: 480px;*/
/*}*/

/* --- Generic Styles for ANY Dropdown Menu --- */
.dropdown-menu {
    position: absolute;
    top: 105px;
    z-index: 3;
    padding: 10px;
}

.dropdown-menu a {
    display: block;
    padding: 12px 0;
    color: #343a40;
    text-decoration: none;
    border-radius: 6px;
}
.user-profile-link {
    flex-direction: unset!important;
}
.dropdown-menu:not(.language-menu) > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* --- COMBINED LOGIC: Show/Hide Login Form vs User Menu --- */
/* By default, hide the User Menu content and the logged-in toggle button */
.login-menu .user-menu-wrapper,
.login-toggle.logged-in-view {
    display: none;
}

/* When logged-in, hide the Login Form and the logged-out button, and show the user menu/button */
body.logged-in .login-menu .login-form-wrapper,
body.logged-in .login-toggle.logged-out-view {
    display: none;
}
body.logged-in .login-menu .user-menu-wrapper,
body.logged-in .login-toggle.logged-in-view {
    display: block;
}

/* --- STYLES FOR ORIGINAL LOGIN FORM --- */
.login-menu .login-form-wrapper input {
    width: 100%;
    padding: 14px 20px;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    color: #212529;
    font-size: 16px;
    margin-bottom: 15px;
}
.login-menu .login-form-wrapper input::placeholder { color: #868e96; }
.login-menu .login-form-wrapper .password-row { display: flex; align-items: center; gap: 10px; }
.login-menu .login-form-wrapper .password-row input { flex-grow: 1; }
.login-menu .login-form-wrapper .forgot-password-btn { background: #0d6efd; color: white; border: none; border-radius: 20px; padding: 10px 15px; cursor: pointer; white-space: nowrap; }
.login-menu .login-form-wrapper .login-btn { width: 100%; background: #0d6efd; color: white; border: none; border-radius: 30px; padding: 14px 20px; font-size: 16px; cursor: pointer; margin-top: 10px; }


/* --- STYLES FOR NEW USER MENU (from image) --- */
.login-menu .user-menu-wrapper { padding: 10px; } /* Adjust padding for wrapper */
.login-menu .user-profile-link { display: flex; align-items: center; text-decoration: none; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid #f1f3f5; }
.login-menu .user-profile-link:hover { background: rgba(0, 0, 0, 0.02); border-radius: 8px; }
.login-menu .user-avatar { width: 48px; height: 48px; border-radius: 50%; background-color: #e9ecef; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 12px; }
.login-menu .user-avatar svg { width: 24px; height: 24px; fill: #002D48; }
.login-menu .user-info { flex-grow: 1; }
.login-menu .user-info strong { font-size: 16px; color: #002D48; display: block; }
.login-menu .user-info small { font-size: 14px; color: #868e96; }
.login-menu .arrow-icon { fill: #adb5bd; width: 16px; height: 16px; }
.login-menu .user-menu-list { list-style: none; padding: 0; margin: 0; }
.login-menu .user-menu-list a { display: flex; align-items: center; text-decoration: none; color: #002D48; padding: 14px 0; border-bottom: 1px solid #f1f3f5; font-size: 16px; transition: background-color 0.2s ease; }
.login-menu .user-menu-list li:last-child a { border-bottom: none; }
.login-menu .user-menu-list a:hover { background-color: rgba(0, 0, 0, 0.02); border-radius: 8px; }
.login-menu .user-menu-list .item-icon { margin-right: 16px; fill: #002D48; width: 24px; height: 24px; }
.login-menu .user-menu-list .item-text { flex-grow: 1; }
.login-menu .logout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 12px; background-color: #FFF1F3; color: #D90429; border-radius: 24px; font-weight: 500; text-decoration: none; transition: background-color 0.2s ease; }
.login-menu .logout-btn:hover { background-color: #FADADD; }
.login-menu .logout-btn .logout-icon { width: 16px; height: 16px; fill: #D90429; }




/* General Layout & Language Block Styles (Unchanged) */
.main-content { height: 100px; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 4; }
.header-links { display: flex; align-items: center; gap: 100px; }
.main-menu { display: flex; gap: 40px; }
.right-block { display: flex; gap: 24px; align-items: center; }
.header-links a, .right-block a { color: #002D48; text-decoration: none; cursor: pointer; }
.language-block { position: relative; z-index: 5; background: #ffffff; border-radius: 80px; border: 2px solid #002D48; height: 56px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; transition: height 1.0s cubic-bezier(0.68, -0.55, 0.27, 1.55), border-radius 1.0s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1.0s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.language-block.open { height: 140px; border-radius: 32px; transform: translateY(40px); }
/*.language-visible { display: flex; align-items: center; gap: 25px; padding: 17px 24px; min-height: 52px; cursor: pointer; }*/
.language { color: #002D48 !important; display: flex; justify-content: center; }
.language-block img { object-fit: contain; }
.language-menu { position: static; padding: 5px 24px 15px 24px; display: flex; flex-direction: column; gap: 5px; }
.language-menu a { color: #002D48 !important; padding: 8px 0; text-align: center; border-radius: 20px; background: transparent; transition: background-color 0.2s ease; }
.language-menu a:hover { background: rgba(0, 45, 72, 0.1); color: #002D48 !important; }
.language-menu > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 1.2s cubic-bezier(0.68, -0.6, 0.27, 1.65); }
.language-block.open .language-menu > * { opacity: 1; transform: translateY(0); }
.language-block.open .language-menu > *:nth-child(1) { transition-delay: 0.1s; }
.language-block.open .language-menu > *:nth-child(2) { transition-delay: 0.2s; }
.language-block:not(.open) .language-menu > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-in, transform 1.2s cubic-bezier(0.68, -0.6, 0.27, 1.65); }
.content { padding: 20px 100px; min-height: 100vh; }
.content-section { margin-bottom: 40px; padding: 20px; background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.content-section h2 { color: #343a40; margin-bottom: 15px; }
.content-section p { color: #495057; line-height: 1.6; }
#demo-toggle-button { position: fixed; bottom: 20px; right: 20px; z-index: 9999; padding: 10px 20px; background: #0d6efd; color: white; border: none; border-radius: 8px; cursor: pointer; }
/* --- Amazing Popup Styles --- */

/* 1. The Overlay (dimmed background) */
.popup-overlay-forgot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black */
    z-index: 1000; /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Animation: Smooth fade-in for the overlay */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* 2. The Popup Container (the white box) */
.popup-container {
    background: #ffffff;
    padding: 25px 35px;
    border-radius: 12px;
    max-width: 700px; /* Adjust as needed */
    width: 100%;
    text-align: center;
    position: relative; /* Needed for the close button positioning */

    /* Animation: Smooth scale and fade for the popup box */
    box-shadow: 81px 50px 100px rgba(4, 167, 161, 0.25), /* Inner shadow is slightly stronger */
    25px 44px 71px rgba(4, 167, 161, 0.45); /* Outer glow is much larger and more opaque */
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* 3. The Content inside the popup */
.popup-container p {
    font-family: "Mardoto-Regular", sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 120%;
    max-width: 644px;
    text-align: center;
}

/* 4. The Close button (the '×') */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: #333;
}


/* 5. The HIDDEN state for the animations */
.popup-overlay-forgot.hidden {
    opacity: 0;
    visibility: hidden;
}

.popup-overlay-forgot.hidden .popup-container {
    /* When hidden, the popup is scaled down and transparent */
    transform: scale(0.7);
    opacity: 0;
}
@media (min-width: 1280px) and (max-width: 1919px) {
    .main-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (min-width: 1024px) and (max-width: 1279px) {
    .main-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .main-container {
        padding-left: 24px;
        padding-right: 24px;
    }
    /* --- General Wrapper & Container --- */
    /* Use the existing padding from your general media queries */
    /* .main-container { padding: 0 24px; } */

    .nav-wrapper {
        height: 95px;
        margin-top: 20px;
        filter: drop-shadow(0px 10px 30px rgba(0, 45, 72, 0.15));
        transition: height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .nav-container {
        height: 75px;
        background: #ffffff;
        border-radius: 40px;
        transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .main-content {
        height: 75px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
    .logo img {
        height: 30px;
    }
    .header-links {
        gap: 15px;
    }
    .right-block {
        gap: 10px;
    }
    .main-menu > a:not(.menu-toggle) {
        display: none;
    }
    .main-menu .toggle-part {
        display: block !important;
    }
    .menu-toggle,
    .sign-up-toggle,
    .language-block {
        cursor: pointer;
        border: 1.5px solid #E9ECEF;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 14px;
        color: #002D48;
        background-color: #F8F9FA;
        text-decoration: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }
    .sign-up-toggle {
        background-color: #002D48;
        color: #fff;
        border-color: #002D48;
    }

    /* --- FIX #1 IS HERE --- */
    .language-block {
        position: relative; /* <-- THIS LINE IS ADDED */
        padding: 0;
        height: auto;
        border: 1.5px solid #E9ECEF;
        background-color: #F8F9FA;
        overflow: visible;
        transition: none;
        transform: none !important;
    }

    .language-visible {
        padding: 8px 16px;
        gap: 8px;
    }
    .language {
        color: #002D48 !important;
    }
    .menu-toggle:hover,
    .language-block:hover {
        background-color: #E9ECEF;
    }
    .sign-up-toggle:hover {
        background-color: #001f33;
    }
    .menu-toggle-icon {
        display: none !important;
    }
    .menu-toggle::before {
        content: '☰';
        margin-right: 8px;
        font-size: 18px;
        line-height: 1;
        transition: transform 0.4s ease, content 0.4s ease;
    }
    .menu-toggle.active::before {
        content: '✕';
        font-size: 20px;
    }
    .dropdown-menu {
        top: 90px;
        display: none;
    }
    .about-menu {
        left: 15px;
        width: 280px;
    }
    .login-menu {
        right: 15px;
        left: auto;
        width: 320px;
    }
    .nav-container.open .dropdown-menu:not(.language-menu) {
        display: block;
    }
    .language-block.open {
        height: auto;
        border-radius: 20px;
        transform: none;
    }
    .language-block .language-menu {
        position: absolute;
        top: 110%;
        right: 0;
        width: 80px;
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 45, 72, 0.1);
        border: 1px solid #E9ECEF;
        padding: 8px;
        display: none;
    }
    .language-block.open .language-menu {
        display: flex;
    }
}
@media (min-width: 320px) and (max-width: 767px) {
    .main-container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .nav-wrapper {
        height: 95px;
        margin-top: 20px;
        filter: drop-shadow(0px 10px 30px rgba(0, 45, 72, 0.15));
        transition: height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .nav-container {
        height: 75px;
        background: #ffffff;
        border-radius: 40px;
        transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1),
        height 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .main-content {
        height: 75px;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }
    .logo img {
        height: 30px;
    }
    .header-links {
        gap: 15px;
    }
    .right-block {
        gap: 10px;
    }
    .main-menu > a:not(.menu-toggle) {
        display: none;
    }
    .main-menu .toggle-part {
        display: block !important;
    }
    .menu-toggle,
    .sign-up-toggle,
    .language-block {
        cursor: pointer;
        border: 1.5px solid #E9ECEF;
        border-radius: 20px;
        padding: 8px 16px;
        font-size: 14px;
        color: #002D48;
        background-color: #F8F9FA;
        text-decoration: none;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }
    .sign-up-toggle {
        background-color: #002D48;
        color: #fff;
        border-color: #002D48;
    }

    /* --- FIX #1 IS HERE --- */
    .language-block {
        position: relative; /* <-- THIS LINE IS ADDED */
        padding: 0;
        height: auto;
        border: 1.5px solid #E9ECEF;
        background-color: #F8F9FA;
        overflow: visible;
        transition: none;
        transform: none !important;
    }

    .language-visible {
        padding: 8px 16px;
        gap: 8px;
    }
    .language {
        color: #002D48 !important;
    }
    .menu-toggle:hover,
    .language-block:hover {
        background-color: #E9ECEF;
    }
    .sign-up-toggle:hover {
        background-color: #001f33;
    }
    .menu-toggle-icon {
        display: none !important;
    }
    .menu-toggle::before {
        display: none;
        content: '☰';
        margin-right: 8px;
        font-size: 18px;
        line-height: 1;
        transition: transform 0.4s ease, content 0.4s ease;
    }
    .menu-toggle.active::before {
        content: '✕';
        font-size: 20px;
    }
    .dropdown-menu {
        top: 90px;
        display: none;
    }
    .about-menu {
        left: 15px;
        width: 280px;
    }
    .login-menu {
        right: 15px;
        left: auto;
        width: 320px;
    }
    .nav-container.open .dropdown-menu:not(.language-menu) {
        display: block;
    }
    .language-block.open {
        height: auto;
        border-radius: 20px;
        transform: none;
    }
    .language-block .language-menu {
        position: absolute;
        top: 110%;
        right: 0;
        width: 80px;
        background-color: #fff;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 45, 72, 0.1);
        border: 1px solid #E9ECEF;
        padding: 8px;
        display: none;
    }
    .language-block.open .language-menu {
        display: flex;
    }

}