/* ---- Header base styles ---- */
    .navbar {
        position: sticky;
        top: 0;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        z-index: 100;
        padding: 12px 0;
    }
    .navbar .container {
        max-width: 1300px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }
    .nav-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    .logo {
        flex-shrink: 0;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }
    .logo h2 {
        margin: 0;
        font-size: 1.7rem;
        font-weight: 800;
        font-variation-settings: 'wght' 800;
        line-height: 1.15;
        letter-spacing: -0.5px;
        white-space: nowrap;
        background: linear-gradient(135deg, #1a5f9e, #2b8cbb);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
    }
    .logo p {
        margin: 3px 0 0;
        font-size: 12px;
        color: #5e6f8d;
        white-space: nowrap;
    }
    .nav-links {
        display: flex;
        gap: 28px;
        align-items: center;
        flex-wrap: wrap;
    }
    .nav-links a {
        text-decoration: none;
        font-weight: 600;
        color: #2c3e50;
        transition: 0.2s;
    }
    .nav-links a:hover,
    .nav-links a.active {
        color: #1a5f9e;
    }
    .mobile-toggle {
        display: none;
        font-size: 26px;
        cursor: pointer;
        color: #1e2a3e;
        padding: 10px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        z-index: 200;
        position: relative;
        min-width: 44px;
        min-height: 44px;
    }

    /* ---- Language switcher styles ---- */
    .lang-switcher {
        position: relative;
        display: inline-block;
        cursor: pointer;
        margin-left: 10px;
    }
    .lang-switcher .selected-lang {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 6px;
        background: #f0f2f5;
        transition: background 0.2s;
        font-size: 14px;
        font-weight: 500;
        color: #1e2a3e;
        white-space: nowrap;
    }
    .lang-switcher .selected-lang:hover {
        background: #e2e6ea;
    }
    .lang-switcher .selected-lang i {
        font-size: 16px;
        color: #1a5f9e;
    }
    .lang-switcher .selected-lang .arrow {
        font-size: 12px;
        margin-left: 2px;
        transition: transform 0.2s;
    }
    .lang-switcher .selected-lang .arrow.open {
        transform: rotate(180deg);
    }
    .lang-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        min-width: 150px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        padding: 6px 0;
        z-index: 1000;
        list-style: none;
        border: 1px solid #e9ecef;
    }
    .lang-switcher::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 8px;
        display: block;
    }
    .lang-dropdown.show {
        display: block;
    }
    .lang-dropdown li {
        padding: 0;
        margin: 0;
    }
    .lang-dropdown a {
        display: block;
        padding: 8px 20px;
        color: #1e2a3e;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.15s;
        white-space: nowrap;
    }
    .lang-dropdown a:hover {
        background: #f1f5f9;
    }
    .lang-dropdown a.active-lang {
        background: #e8f0fe;
        font-weight: 600;
        color: #1a5f9e;
    }

    /* Mobile adaptation: language switcher inside the collapsed menu */
    .nav-links .lang-switcher-mobile {
        display: none;
        border-top: 1px solid #eef2f8;
        margin-top: 4px;
        padding-top: 4px;
    }
    .nav-links .lang-switcher-mobile .selected-lang {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: transparent;
        padding: 10px 0;
        font-size: 14px;
        font-weight: 500;
        color: #5e6f8d;
    }
    .nav-links .lang-switcher-mobile .selected-lang:hover {
        background: transparent;
    }
    .nav-links .lang-switcher-mobile .selected-lang i {
        font-size: 15px;
        color: #1a5f9e;
    }
    .nav-links .lang-switcher-mobile .selected-lang .arrow {
        font-size: 11px;
        color: #5e6f8d;
    }
    .nav-links .lang-switcher-mobile .lang-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 0;
        background: transparent;
        width: 100%;
        display: none;
    }
    .nav-links .lang-switcher-mobile .lang-dropdown a {
        display: block;
        padding: 10px 16px;
        text-align: center;
        color: #2c3e50;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid #f1f3f5;
        transition: background 0.15s;
    }
    .nav-links .lang-switcher-mobile .lang-dropdown a:last-child {
        border-bottom: none;
    }
    .nav-links .lang-switcher-mobile .lang-dropdown a:hover {
        background: #f8f9fa;
    }
    .nav-links .lang-switcher-mobile .lang-dropdown.show {
        display: block;
    }

    /* Desktop language switcher in the navigation bar */
    .nav-links .lang-switcher-desktop {
        display: inline-block;
    }
    @media (max-width: 768px) {
        .navbar .container {
            padding-left: 16px;
            padding-right: 16px;
        }
        .nav-flex {
            position: relative;
            flex-direction: column;
            align-items: stretch;
        }
        .mobile-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 8px;
            right: 16px;
            z-index: 200;
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        .nav-links {
            display: none;
            width: 100%;
            flex-direction: column;
            align-items: stretch;
            background: #fff;
            padding: 12px 0 4px;
            border-top: 1px solid #eef2f8;
            margin-top: 4px;
        }
        .nav-links.active {
            display: flex;
        }
        .nav-links > a {
            text-align: center;
            padding: 10px 0;
            font-size: 15px;
            font-weight: 500;
            color: #2c3e50;
            text-decoration: none;
            letter-spacing: 0.2px;
        }
        .nav-links > a:hover,
        .nav-links > a.active {
            color: #1a5f9e;
        }
        .nav-links .lang-switcher-desktop {
            display: none;
        }
        .nav-links .lang-switcher-mobile {
            display: block !important;
        }
    }
    @media (max-width: 480px) {
        .lang-switcher-desktop .selected-lang {
            font-size: 12px;
            padding: 4px 8px;
        }
    }
